redis / redis-py

Redis Python client
MIT License
12.55k stars 2.51k forks source link

Proposal: Automated Versioning Changes #1524

Closed chayim closed 1 year ago

chayim commented 3 years ago

Given the recent requests to release a new version of redis-py and my having read this document I started thinking about the release process.I wanted to make release note writing a bit easier, combined with automating pieces of the flow.

  1. [x] Use the release drafter workflow to update release notes for versions

  2. [x] Add python 3.9 to the setup.cfg (just because we should).

  3. [x] Move versioning from the code to setup.cfg. Change redis.__init__.__version__ to get the version from the installed package.

  4. [x] Automate the release to PyPi based on a published release, similar to this, except for setup.py releases.

  5. [ ] Release automation workflow sets the version and commit to the version file to the repo, prior to release.

I'm personally attached to moving release to pyproject.toml, though I understand that might not be something others like. What are your thoughts on both the above, and moving releases to pyproject.toml from setup.py/cfg?

chayim commented 3 years ago

The draft PR above implements the first three items - just so that there's a visual.

chayim commented 1 year ago

We long size work this way.. closing.