include more optional dependencies in PyInstaller executables
(#3907) - pyyaml - toml (for Python<3.11) - secretstorage (on Linux)
This commit is contained in:
15
.github/workflows/executables.yml
vendored
15
.github/workflows/executables.yml
vendored
@@ -9,13 +9,20 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
|
os: ["windows-latest", "macOS-latest"]
|
||||||
python-version: ["3.11"]
|
|
||||||
architecture: ["x64"]
|
architecture: ["x64"]
|
||||||
|
python-version: ["3.11"]
|
||||||
|
python-packages: [""]
|
||||||
|
include:
|
||||||
|
- os: "ubuntu-latest"
|
||||||
|
architecture: "x64"
|
||||||
|
python-version: "3.11"
|
||||||
|
python-packages: "secretstorage"
|
||||||
include:
|
include:
|
||||||
- os: "windows-2019"
|
- os: "windows-2019"
|
||||||
python-version: "3.8"
|
|
||||||
architecture: "x86"
|
architecture: "x86"
|
||||||
|
python-version: "3.8"
|
||||||
|
python-packages: "toml"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -28,7 +35,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build executable
|
- name: Build executable
|
||||||
run: |
|
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
|
python scripts/pyinstaller.py
|
||||||
|
|
||||||
- name: Upload executable
|
- name: Upload executable
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ build-linux() {
|
|||||||
rm -rf "${VENV_PATH}"
|
rm -rf "${VENV_PATH}"
|
||||||
python -m virtualenv "${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
|
$VENV_PYTHON ./scripts/pyinstaller.py
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user