Skip to content

Commit 0040ef6

Browse files
committed
enh(build): +[dev]=[all] extra; drop dupes from [test]
1 parent 93f46e2 commit 0040ef6

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ OR with various "extras" dependencies, such as, for plotting::
5656
and ``set_marshal_tasks()`` configuration.
5757
**all**
5858
all of the above, plus development libraries, eg *black* formatter.
59+
**dev**
60+
like *all*
5961

6062
Let's build a *graphtik* computation graph that produces x3 outputs
6163
out of 2 inputs `a` and `b`:

setup.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,19 @@
1818
plot_deps = ["pydot"]
1919
matplot_deps = plot_deps + ["matplotlib"]
2020
sphinx_deps = plot_deps + ["sphinx >=2"]
21-
test_deps = (
22-
matplot_deps
23-
+ sphinx_deps
24-
+ [
25-
"pytest",
26-
"pytest-cov",
27-
"pytest-sphinx",
28-
"dill",
29-
"html5lib", # for sphinxext TCs
30-
"readme-renderer", # for PyPi landing-page
31-
]
21+
test_deps = list(
22+
set(
23+
matplot_deps
24+
+ sphinx_deps
25+
+ [
26+
"pytest",
27+
"pytest-cov",
28+
"pytest-sphinx",
29+
"dill",
30+
"html5lib", # for sphinxext TCs
31+
"readme-renderer", # for PyPi landing-page
32+
]
33+
)
3234
)
3335
dev_deps = test_deps + ["black", "pylint", "mypy"]
3436

@@ -66,6 +68,7 @@
6668
# See :term:`marshalling` and :func:`set_marshal_tasks()` configuration.
6769
"dill": ["dill"],
6870
"all": dev_deps,
71+
"dev": dev_deps,
6972
},
7073
tests_require=test_deps,
7174
license="Apache-2.0",

0 commit comments

Comments
 (0)