Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 4c05816

Browse files
authored
Merge pull request #52 from leynier/fix/deploy-action
fix: deploy action
2 parents 293065c + 467fa3f commit 4c05816

File tree

8 files changed

+482
-136
lines changed

8 files changed

+482
-136
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,39 +28,18 @@ jobs:
2828

2929
publish:
3030
needs: test
31-
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
31+
if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
3232
runs-on: ubuntu-latest
3333
name: "Bump version, create changelog and publish"
3434
steps:
3535
- name: Clone Repository
3636
uses: actions/checkout@v2
3737
with:
38+
ref: ${{ github.ref }}
3839
fetch-depth: 0
39-
- name: Create bump and changelog
40-
uses: commitizen-tools/commitizen-action@master
40+
- name: Python Semantic Release
41+
uses: relekang/python-semantic-release@master
4142
with:
4243
github_token: ${{ secrets.GITHUB_TOKEN }}
43-
branch: main
44-
changelog_increment_filename: body.md
45-
- name: Release
46-
uses: softprops/action-gh-release@v1
47-
with:
48-
body_path: body.md
49-
tag_name: ${{ env.REVISION }}
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
- name: Set up Python 3.9
53-
uses: actions/setup-python@v2
54-
with:
55-
python-version: 3.9
56-
- name: Set up Poetry
57-
uses: abatilo/[email protected]
58-
with:
59-
poetry-version: 1.1.11
60-
# - name: Publish
61-
# env:
62-
# PYPI_USERNAME: __token__
63-
# PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
64-
# run: |
65-
# poetry install
66-
# poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD
44+
repository_username: __token__
45+
repository_password: ${{ secrets.PYPI_TOKEN }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Changelog
2+
3+
<!--next-version-placeholder-->
4+
15
## v0.3.0 (2021-12-03)
26

37
### Fix

gotrue/_async/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,13 @@ def on_auth_state_change(
482482
error : APIError
483483
If an error occurs
484484
"""
485-
unique_id: str = uuid4().hex
485+
unique_id = uuid4()
486486
subscription = Subscription(
487487
id=unique_id,
488488
callback=callback,
489-
unsubscribe=partial(self._unsubscribe, id=unique_id),
489+
unsubscribe=partial(self._unsubscribe, id=unique_id.hex),
490490
)
491-
self.state_change_emitters[unique_id] = subscription
491+
self.state_change_emitters[unique_id.hex] = subscription
492492
return subscription
493493

494494
async def _handle_email_sign_in(

gotrue/_sync/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,13 @@ def on_auth_state_change(
482482
error : APIError
483483
If an error occurs
484484
"""
485-
unique_id: str = uuid4().hex
485+
unique_id = uuid4()
486486
subscription = Subscription(
487487
id=unique_id,
488488
callback=callback,
489-
unsubscribe=partial(self._unsubscribe, id=unique_id),
489+
unsubscribe=partial(self._unsubscribe, id=unique_id.hex),
490490
)
491-
self.state_change_emitters[unique_id] = subscription
491+
self.state_change_emitters[unique_id.hex] = subscription
492492
return subscription
493493

494494
def _handle_email_sign_in(

0 commit comments

Comments
 (0)