-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (42 loc) · 1.64 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
from setuptools import setup, find_packages
# Parse version number from kge/__init__.py:
with open('kge/__init__.py') as f:
info = {}
for line in f.readlines():
if line.startswith('version'):
exec(line, info)
break
requirements = []
with open("requirements.txt") as f:
for line in f.readlines():
requirements.append(line.replace("\n", ""))
with open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()
def create_package_list(base_package):
return [base_package] + [base_package + '.' + pkg for pkg in find_packages(base_package)]
setup(
name="kge",
version=info.get("version", "1.0"),
url="https://github.com/Fredkiss3/kge",
author='Fredhel KISSIE',
author_email='[email protected]',
description='A 2D Game Engine Written in Python, running in Python and For Python Game Developpers',
long_description=long_description,
long_description_content_type="text/markdown",
packages=create_package_list("kge"),
package_data={
"kge.extra.win32.Box2D": ["_Box2D.cp37-win32.pyd"],
"kge.extra.win64.Box2D": ["_Box2D.cp37-win_amd64.pyd"],
"kge.extra.linux64.Box2D": ["_Box2D.cpython-36m-x86_64-linux-gnu.so"],
},
install_requires=requirements,
zip_safe=True,
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.6',
'Topic :: Games/Entertainment',
'Topic :: Software Development :: Libraries :: Python Modules',
],
python_requires=">= 3.6, < 3.8"
)