-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
82 lines (74 loc) · 2.36 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import setuptools
import os
from pathlib import Path
root = Path(os.path.realpath(__file__)).parent
version_file = root / "src" / "sphinx_codeautolink" / "VERSION"
readme_file = root / "readme_pypi.rst"
extras_require = {
"build": [
"build",
"twine",
],
"docs": [
"sphinx-rtd-theme",
"matplotlib"
],
"tests": [
"pytest>=6",
"coverage[toml]>=5",
],
"checks": [
"tox",
"doc8>=0.9",
"flake8",
"flake8-bugbear",
"pydocstyle[toml]>=6.1",
"pygments",
],
}
extras_require["dev"] = sum(extras_require.values(), [])
setuptools.setup(
name="sphinx-codeautolink",
version=version_file.read_text().strip(),
license="MIT",
description="Automatic links from code examples to reference documentation.",
keywords="sphinx extension code link",
long_description=readme_file.read_text(),
long_description_content_type="text/x-rst",
url="https://pypi.org/project/sphinx-codeautolink",
download_url="https://pypi.org/project/sphinx-codeautolink",
project_urls={
"Source": "https://github.com/felix-hilden/sphinx-codeautolink",
"Issues": "https://github.com/felix-hilden/sphinx-codeautolink/issues",
"Documentation": "https://sphinx-codeautolink.rtfd.org",
},
author="Felix Hildén",
author_email="felix.hilden@gmail.com",
maintainer="Felix Hildén",
maintainer_email="felix.hilden@gmail.com",
packages=setuptools.find_packages(where="src"),
package_dir={"": "src"},
include_package_data=True,
python_requires=">=3.6",
install_requires=[
'sphinx>=3.2.0',
'beautifulsoup4',
'dataclasses;python_version<"3.7"',
],
extras_require=extras_require,
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Sphinx',
'Framework :: Sphinx :: Extension',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Documentation',
'Topic :: Documentation :: Sphinx',
'Topic :: Software Development :: Documentation',
],
)