Skip to content

packaging: ship docs/requirements.txt in the sdist - #114

Merged
andre-merzky merged 1 commit into
develfrom
fix/sdist-docs-requirements
Aug 24, 2026
Merged

packaging: ship docs/requirements.txt in the sdist#114
andre-merzky merged 1 commit into
develfrom
fix/sdist-docs-requirements

Conversation

@andre-merzky

Copy link
Copy Markdown
Member

The released sdists (0.3.0–0.5.0) cannot build from source: setup.py reads docs/requirements.txt for the docs extra, but MANIFEST.in never included it (recursive-include docs *.md only). PyPI users never hit this because pip prefers the wheel — the conda-forge build works from the sdist and failed on every platform (staged-recipes #34581).

Two-line fix: MANIFEST.in ships docs/*.txt, and setup.py degrades to an empty docs extra when the file is absent instead of failing the whole metadata build.

Verification: local setup.py sdist from this branch contains docs/requirements.txt; flake8 clean.

@andre-merzky — after merge this needs a release (devel is at 0.6.0) so conda-forge can pin a buildable sdist.

🤖 Generated with Claude Code

setup.py reads docs/requirements.txt for the docs extra, but
MANIFEST.in did not include it - the released sdists cannot build from
source (pip's wheel path hid this; conda-forge builds from the sdist
and fails). MANIFEST.in now ships the file, and setup.py degrades to
an empty docs extra when a source tree lacks it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@andre-merzky
andre-merzky merged commit aed25ca into devel Aug 24, 2026
5 checks passed
@andre-merzky
andre-merzky deleted the fix/sdist-docs-requirements branch August 24, 2026 17:02
andre-merzky added a commit to andre-merzky/staged-recipes that referenced this pull request Aug 24, 2026
0.6.0 ships docs/requirements.txt, which setup.py requires; the
0.3.0-0.5.0 sdists lacked it and failed metadata generation
(radical-cybertools/radical.orbit#114). Wheel build from the 0.6.0
sdist verified locally.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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