Skip to content

Commit 8b0d7b4

Browse files
committed
enable builds for Python 3.10
1 parent 56f16e8 commit 8b0d7b4

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@ jobs:
8888
STREAMLINK_PYTHON_VERSION: 3.9.7
8989
STREAMLINK_PYTHON_ARCH: amd64
9090

91+
- name: Build win32 package (Python 3.10)
92+
run: bash ./scripts/makeportable.sh
93+
env:
94+
STREAMLINK_PYTHON_VERSION: 3.10.0
95+
STREAMLINK_PYTHON_ARCH: win32
96+
97+
- name: Build amd64 package (Python 3.10)
98+
run: bash ./scripts/makeportable.sh
99+
env:
100+
STREAMLINK_PYTHON_VERSION: 3.10.0
101+
STREAMLINK_PYTHON_ARCH: amd64
102+
91103
- name: Create/update latest release
92104
if: github.ref == 'refs/heads/master'
93105
uses: marvinpinto/action-automatic-releases@latest

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,18 @@ jobs:
112112
STREAMLINK_PYTHON_VERSION: 3.9.7
113113
STREAMLINK_PYTHON_ARCH: amd64
114114

115+
- name: Build win32 package (Python 3.10)
116+
run: bash ./scripts/makeportable.sh
117+
env:
118+
STREAMLINK_PYTHON_VERSION: 3.10.0
119+
STREAMLINK_PYTHON_ARCH: win32
120+
121+
- name: Build amd64 package (Python 3.10)
122+
run: bash ./scripts/makeportable.sh
123+
env:
124+
STREAMLINK_PYTHON_VERSION: 3.10.0
125+
STREAMLINK_PYTHON_ARCH: amd64
126+
115127
- name: Create release ${{ steps.versions.outputs.streamlink_tag }}
116128
if: steps.versions.outputs.streamlink_tag != steps.versions.outputs.streamlink_portable_tag
117129
uses: actions/create-release@latest

scripts/makeportable.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ wget -q "${python_url}" -c -O "${temp_dir}/python-${STREAMLINK_PYTHON_VERSION}-e
4141
pushd "${STREAMLINK_CHECKOUT_DIR}" > /dev/null
4242

4343
log "Downloading Python dependencies..."
44-
pip download --only-binary ":all:" --platform "${PYTHON_PLATFORM}" --python-version "${STREAMLINK_PYTHON_VERSION}" --implementation "cp" -d "${temp_dir}" "pycryptodome>=3.4.3,<4" "lxml>=4.6.3" > /dev/null
44+
pip download --only-binary ":all:" --platform "${PYTHON_PLATFORM}" --python-version "${STREAMLINK_PYTHON_VERSION}" --implementation "cp" -d "${temp_dir}" "pycryptodome>=3.4.3,<4.0" "lxml>=4.6.4,<5.0" > /dev/null
4545
pip install --upgrade -t "${packages_dir}" "iso-639" "iso3166" "setuptools" "requests>=2.26.0,<3.0" "websocket-client>=0.58.0" "PySocks!=1.5.7,>=1.5.6" "isodate" > /dev/null
4646

4747
# create an sdist package to be "installed"

0 commit comments

Comments
 (0)