Skip to content

Commit 7e45b0b

Browse files
committed
split src/ & tests/ folder
1 parent a2ee38b commit 7e45b0b

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ jobs:
9797
python -m pip install -e .
9898
9999
- name: Tests
100-
run: pytest
100+
run: pytest tests/

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*.pyc
2-
pytest_rerunfailures.egg-info/
2+
*.egg-info
33
.DS_Store
44
.Python
55
.cache/
@@ -8,7 +8,7 @@ pytest_rerunfailures.egg-info/
88
.python-version
99
.tox*
1010
bin/
11-
build/*
11+
build/
1212
dist/
1313
include/
1414
lib/

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ include *.rst
33
include *.toml
44
include LICENSE
55
include tox.ini
6+
7+
prune .github
8+
prune tests

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
33
requires = [
4-
"setuptools>=40",
5-
"wheel", # You can include wheel here if you're building wheels
4+
"setuptools",
5+
"setuptools-scm",
66
]
77

88
[tool.check-manifest]
@@ -50,3 +50,8 @@ dependencies = [
5050
urls = {Homepage = "https://github.com/pytest-dev/pytest-rerunfailures"}
5151
[project.scripts]
5252
pytest-rerunfailures = "pytest_rerunfailures:main"
53+
54+
[tool.setuptools.packages.find]
55+
where = ["src"]
56+
# to disable scanning PEP 420 namespaces (true by default)
57+
namespaces = false

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ envlist =
1515
minversion = 4.0
1616

1717
[testenv]
18-
commands = pytest test_pytest_rerunfailures.py {posargs}
18+
commands = pytest tests/ {posargs}
1919
deps =
2020
pytest-xdist
2121
pytest70: pytest==7.0.*

0 commit comments

Comments
 (0)