Skip to content

Commit 98fae32

Browse files
authored
Merge pull request #109 from tobiasge/use-uv-for-release
Use uv as builder
2 parents 12877af + a261218 commit 98fae32

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ jobs:
2424
with:
2525
python-version: "3.12"
2626
- name: Install uv
27-
run: pip install uv
27+
uses: astral-sh/setup-uv@v5
2828
- id: build-and-publish
2929
name: Build and publish to pypi
3030
env:
31-
TWINE_USERNAME: __token__
32-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
33-
TWINE_NON_INTERACTIVE: "true"
31+
UV_PUBLISH_USERNAME: __token__
32+
UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_TOKEN }}
3433
run: |
35-
uvx --from build pyproject-build
36-
uvx twine upload dist/*
34+
uv build
35+
uv publish

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ classifiers = [
99
]
1010
description = "Load initial data into Netbox"
1111
readme = "README.md"
12-
repository = "https://github.com/tobiasge/netbox-initializers"
1312
license = "Apache-2.0"
1413
dynamic = ["version"]
1514

1615
requires-python = ">=3.10"
1716
dependencies = ["ruamel-yaml>=0.18.10"]
1817

18+
[project.urls]
19+
repository = "https://github.com/tobiasge/netbox-initializers"
20+
issues = "https://github.com/tobiasge/netbox-initializers/issues"
21+
releasenotes = "https://github.com/tobiasge/netbox-initializers/releases"
22+
1923
[build-system]
2024
requires = ["hatchling"]
2125
build-backend = "hatchling.build"
@@ -24,7 +28,7 @@ build-backend = "hatchling.build"
2428
path = "src/netbox_initializers/version.py"
2529

2630
[tool.uv]
27-
dev-dependencies = ["ruff==0.9.1"]
31+
dev-dependencies = ["ruff==0.9.3"]
2832

2933
[tool.ruff]
3034
line-length = 100

uv.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)