Skip to content

Commit 006cb21

Browse files
authored
Merge pull request #2 from community-of-python/uv-build
migrate to uv-build
2 parents 7c64673 + 7381655 commit 006cb21

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/workflow.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ jobs:
1616
uses: community-of-python/community-workflow/.github/workflows/preset.yml@main
1717
with:
1818
python-version: '["3.10","3.11","3.12","3.13"]'
19-
secrets: inherit
19+
os: '["ubuntu-latest"]'
20+
secrets: inherit

Justfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,23 @@ default: install lint test
22

33
install:
44
uv lock --upgrade
5-
uv sync --all-extras --all-packages --frozen
5+
uv sync --all-extras --frozen
66

77
lint:
8-
uv run ruff format .
9-
uv run ruff check . --fix
8+
uv run ruff format
9+
uv run ruff check --fix
1010
uv run mypy .
1111

1212
lint-ci:
13-
uv run ruff format . --check
14-
uv run ruff check . --no-fix
13+
uv run ruff format --check
14+
uv run ruff check --no-fix
1515
uv run mypy .
1616

1717
test *args:
18-
uv run pytest {{ args }}
18+
uv run --no-sync pytest {{ args }}
1919

2020
publish:
2121
rm -rf dist
22+
uv version $GITHUB_REF_NAME
2223
uv build
2324
uv publish --token $PYPI_TOKEN

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies = [
99
"multidict",
1010
"circuit-breaker-box",
1111
]
12-
dynamic = ["version"]
12+
version = "0"
1313
authors = [{ name = "community-of-python" }]
1414
keywords = [
1515
"python",
@@ -42,11 +42,12 @@ dev = [
4242
]
4343

4444
[build-system]
45-
requires = ["hatchling", "hatch-vcs"]
46-
build-backend = "hatchling.build"
45+
requires = ["uv_build"]
46+
build-backend = "uv_build"
4747

48-
[tool.hatch.version]
49-
source = "vcs"
48+
[tool.uv.build-backend]
49+
module-name = "base_client"
50+
module-root = ""
5051

5152
[tool.mypy]
5253
python_version = "3.10"

0 commit comments

Comments
 (0)