Skip to content

fix: Fix packaging (missing __init__ module)#18

Merged
pawamoy merged 1 commit intomasterfrom
fix-missing-init
Mar 7, 2022
Merged

fix: Fix packaging (missing __init__ module)#18
pawamoy merged 1 commit intomasterfrom
fix-missing-init

Conversation

@pawamoy
Copy link
Copy Markdown
Member

@pawamoy pawamoy commented Mar 7, 2022

Turns out there never was an __init__.py module in the package, and Poetry was fine with it, while PDM is a bit more strict about how it finds namespace packages. Also, the local configuration prevented earlier detection of this packaging issue. This is fixed by using the editables editable-backend which does not add src to PYTHONPATH when testing. Detection would be improved if PDM failed instead of falling back to the path backend, see pdm-project/pdm-backend#79.
To further improve our practices, --no-editable is now used in CI.

Fixes issue pdm-project/pdm#17 and mkdocstrings/mkdocstrings#398

@pawamoy pawamoy merged commit de0670b into master Mar 7, 2022
@pawamoy pawamoy deleted the fix-missing-init branch November 26, 2024 11:11
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.

2 participants