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
Proper config for building from sdist using github action #1125
Comments
I suppose the issue stems from the fact that we don't include a |
The
Correct. The cibuildwheel process changes directory to the expanded sdist to run the build, so paths that aren't within the sdist won't work. There is a note about this hidden in the
There isn't a supported way. When building like this, the sdist is considered the 'project' and is the unit that's copied into the Docker container. All option Some people advocate including tests in the sdist for this sort of reason. There is a workaround, you can use an absolute path to your tests in the option. On Linux, prepend the path with |
Thanks. This makes sense. It sounds like my options are:
I'll figure out what works best for our project. :) Long term, would you be willing to consider a feature request to allow users to point to tests outside of the sdist? |
Yeah, that sounds right to me.
Yes, in principle. In practice, it might be tricky, given that we'd have to ensure that it was accessible inside the Docker container (the |
Description
Hi. I'm trying to use the feature added in #1096 to build from SDists using the
pypa/cibuildwheel
GitHub Action.I'm currently working on it in this PR: uber/h3-py#258
Main question (tests currently not working)
What's the idiomatic/correct way to set up the
CIBW_TEST_COMMAND
variable when building from the SDist?Neither of the following seem to work:
I'm assuming that's because the
{project}
variable is set differently for the SDist case.Minor idiom question
I'm building the SDist in a separate GA job, and downloading the artifact for the CIBW job. Does anyone see a cleaner/safer way than the glob pattern to specify the SDist?
Build log
No response
CI config
No response
The text was updated successfully, but these errors were encountered: