Skip to content

Convert to src layout#234

Merged
fohrloop merged 8 commits into
devfrom
convert-to-src-layout
Apr 1, 2024
Merged

Convert to src layout#234
fohrloop merged 8 commits into
devfrom
convert-to-src-layout

Conversation

@fohrloop
Copy link
Copy Markdown
Member

@fohrloop fohrloop commented Apr 1, 2024

Previously, was using a flat layout. Convert to src layout.

Motivation: Had some issues running tox, which should have been testing the built wheels. Instead, it was running the tests against the source tree, and unit tests passed with empty wheels. Using a src layout makes it harder to have problems like that.

See also: https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/

fohrloop added 8 commits April 1, 2024 13:31
was: --cov wakepy
now: --cov {envsitepackagesdir}/wakepy
The site-packages were omitted. This was the reason for the previous strange behavior
of test coverage; 0% coverages (only) when running tox in repo root.
@fohrloop fohrloop merged commit 9b5db10 into dev Apr 1, 2024
@fohrloop fohrloop deleted the convert-to-src-layout branch April 3, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant