Skip to content

Commit 7d41db3

Browse files
committed
Adopt 'src' layout and add 'testing' extras
1 parent cdf422d commit 7d41db3

File tree

16 files changed

+6
-4
lines changed

16 files changed

+6
-4
lines changed

.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
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.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)