Skip to content

Commit

Permalink
Migrated to the src layout
Browse files Browse the repository at this point in the history
Fixes #37.
  • Loading branch information
agronholm committed Jan 22, 2020
1 parent 590bcb7 commit e29a5bd
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeqa-test-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Check code style with Flake8
uses: TrueBrain/[email protected]
with:
path: wheel tests
path: src tests

test:
needs: [flake8]
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
recursive-include wheel *.py
recursive-include src *.py
recursive-include tests *.py *.h *.txt *.c *.dynlib
recursive-include docs *.py *.rst make.bat Makefile
include tests/testdata/test-1.0-py2.py3-none-any.whl
Expand Down
1 change: 1 addition & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Release Notes
- Updated project packaging and testing configuration for :pep:`517`
- Moved the contents of setup.py to setup.cfg
- Fixed duplicate RECORD file when using "wheel pack" on Windows
- Switched the project to use the "src" layout

**0.33.6 (2019-08-18)**

Expand Down
6 changes: 5 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,15 @@ keywords = wheel, packaging
license = MIT

[options]
package_dir=
= src
packages = find:
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
zip_safe = False

[options.packages.find]
where = src

[options.extras_require]
test =
pytest >= 3.0.0
Expand All @@ -50,7 +55,6 @@ testpaths = tests

[coverage:run]
source = wheel
omit = .tox/*

[coverage:report]
show_missing = true
Expand Down
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ skip_missing_interpreters = true
isolated_build = true

[testenv]
commands = python -m pytest {posargs}
commands = pytest {posargs}
extras = test

[testenv:flake8]
basepython = python2.7
basepython = python3
deps = flake8
commands = flake8 wheel tests
commands = flake8 src tests
skip_install = true

0 comments on commit e29a5bd

Please sign in to comment.