Skip to content

Commit cb7e182

Browse files
authored
Merge pull request #39 from pycompression/release_0.4.2
Release 0.4.2
2 parents 2e89c3c + 94d5954 commit cb7e182

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ jobs:
6262
- "pypy-3.10"
6363
os: ["ubuntu-latest"]
6464
include:
65-
- os: "macos-latest"
65+
- os: "macos-latest" # For m1 macos
66+
python-version: "3.8"
67+
- os: "macos-13" # for x86 macos
6668
python-version: "3.8"
6769
- os: "windows-latest"
6870
python-version: "3.8"

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ 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+
version 0.4.2
11+
-----------------
12+
+ Fix a reference counting error that happened on module initialization and
13+
triggered an error in the CPython debug build.
14+
+ Fix a setup.py error that was triggered on MacOS ARM64.
15+
1016
version 0.4.1
1117
-----------------
1218
+ Fix a bug where streams that were passed to gzip_ng_threaded.open where

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def build_zlib_ng():
105105
run_args = dict(cwd=build_dir, env=build_env)
106106
if sys.platform == "darwin": # Cmake does not work properly
107107
subprocess.run([os.path.join(build_dir, "configure")], **run_args)
108-
subprocess.run(["gmake", "libz-ng.a"], **run_args)
108+
make_program = "gmake" if shutil.which("gmake") else "make"
109+
subprocess.run([make_program, "libz-ng.a"], **run_args)
109110
elif sys.platform == "linux":
110111
subprocess.run([os.path.join(build_dir, "configure")], **run_args)
111112
subprocess.run(["make", "libz-ng.a", "-j", str(cpu_count)], **run_args)
@@ -123,7 +124,7 @@ def build_zlib_ng():
123124

124125
setup(
125126
name="zlib-ng",
126-
version="0.4.1",
127+
version="0.4.2",
127128
description="Drop-in replacement for zlib and gzip modules using zlib-ng",
128129
author="Leiden University Medical Center",
129130
author_email="r.h.p.vorderman@lumc.nl", # A placeholder for now

src/zlib_ng/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# This file is part of python-zlib-ng which is distributed under the
66
# PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2.
77

8-
__version__ = "0.4.1"
8+
__version__ = "0.4.2"

src/zlib_ng/zlib_ngmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3061,6 +3061,7 @@ PyInit_zlib_ng(void)
30613061
ver = PyUnicode_FromString("1.2.12");
30623062
if (ver!= NULL) {
30633063
PyModule_AddObject(m, "ZLIB_VERSION", ver);
3064+
Py_INCREF(ver);
30643065
PyModule_AddObject(m, "ZLIB_RUNTIME_VERSION", ver);
30653066
}
30663067

0 commit comments

Comments
 (0)