Skip to content

Commit

Permalink
Update version string to a PEP-440 compatible one
Browse files Browse the repository at this point in the history
setuptools > 66 requires PEP-440 compatible version strings. The version
string is converted from *git describe* format (`<version>-<num>-<sha>`)
to `<version>.dev<num>+<sha>` format.
  • Loading branch information
dogukancagatay committed Mar 7, 2024
1 parent 14bbc70 commit 3bd1bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ generated = aiven_db_migrate/migrate/version.py
all: $(generated)

aiven_db_migrate/migrate/version.py:
echo "__version__ = \"$(shell git describe)\"" > $@
echo "__version__ = \"$(shell git describe | awk -F- '{ printf "%s",$$1 } length($$2) != 0 {printf ".dev%s",$$2} length($$3) != 0 { printf "+%s",$$3 }')\"" > $@

build-dep-fedora:
sudo dnf -y install --best --allowerasing \
Expand Down

0 comments on commit 3bd1bb5

Please sign in to comment.