Adopt 'src' layout and add 'testing' extras

This commit is contained in:
Bruno Oliveira 2019-06-06 19:35:13 -03:00
parent cdf422dec8
commit 7d41db3685
16 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View File

@ -23,7 +23,7 @@ include/
lib/
bin/
env/
xdist/_version.py*
src/xdist/_version.py*
pytest_xdist.egg-info
issue/
3rdparty/

View File

@ -8,7 +8,7 @@ with open("README.rst") as f:
setup(
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"
" and loop-on-failing modes",
long_description=long_description,
@ -17,7 +17,9 @@ setup(
author_email="pytest-dev@python.org,holger@merlinux.eu",
url="https://github.com/pytest-dev/pytest-xdist",
platforms=["linux", "osx", "win32"],
packages=find_packages(exclude=["testing", "example"]),
packages=find_packages(where="src"),
package_dir={"": "src"},
extras_require={"testing": ["filelock"]},
entry_points={
"pytest11": ["xdist = xdist.plugin", "xdist.looponfail = xdist.looponfail"]
},

View File

@ -6,11 +6,11 @@ envlist=
[testenv]
passenv = USER USERNAME
extras = testing
deps =
pytestlatest: pytest
pytestmaster: git+https://github.com/pytest-dev/pytest.git@master
pytestfeatures: git+https://github.com/pytest-dev/pytest.git@features
filelock
commands=
pytest {posargs}