Skip to content

Commit

Permalink
Merge pull request pytest-dev#439 from nicoddemus/src-layout
Browse files Browse the repository at this point in the history
Adopt 'src' layout and add 'testing' extras
  • Loading branch information
nicoddemus committed Jun 6, 2019
2 parents cdf422d + 7d41db3 commit a630e55
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ include/
lib/
bin/
env/
xdist/_version.py*
src/xdist/_version.py*
pytest_xdist.egg-info
issue/
3rdparty/
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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,
Expand All @@ -17,7 +17,9 @@
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"]
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit a630e55

Please sign in to comment.