mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
chore: migrate PyInstaller 5.2 → 6.x, bump setuptools to 78.1.1 (#2587)
Co-authored-by: k9ert <117085+k9ert@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
608d6a61e5
commit
3917c15e4f
8 changed files with 88 additions and 73 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -82,7 +82,7 @@ jobs:
|
|||
- name: Install PyInstaller requirements
|
||||
run: |
|
||||
source .buildenv/bin/activate
|
||||
pip install -r pyinstaller/requirements.txt --require-hashes
|
||||
pip install -r pyinstaller/requirements.txt
|
||||
|
||||
- name: Build specterd
|
||||
run: |
|
||||
|
|
@ -139,7 +139,7 @@ jobs:
|
|||
run: |
|
||||
source .buildenv/Scripts/activate
|
||||
cd pyinstaller
|
||||
pip install -r requirements.txt --require-hashes
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Build specterd
|
||||
shell: bash
|
||||
|
|
@ -206,7 +206,7 @@ jobs:
|
|||
- name: Install PyInstaller requirements
|
||||
run: |
|
||||
source .buildenv/bin/activate
|
||||
pip install -r pyinstaller/requirements.txt --require-hashes
|
||||
pip install -r pyinstaller/requirements.txt
|
||||
|
||||
- name: Build specterd
|
||||
run: |
|
||||
|
|
|
|||
61
.github/workflows/test-specterd-build.yml
vendored
Normal file
61
.github/workflows/test-specterd-build.yml
vendored
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
name: Test specterd build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'pyinstaller/**'
|
||||
- 'requirements.in'
|
||||
- 'requirements.txt'
|
||||
- 'src/**'
|
||||
- 'setup.py'
|
||||
- 'setup.cfg'
|
||||
- 'pyproject.toml'
|
||||
- '.github/workflows/test-specterd-build.yml'
|
||||
|
||||
env:
|
||||
PYTHON_VERSION: '3.10'
|
||||
|
||||
jobs:
|
||||
build-and-smoke-test:
|
||||
name: Build & smoke-test specterd (Linux)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
|
||||
- name: Install system dependencies
|
||||
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev
|
||||
|
||||
- name: Create virtualenv and install
|
||||
run: |
|
||||
pip install virtualenv
|
||||
virtualenv --python=python${{ env.PYTHON_VERSION }} .buildenv
|
||||
source .buildenv/bin/activate
|
||||
pip install -r requirements.txt --require-hashes
|
||||
pip install -e ".[test]"
|
||||
pip install build==0.10.0
|
||||
python3 -m build
|
||||
pip install ./dist/cryptoadvance_specter-*.whl
|
||||
|
||||
- name: Install PyInstaller requirements
|
||||
run: |
|
||||
source .buildenv/bin/activate
|
||||
pip install -r pyinstaller/requirements.txt
|
||||
|
||||
- name: Build specterd
|
||||
run: |
|
||||
source .buildenv/bin/activate
|
||||
echo "0.0.0-test" > pyinstaller/version.txt
|
||||
cd pyinstaller
|
||||
pyinstaller specterd.spec
|
||||
cd ..
|
||||
|
||||
- name: Smoke test
|
||||
run: |
|
||||
./pyinstaller/dist/specterd --help
|
||||
./pyinstaller/dist/specterd server --help
|
||||
Loading…
Add table
Add a link
Reference in a new issue