Skip to content

Conversation

@musicinmybrain
Copy link
Contributor

Exclude from the published crate the contents of .github/ (CI workflows, etc.) and other files that are only useful for upstream development, not for crate users (.gitignore, codecov.yml, x.py). This slightly slims down the crate.

This is also helpful downstream, e.g. in Fedora, where a proposed rust-numpy-devel package would have an automatically-generated dependency on /usr/bin/python3 if x.py is not excluded.

For now, tests and benchmarks are both still included in the published crate.

Exclude from the published crate the contents of `.github/` (CI
workflows, etc.) and other files that are only useful for upstream
development, not for crate users (`.gitignore`, `codecov.yml`, `x.py`).
This slightly slims down the crate.

This is also helpful downstream, e.g. in Fedora, where a proposed
`rust-numpy-devel` package would have an automatically-generated
dependency on `/usr/bin/python3` if `x.py` is not excluded.

For now, tests and benchmarks are both still included in the published
crate.
Copy link
Contributor

@Icxolu Icxolu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Icxolu Icxolu merged commit 70ffab6 into PyO3:main Sep 1, 2025
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