Skip to content

Commit

Permalink
include more optional dependencies in PyInstaller executables
Browse files Browse the repository at this point in the history
(#3907)

- pyyaml
- toml (for Python<3.11)
- secretstorage (on Linux)
  • Loading branch information
mikf committed Apr 18, 2023
1 parent f2cebd1 commit f424d1f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/executables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit f424d1f

Please sign in to comment.