-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
44 lines (37 loc) · 1.4 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import sys
import os
import setuptools
os.system("cp VERSION ave/")
os.system("rm -rf ave/_games")
os.system("cp -r games ave/_games")
if sys.version_info < (3, 4):
print("Python 3.4 or higher required, please upgrade.")
sys.exit(1)
with open("VERSION") as f:
VERSION = f.read()
entry_points = {'console_scripts': ['ave = ave.__main__:run',
'ave-test = ave.__main__:test_game']}
data_files = [
("ave/_games", [os.path.join("ave/_games", i)
for i in os.listdir("ave/_games")
if i.endswith(".ave")]),
("ave/screens", ["ave/screens/credits", "ave/screens/title",
"ave/screens/user"]),
("ave", ["ave/VERSION", "ave/gamelist.json"])]
if __name__ == "__main__":
setuptools.setup(
name="avegame",
description="Adventure! Villainy! Excitement!",
version=VERSION,
author="Matthew Scroggs and Giancarlo Grasso",
license="MIT",
author_email="ave@mscroggs.co.uk",
maintainer_email="ave@mscroggs.co.uk",
url="https://github.com/AVEgame/AVE",
packages=["ave", "ave.components", "ave.parsing", "ave.display",
"ave.test", "ave.screens"],
data_files=data_files,
include_package_data=True,
entry_points=entry_points,
install_requires=['windows-curses>=2.1.0 ; platform_system=="Windows"']
)