Skip to content

Commit

Permalink
fixup! [CI] Test with Python 3.13 and 3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlnkn committed Sep 15, 2024
1 parent cbd41ab commit 67db9d4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 15 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ jobs:
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade-strategy eager --upgrade cython twine build zstandard fusepy cffi
- name: Install Cutting-Edge Dependencies
if: matrix.python-version == '3.13.0-rc.2' || matrix.python-version == '3.14.0-alpha.0'
run: |
# https://github.com/indygreg/python-zstandard/issues/223
python3 -m pip install --upgrade \
'git+https://github.com/indygreg/python-zstandard.git@main#egginfo=zstandard'
- name: Test Startup With Only One Compression Dependency
run: |
for module in indexed_gzip indexed_zstd lzmaffi python-xz; do
Expand Down
28 changes: 24 additions & 4 deletions core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,18 @@ full = [
"PySquashfsImage == 0.9.0",
"lz4 ~= 4.0.0",
"python-lzo ~= 1.0",
"zstandard ~= 0.22.0",
"isal ~= 1.0",
# Need at least 0.23.0 for Python 3.13 support.
# https://github.com/indygreg/python-zstandard/issues/223
# The old zstandard-python versions for Python < 3.8 are untested because they are EOL.
'zstandard ~= 0.20.0; python_version == "3.6.0"',
'zstandard ~= 0.21.0; python_version == "3.7.0"',
# With Python 3.14, I get ImportError: cannot import name 'ByteString' from 'typing' via
# zstandard/__init__.py:21.
# https://github.com/indygreg/python-zstandard/issues/238
'zstandard ~= 0.23.0; python_version >= "3.8.0, < 3.14.0"',
# With Python 3.14, when building the wheel, I get:
# /usr/bin/ld: cannot find /tmp/tmpcuw21d78/bin/isa-l.a: No such file or directory
'isal ~= 1.0; python_version < "3.14.0"',
'pyfatfs ~= 1.0; python_version < "3.12.0"',
]
bzip2 = ["rapidgzip >= 0.13.1"]
Expand All @@ -71,8 +81,18 @@ squashfs = [
"PySquashfsImage == 0.9.0",
"lz4 ~= 4.0.0",
"python-lzo ~= 1.0",
"zstandard ~= 0.22.0",
"isal ~= 1.0",
# Need at least 0.23.0 for Python 3.13 support.
# https://github.com/indygreg/python-zstandard/issues/223
# The old zstandard-python versions for Python < 3.8 are untested because they are EOL.
'zstandard ~= 0.20.0; python_version == "3.6.0"',
'zstandard ~= 0.21.0; python_version == "3.7.0"',
# With Python 3.14, I get ImportError: cannot import name 'ByteString' from 'typing' via
# zstandard/__init__.py:21.
# https://github.com/indygreg/python-zstandard/issues/238
'zstandard ~= 0.23.0; python_version >= "3.8.0, < 3.14.0"',
# With Python 3.14, when building the wheel, I get:
# /usr/bin/ld: cannot find /tmp/tmpcuw21d78/bin/isa-l.a: No such file or directory
'isal ~= 1.0; python_version < "3.14.0"',
]
xz = ["python-xz ~= 0.4.0"]
zip = []
Expand Down
28 changes: 24 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,18 @@ full = [
"PySquashfsImage == 0.9.0",
"lz4 ~= 4.0.0",
"python-lzo ~= 1.0",
"zstandard ~= 0.22.0",
"isal ~= 1.0",
# Need at least 0.23.0 for Python 3.13 support.
# https://github.com/indygreg/python-zstandard/issues/223
# The old zstandard-python versions for Python < 3.8 are untested because they are EOL.
'zstandard ~= 0.20.0; python_version == "3.6.0"',
'zstandard ~= 0.21.0; python_version == "3.7.0"',
# With Python 3.14, I get ImportError: cannot import name 'ByteString' from 'typing' via
# zstandard/__init__.py:21.
# https://github.com/indygreg/python-zstandard/issues/238
'zstandard ~= 0.23.0; python_version >= "3.8.0, < 3.14.0"',
# With Python 3.14, when building the wheel, I get:
# /usr/bin/ld: cannot find /tmp/tmpcuw21d78/bin/isa-l.a: No such file or directory
'isal ~= 1.0; python_version < "3.14.0"',
]
bzip2 = []
gzip = []
Expand All @@ -72,8 +82,18 @@ squashfs = [
"PySquashfsImage == 0.9.0",
"lz4 ~= 4.0.0",
"python-lzo ~= 1.0",
"zstandard ~= 0.22.0",
"isal ~= 1.0",
# Need at least 0.23.0 for Python 3.13 support.
# https://github.com/indygreg/python-zstandard/issues/223
# The old zstandard-python versions for Python < 3.8 are untested because they are EOL.
'zstandard ~= 0.20.0; python_version == "3.6.0"',
'zstandard ~= 0.21.0; python_version == "3.7.0"',
# With Python 3.14, I get ImportError: cannot import name 'ByteString' from 'typing' via
# zstandard/__init__.py:21.
# https://github.com/indygreg/python-zstandard/issues/238
'zstandard ~= 0.23.0; python_version >= "3.8.0, < 3.14.0"',
# With Python 3.14, when building the wheel, I get:
# /usr/bin/ld: cannot find /tmp/tmpcuw21d78/bin/isa-l.a: No such file or directory
'isal ~= 1.0; python_version < "3.14.0"',
]

[project.scripts]
Expand Down

0 comments on commit 67db9d4

Please sign in to comment.