-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
63 lines (50 loc) · 2.09 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
from setuptools import setup, find_packages
from pip.req import parse_requirements
from pip.download import PipSession
import os
# --------------------------------------------------------------------------
# Setup package.
root_dir = os.path.dirname(__file__)
def read(*names):
path = os.path.join(root_dir, *names)
with open(path) as f:
return f.read()
def get_version():
version_string = read("VERSION.txt").strip()
return version_string
def get_requirements():
requirements = parse_requirements("requirements.txt",
session=PipSession())
return [str(r.req) for r in requirements]
setup(
name="sphinxcontrib-traceables",
version=get_version(),
description="Sphinx extension that adds traceability within "
"documentation",
author="Christo Butcher",
author_email="",
url="https://github.com/t4ngo/sphinxcontrib-traceables",
license="Apache 2.0",
long_description=read("README.rst"),
packages=find_packages(),
include_package_data=True,
install_requires=get_requirements(),
platforms="any",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Other Environment",
"Environment :: Plugins",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: "
"Python Modules",
],
)