From 14942493c45ddde0176ec0b5efbf0782c18abe4a Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Fri, 15 Aug 2025 19:09:03 +0300 Subject: [PATCH 1/2] migrate to uv-build --- Justfile | 1 + pyproject.toml | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Justfile b/Justfile index 3a7eb1e..0212126 100644 --- a/Justfile +++ b/Justfile @@ -19,5 +19,6 @@ test *args: publish: rm -rf dist + uv version $GITHUB_REF_NAME uv build uv publish --token $PYPI_TOKEN diff --git a/pyproject.toml b/pyproject.toml index 955d540..0e27745 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ classifiers = [ "Typing :: Typed", "Topic :: Software Development :: Libraries", ] -dynamic = ["version"] +version = "0" dependencies = [ "fastapi>=0.100", ] @@ -38,11 +38,12 @@ dev-dependencies = [ ] [build-system] -requires = ["hatchling", "hatch-vcs"] -build-backend = "hatchling.build" +requires = ["uv_build"] +build-backend = "uv_build" -[tool.hatch.version] -source = "vcs" +[tool.uv.build-backend] +module-name = "fast_version" +module-root = "" [tool.mypy] python_version = "3.10" From 8124dda2e0bb2f618f0395b9e437932048a881eb Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Fri, 15 Aug 2025 19:10:42 +0300 Subject: [PATCH 2/2] use ubuntu-latest only --- .github/workflows/workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 88ae1c1..894d465 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -16,4 +16,5 @@ jobs: uses: community-of-python/community-workflow/.github/workflows/preset.yml@main with: python-version: '["3.10","3.11","3.12","3.13"]' + os: '["ubuntu-latest"]' secrets: inherit