Skip to content

Commit e0e3c2c

Browse files
committed
Adopt src layout
This allows us to confidently test the package created by a separate job on CI.
1 parent 9d7afbf commit e0e3c2c

10 files changed

+6
-6
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ htmlcov/
2020
.coverage.*
2121
.pytest_cache/
2222
.eggs/
23+
dist/
2324
coverage.xml
2425
tests/junit.xml
2526

26-
pytest_flask/_version.py
27+
src/pytest_flask/_version.py
2728

2829
# Editors
2930
.vscode

pyproject.toml

-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ requires = [
44
"setuptools-scm[toml]",
55
]
66
build-backend = "setuptools.build_meta"
7-
8-
[tool.setuptools_scm]
9-
write_to = "pytest_flask/_version.py"

setup.cfg

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ classifiers=
2828
Topic :: Software Development :: Libraries :: Python Modules
2929

3030
[options]
31-
packages = find:
31+
packages = pytest_flask
3232
zip_safe = False
3333
python_requires = >= 3.7
3434
setup_requires = setuptools_scm
35+
package_dir =
36+
=src
3537

3638
[options.packages.find]
3739
exclude = docs, tests

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def read(*parts):
2121

2222
setup(
2323
# Dependencies are here for GitHub's dependency graph.
24-
use_scm_version={"write_to": "pytest_flask/_version.py"},
24+
use_scm_version={"write_to": "src/pytest_flask/_version.py"},
2525
install_requires=requirements,
2626
tests_require=tests_require,
2727
extras_require=extras_require,
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)