-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Add [tool.maturin.include]
and [tool.maturin.exclude]
#1255
Conversation
✅ Deploy Preview for maturin-guide ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
566ffd2
to
0319b8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for looking into this!
12f026a
to
3535530
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This already looks pretty good, should be ready soon when you are done with tests and documentation changes.
BTW don't forget to add a changelog entry: https://github.com/PyO3/maturin/blob/main/Changelog.md#unreleased
190f234
to
d71797e
Compare
d71797e
to
bb7e2f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are missing a file list check for wheel, unfortunately we don't have a existing infrastructure for this kind of test yet.
Co-authored-by: messense <[email protected]>
I added a simple wheel file check for the test crate that was added in this PR. It helped to find an error in the target paths for files to be included in wheels. |
9bb61c6
to
79291d4
Compare
79291d4
to
587054e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can simplify this test crate.
test-crates/pyo3-mixed-include-exclude/check_installed/check_installed.py
Outdated
Show resolved
Hide resolved
test-crates/pyo3-mixed-include-exclude/check_installed/check_installed.py
Outdated
Show resolved
Hide resolved
Co-authored-by: messense <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks!
bors r+ |
1255: Add `[tool.maturin.include]` and `[tool.maturin.exclude]` r=messense a=mbrobbel Based on the discussion in #1253, this is another attempt to allow users to override ignore files in Python modules by adding `[tool.maturin.include]` and `[tool.maturin.exclude]` similar to [Poetry](https://python-poetry.org/docs/pyproject/#include-and-exclude). This deprecates `[tool.maturin.sdist-include]`. After some feedback on this approach, I'll add: - [x] Documentation updates - [x] Integration tests Closes #1253 Co-authored-by: Matthijs Brobbel <[email protected]>
There are some test failures: https://github.com/PyO3/maturin/actions/runs/3427030079/jobs/5709531358 |
Canceled. |
bors delegate+ |
✌️ mbrobbel can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
1255: Add `[tool.maturin.include]` and `[tool.maturin.exclude]` r=messense a=mbrobbel Based on the discussion in #1253, this is another attempt to allow users to override ignore files in Python modules by adding `[tool.maturin.include]` and `[tool.maturin.exclude]` similar to [Poetry](https://python-poetry.org/docs/pyproject/#include-and-exclude). This deprecates `[tool.maturin.sdist-include]`. After some feedback on this approach, I'll add: - [x] Documentation updates - [x] Integration tests Closes #1253 Co-authored-by: Matthijs Brobbel <[email protected]>
Already running a review |
Still need to fix the sdist test: https://github.com/PyO3/maturin/actions/runs/3427943992/jobs/5711566272, sdist shouldn't include |
Build failed: |
I'm confused about how these files end up in the source distribution and that this fails for the added test but not for the one this was based on? Shouldn't the root |
I'm not sure, perhaps you can try add the ignores to https://github.com/PyO3/maturin/pull/1255/files#diff-130021135ea4ccb1cd3ba6e252477d65142317ffba1e4a10ad7af791d30c5b12 If you want to debug it, use the |
You can also try modify - name: Setup tmate session
uses: mxschmitt/action-tmate@v3 to |
I wasn't able to reproduce it locally using |
Seems to go back to this maturin/src/source_distribution.rs Lines 519 to 522 in 21ea2a4
|
bors r+ |
Build succeeded: |
Thank you for the help and quick feedback to get this in so quickly! |
Based on the discussion in #1253, this is another attempt to allow users to override ignore files in Python modules by adding
[tool.maturin.include]
and[tool.maturin.exclude]
similar to Poetry. This deprecates[tool.maturin.sdist-include]
.After some feedback on this approach, I'll add:
Closes #1253