Skip to content

Commit c8055fc

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
tox: create a new py3-sys environment
Create a new py3-sys environment that is dedicated to being the "leaky" testenv, the one that uses system python packages. Let `py3` and `py39` and so on work like typical tox environments that use virtualenvs without site packages. These can control the dependencies. The py3-sys target will be the one for testing with the system's libs & site packages. Signed-off-by: John Mulligan <[email protected]>
1 parent 9fcec85 commit c8055fc

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tox.ini

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
[tox]
3-
envlist = formatting, {py3,py39}-mypy, py3, py39, schemacheck
3+
envlist = formatting, {py3,py39}-mypy, py3, py39, schemacheck, py3-sys
44
isolated_build = True
55

66
[testenv]
@@ -20,11 +20,14 @@ deps =
2020
mypy
2121
types-setuptools
2222
types-pyyaml
23+
types-jsonschema>=4.10
2324
{[testenv]deps}
2425
commands =
2526
mypy sambacc tests
2627

27-
[testenv:py3]
28+
[testenv:py3-sys]
29+
# py3-sys -- more like sisyphus, am I right?
30+
#
2831
# In order to run tests that rely on "system level" packages (samba,
2932
# xattr, etc.), and not have a lot of test skips, we have to enable the
3033
# sitepackages option. However when it is enabled and you already have a tool
@@ -34,9 +37,13 @@ commands =
3437
# section.
3538
sitepackages = True
3639
deps =
40+
pytest
41+
pytest-cov
42+
dnspython
3743
inotify_simple
3844
pyxattr
39-
{[testenv]deps}
45+
allowlist_externals =
46+
/usr/bin/py.test
4047

4148
[testenv:formatting]
4249
deps =

0 commit comments

Comments
 (0)