Skip to content

Commit a630e55

Browse files
authored
Merge pull request #439 from nicoddemus/src-layout
Adopt 'src' layout and add 'testing' extras
2 parents cdf422d + 7d41db3 commit a630e55

16 files changed

Lines changed: 6 additions & 4 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ include/
2323
lib/
2424
bin/
2525
env/
26-
xdist/_version.py*
26+
src/xdist/_version.py*
2727
pytest_xdist.egg-info
2828
issue/
2929
3rdparty/

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name="pytest-xdist",
11-
use_scm_version={"write_to": "xdist/_version.py"},
11+
use_scm_version={"write_to": "src/xdist/_version.py"},
1212
description="pytest xdist plugin for distributed testing"
1313
" and loop-on-failing modes",
1414
long_description=long_description,
@@ -17,7 +17,9 @@
1717
author_email="pytest-dev@python.org,holger@merlinux.eu",
1818
url="https://github.com/pytest-dev/pytest-xdist",
1919
platforms=["linux", "osx", "win32"],
20-
packages=find_packages(exclude=["testing", "example"]),
20+
packages=find_packages(where="src"),
21+
package_dir={"": "src"},
22+
extras_require={"testing": ["filelock"]},
2123
entry_points={
2224
"pytest11": ["xdist = xdist.plugin", "xdist.looponfail = xdist.looponfail"]
2325
},
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)