-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
48 lines (44 loc) · 1.52 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
import os
import re
def get_version():
"""
Extracts version directly from Jambel module.
"""
version_reg = re.compile("""^__version__ = '(.*)'""", re.M)
_here = os.path.dirname(os.path.abspath(__file__))
path = os.path.join(_here, 'jambel.py')
m = version_reg.search(open(path).read())
return m.group(1) if m is not None else '?'
setup(
name='jambel',
version=get_version(),
py_modules=['jambel'],
url='http://github.com/jambit/python-jambel',
license='MIT',
author='Sebastian Rahlf',
author_email='[email protected]',
description="Interface to jambit's project traffic lights.",
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
tests_require=['pytest'],
entry_points={
'console_scripts': [
'jambel = jambel:main',
]
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: Other/Proprietary License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
]
)