Skip to content

Commit

Permalink
chore(release): v0.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sassanh committed Oct 23, 2024
1 parent f06d44c commit 3d982d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/integration_delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:
fi
else
VERSION_CHANGELOG=$(echo $FIRST_HEADER | sed 's/Version //')
if [ "${{ steps.extract-version.outputs.VERSION }}" != "$VERSION_CHANGELOG" ]; then
if [ "${{ steps.extract-version.outputs.VERSION }}" =~ "^$VERSION_CHANGELOG\.dev[0-9]+" ]; then
echo "Error: Version extracted from CHANGELOG.md does not match the version in pyproject.toml"
exit 1
else
Expand Down Expand Up @@ -207,9 +207,9 @@ jobs:
publish:
name: Publish
if: >-
github.event_name == 'push' && github.ref == 'refs/heads/main' ||
github.event_name == 'pull_request' && github.event.pull_request.base.ref
== 'main'
github.event_name == 'push' && (github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/v')) || github.event_name ==
'pull_request' && github.event.pull_request.base.ref == 'main'
needs:
- type-check
- lint
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Upcoming
## Version 0.18.1

- chore: migrate from poetry to uv for the sake of improving performance and dealing with conflicting sub-dependencies
- refactor(core): avoid passing events to `dispatch`, to enforce using them as side-effects only
Expand Down
2 changes: 2 additions & 0 deletions setup_scm_schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@
def local_scheme(version) -> str: # noqa: ANN001
version.node = re.sub(r'.', lambda match: str(ord(match.group(0))), version.node)
original_local_version = get_local_node_and_date(version)
if not original_local_version:
return original_local_version
numeric_version = original_local_version.replace('+', '').replace('.d', '')
return datetime.now(UTC).strftime('%y%m%d') + numeric_version

0 comments on commit 3d982d0

Please sign in to comment.