From 01db3c0b1b005ee11cd0c857052582bc9fa61961c69a43b884d283b34c4b9956 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 15 Dec 2023 09:42:11 +0000 Subject: [PATCH 1/2] Accepting request 1133145 from home:pgajdos:python pmmu version update OBS-URL: https://build.opensuse.org/request/show/1133145 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cbor2?expand=0&rev=21 --- cbor2-5.4.6.tar.gz | 3 --- cbor2-5.5.1.tar.gz | 3 +++ python-cbor2.changes | 24 ++++++++++++++++++++++++ python-cbor2.spec | 11 +++++++---- 4 files changed, 34 insertions(+), 7 deletions(-) delete mode 100644 cbor2-5.4.6.tar.gz create mode 100644 cbor2-5.5.1.tar.gz diff --git a/cbor2-5.4.6.tar.gz b/cbor2-5.4.6.tar.gz deleted file mode 100644 index 7ebd404..0000000 --- a/cbor2-5.4.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b893500db0fe033e570c3adc956af6eefc57e280026bd2d86fd53da9f1e594d7 -size 86909 diff --git a/cbor2-5.5.1.tar.gz b/cbor2-5.5.1.tar.gz new file mode 100644 index 0000000..8ebaf1c --- /dev/null +++ b/cbor2-5.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9e192f461a9f8f6082df28c035b006d153904213dc8640bed8a72d72bbc9475 +size 94221 diff --git a/python-cbor2.changes b/python-cbor2.changes index 9deddbd..58b3a53 100644 --- a/python-cbor2.changes +++ b/python-cbor2.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Thu Dec 14 09:18:38 UTC 2023 - Petr Gajdos + +- 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 + * **5.5.0** (2023-10-21) + * 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 diff --git a/python-cbor2.spec b/python-cbor2.spec index f464b60..2eed162 100644 --- a/python-cbor2.spec +++ b/python-cbor2.spec @@ -18,13 +18,14 @@ %{?sle15_python_module_pythons} Name: python-cbor2 -Version: 5.4.6 +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} @@ -38,7 +39,7 @@ BuildRequires: python-rpm-macros Pure Python CBOR (de)serializer with extensive tag support %prep -%setup -q -n cbor2-%{version} +%autosetup -p1 -n cbor2-%{version} # Remove test dependency on pytest-cov sed -i 's/--cov//' pyproject.toml @@ -49,7 +50,7 @@ export LANG=en_US.UTF8 %install export LANG=en_US.UTF8 %pyproject_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check export LANG=en_US.UTF8 @@ -58,6 +59,8 @@ export LANG=en_US.UTF8 %files %{python_files} %doc README.rst %license LICENSE.txt -%{python_sitearch}/* +%{python_sitearch}/*.so +%{python_sitearch}/cbor2 +%{python_sitearch}/cbor2*-info %changelog From 79e3c43b1b4d6489584dbf108c04539a2d6ae57ef6d580721a077f00a8ff2c0f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 15 Dec 2023 09:42:50 +0000 Subject: [PATCH 2/2] =?UTF-8?q?(24=20to=2031)=20which=20resulted=20in=20in?= =?UTF-8?q?valid=20byte=20sequences=20=20=20=20=20modules=20were=20depreca?= =?UTF-8?q?ted=20=E2=80=93=20import=20their=20contents=20directly=20=20=20?= =?UTF-8?q?=20=20from=20``cbor2``=20from=20now=20on.=20The=20old=20modules?= =?UTF-8?q?=20will=20be=20removed=20=20=20=20=20in=20the=20next=20major=20?= =?UTF-8?q?release.=20=20=20=20=20``CBORDecoder``=20and=20``CBOREncoder``?= =?UTF-8?q?=20where=20the=20getter=20returns=20=20=20=20=20an=20invalid=20?= =?UTF-8?q?pointer=20if=20the=20``read``=20method=20of=20the=20file=20was?= =?UTF-8?q?=20a=20=20=20=20=20built-in=20method=20=20=20*=20Bump=20require?= =?UTF-8?q?ment=20to=203.7+=20=20=20*=20Fix=20segfault=20when=20initializi?= =?UTF-8?q?ng=20CBORTag=20with=20incorrect=20arguments=20=20=20*=20Fix=20s?= =?UTF-8?q?phinx=20build=20warnings=20=20=20*=20Fix=20SystemErrors=20when?= =?UTF-8?q?=20using=20C-backend,=20meaningful=20exceptions=20now=20raised?= =?UTF-8?q?=20=20=20*=20Fix=20precision=20loss=20when=20decoding=20base10?= =?UTF-8?q?=20decimal=20fractions=20=20=20*=20Made=20CBORTag=20handling=20?= =?UTF-8?q?consistent=20between=20python=20and=20C-module=20=20=20*=20Feat?= =?UTF-8?q?ure:=20Ignore=20semantic=20tag=20used=20for=20file=20magic=2055?= =?UTF-8?q?799=20AKA=20"Self-Described=20CBOR"=20(kalcutter)=20=20=20*=20B?= =?UTF-8?q?ACKWARD=20INCOMPATIBLE=20CBOR=20does=20not=20have=20a=20bare=20?= =?UTF-8?q?DATE=20type,=20=20=20*=20Optional=20Pure=20C=20implementation?= =?UTF-8?q?=20by=20waveform80=20that=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cbor2?expand=0&rev=22 --- python-cbor2.changes | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/python-cbor2.changes b/python-cbor2.changes index 58b3a53..44e550d 100644 --- a/python-cbor2.changes +++ b/python-cbor2.changes @@ -3,24 +3,20 @@ Thu Dec 14 09:18:38 UTC 2023 - Petr Gajdos - update to 5.5.1: * Fixed ``CBORSimpleValue`` allowing the use of reserved values - (24 to 31) which resulted in - * invalid byte sequences + (24 to 31) which resulted in invalid byte sequences * Fixed encoding of simple values from 20 to 23 producing the wrong byte sequences - * **5.5.0** (2023-10-21) * 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. + 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 + ``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 @@ -33,17 +29,17 @@ Sat Jan 7 23:33:26 UTC 2023 - Dirk Müller - update to 5.4.6: * Fix tag decoding error * fix potential memory leak - * Bump requirement to 3.7+ + * Bump requirement to 3.7+ ------------------------------------------------------------------- Sat Jan 15 17:50:18 UTC 2022 - Dirk Müller - 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 + * 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 @@ -65,7 +61,7 @@ Thu Apr 22 20:17:32 UTC 2021 - Dirk Müller * 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) + * 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 @@ -94,10 +90,10 @@ Fri Jan 24 13:45:03 UTC 2020 - Marketa Calabkova - 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, + * 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 + * 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