Skip to content

Commit 1ce2d78

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 1ce2d78

File tree

10 files changed

+4
-11
lines changed

10 files changed

+4
-11
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ htmlcov/
2323
coverage.xml
2424
tests/junit.xml
2525

26-
pytest_flask/_version.py
26+
src/pytest_flask/_version.py
2727

2828
# Editors
2929
.vscode

pyproject.toml

Lines changed: 0 additions & 9 deletions
This file was deleted.

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ packages = find:
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

Lines changed: 1 addition & 1 deletion
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)