Skip to content

Commit 24f99bc

Browse files
committed
Add 'examples' optional requirements to 'setup.py'
1 parent 4f794cd commit 24f99bc

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,14 @@
6767
ext_modules=[yahdlc],
6868
python_requires=">=3.6, <4",
6969
extras_require={
70+
"examples": [
71+
"fysom",
72+
"pyserial",
73+
],
7074
"tests": [
7175
"flake8",
7276
"pylint",
73-
"tox"
77+
"tox",
7478
],
7579
},
7680
)

tox.ini

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ commands =
1515

1616
[testenv:flake8]
1717
description = "Check code style & quality"
18-
deps = flake8
18+
deps =
19+
flake8
20+
.[examples]
1921
commands =
2022
{envpython} -m flake8 tests examples
2123

2224
[testenv:pylint]
2325
description = "Check for programming errors"
24-
deps = pylint
26+
deps =
27+
pylint
28+
.[examples]
2529
commands =
2630
{envpython} -m pylint tests examples
2731

0 commit comments

Comments
 (0)