-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
64 lines (50 loc) · 1.63 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
#!/usr/bin/env python
"""Setup script for the 'control_flow' distribution."""
import os
from setuptools import setup, find_packages
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Code Generators",
]
# The rest in alphabetic order
entry_points = {"console_scripts": ["python-cfg=control_flow.__main__:main"]}
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/"
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"))
setup(
classifiers=classifiers,
description=short_desc,
entry_points=entry_points,
install_requires=["click", "xdis >= 6.0.3"],
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__,
)