1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

include more optional dependencies in PyInstaller executables

(#3907)

- pyyaml
- toml (for Python<3.11)
- secretstorage (on Linux)
This commit is contained in:
Mike Fährmann 2023-04-18 20:45:48 +02:00
parent f2cebd1db0
commit f424d1fc23
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 12 additions and 5 deletions

View File

@ -9,13 +9,20 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
python-version: ["3.11"]
os: ["windows-latest", "macOS-latest"]
architecture: ["x64"]
python-version: ["3.11"]
python-packages: [""]
include:
- os: "ubuntu-latest"
architecture: "x64"
python-version: "3.11"
python-packages: "secretstorage"
include:
- os: "windows-2019"
python-version: "3.8"
architecture: "x86"
python-version: "3.8"
python-packages: "toml"
steps:
- uses: actions/checkout@v3
@ -28,7 +35,7 @@ jobs:
- name: Build executable
run: |
pip install requests requests[socks] yt-dlp pyinstaller
pip install requests requests[socks] yt-dlp pyyaml ${{ matrix.python-packages }} pyinstaller
python scripts/pyinstaller.py
- name: Upload executable

View File

@ -59,7 +59,7 @@ build-linux() {
rm -rf "${VENV_PATH}"
python -m virtualenv "${VENV_PATH}"
$VENV_PYTHON -m pip install requests requests[socks] yt-dlp pyinstaller
$VENV_PYTHON -m pip install requests requests[socks] yt-dlp pyyaml toml secretstorage pyinstaller
$VENV_PYTHON ./scripts/pyinstaller.py
}