-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (28 loc) · 923 Bytes
/
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
from setuptools import setup, find_packages
# Parse version number
with open('tgraphics/__init__.py') as f:
info = {}
for line in f.readlines():
if line.startswith('TGRAPHICS_VERSION'):
exec(line, info)
break
extra_requires = dict(
pygame = ['pygame'],
pyglet = ['pyglet'],
)
extra_requires['all'] = list({dep for deps in extra_requires.values() for dep in deps})
setup_info = dict(
name='tgraphics',
author='TheerapakG',
version=info['TGRAPHICS_VERSION'],
description="TheerapakG's GUI library",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license='Other/Proprietary License',
# Package info
packages=['tgraphics'] + ['tgraphics.' + pkg for pkg in find_packages('tgraphics')],
extras_require=extra_requires,
python_requires='>=3.8.0',
zip_safe=True,
)
setup(**setup_info)