Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 6 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,18 @@ jobs:

publish:
needs: test
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
runs-on: ubuntu-latest
name: "Bump version, create changelog and publish"
steps:
- name: Clone Repository
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
changelog_increment_filename: body.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: body.md
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Set up Poetry
uses: abatilo/actions-poetry@v2.1.4
with:
poetry-version: 1.1.11
# - name: Publish
# env:
# PYPI_USERNAME: __token__
# PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
# run: |
# poetry install
# poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Changelog

<!--next-version-placeholder-->

## v0.3.0 (2021-12-03)

### Fix
Expand Down
6 changes: 3 additions & 3 deletions gotrue/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,13 @@ def on_auth_state_change(
error : APIError
If an error occurs
"""
unique_id: str = uuid4().hex
unique_id = uuid4()
subscription = Subscription(
id=unique_id,
callback=callback,
unsubscribe=partial(self._unsubscribe, id=unique_id),
unsubscribe=partial(self._unsubscribe, id=unique_id.hex),
)
self.state_change_emitters[unique_id] = subscription
self.state_change_emitters[unique_id.hex] = subscription
return subscription

async def _handle_email_sign_in(
Expand Down
6 changes: 3 additions & 3 deletions gotrue/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,13 @@ def on_auth_state_change(
error : APIError
If an error occurs
"""
unique_id: str = uuid4().hex
unique_id = uuid4()
subscription = Subscription(
id=unique_id,
callback=callback,
unsubscribe=partial(self._unsubscribe, id=unique_id),
unsubscribe=partial(self._unsubscribe, id=unique_id.hex),
)
self.state_change_emitters[unique_id] = subscription
self.state_change_emitters[unique_id.hex] = subscription
return subscription

def _handle_email_sign_in(
Expand Down
Loading