Skip to content

Commit 73c7b5e

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
tox: add an 'extras' to the python package
The python package extras is a way to express optional dependencies. Since sambacc can work without jsonschema for validation, we create an extra called "validation" that requires jsonschema. Signed-off-by: John Mulligan <[email protected]>
1 parent bad2230 commit 73c7b5e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ share/sambacc/examples =
2727
examples/example1.json
2828
examples/minimal.json
2929
examples/addc.json
30+
31+
[options.extras_require]
32+
validation =
33+
jsonschema>=4.10

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ deps =
1212
pytest
1313
pytest-cov
1414
dnspython
15+
-e .[validation]
1516
commands =
1617
py.test -v tests --cov=sambacc --cov-report=html {posargs}
1718

0 commit comments

Comments
 (0)