Sync from SUSE:SLFO:Main python-cbor2 revision bdc0ce625f16830ab4c8e8f81f6ee6aa
This commit is contained in:
commit
70ac062191
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
cbor2-5.5.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
cbor2-5.5.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
104
python-cbor2.changes
Normal file
104
python-cbor2.changes
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 14 09:18:38 UTC 2023 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- update to 5.5.1:
|
||||||
|
* Fixed ``CBORSimpleValue`` allowing the use of reserved values
|
||||||
|
(24 to 31) which resulted in invalid byte sequences
|
||||||
|
* Fixed encoding of simple values from 20 to 23 producing the
|
||||||
|
wrong byte sequences
|
||||||
|
* The ``cbor2.encoder``, ``cbor2.decoder`` or ``cbor2.types``
|
||||||
|
modules were deprecated – import their contents directly
|
||||||
|
from ``cbor2`` from now on. The old modules will be removed
|
||||||
|
in the next major release.
|
||||||
|
* Added support for Python 3.12
|
||||||
|
* Added type annotations
|
||||||
|
* Dropped support for Python 3.7
|
||||||
|
* Fixed bug in the ``fp`` attribute of the built-in version of
|
||||||
|
``CBORDecoder`` and ``CBOREncoder`` where the getter returns
|
||||||
|
an invalid pointer if the ``read`` method of the file was a
|
||||||
|
built-in method
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 11 13:37:55 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 7 23:33:26 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 5.4.6:
|
||||||
|
* Fix tag decoding error
|
||||||
|
* fix potential memory leak
|
||||||
|
* Bump requirement to 3.7+
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 15 17:50:18 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 5.4.2:
|
||||||
|
* Fix segfault when initializing CBORTag with incorrect arguments
|
||||||
|
* Fix sphinx build warnings
|
||||||
|
* Fix SystemErrors when using C-backend, meaningful exceptions now raised
|
||||||
|
* Fix precision loss when decoding base10 decimal fractions
|
||||||
|
* Made CBORTag handling consistent between python and C-module
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 8 12:53:06 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 5.4.0:
|
||||||
|
* Added new feature stringrefs, which makes repetitive dictionary structures
|
||||||
|
more compact. Use with care since support for this is rare in other CBOR
|
||||||
|
implementations.
|
||||||
|
* This release includes some bugfixes around decoding invalid data, which may
|
||||||
|
improve security on decoding untrusted data.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 22 20:17:32 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 5.2.0:
|
||||||
|
* Final version tested with Python 2.7 and 3.5
|
||||||
|
* README: Announce deprecation of Python 2.7, 3.5
|
||||||
|
* README: More detail and examples
|
||||||
|
* Bugfix: Fix segfault on loading huge arrays with C-backend (Sekenre)
|
||||||
|
* Build system: Allow packagers to force C-backend building or disable using env var (jameshilliard)
|
||||||
|
* Feature: :module:`cbor2.tool` Command line diagnostic tool (Sekenre)
|
||||||
|
* Feature: Ignore semantic tag used for file magic 55799 AKA "Self-Described CBOR" (kalcutter)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 21 10:06:22 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 5.1.2
|
||||||
|
* Refcount bug in C lib causing intermittent segfaults on shutdown
|
||||||
|
* Fractional seconds parsing in datetimes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 30 12:59:56 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- update to version 5.1.0
|
||||||
|
* Minor API change :class:`CBORSimpleValue` is now a subclass of namedtuple and allows
|
||||||
|
all numeric comparisons. This brings functional parity between C and Python modules.
|
||||||
|
* Fixes for C-module on big-endian systems including floating point decoding, smallint encoding,
|
||||||
|
and boolean argument handling. Tested on s390x and MIPS32.
|
||||||
|
* Increase version requred of setuptools during install due to unicode errors.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 9 08:31:26 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- On python3 this package is compiled, so mark it such
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 24 13:45:03 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- update to version 5.0.1
|
||||||
|
* Fix deprecation warning on python 3.7, 3.8
|
||||||
|
* BACKWARD INCOMPATIBLE CBOR does not have a bare DATE type,
|
||||||
|
encoding dates as datetimes is disabled by default
|
||||||
|
* few major changes in the API, see docs/versionhistory.rst
|
||||||
|
* Optional Pure C implementation by waveform80 that functions
|
||||||
|
identically to the pure Python implementation
|
||||||
|
* Drop Python 3.3 and 3.4 support from the build process
|
||||||
|
* Added support for encoding and decoding IPv4 and IPv6 addresses
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 19 02:42:46 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Initial spec for v4.1.2
|
66
python-cbor2.spec
Normal file
66
python-cbor2.spec
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-cbor2
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
Name: python-cbor2
|
||||||
|
Version: 5.5.1
|
||||||
|
Release: 0
|
||||||
|
Summary: Pure Python CBOR (de)serializer with extensive tag support
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/agronholm/cbor2
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/c/cbor2/cbor2-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module hypothesis}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module setuptools >= 61}
|
||||||
|
BuildRequires: %{python_module setuptools_scm >= 6.4}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
Pure Python CBOR (de)serializer with extensive tag support
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n cbor2-%{version}
|
||||||
|
# Remove test dependency on pytest-cov
|
||||||
|
sed -i 's/--cov//' pyproject.toml
|
||||||
|
|
||||||
|
%build
|
||||||
|
export LANG=en_US.UTF8
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
export LANG=en_US.UTF8
|
||||||
|
%pyproject_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
|
%check
|
||||||
|
export LANG=en_US.UTF8
|
||||||
|
%pytest_arch
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE.txt
|
||||||
|
%{python_sitearch}/*.so
|
||||||
|
%{python_sitearch}/cbor2
|
||||||
|
%{python_sitearch}/cbor2*-info
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user