-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
69 lines (58 loc) · 1.98 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import os
from pathlib import Path
lib_folder = os.path.dirname(os.path.realpath(__file__))
requirements_file = lib_folder + '/runtime-req.txt'
whats_required = [] # Here we'll get content of requirements.txt
if os.path.isfile(requirements_file):
with open(requirements_file) as fp:
whats_required = fp.read().splitlines()
# need sys so we can include pyved_engine
import sys
sys.path.append('src')
from pyved_engine import vars
from setuptools import setup
pck_list = [
"pyved_engine",
"pyved_engine.foundation",
"pyved_engine.compo",
"pyved_engine.core",
"pyved_engine.looparts", # to be sure we get looparts/rogue.py, looparts/tabletop.py, etc.
"pyved_engine.looparts.ai",
"pyved_engine.looparts.demolib",
#"pyved_engine.looparts.gui",
'pyved_engine.add_ons.gui',
'pyved_engine.add_ons.tmx',
"pyved_engine.add_ons.tmx.pytiled_parser",
"pyved_engine.add_ons.tmx.pytiled_parser.parsers",
"pyved_engine.add_ons.tmx.pytiled_parser.parsers.json",
"pyved_engine.add_ons.tmx.pytiled_parser.parsers.tmx",
#"pyved_engine.looparts.isometric",
#"pyved_engine.looparts.polarbear",
#"pyved_engine.looparts.tmx",
"pyvcmdline",
"pyvcmdline.pyvcli_cogs",
"pyvcmdline.spare_parts"
]
this_directory = Path(__file__).parent
long_desc = (this_directory / "README.md").read_text()
setup(
name='pyved-engine',
version=str(vars.ENGINE_VERSION_STR),
description='Custom game engine built upon python/pygame',
long_description=long_desc,
long_description_content_type='text/markdown',
keywords=['Python', 'Pygame', 'Game Engine'],
author='moonb3ndr et al.',
author_email='thomas.iw@kata.games',
license='LGPL3',
package_dir={'': 'src'},
packages=pck_list,
url="https://github.com/gaudiatech/pyved-engine",
install_requires=whats_required,
include_package_data=True,
entry_points={
'console_scripts': [
'pyv-cli = pyvcmdline.__main__:do_parse_args'
]
}
)