-
Notifications
You must be signed in to change notification settings - Fork 142
/
setup.py
56 lines (52 loc) · 1.67 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
# -*- coding: UTF-8 -*-
from os.path import dirname
import sys
import setuptools
from distutils.core import setup
# http://stackoverflow.com/a/7071358/735926
import re
VERSIONFILE='term2048/__init__.py'
verstrline = open(VERSIONFILE, 'rt').read()
VSRE = r'^__version__\s+=\s+[\'"]([^\'"]+)[\'"]'
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % VERSIONFILE)
setup(
name='term2048',
version=verstr,
author='Baptiste Fontaine',
author_email='[email protected]',
packages=['term2048'],
url='https://github.com/bfontaine/term2048',
license='MIT',
description='2048 in your terminal',
long_description=open('README.rst', 'r', encoding='utf-8').read(),
long_description_content_type='text/x-rst',
install_requires=[
'colorama >= 0.2.7',
'argparse >= 1.1',
],
classifiers=[
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Development Status :: 5 – Production/Stable',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='2048 terminal',
entry_points={
'console_scripts':[
'term2048 = term2048.ui:start_game'
]
},
)