Skip to content

Commit e04e4ac

Browse files
authored
Merge pull request #1077 from bluetech/tox-tweak
Some tox/build/config tweaks
2 parents c143230 + 64469f5 commit e04e4ac

File tree

3 files changed

+17
-41
lines changed

3 files changed

+17
-41
lines changed

MANIFEST.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,15 @@ testing = ["filelock"]
5454
psutil = ["psutil>=3.0"]
5555
setproctitle = ["setproctitle"]
5656

57-
[tool.setuptools]
58-
zip-safe = false
59-
platforms = [
60-
"linux",
61-
"osx",
62-
"win32",
63-
]
64-
include-package-data = false
65-
6657
[tool.setuptools_scm]
6758
write_to = "src/xdist/_version.py"
6859

60+
[tool.pytest.ini_options]
61+
# pytest-services also defines a worker_id fixture, disable
62+
# it so they don't conflict with each other (#611).
63+
addopts = "-ra -p no:pytest-services"
64+
testpaths = ["testing"]
65+
6966
[tool.ruff]
7067
src = ["src"]
7168

tox.ini

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,26 @@
11
[tox]
2-
envlist=
2+
envlist =
33
linting
44
py{38,39,310,311,312}-pytestlatest
55
py310-pytestmain
66
py310-psutil
77
py310-setproctitle
88
isolated_build = true
9+
910
[testenv]
10-
extras = testing
11+
extras =
12+
testing
13+
psutil: psutil
14+
setproctitle: setproctitle
1115
deps =
1216
pytestmin: pytest==7.0.0
1317
pytestlatest: pytest
1418
pytestmain: git+https://github.com/pytest-dev/pytest.git
15-
commands=
16-
pytest {posargs}
17-
18-
[testenv:py310-psutil]
19-
extras =
20-
testing
21-
psutil
2219
commands =
23-
pytest {posargs:-k psutil}
24-
25-
[testenv:py310-setproctitle]
26-
extras =
27-
testing
28-
setproctitle
29-
deps = pytest
30-
commands =
31-
pytest {posargs}
20+
pytest {posargs:{env:_XDIST_TOX_DEFAULT_POSARGS:}}
21+
setenv =
22+
_XDIST_TOX_DEFAULT_POSARGS={env:_XDIST_TOX_POSARGS_PSUTIL:}
23+
psutil: _XDIST_TOX_POSARGS_PSUTIL=-k psutil
3224

3325
[testenv:linting]
3426
skip_install = True
@@ -39,9 +31,8 @@ deps =
3931
commands = pre-commit run --all-files --show-diff-on-failure
4032

4133
[testenv:release]
42-
changedir=
34+
changedir =
4335
description = do a release, required posarg of the version number
44-
basepython = python3.10
4536
skipsdist = True
4637
usedevelop = True
4738
passenv = *
@@ -51,16 +42,9 @@ commands =
5142
towncrier build --version {posargs} --yes
5243

5344
[testenv:docs]
54-
basepython = python3.10
5545
usedevelop = True
5646
deps =
5747
sphinx
5848
sphinx_rtd_theme
5949
commands =
6050
sphinx-build -W --keep-going -b html docs docs/_build/html {posargs:}
61-
62-
[pytest]
63-
# pytest-services also defines a worker_id fixture, disable
64-
# it so they don't conflict with each other (#611).
65-
addopts = -ra -p no:pytest-services
66-
testpaths = testing

0 commit comments

Comments
 (0)