-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
82 lines (76 loc) · 2.84 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
from __future__ import annotations
from pathlib import Path
from setuptools import find_packages, setup
extras_require = {
"test": ["nox"],
"markdown": ["myst_parser", "docutils>=0.16"],
"docs": [
"myst_parser",
"docutils>=0.16",
"sphinx_autodoc_typehints",
"sphinx_paramlinks",
"sphinx_copybutton",
"sphinxcontrib_bibtex",
"sphinxcontrib_programoutput",
"sphinx_tabs",
"pydata-sphinx-theme",
],
}
extras_require["all"] = set(
dependency
for extra_dependencies in extras_require.values()
for dependency in extra_dependencies
)
this_directory = Path(__file__).parent
requirements_in = this_directory.joinpath("requirements.in").resolve()
if __name__ == "__main__":
setup(
name="sphinx-gherkin",
version="0.1",
description="A Sphinx extension for documenting Gherkin features.",
long_description=(this_directory / "README.rst").read_text(),
long_description_content_type="text/x-rst",
url="https://cblegare.gitlab.io/sphinx-gherkin",
author="Charles Bouchard-Légaré",
author_email="charlesbouchardlegare@gmail.com",
license="BSD-2-Clause-Patent",
project_urls={
"Documentation": "https://cblegare.gitlab.io/sphinx-gherkin",
"Source": "https://gitlab.com/cblegare/sphinx-gherkin",
"Issue Tracker": "https://gitlab.com/cblegare/sphinx-gherkin/-/issues",
},
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 3 - Alpha",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Topic :: Documentation",
"Topic :: Documentation :: Sphinx",
"Framework :: Sphinx",
"Framework :: Sphinx :: Extension",
# Pick your license as you wish (should match "license" above)
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
"Typing :: Typed",
],
keywords="gherkin sphinx",
packages=find_packages(where="src"),
package_dir={"": "src"},
python_requires=">=3.7",
install_requires=requirements_in.read_text().splitlines(),
extras_require=extras_require,
entry_points={
"console_scripts": [
"sphinx-gherkin=sphinx_gherkin.gherkin2rst:main"
],
},
include_package_data=True,
)