From a91814eb48bcd397b74c2495abd5477ec5f178dcb2ddb1f70a1c5da2fa5bac64 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 29 Dec 2023 18:15:59 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=202.10.70:=20=20=20*=20all=20ex?= =?UTF-8?q?ceptions=20docstrings=20were=20defined.=20=20=20*=20stream=5Fsi?= =?UTF-8?q?ze=20stream=5Fiseof=20now=20raise=20properly=20StreamError=20?= =?UTF-8?q?=20=20*=20Keep=20track=20of=20offsets=20within=20substreams=20w?= =?UTF-8?q?here=20possible=20=20=20*=20Fix=20missing=20objects=20in=20Stru?= =?UTF-8?q?ct.=5Femitbuild's=20context=20=20=20*=20Fix=20ExprMixin=20for?= =?UTF-8?q?=20and/or=20being=20compiled=20as=20logical=20instead=20of=20?= =?UTF-8?q?=20=20=20=20bitwise=20=20=20*=20Issue=201046:=20Docs=20updated?= =?UTF-8?q?=20accordingly.=20=20=20*=20enum34=20module=20renamed=20to=20en?= =?UTF-8?q?um,=20etc.=20=20=20*=20Use=20builtin=20dict=20instead=20of=20co?= =?UTF-8?q?llections.OrderedDict=20for=20class=20=20=20=20=20Contain?= =?UTF-8?q?=E2=80=A6=20=20=20*=20Implement=20=5F=5Fgetstate=5F=5F=20and=20?= =?UTF-8?q?=5F=5Fsetstate=5F=5F=20on=20Container=20=20=20*=20documentation?= =?UTF-8?q?=20updates=20=20=20*=20no=20changelog=20available=20-=20Skip=20?= =?UTF-8?q?NumPy=20tests=20on=20pyhton36=20flavor.=20Due=20to=20NEP29,=20p?= =?UTF-8?q?ython36-numpy=20=20=20Necessary=20due=20change=20in=20pytest=20?= =?UTF-8?q?macro=20gh#openSUSE/python-rpm-macros#48?= 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-construct?expand=0&rev=43 --- construct-2.10.68.tar.gz | 3 --- construct-2.10.70.tar.gz | 3 +++ python-construct.changes | 24 ++++++++++++++++++++---- python-construct.spec | 16 ++++++++-------- split_debug.patch | 14 +++++++------- 5 files changed, 38 insertions(+), 22 deletions(-) delete mode 100644 construct-2.10.68.tar.gz create mode 100644 construct-2.10.70.tar.gz diff --git a/construct-2.10.68.tar.gz b/construct-2.10.68.tar.gz deleted file mode 100644 index 757864b..0000000 --- a/construct-2.10.68.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:196a4c7e73db0c86c7a8c6c6fc289b28be09a5b16f1d56aaeb0789badf540f25 -size 1190512 diff --git a/construct-2.10.70.tar.gz b/construct-2.10.70.tar.gz new file mode 100644 index 0000000..e077f23 --- /dev/null +++ b/construct-2.10.70.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea468f7970fe425e2190016875a1f5955d45753d4560e84c5921e8d575b237c2 +size 1196623 diff --git a/python-construct.changes b/python-construct.changes index bb2df8a..b425c39 100644 --- a/python-construct.changes +++ b/python-construct.changes @@ -1,29 +1,45 @@ +------------------------------------------------------------------- +Fri Dec 29 18:13:42 UTC 2023 - Dirk Müller + +- update to 2.10.70: + * all exceptions docstrings were defined. + * stream_size stream_iseof now raise properly StreamError + * Keep track of offsets within substreams where possible + * Fix missing objects in Struct._emitbuild's context + * Fix ExprMixin for and/or being compiled as logical instead of + bitwise + * Issue 1046: Docs updated accordingly. + * enum34 module renamed to enum, etc. + * Use builtin dict instead of collections.OrderedDict for class + Contain… + * Implement __getstate__ and __setstate__ on Container + ------------------------------------------------------------------- Sun Mar 27 11:07:33 UTC 2022 - Dirk Müller - update to 2.10.68: * declared compatibility with python 3.10 - * documentation updates + * documentation updates ------------------------------------------------------------------- Tue Oct 26 20:40:31 UTC 2021 - Dirk Müller - update to 2.10.67: - * no changelog available + * no changelog available ------------------------------------------------------------------- Sat Feb 13 22:25:12 UTC 2021 - Ben Greiner - Update to 2.10.60 * no changelog -- Skip NumPy tests on pyhton36 flavor. Due to NEP29, python36-numpy +- Skip NumPy tests on pyhton36 flavor. Due to NEP29, python36-numpy is being dropped in TW, but it is just optional for construct. ------------------------------------------------------------------- Tue Jun 23 14:27:05 UTC 2020 - Benjamin Greiner - Add source dir to PYTHONPATH just as upstream does. - Necessary due change in pytest macro gh#openSUSE/python-rpm-macros#48 + Necessary due change in pytest macro gh#openSUSE/python-rpm-macros#48 - don't benchmark, just run the tests once ------------------------------------------------------------------- diff --git a/python-construct.spec b/python-construct.spec index 3d43370..4e10c5c 100644 --- a/python-construct.spec +++ b/python-construct.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -24,16 +23,17 @@ %else %bcond_with test %endif -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-construct%{?psuffix} -Version: 2.10.68 +Version: 2.10.70 Release: 0 Summary: A declarative parser/builder for binary data License: MIT URL: https://github.com/construct/construct Source: https://github.com/construct/construct/archive/v%{version}.tar.gz#/construct-%{version}.tar.gz Patch0: split_debug.patch -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-arrow @@ -71,12 +71,12 @@ rm -rf tests/deprecated_gallery %build %if %{without test} -%python_build +%pyproject_wheel %endif %install %if %{without test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -94,7 +94,7 @@ python36_donttest="numpy or test_overall_parse or test_overall_build or test_com %license LICENSE %doc README.rst %{python_sitelib}/construct -%{python_sitelib}/construct-%{version}-py%{python_version}.egg-info +%{python_sitelib}/construct-%{version}.dist-info %endif %changelog diff --git a/split_debug.patch b/split_debug.patch index 93a4146..3edb98b 100644 --- a/split_debug.patch +++ b/split_debug.patch @@ -1,7 +1,7 @@ -Index: construct-2.10.56/construct/__init__.py +Index: construct-2.10.70/construct/__init__.py =================================================================== ---- construct-2.10.56.orig/construct/__init__.py -+++ construct-2.10.56/construct/__init__.py +--- construct-2.10.70.orig/construct/__init__.py ++++ construct-2.10.70/construct/__init__.py @@ -21,7 +21,6 @@ Hands-on example: from construct.core import * @@ -10,15 +10,15 @@ Index: construct-2.10.56/construct/__init__.py from construct.version import * from construct import lib -@@ -69,7 +68,6 @@ __all__ = [ +@@ -71,7 +70,6 @@ __all__ = [ 'ConstructError', 'Container', 'CString', - 'Debugger', 'Default', 'Double', - 'Enum', -@@ -143,7 +141,6 @@ __all__ = [ + 'EncryptedSym', +@@ -148,7 +146,6 @@ __all__ = [ 'possiblestringencodings', 'Prefixed', 'PrefixedArray', @@ -26,7 +26,7 @@ Index: construct-2.10.56/construct/__init__.py 'ProcessRotateLeft', 'ProcessXor', 'RangeError', -@@ -206,3 +203,9 @@ __all__ = [ +@@ -213,3 +210,9 @@ __all__ = [ ] __all__ += ["Int%s%s%s" % (n,us,bln) for n in (8,16,24,32,64) for us in "us" for bln in "bln"] __all__ += ["Float%s%s" % (n,bln) for n in (16,32,64) for bln in "bln"]