Skip to content

Commit

Permalink
Move to src layout (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Feb 7, 2022
1 parent 6f008ea commit d8ef2b3
Show file tree
Hide file tree
Showing 16 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ __pycache__
/htmlcov
/docs/_build
/dist
/*.egg-info
/src/*.egg-info
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exclude .editorconfig
exclude .pre-commit-config.yaml
exclude .readthedocs.yaml
exclude CHANGELOG.rst
include pyproject.toml
exclude tox.ini
include LICENSE
include pyproject.toml
include README.rst
2 changes: 1 addition & 1 deletion scripts/generate_default_media_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pathlib import Path

module_dir = Path(__file__).parent.resolve()
media_types_py = module_dir / ".." / "whitenoise" / "media_types.py"
media_types_py = module_dir / "../src/whitenoise/media_types.py"


def main():
Expand Down
11 changes: 9 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ classifiers =
license_file = LICENSE

[options]
package_dir=
=src
packages = find:
include_package_data = True
python_requires = >=3.7
Expand All @@ -43,13 +45,13 @@ brotli =
Brotli

[options.packages.find]
exclude = tests
where = src

[flake8]
max-line-length = 88
extend-ignore = E203
per-file-ignores =
whitenoise/media_types.py:E501
src/whitenoise/media_types.py:E501

[coverage:run]
branch = True
Expand All @@ -58,5 +60,10 @@ source =
whitenoise
tests

[coverage:paths]
source =
src
.tox/*/site-packages

[coverage:report]
show_missing = True
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.
File renamed without changes.

0 comments on commit d8ef2b3

Please sign in to comment.