Skip to content

Commit 843dcf1

Browse files
Prepare package for Production/Stable status, add Py3.13 (#49)
* Not beta anymore * Fix mypy, use py3.13 * Update trove classifier * Fix trio.MultiError removed in anyio 4+
1 parent 238e2b2 commit 843dcf1

6 files changed

Lines changed: 14 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ _Try this code interactively using [IPython](https://ipython.org/install.html)._
7171

7272
## Installation
7373

74-
_This project is in beta and maturing. Be sure to pin any dependencies to the latest minor._
74+
_Be sure to pin any dependencies to the latest minor version._
7575

7676
```bash
7777
pip install "aiometer==0.5.*"

ci/azure-pipelines.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resources:
44
type: github
55
endpoint: github
66
name: florimondmanca/azure-pipelines-templates
7-
ref: refs/tags/6.2
7+
ref: refs/tags/6.3
88

99
trigger:
1010
- master
@@ -25,21 +25,21 @@ stages:
2525
jobs:
2626
- template: job--python-check.yml@templates
2727
parameters:
28-
pythonVersion: "3.12"
28+
pythonVersion: "3.13"
2929

3030
- template: job--python-test.yml@templates
3131
parameters:
3232
jobs:
3333
py38:
3434
variables:
3535
PYTEST_ADDOPTS: "--cov-config=.coveragerc_py38"
36-
py312:
36+
py313:
3737
coverage: true
3838

3939
- stage: publish
4040
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
4141
jobs:
4242
- template: job--python-publish.yml@templates
4343
parameters:
44-
pythonVersion: "3.12"
44+
pythonVersion: "3.13"
4545
token: $(pypiToken)

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors = [
1111
{ name = "Florimond Manca", email = "florimond.manca@protonmail.com" },
1212
]
1313
classifiers = [
14-
"Development Status :: 4 - Beta",
14+
"Development Status :: 5 - Production/Stable",
1515
"Intended Audience :: Developers",
1616
"Framework :: AsyncIO",
1717
"Framework :: Trio",
@@ -22,6 +22,7 @@ classifiers = [
2222
"Programming Language :: Python :: 3.10",
2323
"Programming Language :: Python :: 3.11",
2424
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
2526
]
2627
dependencies = [
2728
"anyio>=3.2,<5",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-e .
22

33
# Compatibility testing.
4-
anyio~=3.2; python_version<'3.11'
4+
anyio~=4.0; python_version<'3.11'
55

66
# Packaging.
77
twine

src/aiometer/_impl/amap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
Optional,
1111
Sequence,
1212
Tuple,
13+
cast,
1314
overload,
1415
)
1516

@@ -80,7 +81,7 @@ async def sender() -> None:
8081
_send_to=send_channel,
8182
)
8283

83-
task_group.start_soon(sender)
84+
task_group.start_soon(cast(Callable, sender))
8485

8586
yield receive_channel
8687

src/aiometer/_impl/run_on_each.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Awaitable, Callable, List, NamedTuple, Optional, Sequence
1+
from typing import Awaitable, Callable, List, NamedTuple, Optional, Sequence, cast
22

33
import anyio
44
from anyio.streams.memory import MemoryObjectSendStream
@@ -57,4 +57,6 @@ async def run_on_each(
5757
for state in meter_states:
5858
await state.notify_task_started()
5959

60-
task_group.start_soon(_worker, async_fn, index, value, config)
60+
task_group.start_soon(
61+
cast(Callable, _worker), async_fn, index, value, config
62+
)

0 commit comments

Comments
 (0)