-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (43 loc) · 1.48 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
import codecs
import os
import re
import sys
from setuptools import setup, find_packages
with codecs.open(os.path.join(os.path.abspath(os.path.dirname(
__file__)), 'gengine', '__init__.py'), 'r', 'latin1') as fp:
try:
version = re.findall(r"^__version__ = '([^']+)'\r?$",
fp.read(), re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
if sys.version_info >= (3, 4):
install_requires = []
else:
install_requires = ['asyncio']
def read(f):
return open(os.path.join(os.path.dirname(__file__), f)).read().strip()
args = dict(
name='gengine',
version=version,
description=('Simple game server implementation'),
long_description='\n\n'.join((read('README.rst'), read('CHANGES.txt'))),
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4'],
author='Taras Voinarovskyi',
author_email='[email protected]',
url='https://github.com/Drizzt1991/gengine',
packages=find_packages(),
install_requires=install_requires,
entry_points={
'console_scripts': [
'gengine-client = gengine.client.client:main',
'gengine-server = gengine.world.server:main',
'gengine-asteroid = gengine.examples.asteroids.main:main',
],
}
)
setup(**args)