Skip to content

Release 0.4.2 #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ jobs:
- "pypy-3.10"
os: ["ubuntu-latest"]
include:
- os: "macos-latest"
- os: "macos-latest" # For m1 macos
python-version: "3.8"
- os: "macos-13" # for x86 macos
python-version: "3.8"
- os: "windows-latest"
python-version: "3.8"
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Changelog
.. This document is user facing. Please word the changes in such a way
.. that users understand how the changes affect the new version.

version 0.4.2
-----------------
+ Fix a reference counting error that happened on module initialization and
triggered an error in the CPython debug build.
+ Fix a setup.py error that was triggered on MacOS ARM64.

version 0.4.1
-----------------
+ Fix a bug where streams that were passed to gzip_ng_threaded.open where
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def build_zlib_ng():
run_args = dict(cwd=build_dir, env=build_env)
if sys.platform == "darwin": # Cmake does not work properly
subprocess.run([os.path.join(build_dir, "configure")], **run_args)
subprocess.run(["gmake", "libz-ng.a"], **run_args)
make_program = "gmake" if shutil.which("gmake") else "make"
subprocess.run([make_program, "libz-ng.a"], **run_args)
elif sys.platform == "linux":
subprocess.run([os.path.join(build_dir, "configure")], **run_args)
subprocess.run(["make", "libz-ng.a", "-j", str(cpu_count)], **run_args)
Expand All @@ -123,7 +124,7 @@ def build_zlib_ng():

setup(
name="zlib-ng",
version="0.4.1",
version="0.4.2",
description="Drop-in replacement for zlib and gzip modules using zlib-ng",
author="Leiden University Medical Center",
author_email="r.h.p.vorderman@lumc.nl", # A placeholder for now
Expand Down
2 changes: 1 addition & 1 deletion src/zlib_ng/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# This file is part of python-zlib-ng which is distributed under the
# PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2.

__version__ = "0.4.1"
__version__ = "0.4.2"
1 change: 1 addition & 0 deletions src/zlib_ng/zlib_ngmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3061,6 +3061,7 @@ PyInit_zlib_ng(void)
ver = PyUnicode_FromString("1.2.12");
if (ver!= NULL) {
PyModule_AddObject(m, "ZLIB_VERSION", ver);
Py_INCREF(ver);
PyModule_AddObject(m, "ZLIB_RUNTIME_VERSION", ver);
}

Expand Down