Skip to content

Commit 648b1b1

Browse files
authored
Merge pull request #2 from modern-python/use-uv-build
use uv-build backend
2 parents 30ae444 + 2f8649c commit 648b1b1

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: extractions/setup-just@v2
1414
- uses: astral-sh/setup-uv@v3
15-
with:
16-
enable-cache: true
17-
cache-dependency-glob: "**/pyproject.toml"
1815
- run: just publish
1916
env:
2017
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

Justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ lint-ci:
2828

2929
publish:
3030
rm -rf dist
31+
uv version $GITHUB_REF_NAME
3132
uv build
3233
uv publish --token $PYPI_TOKEN

pyproject.toml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ classifiers = [
2020
"Typing :: Typed",
2121
"Topic :: Software Development :: Libraries",
2222
]
23-
dynamic = ["version"]
24-
packages = [
25-
{ include = "modern_pg" },
26-
]
23+
version = "0"
2724
dependencies = [
2825
"tenacity",
2926
"sqlalchemy[asyncio]",
@@ -44,11 +41,12 @@ dev-dependencies = [
4441
]
4542

4643
[build-system]
47-
requires = ["hatchling", "hatch-vcs"]
48-
build-backend = "hatchling.build"
44+
requires = ["uv_build"]
45+
build-backend = "uv_build"
4946

50-
[tool.hatch.version]
51-
source = "vcs"
47+
[tool.uv.build-backend]
48+
module-name = "modern_pg"
49+
module-root = ""
5250

5351
[tool.mypy]
5452
python_version = "3.10"

0 commit comments

Comments
 (0)