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

Feature request: option to build no wheels (sdist only) #197

Closed
clbarnes opened this issue Aug 30, 2019 · 3 comments
Closed

Feature request: option to build no wheels (sdist only) #197

clbarnes opened this issue Aug 30, 2019 · 3 comments

Comments

@clbarnes
Copy link
Contributor

On CI, where only one python version is available per job, it might be preferable to have one job per wheel. In that case, you wouldn't also want to try (and fail) to deploy one sdist per job. You could read some environment variables and mangle your maturin arguments to do --no-sdist in specific situations, but it might be more ergonomic to run one job which is just an sdist, and one job for each wheel.

I suggest -I (upper-case i)/--sdist-only, as it's the opposite of adding an interpreter to build a wheel for with -i.

@konstin
Copy link
Member

konstin commented Aug 30, 2019

This was actually already supported as it was requested in #2, but apparently I forgot to mention it in the readme. The released way is maturin sdist, so you'll want to use that for now. I've also just added maturin build --interpreter/maturin publish --interpreter, which will be part of the next release and is documented in the readme.

@konstin konstin closed this as completed Aug 30, 2019
@clbarnes
Copy link
Contributor Author

Great, thanks! So in future, will maturin publish <some option> be able to publish a sdist directly to PyPI?

@konstin
Copy link
Member

konstin commented Sep 5, 2019

Yes, with 0.7.2, maturin publish --interpreter only uploads the sdist. You can test that by creating an account on test pypi and running maturin publish --interpreter -r https://test.pypi.org/legacy/.

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

No branches or pull requests

2 participants