Skip to content
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

fix: add missing files to the manifest, include a check #720

Merged
merged 2 commits into from
Feb 9, 2021

Conversation

henryiii
Copy link
Member

@henryiii henryiii commented Feb 9, 2021

@henryiii
Copy link
Member Author

henryiii commented Feb 9, 2021

1.1.0 had an incomplete SDist which broke Conda (and anyone not getting a wheel), this should fix it, and improve testing so it's less likely to happen again.

@jpivarski
Copy link
Member

That's a recent one! I just installed flake8-bugbear; I'll be using it in addition to the pre-commit.

I'm in favor of this PR: as soon as the tests pass, you can merge it.

@henryiii
Copy link
Member Author

henryiii commented Feb 9, 2021

Pre-commit runs the flake8 bugbear test. It handles everything for you, just run pre-commit run -a, and every check now and in the future will run. :) (though the check-manifest check I made manual because it's rather slow, you have to ask for it with pre-commit run -a --hook-stage manual (for all checks include manual ones), or just that check with pre-commit run -a --hook-stage manual check-manifest (all pre-commit checks can be run individually by id).

@henryiii
Copy link
Member Author

henryiii commented Feb 9, 2021

Force pushing that last commit again to see if I can get pre-commit.ci to trigger.

@henryiii
Copy link
Member Author

henryiii commented Feb 9, 2021

By the way, to see this bug without Conda, just run:

pip install awkward --no-binary awkward

For example, from docker run -it --rm python:3.9 bash. Or try a regular pip install from a non-manylinux Linux, like Alpine or ClearLinux. It will die at 95% with "fatal error: dlpack/dlpack.h: No such file or directory".

Will help with conda-forge/awkward-feedstock#64 (once a fixed release is made).

@henryiii
Copy link
Member Author

henryiii commented Feb 9, 2021

I'll try to get this to fail if you do a regular build and install in the tests in the future. If I can't, we can add a test where we make an SDist then install it. But for now, this should fix the problem with Conda and source installs.

@jpivarski
Copy link
Member

By the way, to see this bug without Conda, just run:

pip install awkward --no-binary awkward

For example, from docker run -it --rm python:3.9 bash. Or try a regular pip install from a non-manylinux Linux, like Alpine or ClearLinux. It will die at 95% with "fatal error: dlpack/dlpack.h: No such file or directory".

Will help with conda-forge/awkward-feedstock#64 (once a fixed release is made).

The source distribution has been fixed several times in the past; the reason it's broken now is because dlpack was added. It's a recurrent issue.

@henryiii
Copy link
Member Author

henryiii commented Feb 9, 2021

This new check should help a lot. The tests I was mentioning should be another big help. I thought the PEP 517 build was supposed to solve this, but for some reason it's not isolating. Will look into this when I work on the build system.

@henryiii
Copy link
Member Author

henryiii commented Feb 9, 2021

It's a recurrent issue.

This is exactly why check-manifest is a recommendation in the Scikit-HEP developer docs. ;)

@jpivarski jpivarski merged commit 05945e3 into scikit-hep:main Feb 9, 2021
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