Skip to content

Commit d140cee

Browse files
authored
Merge pull request #226 from pycompression/release_1.7.2
Release 1.7.2
2 parents dafeccc + 9af69cf commit d140cee

File tree

9 files changed

+34
-20
lines changed

9 files changed

+34
-20
lines changed

.github/workflows/ci.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
submodules: recursive
1919
- name: Set up Python 3.8
20-
uses: actions/setup-python@v2.2.1
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: 3.8
2323
- name: Install tox
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
submodules: recursive
3939
- name: Set up Python 3.8
40-
uses: actions/setup-python@v2.2.1
40+
uses: actions/setup-python@v5
4141
with:
4242
python-version: 3.8
4343
- name: Install isal
@@ -59,7 +59,7 @@ jobs:
5959
- "3.10"
6060
- "3.11"
6161
- "3.12"
62-
- "3.13-dev"
62+
- "3.13"
6363
- "pypy-3.9"
6464
- "pypy-3.10"
6565
os: ["ubuntu-latest"]
@@ -75,7 +75,7 @@ jobs:
7575
with:
7676
submodules: recursive
7777
- name: Set up Python ${{ matrix.python-version }}
78-
uses: actions/setup-python@v2.2.1
78+
uses: actions/setup-python@v5
7979
with:
8080
python-version: ${{ matrix.python-version }}
8181
- name: Install tox and upgrade setuptools
@@ -89,10 +89,10 @@ jobs:
8989
run: brew install nasm
9090
if: runner.os == 'macOS'
9191
- name: Set MSVC developer prompt
92-
uses: ilammy/msvc-dev-cmd@v1.6.0
92+
uses: ilammy/msvc-dev-cmd@v1
9393
if: runner.os == 'Windows'
9494
- name: Install nasm (Windows)
95-
uses: ilammy/setup-nasm@v1.2.0
95+
uses: ilammy/setup-nasm@v1
9696
if: runner.os == 'Windows'
9797
- name: Run tests
9898
run: tox
@@ -110,7 +110,7 @@ jobs:
110110
- uses: actions/checkout@v4
111111
with:
112112
submodules: recursive
113-
- uses: uraimo/run-on-arch-action@v2.5.0
113+
- uses: uraimo/run-on-arch-action@v3
114114
name: Build & run test
115115
with:
116116
arch: none
@@ -151,7 +151,7 @@ jobs:
151151
- name: Install requirements (universal)
152152
run: conda install isa-l ${{ matrix.python_version}} tox
153153
- name: Set MSVC developer prompt
154-
uses: ilammy/msvc-dev-cmd@v1.6.0
154+
uses: ilammy/msvc-dev-cmd@v1
155155
if: runner.os == 'Windows'
156156
- name: Run tests (dynamic link)
157157
run: tox
@@ -194,22 +194,22 @@ jobs:
194194
with:
195195
submodules: recursive
196196
fetch-depth: 0 # Fetch everything to get accurately versioned tag.
197-
- uses: actions/setup-python@v2
197+
- uses: actions/setup-python@v5
198198
name: Install Python
199199
- name: Install cibuildwheel twine wheel
200200
run: python -m pip install cibuildwheel twine wheel
201201
- name: Install build dependencies (Macos)
202202
run: brew install nasm
203203
if: runner.os == 'macOS'
204204
- name: Set MSVC developer prompt
205-
uses: ilammy/msvc-dev-cmd@v1.6.0
205+
uses: ilammy/msvc-dev-cmd@v1
206206
if: runner.os == 'Windows'
207207
- name: Install nasm (Windows)
208-
uses: ilammy/setup-nasm@v1.2.0
208+
uses: ilammy/setup-nasm@v1
209209
if: runner.os == 'Windows'
210210
- name: Set up QEMU
211211
if: ${{runner.os == 'Linux' && matrix.cibw_archs_linux == 'aarch64'}}
212-
uses: docker/setup-qemu-action@v1.0.1
212+
uses: docker/setup-qemu-action@v3
213213
with:
214214
platforms: arm64
215215
- name: Build wheels

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "src/isal/isa-l"]
22
path = src/isal/isa-l
3-
url = https://github.com/rhpvorderman/isa-l.git
3+
url = https://github.com/intel/isa-l.git

CHANGELOG.rst

+9
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ Changelog
77
.. This document is user facing. Please word the changes in such a way
88
.. that users understand how the changes affect the new version.
99
10+
11+
version 1.7.2
12+
-----------------
13+
+ Use upstream ISA-L version 2.31.1 which includes patches to make
14+
installation on MacOS ARM64 possible.
15+
+ Fix a bug where bytes were copied in the wrong order on big endian
16+
architectures. Fixes test failures on s390x.
17+
+ Enable building on GNU/Hurd platforms.
18+
1019
version 1.7.1
1120
-----------------
1221
+ Fix a bug where flushing files when writing in threaded mode did not work

docs/conf.py

-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
# a list of builtin themes.
4343
#
4444
html_theme = 'sphinx_rtd_theme'
45-
html_theme_options = dict(
46-
display_version=True,
47-
)
4845

4946
# Add any paths that contain custom static files (such as style sheets) here,
5047
# relative to this directory. They are copied after the builtin static files,

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
sys.platform.startswith("netbsd"))
2727
SYSTEM_IS_UNIX = (sys.platform.startswith("linux") or
2828
sys.platform.startswith("darwin") or
29+
sys.platform.startswith("gnu") or
2930
SYSTEM_IS_BSD)
3031
SYSTEM_IS_WINDOWS = sys.platform.startswith("win")
3132

src/isal/_version.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# This file is part of python-isal which is distributed under the
66
# PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2.
77

8-
__version__: int
8+
__version__: str

src/isal/isa-l

Submodule isa-l updated 159 files

src/isal/isal_shared.h

+7
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,15 @@ static int bitbuffer_copy(struct inflate_state *state, char *to, size_t n){
207207
int remainder = bits_in_buffer % 8;
208208
// Shift the 8-byte bitbuffer read_in so that the bytes are aligned.
209209
uint64_t remaining_bytes = state->read_in >> remainder;
210+
#if PY_BIG_ENDIAN
211+
char *remaining_buffer = (char *)&remaining_bytes;
212+
for (int i = 0; i < n; ++i) {
213+
to[i] = remaining_buffer[7-i];
214+
}
215+
#else
210216
// memcpy works because of little-endianness
211217
memcpy(to, &remaining_bytes, n);
218+
#endif
212219
return 0;
213220
}
214221

src/isal/isal_zlibmodule.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ PyDoc_STRVAR(isal_zlib_crc32_combine__doc__,
266266
" crc2\n"
267267
" the second crc32 checksum\n"
268268
" crc2_length\n"
269-
" the lenght of the data block crc2 was calculated from\n"
269+
" the length of the data block crc2 was calculated from\n"
270270
);
271271

272272

@@ -1643,7 +1643,7 @@ static inline uint32_t load_u32_le(void *address) {
16431643
static inline uint16_t load_u16_le(void *address) {
16441644
#if PY_BIG_ENDIAN
16451645
uint8_t *mem = address;
1646-
return mem[0] | (mem[1] << 8) | (mem[2] << 16) | (mem[3] << 24);
1646+
return mem[0] | (mem[1] << 8);
16471647
#else
16481648
return *(uint16_t *)address;
16491649
#endif

0 commit comments

Comments
 (0)