-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
59 lines (48 loc) · 2.02 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
"""
Setup
"""
from setuptools import setup, find_packages
import os
import imperialism_remake.version as vs
HERE = os.path.abspath(os.path.dirname(__file__))
CLASSIFIERS = ['Development Status :: 2 - Pre-Alpha',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Games/Entertainment :: Turn Based Strategy']
KEYWORDS = 'imperialism remake turn based strategy game open source'
def get_long_description():
"""
Get the long description from the README file.
"""
with open(os.path.join(HERE, 'documentation', 'setup_py_long_description.txt'), encoding='utf-8') as f:
return f.read()
def get_package_data_files():
"""
Get the list of data files (full content of data directory).
"""
data_files = []
basepath = os.path.join(HERE, 'source', 'imperialism_remake')
for dirpath, dirnames, filenames in os.walk(os.path.join(basepath, 'data')):
relpath = os.path.relpath(dirpath, basepath)
names = [os.path.join(relpath, name) for name in filenames]
data_files.extend(names)
return {'imperialism_remake': data_files}
if __name__ == "__main__":
setup(name='imperialism_remake',
version=vs.__version__,
description='Open source remake of Imperialism',
long_description=get_long_description(),
url='http://remake.twelvepm.de/',
author='Trilarion',
author_email='imperialism_remake@twelvepm.de',
license='GPL',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
package_dir={'': 'source'},
packages=find_packages(where=os.path.join(HERE, 'source')),
install_requires=['PyQt5>=5.15', 'ipgetter2>=1.10'],
package_data=get_package_data_files(),
entry_points={'console_scripts': ['imperialism_remake_start=imperialism_remake.start:main']},
zip_safe=False)