Skip to content

Commit 4510a8b

Browse files
Update (#33)
1 parent 100de7b commit 4510a8b

File tree

3 files changed

+55
-57
lines changed

3 files changed

+55
-57
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-python@v5
15+
- uses: actions/checkout@v5
16+
- uses: astral-sh/setup-uv@v7
1717
with:
18-
python-version: 3.13
19-
- run: |
20-
pip install hatch "hatchling!=1.26.0"
21-
hatch build
18+
python-version: 3.14
19+
activate-environment: "true"
20+
- run: uv build
2221
- uses: actions/upload-artifact@v4
2322
with:
2423
name: dist
@@ -33,7 +32,10 @@ jobs:
3332
id-token: write
3433
steps:
3534
- name: Retrieve packages
36-
uses: actions/download-artifact@v4
35+
uses: actions/download-artifact@v5
36+
with:
37+
name: dist
38+
path: dist
3739
- name: Upload packages
3840
uses: pypa/gh-action-pypi-publish@release/v1
3941

@@ -44,7 +46,7 @@ jobs:
4446
permissions:
4547
contents: write
4648
steps:
47-
- uses: actions/checkout@v4
49+
- uses: actions/checkout@v5
4850
- id: changelog
4951
uses: agronholm/release-notes@v1
5052
with:

.github/workflows/test.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,33 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest, windows-latest, macos-latest]
1717
python-version:
18-
- '3.9'
1918
- '3.10'
2019
- '3.11'
2120
- '3.12'
2221
- '3.13'
23-
- 'pypy-3.9'
22+
- '3.14'
2423
- 'pypy-3.10'
2524
- 'pypy-3.11'
2625

2726
steps:
28-
- name: Checkout repository
29-
uses: actions/checkout@v4
30-
- name: Setup Python
31-
uses: actions/setup-python@v5
27+
- uses: actions/checkout@v5
28+
- uses: astral-sh/setup-uv@v7
3229
with:
3330
python-version: ${{ matrix.python-version }}
34-
- name: Install dependencies
35-
run: pip install -e ".[test]"
31+
activate-environment: "true"
32+
- name: Install zmq-anyio
33+
run: uv pip install -e . --group test
3634
- name: Check with mypy and ruff
37-
if: ${{ (matrix.python-version == '3.13') && (matrix.os == 'ubuntu-latest') }}
35+
if: ${{ (matrix.python-version == '3.14') && (matrix.os == 'ubuntu-latest') }}
3836
run: |
39-
mypy src/zmq_anyio
40-
ruff format --check src
41-
ruff check src
37+
uv run mypy src/zmq_anyio
38+
uv run ruff format --check src
39+
uv run ruff check src
4240
- name: Run tests
43-
if: ${{ !((matrix.python-version == '3.13') && (matrix.os == 'ubuntu-latest')) }}
44-
run: pytest --color=yes -v tests
41+
if: ${{ !((matrix.python-version == '3.14') && (matrix.os == 'ubuntu-latest')) }}
42+
run: uv run pytest --color=yes -v tests
4543
- name: Run code coverage
46-
if: ${{ (matrix.python-version == '3.13') && (matrix.os == 'ubuntu-latest') }}
44+
if: ${{ (matrix.python-version == '3.14') && (matrix.os == 'ubuntu-latest') }}
4745
run: |
48-
coverage run -m pytest --color=yes -v tests
49-
coverage report
46+
uv run coverage run -m pytest --color=yes -v tests
47+
uv run coverage report

pyproject.toml

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,52 @@
11
[build-system]
2-
requires = ["hatchling"]
3-
build-backend = "hatchling.build"
2+
requires = ["uv_build"]
3+
build-backend = "uv_build"
44

55
[project]
66
name = "zmq-anyio"
77
version = "0.3.11"
88
description = "Asynchronous API for ZMQ using AnyIO"
99
readme = "README.md"
1010
authors = [
11-
{name = "David Brochart", email = "david.brochart@gmail.com"},
11+
{name = "David Brochart", email = "david.brochart@gmail.com"},
1212
]
1313
license = {file = "LICENSE"}
1414
classifiers = [
15-
"Development Status :: 4 - Beta",
16-
"Intended Audience :: Developers",
17-
"License :: OSI Approved :: BSD License",
18-
"Typing :: Typed",
19-
"Topic :: System :: Networking",
20-
"Programming Language :: Python",
21-
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.9",
23-
"Programming Language :: Python :: 3.10",
24-
"Programming Language :: Python :: 3.11",
25-
"Programming Language :: Python :: 3.12",
26-
"Programming Language :: Python :: 3.13",
15+
"Development Status :: 4 - Beta",
16+
"Intended Audience :: Developers",
17+
"License :: OSI Approved :: BSD License",
18+
"Typing :: Typed",
19+
"Topic :: System :: Networking",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
"Programming Language :: Python :: 3.14",
27+
"Programming Language :: Python :: Implementation :: CPython",
28+
"Programming Language :: Python :: Implementation :: PyPy",
2729
]
28-
requires-python = ">= 3.9"
30+
requires-python = ">= 3.10"
2931
dependencies = [
30-
"anyio >=4.10.0,<5.0.0",
31-
"anyioutils >=0.7.1,<0.8.0",
32-
"pyzmq >=26.0.0,<28.0.0",
32+
"anyio >=4.10.0,<5.0.0",
33+
"anyioutils >=0.7.1,<0.8.0",
34+
"pyzmq >=26.0.0,<28.0.0",
3335
]
3436

35-
[project.optional-dependencies]
37+
[dependency-groups]
3638
test = [
37-
"pytest >=8,<9",
38-
"pytest-timeout",
39-
"anyio[trio]",
40-
"mypy",
41-
"ruff",
42-
"coverage[toml] >=7,<8",
39+
"pytest >=9,<10",
40+
"pytest-timeout",
41+
"anyio[trio]",
42+
"mypy",
43+
"ruff",
44+
"coverage >=7,<8",
4345
]
4446

4547
[project.urls]
46-
Source = "https://github.com/davidbrochart/zmq-anyio"
47-
Issues = "https://github.com/davidbrochart/zmq-anyio/issues"
48-
49-
[tool.hatch.build.targets.wheel]
50-
ignore-vcs = true
51-
packages = ["src/zmq_anyio"]
48+
Source = "https://github.com/QuantStack/zmq-anyio"
49+
Issues = "https://github.com/QuantStack/zmq-anyio/issues"
5250

5351
[tool.coverage.run]
5452
source = ["zmq_anyio", "tests"]

0 commit comments

Comments
 (0)