Adopt 'src' layout and add 'testing' extras
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -23,7 +23,7 @@ include/
|
|||||||
lib/
|
lib/
|
||||||
bin/
|
bin/
|
||||||
env/
|
env/
|
||||||
xdist/_version.py*
|
src/xdist/_version.py*
|
||||||
pytest_xdist.egg-info
|
pytest_xdist.egg-info
|
||||||
issue/
|
issue/
|
||||||
3rdparty/
|
3rdparty/
|
||||||
|
|||||||
6
setup.py
6
setup.py
@@ -8,7 +8,7 @@ with open("README.rst") as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pytest-xdist",
|
name="pytest-xdist",
|
||||||
use_scm_version={"write_to": "xdist/_version.py"},
|
use_scm_version={"write_to": "src/xdist/_version.py"},
|
||||||
description="pytest xdist plugin for distributed testing"
|
description="pytest xdist plugin for distributed testing"
|
||||||
" and loop-on-failing modes",
|
" and loop-on-failing modes",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
@@ -17,7 +17,9 @@ setup(
|
|||||||
author_email="pytest-dev@python.org,holger@merlinux.eu",
|
author_email="pytest-dev@python.org,holger@merlinux.eu",
|
||||||
url="https://github.com/pytest-dev/pytest-xdist",
|
url="https://github.com/pytest-dev/pytest-xdist",
|
||||||
platforms=["linux", "osx", "win32"],
|
platforms=["linux", "osx", "win32"],
|
||||||
packages=find_packages(exclude=["testing", "example"]),
|
packages=find_packages(where="src"),
|
||||||
|
package_dir={"": "src"},
|
||||||
|
extras_require={"testing": ["filelock"]},
|
||||||
entry_points={
|
entry_points={
|
||||||
"pytest11": ["xdist = xdist.plugin", "xdist.looponfail = xdist.looponfail"]
|
"pytest11": ["xdist = xdist.plugin", "xdist.looponfail = xdist.looponfail"]
|
||||||
},
|
},
|
||||||
|
|||||||
2
tox.ini
2
tox.ini
@@ -6,11 +6,11 @@ envlist=
|
|||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
passenv = USER USERNAME
|
passenv = USER USERNAME
|
||||||
|
extras = testing
|
||||||
deps =
|
deps =
|
||||||
pytestlatest: pytest
|
pytestlatest: pytest
|
||||||
pytestmaster: git+https://github.com/pytest-dev/pytest.git@master
|
pytestmaster: git+https://github.com/pytest-dev/pytest.git@master
|
||||||
pytestfeatures: git+https://github.com/pytest-dev/pytest.git@features
|
pytestfeatures: git+https://github.com/pytest-dev/pytest.git@features
|
||||||
filelock
|
|
||||||
commands=
|
commands=
|
||||||
pytest {posargs}
|
pytest {posargs}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user