Skip to content

Commit 3ec93ba

Browse files
committed
Fix editable field for pyinstaller build
1 parent fc8baa4 commit 3ec93ba

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ jobs:
9494
cd ../codecov-cli
9595
uv sync --no-binary-package pyyaml --no-binary-package ijson
9696
97+
- name: Run pre-build script
98+
run: ./scripts/pre-build.sh
99+
97100
- name: Build with pyinstaller for ${{matrix.TARGET}}
98101
run: ${{matrix.CMD_BUILD}}
99102

prevent-cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [{ name = "Sentry", email = "oss@sentry.io" }]
88

99
requires-python = ">=3.9"
1010
dependencies = [
11-
"codecov-cli==11.0.4",
11+
"codecov-cli==11.0.3",
1212
]
1313

1414
[dependency-groups]

scripts/build_alpine.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if sha256sum -c ./scripts/uv-installer-0.7.8.sha256sum; then
77
sh uv-installer.sh; else
88
echo "uv-installer failed checksum" && exit 1
99
fi
10+
./scripts/pre-build.sh
1011
cd prevent-cli
1112
/root/.local/bin/uv python pin 3.9 # we need to build with python 3.9 to support systems with libpython >= 3.9
1213
/root/.local/bin/uv sync

scripts/build_linux.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -eux
33
apt update
44
DEBIAN_FRONTEND=noninteractive apt install -y tzdata
55
apt install -y python3.9 python3.9-dev python3-pip
6+
./scripts/pre-build.sh
67
cd prevent-cli
78
python3.9 -m pip install uv --only-binary uv
89
uv python pin 3.9 # we need to build with python 3.9 to support systems with libpython >= 3.9

scripts/pre-build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
# this updates the editable property on the codecov-cli import in prevent-cli
3+
# to be false. This is necessary for the pyinstaller build to work.
4+
sed -i "s/editable\ =\ true/editable\ =\ false/g" prevent-cli/pyproject.toml

0 commit comments

Comments
 (0)