From 7dc90ac45c3e864a8c91315bc0fa3a71347bf1ca Mon Sep 17 00:00:00 2001 From: Tobias Genannt Date: Mon, 27 Jan 2025 14:22:34 +0100 Subject: [PATCH] Use uv as builder --- .github/workflows/release.yml | 11 +++++------ pyproject.toml | 8 ++++++-- uv.lock | 1 - 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b02349..91e95c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,13 +24,12 @@ jobs: with: python-version: "3.12" - name: Install uv - run: pip install uv + uses: astral-sh/setup-uv@v5 - id: build-and-publish name: Build and publish to pypi env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - TWINE_NON_INTERACTIVE: "true" + UV_PUBLISH_USERNAME: __token__ + UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | - uvx --from build pyproject-build - uvx twine upload dist/* + uv build + uv publish diff --git a/pyproject.toml b/pyproject.toml index 15e9d54..87165d3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,13 +9,17 @@ classifiers = [ ] description = "Load initial data into Netbox" readme = "README.md" -repository = "https://github.com/tobiasge/netbox-initializers" license = "Apache-2.0" dynamic = ["version"] requires-python = ">=3.10" dependencies = ["ruamel-yaml>=0.18.10"] +[project.urls] +repository = "https://github.com/tobiasge/netbox-initializers" +issues = "https://github.com/tobiasge/netbox-initializers/issues" +releasenotes = "https://github.com/tobiasge/netbox-initializers/releases" + [build-system] requires = ["hatchling"] build-backend = "hatchling.build" @@ -24,7 +28,7 @@ build-backend = "hatchling.build" path = "src/netbox_initializers/version.py" [tool.uv] -dev-dependencies = ["ruff==0.9.1"] +dev-dependencies = ["ruff==0.9.3"] [tool.ruff] line-length = 100 diff --git a/uv.lock b/uv.lock index 7e05d68..94d60e6 100644 --- a/uv.lock +++ b/uv.lock @@ -3,7 +3,6 @@ requires-python = ">=3.10" [[package]] name = "netbox-initializers" -version = "4.2.0" source = { editable = "." } dependencies = [ { name = "ruamel-yaml" },