Skip to content

bug: Built wheels no longer contain Python source files since release 0.2.5 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
knobix opened this issue Mar 22, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@knobix
Copy link

knobix commented Mar 22, 2025

Description of the bug

The Python wheel available at PyPI for release 0.2.5 does not contain any Python source files. The same applies for Python wheels that are built locally.

To Reproduce

Looking at the Python wheel for release 0.2.5 available at PyPI yields following output:

$ unzip -t mkdocstrings_python_legacy-0.2.5-py3-none-any.whl
Archive:  mkdocstrings_python_legacy-0.2.5-py3-none-any.whl
    testing: mkdocstrings_python_legacy-0.2.5.dist-info/METADATA         OK
    testing: mkdocstrings_python_legacy-0.2.5.dist-info/WHEEL    OK
    testing: mkdocstrings_python_legacy-0.2.5.dist-info/entry_points.txt         OK
    testing: mkdocstrings_python_legacy-0.2.5.dist-info/licenses/LICENSE         OK
    testing: mkdocstrings_python_legacy-0.2.5.dist-info/RECORD   OK
No errors detected in compressed data of mkdocstrings_python_legacy-0.2.5-py3-none-any.whl.

The same output is given for locally built Python wheels.

Expected behavior

The Python wheels should contain the required Python source files.

Environment information

$ python3.11 -m mkdocstrings_handlers.python.debug
- __System__: FreeBSD-13.4-RELEASE-amd64-64bit-ELF
- __Python__: cpython 3.11.11
- __Environment variables__:
- __Installed packages__:
  - `mkdocstrings-python-legacy` v0.2.5

Additional context

Adding back following lines to section [tool.pdm.build] in pyproject.toml that were removed by commit e6f429e should remedy the issue:

package-dir = "src"
editable-backend = "editables"
includes = ["src/mkdocstrings_handlers"]
@knobix knobix added the unconfirmed This bug was not reproduced yet label Mar 22, 2025
@knobix knobix changed the title bug: Built wheels no longer contain Python source files since release 0.2.0 bug: Built wheels no longer contain Python source files since release 0.2.5 Mar 22, 2025
@pawamoy pawamoy added bug Something isn't working and removed unconfirmed This bug was not reproduced yet labels Mar 22, 2025
@pawamoy
Copy link
Member

pawamoy commented Mar 22, 2025

Thanks for the reports @knobix! Fixed in v0.2.6 🙂

@pawamoy pawamoy closed this as completed Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants