forked from rocky/python-control-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (44 loc) · 1.71 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
#!/usr/bin/env python
"""Setup script for the 'control_flow' distribution."""
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Code Generators',
]
# The rest in alphabetic order
ftp_url = None
license = 'GPL2'
maintainer = "Rocky Bernstein"
maintainer_email = "[email protected]"
modname = 'control_flow'
name = 'control_flow'
py_modules = 'control_flow'
short_desc = 'Control Flow Toolkit'
web = 'https://github.com/rocky/python-control_flow/'
import os
def get_srcdir():
filename = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))
return os.path.realpath(filename)
srcdir = get_srcdir()
def read(*rnames):
return open(os.path.join(srcdir, *rnames)).read()
# Get info from files; set: long_description and VERSION
long_description = ( read("README.rst") + '\n' )
exec(read('control_flow/version.py'))
from setuptools import setup, find_packages
setup(
classifiers = classifiers,
description = short_desc,
install_requires = ['click', 'xdis >= 3.6.0'],
license = license,
long_description = long_description,
maintainer = maintainer,
maintainer_email = maintainer_email,
packages = find_packages(),
py_modules = py_modules,
name = name,
test_suite = 'nose.collector',
url = web,
tests_require = ['nose>=1.0'],
version = VERSION)