Accepting request 950575 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/950575 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zstandard?expand=0&rev=6
This commit is contained in:
commit
329cc1543f
@ -1,3 +1,91 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 1 22:44:25 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Correctly test the installed solib
|
||||
- Skip python2 on SLE/Leap: no longer supported
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 30 21:20:18 UTC 2022 - Sarah Kriesch <sarah.kriesch@opensuse.org>
|
||||
|
||||
- update to 0.17.0
|
||||
* Python 3.9 wheels are now provided.
|
||||
* Support for Python 3.5 has been dropped.
|
||||
* Python 3.6 is now the minimum required Python version.
|
||||
* Bundled zstandard library upgraded from 1.4.5 to 1.5.1.
|
||||
* The bundled zstandard library is now using the single C source
|
||||
file distribution. The 2 main header files are still present,
|
||||
as these are needed by CFFI to generate the CFFI bindings.
|
||||
* PyBuffer instances are no longer checked to be C contiguous and
|
||||
have a single dimension. The former was redundant with what
|
||||
PyArg_ParseTuple() already did and the latter is not necessary
|
||||
in practice because very few extension modules create buffers
|
||||
with more than 1 dimension. (#124)
|
||||
* Added Python typing stub file for the zstandard module. (#120)
|
||||
* The make_cffi.py script should now respect the CC environment
|
||||
variable for locating the compiler. (#103)
|
||||
* CI now properly uses the cffi backend when running all tests.
|
||||
* train_dictionary() has been rewritten to use the fastcover APIs
|
||||
and to consistently call ZDICT_optimizeTrainFromBuffer_fastCover()
|
||||
instead of different C APIs depending on what arguments were passed.
|
||||
The function also now accepts arguments f, split_point, and accel,
|
||||
which are parameters unique to fastcover.
|
||||
* CI now tests and builds wheels for Python 3.9.
|
||||
* zstd.c file renamed to c-ext/backend_c.c.
|
||||
* All built/installed Python modules are now in the zstandard package.
|
||||
Previously, there were modules in other packages. (#115)
|
||||
* C source code is now automatically formatted with clang-format.
|
||||
* ZstdCompressor.stream_writer(), ZstdCompressor.stream_reader(),
|
||||
ZstdDecompressor.stream_writer(), and ZstdDecompressor.stream_reader()
|
||||
now accept a closed argument to control whether the underlying stream
|
||||
should be closed when the ZstdCompressionWriter, ZstdCompressReader,
|
||||
ZstdDecompressionWriter, or ZstdDecompressionReader is closed. (#76)
|
||||
* There is now a zstandard.open() function for returning a file object
|
||||
with zstd (de)compression. (#64)
|
||||
* The zstandard module now exposes a backend_features attribute
|
||||
containing a set of strings denoting optional features present in that
|
||||
backend. This can be used to sniff feature support by performing a
|
||||
string lookup instead of sniffing for API presence or behavior.
|
||||
* Python docstrings have been moved from the C backend to the CFFI backend.
|
||||
Sphinx docs have been updated to generate API documentation via the CFFI
|
||||
backend. Documentation for Python APIs is now fully defined via Python
|
||||
docstrings instead of spread across Sphinx ReST files and source code.
|
||||
* ZstdCompressionParameters now exposes a strategy property.
|
||||
* There are now compress() and decompress() convenience functions on the
|
||||
zstandard module. These are simply wrappers around the corresponding APIs
|
||||
on ZstdCompressor and ZstdDecompressor.
|
||||
* The deprecated CompressionParameters type alias to ZstdCompressionParamaters
|
||||
has been removed. Use ZstdCompressionParameters.
|
||||
* setup.py now recognizes a ZSTD_EXTRA_COMPILER_ARGS environment variable to
|
||||
specify additional compiler arguments 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.
|
||||
* ZstdCompressor.multi_compress_to_buffer() and ZstdDecompressor.multi_decompress_to_buffer()
|
||||
are no longer available when linking against a system zstd library.
|
||||
These experimental features are only available when building against the
|
||||
bundled single file zstd C source file distribution. (#106)
|
||||
* The .pyi type annotations file has replaced various default argument
|
||||
values with ....
|
||||
* manylinux2014_aarch64 wheels are now being produced for CPython 3.6+. (#145).
|
||||
* Wheels are now being produced for CPython 3.10.
|
||||
* Arguments to ZstdCompressor() and ZstdDecompressor() are now all optional in
|
||||
the C backend and an explicit None value is accepted. Before, the C backend
|
||||
wouldn’t accept an explicit None value (but the CFFI backend would).
|
||||
The new behavior should be consistent between the backends. (#153)
|
||||
* The C backend now exposes the symbols ZstdCompressionReader, ZstdCompressionWriter,
|
||||
ZstdDecompressionReader, and ZstdDecompressionWriter. This should match the behavior
|
||||
of the CFFI backend. (#165)
|
||||
* ZstdCompressionWriter and ZstdDecompressionWriter now
|
||||
implement __iter__ and __next__, which always raise io.UnsupportedOperation.
|
||||
* Documentation on thread safety has been updated to note that derived objects like
|
||||
ZstdCompressionWriter have the same thread unsafety as the contexts they were
|
||||
derived from. (#166)
|
||||
* The HASHLOG3_MAX constant has been removed since it is no longer defined in zstd 1.5.1.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 21 08:39:31 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-zstandard
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -16,9 +16,10 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-zstandard
|
||||
Version: 0.14.0
|
||||
Version: 0.17.0
|
||||
Release: 0
|
||||
Summary: Zstandard bindings for Python
|
||||
License: BSD-3-Clause
|
||||
@ -36,6 +37,8 @@ Requires: zstd
|
||||
Conflicts: python-zstd
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module cffi >= 1.11}
|
||||
BuildRequires: %{python_module hypothesis}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@ -55,12 +58,14 @@ export CFLAGS="%{optflags}"
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
# remove srcdir for tests collection of installed lib
|
||||
mv zstandard zstandard.moved
|
||||
%pytest_arch
|
||||
|
||||
%files %{python_files}
|
||||
%doc NEWS.rst README.rst
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitearch}/*
|
||||
%{python_sitearch}/zstandard
|
||||
%{python_sitearch}/zstandard-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9052398da52e8702cf9929999c8986b0f68b18c793e309cd8dff5cb7863d7652
|
||||
size 676761
|
3
zstandard-0.17.0.tar.gz
Normal file
3
zstandard-0.17.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fa9194cb91441df7242aa3ddc4cb184be38876cb10dd973674887f334bafbfb6
|
||||
size 629456
|
Loading…
x
Reference in New Issue
Block a user