Skip to content

Commit 50c8e08

Browse files
authored
Merge pull request #11 from taskiq-python/feature/dyn-versioning
2 parents 92d5bb4 + 52b9e8d commit 50c8e08

3 files changed

Lines changed: 30 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,21 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
id-token: write
13+
env:
14+
UV_SYSTEM_PYTHON: 1
1315
steps:
14-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v6
1517
with:
1618
persist-credentials: false
17-
- uses: astral-sh/setup-uv@v7
19+
fetch-depth: 0
20+
- id: setup-uv
21+
name: Setup UV
22+
uses: astral-sh/setup-uv@v7
1823
with:
19-
enable-cache: false
20-
python-version: "3.12"
21-
version: "latest"
22-
- run: uv version "${GITHUB_REF_NAME}"
24+
enable-cache: true
25+
cache-suffix: "3.13"
26+
github-token: ${{ github.token }}
27+
python-version: "3.13"
2328
- run: uv build
2429
- name: Release package
2530
env:

.github/workflows/test.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,18 @@ jobs:
2020
cmd: ["black", "ruff", "mypy"]
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v5
23+
- uses: actions/checkout@v6
2424
with:
2525
persist-credentials: false
26+
fetch-depth: 0
2627
- id: setup-uv
28+
name: Setup UV
2729
uses: astral-sh/setup-uv@v7
2830
with:
2931
enable-cache: true
30-
cache-suffix: 3.11
31-
version: "latest"
32-
python-version: 3.11
32+
cache-suffix: "3.11"
33+
github-token: ${{ github.token }}
34+
python-version: "3.11"
3335
- name: Install deps
3436
run: uv sync --all-extras
3537
- name: Run lint check
@@ -50,24 +52,26 @@ jobs:
5052
KAFKA_PROCESS_ROLES: broker,controller
5153
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092,CONTROLLER://localhost:9093
5254
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
53-
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
5455
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
56+
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
5557
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@localhost:9093
5658
strategy:
5759
matrix:
5860
py_version: ["3.10", "3.11", "3.12", "3.13"]
5961
os: [ubuntu-latest]
6062
runs-on: "${{ matrix.os }}"
6163
steps:
62-
- uses: actions/checkout@v5
64+
- uses: actions/checkout@v6
6365
with:
6466
persist-credentials: false
67+
fetch-depth: 0
6568
- id: setup-uv
69+
name: Setup UV
6670
uses: astral-sh/setup-uv@v7
6771
with:
6872
enable-cache: true
6973
cache-suffix: ${{ matrix.py_version }}
70-
version: "latest"
74+
github-token: ${{ github.token }}
7175
python-version: ${{ matrix.py_version }}
7276
- name: Install deps
7377
run: uv sync --all-extras

pyproject.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
maintainers = [
88
{name = "Taskiq team", email = "taskiq@no-reply.com"}
99
]
10-
version = "0.2.1"
10+
dynamic = ["version"]
1111
readme = "README.md"
1212
license = "MIT"
1313
license-files = ["LICENSE"]
@@ -52,12 +52,14 @@ dev = [
5252
]
5353

5454
[build-system]
55-
requires = ["uv_build>=0.9.9,<0.10.0"]
56-
build-backend = "uv_build"
55+
requires = ["hatchling", "versioningit"]
56+
build-backend = "hatchling.build"
5757

58-
[tool.uv.build-backend]
59-
module-name = "taskiq_aio_kafka"
60-
module-root = ""
58+
[tool.hatch.version]
59+
source = "versioningit"
60+
61+
[tool.hatch.build.targets.wheel]
62+
packages = ["taskiq_aio_kafka"]
6163

6264
[tool.pytest.ini_options]
6365
log_level = 'INFO'

0 commit comments

Comments
 (0)