-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsetup.py
71 lines (57 loc) · 2.66 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
70
71
#!/usr/bin/env python
"""Hypatia package installer.
Distributing:
$ setup.py sdist bdist_wheel
$ twine upload dist/hypatia_engine-0.2.3.tar.gz dist/hypatia_engine-0.2.3*.whl
$ rm -rf dist
You'll need the wheel, twine package for bdist_wheel. Don't forget
to clear your dist when finished.
Installing:
`pip install .` in the project root. This script detects the
python version and builds the install_requires accordingly.
Does not install pygame. See `README.md`.
"""
import sys
from setuptools import setup
from distutils.version import StrictVersion
# Build the list of packages required according to Python version
install_requires = ['Pillow>=2']
# x.y.z
python_version = StrictVersion('.'.join(str(n) for n in sys.version_info[:3]))
# the `enum` package is a backport of Python 3.5 enum,
# we only want it in earlier versions of python
if python_version < StrictVersion('3.5'):
install_requires.append('enum34')
exec(open('hypatia/__init__.py').read())
setup(name='hypatia_engine',
packages=['hypatia'],
version=__version__,
description='2D action adventure game engine',
setup_requires=['setuptools-markdown'],
# pygame isn't on pypi
# TODO: i should maybe also specifiy Pillow<4
install_requires=install_requires,
long_description_markdown_filename='README.md',
author='Lillian Lemmer',
author_email='[email protected]',
url='http://hypatia-engine.github.io/hypatia',
download_url = 'https://github.com/hypatia-engine/hypatia/releases/tag/' + __version__,
license='MIT',
classifiers=['Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Operating System :: Microsoft :: Windows :: Windows 7',
'Operating System :: Microsoft :: Windows :: Windows Vista',
'Operating System :: Microsoft :: Windows :: Windows XP',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Operating System :: POSIX :: Linux',
'Topic :: Games/Entertainment :: Role-Playing',
'Topic :: Software Development :: Libraries :: pygame',
],
keywords=('games gaming development sprites adventure game tilemap '
'tilesheet zelda gamedev 2d')
)