-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
executable file
·61 lines (52 loc) · 2.03 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
#!/usr/bin/env python
import os.path
import sys
from itertools import chain
from setuptools import setup # noqa
from setuptools.command.install_lib import install_lib
__version__ = "" # Dummy version.
exec(open("tbvaccine/version.py").read())
assert sys.version >= "2.6", "Requires Python v2.6 or above."
class InstallLibWithPTH(install_lib):
def run(self):
install_lib.run(self)
path = os.path.join(os.path.dirname(__file__), "tbvaccine.pth")
dest = os.path.join(self.install_dir, os.path.basename(path))
self.copy_file(path, dest)
self.outputs = [dest]
def get_outputs(self):
return chain(install_lib.get_outputs(self), self.outputs)
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
]
INSTALL_REQUIRES = ["pygments", "appdirs"]
TESTS_REQUIRE = ["pep8", "pytest"] + INSTALL_REQUIRES
EXTRAS_REQUIRE = {":sys_platform == 'win32'": ["colorama>=0.2.5"]}
setup(
name="tbvaccine",
version=__version__, # noqa
author="Stavros Korokithakis",
author_email="[email protected]",
url="https://github.com/skorokithakis/tbvaccine/",
description="A utility that cures the horrible traceback displays in Python, making them more readable.",
long_description=open("README.rst").read(),
license="MIT",
classifiers=classifiers,
packages=["tbvaccine"],
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
tests_require=TESTS_REQUIRE,
test_suite="tbvaccine.tests",
entry_points={"console_scripts": ["tbvaccine=tbvaccine.cli:main"]},
cmdclass={"install_lib": InstallLibWithPTH},
)