Skip to content

Commit 3ed4f4a

Browse files
authored
ci: fix uv missing for PSR (#79)
1 parent 67b3118 commit 3ed4f4a

3 files changed

Lines changed: 41 additions & 7 deletions

File tree

.github/workflows/cd-release.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ jobs:
4848
run: |
4949
git reset --hard ${{ github.sha }}
5050
51-
- name: Setup | Install uv
52-
uses: astral-sh/setup-uv@v5
53-
with:
54-
enable-cache: true
55-
5651
- name: Evaluate | Verify upstream has NOT changed
5752
# Last chance to abort before causing an error as another PR/push was applied to
5853
# the upstream branch while this workflow was running. This is important

pyproject.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ omnilogic = "pyomnilogic_local.cli.cli:entrypoint"
2323
cli = [
2424
"scapy>=2.6.1,<3.0.0",
2525
]
26+
build = [
27+
"uv ~= 0.9.8"
28+
]
2629

2730
[build-system]
2831
requires = ["uv_build>=0.9.8,<0.10.0"]
@@ -102,8 +105,14 @@ convention = "google"
102105
[tool.semantic_release]
103106
branch = "main"
104107
version_toml = ["pyproject.toml:project.version"]
105-
build_command = "uv build"
106108
allow_zero_version = true
109+
build_command = """
110+
python -m pip install -e '.[build]'
111+
uv lock --upgrade-package "$PACKAGE_NAME"
112+
git add uv.lock
113+
uv build
114+
"""
115+
107116

108117
[tool.uv]
109118
package = true

uv.lock

Lines changed: 31 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)