cmu-delphi / delphi-epidata

An open API for epidemiological data.
https://cmu-delphi.github.io/delphi-epidata/
MIT License
100 stars 62 forks source link

Use bumpversion for epidata client #1436

Closed rzats closed 1 month ago

rzats commented 1 month ago

Closes #1431.

Summary:

Updates the versioning in the Python client to the same method used in the JS and R clients. With this method, the version is set to a simple hardcoded string; however, during a new Delphi release, GitHub Actions will run bump2version during the release process and automatically update this string in the code.

This can be replicated in a local environment; the following code should bump the version in the Python client (as well as the .bumpversion.cfg file itself, and 7 other files) to 4.1.21:

python3 -m pip install bump2version
bump2version --current-version 4.1.20 patch

Prerequisites:

melange396 commented 1 month ago

and dont forget to add to CHANGELOG.md!

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud