Skip to content

Commit

Permalink
👽 PEP440
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Apr 17, 2023
1 parent dbd6990 commit fd8086d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
if [[ ! "$COMMIT_MESSAGE" == *"Update version to"* ]]
then
cd CPAC
VERSION=$(python -c "from info import __version__; print('.'.join(('.'.join(__version__[::-1].split('-')[1].split('.')[1:])[::-1], __version__.split('-')[1])) if '-' in __version__ else __version__)")
VERSION=$(python -c "from info import __version__; print(('.'.join(('.'.join(__version__[::-1].split('-')[1].split('.')[1:])[::-1], __version__.split('-')[1])) if '-' in __version__ else __version__).split('+', 1)[0])")
cd ..
echo "v${VERSION}" > version
find ./CPAC/resources/configs -name "*.yml" -exec sed -i -r "s/^(# [Vv]ersion ).*$/# Version ${VERSION}/g" {} \;
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Updates develop version numbers to adhere to [PEP440](https://peps.python.org/pep-0440) by changing `{major}.{minor}.{patch}.{SHA}-{dev}` to `{major}.{minor}.{patch}.dev{integer}+{SHA}`
- Adds checksum steps to `curl`d steps in Docker build process (for standard and `lite` images)
- Makes in-container root directory writable by all

Expand Down
2 changes: 1 addition & 1 deletion CPAC/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_cpac_gitversion():
if 'dev' in _version_extra:
gitversion = get_cpac_gitversion()
if gitversion:
_version_extra = gitversion + '-' + 'dev'
_version_extra = f'dev1+{gitversion}'


__version__ = "%s.%s.%s" % (_version_major,
Expand Down

0 comments on commit fd8086d

Please sign in to comment.