-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (42 loc) · 1.62 KB
/
setup.py
File metadata and controls
48 lines (42 loc) · 1.62 KB
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
#!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open("sphinx_ext_autodoc/__init__.py", "r") as handle:
for line in handle:
if "__version__" in line:
version = line.split(" = ")[-1].strip('"')
break
with open("./README.md", "r") as handle:
readme_text = handle.read()
with open("./requirements.txt", "r") as handle:
requirements = [lr.strip() for lr in handle.read().splitlines() if lr.strip()]
with open("./requirements_dev.txt", "r") as handle:
requirements_dev = [lv.strip() for lv in handle.read().splitlines() if lv.strip()]
with open("./requirements_doc.txt", "r") as handle:
requirements_doc = [ld.strip() for ld in handle.read().splitlines() if ld.strip()]
setup(
name="sphinx-ext-autodoc",
version=version,
description="Auto-document sphinx extensions",
long_description=readme_text,
long_description_content_type="text/markdown",
author="Chris Sewell",
author_email="chrisj_sewell@hotmail.com",
url=("https://github.com/" "executablebooks/sphinx-ext-autodoc"),
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=requirements,
extras_require={
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit==1.17.0"],
"testing": requirements_dev,
"docs": requirements_doc,
},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords="",
)