Skip to content

Commit e1cb058

Browse files
authored
Merge pull request #9 from community-of-python/uv-build
migrate to uv-build
2 parents f495b48 + 6d9bd03 commit e1cb058

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 0 deletions
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+
os: '["ubuntu-latest"]'
1920
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
@@ -8,7 +8,7 @@ dependencies = [
88
"httpx",
99
"tenacity",
1010
]
11-
dynamic = ["version"]
11+
version = "0"
1212
authors = [{ name = "community-of-python" }]
1313
keywords = [
1414
"python",
@@ -40,11 +40,12 @@ dev = [
4040
]
4141

4242
[build-system]
43-
requires = ["hatchling", "hatch-vcs"]
44-
build-backend = "hatchling.build"
43+
requires = ["uv_build"]
44+
build-backend = "uv_build"
4545

46-
[tool.hatch.version]
47-
source = "vcs"
46+
[tool.uv.build-backend]
47+
module-name = "circuit_breaker_box"
48+
module-root = ""
4849

4950
[tool.mypy]
5051
python_version = "3.10"

0 commit comments

Comments
 (0)