-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·54 lines (48 loc) · 1.28 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
#!/usr/bin/env python3
import sys
SYS_VERSION = sys.version_info[0:2]
if not ((3, 1) <= SYS_VERSION <= (3, 12)):
mess = "Python Versions 3.1 to 3.12 are supported only in this package."
if (2, 4) <= SYS_VERSION <= (2, 7):
mess += "\nFor your Python, version %s, See trepan2" % sys.version[0:3]
elif SYS_VERSION < (2, 4):
mess += "\nFor your Python, version %s, see pydb" % sys.version[0:3]
print(mess)
raise Exception(mess)
# Get the package information used in setup().
from __pkginfo__ import (
author,
author_email,
classifiers,
entry_points,
install_requires,
license,
long_description,
modname,
py_modules,
short_desc,
__version__,
web,
zip_safe,
)
__import__("pkg_resources")
from setuptools import setup, find_packages
packages = find_packages()
setup(
author=author,
author_email=author_email,
classifiers=classifiers,
description=short_desc,
entry_points=entry_points,
install_requires=install_requires,
license=license,
long_description=long_description,
long_description_content_type="text/markdown",
name=modname,
packages=packages,
py_modules=py_modules,
test_suite="nose.collector",
url=web,
version=__version__,
zip_safe=zip_safe,
)