Skip to content

Commit 71fd044

Browse files
authored
Merge pull request #30 from najuzilu/update-setup
👌️ IMPROVE: Update extras
2 parents 9868af3 + 2523eef commit 71fd044

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

setup.py

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,27 @@
1717

1818
URL = f"https://github.com/najuzilu/sphinxcontrib-prettyproof/archive/{VERSION}.tar.gz"
1919

20+
# Define all extras
21+
extras = {
22+
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit==1.17.0"],
23+
"testing": [
24+
"coverage",
25+
"pytest>=3.6,<4",
26+
"pytest-cov",
27+
"pytest-regressions",
28+
"beautifulsoup4",
29+
"myst-parser",
30+
],
31+
"rtd": [
32+
"sphinx>=3.0",
33+
"sphinx-book-theme",
34+
"sphinxcontrib-bibtex",
35+
"myst-parser",
36+
],
37+
}
38+
39+
extras["all"] = set(ii for jj in extras.values() for ii in jj)
40+
2041
setup(
2142
name="sphinxcontrib-prettyproof",
2243
version=VERSION,
@@ -35,25 +56,7 @@
3556
license="BSD",
3657
packages=find_packages(),
3758
install_requires=["docutils>=0.15", "sphinx", "sphinx-book-theme"],
38-
extras_require={
39-
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit==1.17.0"],
40-
"testing": [
41-
"coverage",
42-
"pytest>=3.6,<4",
43-
"pytest-cov",
44-
"pytest-regressions",
45-
"sphinxcontrib.prettyproof",
46-
"beautifulsoup4",
47-
"myst_parser",
48-
],
49-
"rtd": [
50-
"sphinx>=3.0",
51-
"sphinx-book-theme",
52-
"sphinxcontrib-bibtex",
53-
"sphinxcontrib.prettyproof",
54-
"myst-parser",
55-
],
56-
},
59+
extras_require=extras,
5760
package_data={"sphinxcontrib": ["_static/*"]},
5861
include_package_data=True,
5962
namespace_packages=["sphinxcontrib"],

0 commit comments

Comments
 (0)