benoitc / gunicorn

gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications.
http://www.gunicorn.org
Other
9.81k stars 1.75k forks source link

Make releases from CI #2205

Closed tilgovi closed 2 months ago

tilgovi commented 4 years ago

I was just reading about cibuildwheel1. Do we have any interest in automating releases like this?

benoitc commented 4 years ago

I'm all for automating the release if we can. This looks good for me. Do you think we can do it only when a version is tagged?

tilgovi commented 4 years ago

Definitely we can make it happen only when tagged.

tilgovi commented 4 years ago

The example in the README contains this code:

  # if the release was tagged, upload them to PyPI
  - |
    if [[ $TRAVIS_TAG ]]; then
      python -m pip install twine
      python -m twine upload wheelhouse/*.whl
    fi
benoitc commented 4 years ago

oh I didn't see it... that's good! I would be more than happy to automate such thing. So no more error and such

tilgovi commented 4 years ago

I'll work on it.

jamadden commented 4 years ago

The zopefoundation repos that I work on recently updated the way they do this. They generate multiple binary wheels for Windows and Linux so the configuration is more complex than what is needed here & now, but it's been iterated on several times and I think it's a good example of using Docker/Linux and macOS. There may be some usable parts there.

Here's one that builds and uploads binaries on Travis. The sibling appveyor.yml is for Windows.

benoitc commented 4 years ago

while we are here we should also test some scenarios on different platforms (signals, reload, reexec..) so we can make sure the code is cross platform. I'm thinking we could create github project for that and collect from there the tickets. Thoughts?

benoitc commented 2 months ago

no activity since awhile. closing feel free to create a new ticket if needed.

pajod commented 2 months ago

There is activity in the form of a (in its current state, just going though the motions, not actually releasing) github workflow suggested here in #3134 - see https://github.com/benoitc/gunicorn/pull/3134/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34R32-R38