-
Notifications
You must be signed in to change notification settings - Fork 242
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
Deployment questions #5
Comments
So, in your first question -
currently, Travis CI offer no way to archive your build artifacts themselves. Your mental model is correct - you have no direct access to the VM, and it's destroyed once the build finishes. Therefore, to get hold of the build wheels, you have to upload them to a temporary location. Travis have a number of options for places you can upload to. (It's much easier on Appveyor - they retain build artifacts for you). I already use Amazon S3 for other things, so I set my builds to upload there. Rackspace's Cloud Files is also popular for this kind of thing.
yep. wheelhouse-uploader is a tool that semi-automates the deploy process. Deployment to PyPI is still manual, but the download of the built wheels from cloud storage is just one command. Note that you'll still need a cloud provider as in the previous example. As a bonus you also get an index file that pip can install wheels from, before releasing to PyPI. There are other options, such as uploading to Github releases, or directly to PyPI. Both require you to tag a release before it's built. You get less control over the release, but you don't need the file hosting service to get the job done. |
@joerick I'm interested in deploying directly to PyPi, despite the loss of some control. I just can't seem to figure out how. Would you be willing to help me out, that way we can document this strategy for future users of cibuildwheel who also want to just have an easy way to get all their wheels on pypi in one step? |
I'm also getting this other issue with wheelhouse uploader: ogrisel/wheelhouse-uploader#21 |
@zfrenchee I'll see if I can get get something working 👍 |
@joerick I've managed to get deployment up and working for linux, but not macOS. It looks like despite building wheels successfully, the deploy option tries to build wheels again (but only on macOS) I asked Travis support about this, and here's what I got back:
I think this might be something worth resolving in cibuildwheel? |
It looks like Travis' PyPI integration tries to build distributions before uploading from the |
Hi @zfrenchee, check out https://github.com/joerick/cibuildwheel-autopypi-example/blob/master/.travis.yml - it seems to be working well for me and isn't a big addition to the travis.yml 😄 |
Hi @joerick. As usual, thank you so much for this support! What is |
|
Questions from @zfrenchee in #4 - I'm posting these to a new thread for better visibility
The text was updated successfully, but these errors were encountered: