Skip to content

Commit c0e3b57

Browse files
authored
Merge pull request #41 from modern-python/uv-build
use uv build backend
2 parents 624b63f + 39a7837 commit c0e3b57

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
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

lite_bootstrap/instruments/logging_instrument.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class RequestProtocol(typing.Protocol):
3232

3333
def tracer_injection(_: "WrappedLogger", __: str, event_dict: "EventDict") -> "EventDict":
3434
try:
35-
from opentelemetry import trace
35+
from opentelemetry import trace # noqa: PLC0415
3636
except ImportError: # pragma: no cover
3737
return event_dict
3838

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)