File tree Expand file tree Collapse file tree 6 files changed +325
-265
lines changed
Expand file tree Collapse file tree 6 files changed +325
-265
lines changed Original file line number Diff line number Diff line change @@ -3,33 +3,31 @@ name: Publish
33on :
44 workflow_dispatch :
55 push :
6- branches : ["main"]
6+ tags :
7+ - ' *'
78
89jobs :
9- test :
10-
11- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
12-
10+ run :
1311 runs-on : windows-latest
1412 environment :
1513 name : pypi
16- url : https://pypi.org/p/memobj
1714 permissions :
1815 id-token : write
16+ contents : read
1917
2018 steps :
21- - uses : actions/checkout@v4
19+ - uses : actions/checkout@v5
2220 - name : Set up Python
2321 uses : actions/setup-python@v5
2422 with :
2523 python-version : " 3.13"
2624 - name : Update pip
2725 run : python -m pip install -U pip
28- - name : Set up Poetry
29- uses : abatilo/actions-poetry@v4
26+ - name : Install uv
27+ uses : astral-sh/setup-uv@v6
3028 - name : Install dependencies
31- run : poetry install
29+ run : uv sync --all-groups
3230 - name : Build
33- run : poetry build
31+ run : uv build
3432 - name : Publish
35- uses : pypa/gh-action-pypi- publish@release/v1.10
33+ uses : uv publish
Original file line number Diff line number Diff line change 3333 python-version : ${{ matrix.python-version }}
3434 - name : Update pip
3535 run : python -m pip install -U pip
36- - name : Set up Poetry
37- uses : abatilo/actions-poetry@v4
36+ - name : Install uv
37+ uses : astral-sh/setup-uv@v6
3838 - name : Install dependencies
39- run : poetry install
39+ run : uv sync --all-groups
4040 - name : Run tests
41- run : poetry run pytest
41+ run : uv run pytest
Original file line number Diff line number Diff line change 22import struct
33import operator
44from enum import Enum
5- from typing import Callable
5+ from typing import Callable , Generic , TypeVar
66
77
8- class ValueWaiter [T ]:
8+ # TODO: remove when dropping 3.11 support
9+ T = TypeVar ("T" )
10+
11+
12+ class ValueWaiter (Generic [T ]):
913 def __init__ (self , callback : Callable [[], T ]):
1014 """A utility class to wait for changes from a callable
1115
You can’t perform that action at this time.
0 commit comments