Skip to content

Commit 40dcfe4

Browse files
Merge pull request #9276 from ThomasWaldmann/fix-build-master
binary build: install cockpit,s3,sftp extras
2 parents e60874e + 94d56e1 commit 40dcfe4

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ jobs:
277277
- name: Install borgbackup
278278
run: |
279279
if [[ "$TOXENV" == *"llfuse"* ]]; then
280-
pip install -ve ".[llfuse]"
280+
pip install -ve ".[llfuse,cockpit,s3,sftp]"
281281
elif [[ "$TOXENV" == *"pyfuse3"* ]]; then
282-
pip install -ve ".[pyfuse3]"
282+
pip install -ve ".[pyfuse3,cockpit,s3,sftp]"
283283
elif [[ "$TOXENV" == *"mfusepy"* ]]; then
284-
pip install -ve ".[mfusepy]"
284+
pip install -ve ".[mfusepy,cockpit,s3,sftp]"
285285
else
286-
pip install -ve .
286+
pip install -ve ".[cockpit,s3,sftp]"
287287
fi
288288
289289
- name: Build Borg fat binaries (${{ matrix.binary }})
@@ -305,6 +305,8 @@ jobs:
305305
./borg-dir/borg.exe -V
306306
tar czf borg.tgz borg-dir
307307
popd
308+
# Ensure locally built binary in ./dist/binary/borg-dir is found during tests
309+
export PATH="$GITHUB_WORKSPACE/dist/binary/borg-dir:$PATH"
308310
echo "borg.exe binary in PATH"
309311
borg.exe -V
310312
@@ -454,7 +456,7 @@ jobs:
454456
pip -V
455457
python -m pip install --upgrade pip wheel
456458
pip install -r requirements.d/development.txt
457-
pip install -e ".[mfusepy]"
459+
pip install -e ".[mfusepy,cockpit,s3,sftp]"
458460
tox -e py311-mfusepy
459461
460462
if [[ "${{ matrix.do_binaries }}" == "true" && "${{ startsWith(github.ref, 'refs/tags/') }}" == "true" ]]; then
@@ -638,7 +640,7 @@ jobs:
638640
run: |
639641
# build borg.exe
640642
. env/bin/activate
641-
pip install -e .
643+
pip install -e ".[cockpit,s3,sftp]"
642644
mkdir -p dist/binary
643645
pyinstaller -y --clean --distpath=dist/binary scripts/borg.exe.spec
644646
# build sdist and wheel in dist/...

scripts/borg.exe.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ basepath = os.path.abspath(os.path.join(here, '..'))
1212
if is_win32:
1313
hiddenimports = ['borghash']
1414
else:
15-
hiddenimports = ['borg.platform.posix', 'borghash']
15+
hiddenimports = ['borg.platform.posix', 'borghash', 'rich._unicode_data.unicode17-0-0']
1616

1717
block_cipher = None
1818

@@ -21,6 +21,7 @@ a = Analysis([os.path.join(basepath, 'src', 'borg', '__main__.py'), ],
2121
binaries=[],
2222
datas=[
2323
(os.path.join(basepath, 'src', 'borg', 'paperkey.html'), 'borg'),
24+
(os.path.join(basepath, 'src', 'borg', 'cockpit', 'cockpit.tcss'), os.path.join('borg', 'cockpit')),
2425
],
2526
hiddenimports=hiddenimports,
2627
hookspath=[],

0 commit comments

Comments
 (0)