From 1b841cf16555fe588aea9f641bf134aa7cfc03d2 Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Sat, 27 Feb 2021 09:54:16 -0800 Subject: [PATCH] global: change version to 0.15.2 and release The main reason for the release is to publish macOS M1 wheels. There have been minimal changes since 0.15, so a minor version release is appropriate. --- c-ext/python-zstandard.h | 4 ++-- docs/news.rst | 12 ++++++++++-- rust-ext/src/lib.rs | 2 +- tests/test_module_attributes.py | 2 +- zstandard/__init__.py | 4 ++-- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/c-ext/python-zstandard.h b/c-ext/python-zstandard.h index 1d474227..936add72 100644 --- a/c-ext/python-zstandard.h +++ b/c-ext/python-zstandard.h @@ -29,8 +29,8 @@ #include #endif -/* Remember to change the string in zstandard/__init__ as well */ -#define PYTHON_ZSTANDARD_VERSION "0.16.0.dev0" +/* Remember to change the string in zstandard/__init__.py, rust-ext/src/lib.rs as well */ +#define PYTHON_ZSTANDARD_VERSION "0.15.2" typedef enum { compressorobj_flush_finish, diff --git a/docs/news.rst b/docs/news.rst index a516688f..1dbde7ce 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -74,8 +74,8 @@ Other Actions Not Blocking Release * API for ensuring max memory ceiling isn't exceeded. * Move off nose for testing. -0.16.0 (not yet released) -========================= +0.15.2 (released 2021-02-27) +============================ Backwards Compatibility Notes ----------------------------- @@ -94,6 +94,14 @@ Changes to use when compiling the C backend. * PyPy build and test coverage has been added to CI. * Added CI jobs for building against external zstd library. +* Wheels supporting macOS ARM/M1 devices are now being produced. +* References to Python 2 have been removed from the in-repo Debian packaging + code. +* Significant work has been made on a Rust backend. It is currently feature + complete but not yet optimized. We are not yet shipping the backend as part + of the distributed wheels until it is more mature. +* The ``.pyi`` type annotations file has replaced various default argument + values with ``...``. 0.15.1 (released 2020-12-31) ============================ diff --git a/rust-ext/src/lib.rs b/rust-ext/src/lib.rs index 20654d53..277dfe13 100644 --- a/rust-ext/src/lib.rs +++ b/rust-ext/src/lib.rs @@ -32,7 +32,7 @@ mod zstd_safe; use exceptions::ZstdError; -const VERSION: &'static str = "0.16.0.dev0"; +const VERSION: &'static str = "0.15.2"; #[pymodule] fn backend_rust(py: Python, module: &PyModule) -> PyResult<()> { diff --git a/tests/test_module_attributes.py b/tests/test_module_attributes.py index fe6a6e23..e977f6fa 100644 --- a/tests/test_module_attributes.py +++ b/tests/test_module_attributes.py @@ -7,7 +7,7 @@ class TestModuleAttributes(unittest.TestCase): def test_version(self): self.assertEqual(zstd.ZSTD_VERSION, (1, 4, 8)) - self.assertEqual(zstd.__version__, "0.16.0.dev0") + self.assertEqual(zstd.__version__, "0.15.2") def test_features(self): self.assertIsInstance(zstd.backend_features, set) diff --git a/zstandard/__init__.py b/zstandard/__init__.py index a01b7c10..0ff6ccc3 100644 --- a/zstandard/__init__.py +++ b/zstandard/__init__.py @@ -79,8 +79,8 @@ "cext, or cffi" % _module_policy ) -# Keep this in sync with python-zstandard.h. -__version__ = "0.16.0.dev0" +# Keep this in sync with python-zstandard.h, rust-ext/src/lib.rs. +__version__ = "0.15.2" _MODE_CLOSED = 0 _MODE_READ = 1