Skip to content

Commit 8e04b5d

Browse files
authored
Update formula for release (#1640)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated build dependency constraints to ensure compatibility with setuptools and binary compilation tools across different operating systems. * Standardized release script configurations for macOS and Linux build processes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Mohse Morad <moshemorad12340@gmail.com>
1 parent 85080d0 commit 8e04b5d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ jobs:
178178
- name: Install dependencies and build
179179
# if you change something here, you must also change it in .github/workflows/build-binaries-and-brew.yaml
180180
run: |
181-
python -m pip install --upgrade pip setuptools pyinstaller
181+
python -m pip install --upgrade pip "setuptools<75" "pyinstaller>=6.11"
182182
183183
poetry install --no-root
184184

.github/workflows/build-binaries-and-brew.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ jobs:
3636
- name: Install dependencies (Unix)
3737
if: matrix.platform != 'windows'
3838
run: |
39-
python -m pip install --upgrade pip setuptools pyinstaller
39+
python -m pip install --upgrade pip "setuptools<75" "pyinstaller>=6.11"
4040
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.0
4141
poetry config virtualenvs.create false
4242
poetry install --no-root
4343
4444
- name: Install dependencies (Windows)
4545
if: matrix.platform == 'windows'
4646
run: |
47-
python -m pip install --upgrade pip setuptools pyinstaller
47+
python -m pip install --upgrade pip "setuptools<75" "pyinstaller>=6.11"
4848
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.0
4949
C:\Users\runneradmin\AppData\Roaming\Python\Scripts\poetry config virtualenvs.create false
5050
C:\Users\runneradmin\AppData\Roaming\Python\Scripts\poetry install --no-root
@@ -211,31 +211,31 @@ jobs:
211211
212212
# Update macOS URL (handles both old and new naming)
213213
content = re.sub(
214-
r'(on_macos do\s+)url "[^"]+"',
214+
r'(if OS\.mac\?\s+)url "[^"]+"',
215215
rf'\1url "https://github.com/HolmesGPT/holmesgpt/releases/download/{tag}/holmes-darwin-arm64-{tag}.zip"',
216216
content,
217217
flags=re.DOTALL
218218
)
219219
220220
# Update macOS sha256
221221
content = re.sub(
222-
r'(on_macos do\s+url "[^"]+"\s+)sha256 "[^"]+"',
222+
r'(if OS\.mac\?\s+url "[^"]+"\s+)sha256 "[^"]+"',
223223
rf'\1sha256 "{mac_arm64_hash}"',
224224
content,
225225
flags=re.DOTALL
226226
)
227227
228228
# Update Linux URL (handles both old and new naming)
229229
content = re.sub(
230-
r'(on_linux do\s+)url "[^"]+"',
230+
r'(elsif OS\.linux\?\s+)url "[^"]+"',
231231
rf'\1url "https://github.com/HolmesGPT/holmesgpt/releases/download/{tag}/holmes-linux-amd64-{tag}.zip"',
232232
content,
233233
flags=re.DOTALL
234234
)
235235
236236
# Update Linux sha256
237237
content = re.sub(
238-
r'(on_linux do\s+url "[^"]+"\s+)sha256 "[^"]+"',
238+
r'(elsif OS\.linux\?\s+url "[^"]+"\s+)sha256 "[^"]+"',
239239
rf'\1sha256 "{linux_hash}"',
240240
content,
241241
flags=re.DOTALL

0 commit comments

Comments
 (0)