Skip to content

Commit bf5841e

Browse files
committed
use uv build backend
1 parent 624b63f commit bf5841e

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
@@ -19,5 +19,6 @@ test *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 & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ classifiers = [
2727
"Typing :: Typed",
2828
"Topic :: Software Development :: Libraries",
2929
]
30-
dynamic = ["version"]
31-
packages = [
32-
{ include = "lite_bootstrap" },
33-
]
30+
version = "0"
3431

3532
[project.urls]
3633
repository = "https://github.com/modern-python/lite-bootstrap"
@@ -124,11 +121,12 @@ dev = [
124121
]
125122

126123
[build-system]
127-
requires = ["hatchling", "hatch-vcs"]
128-
build-backend = "hatchling.build"
124+
requires = ["uv_build"]
125+
build-backend = "uv_build"
129126

130-
[tool.hatch.version]
131-
source = "vcs"
127+
[tool.uv.build-backend]
128+
module-name = "lite_bootstrap"
129+
module-root = ""
132130

133131
[tool.mypy]
134132
python_version = "3.10"

0 commit comments

Comments
 (0)