- Update to 2.10.56:

* drop support for python2
  * no upstream changelog
- Rebase patch split_debug.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=33
This commit is contained in:
Tomáš Chvátal 2020-02-12 12:21:40 +00:00 committed by Git OBS Bridge
parent 60e3e866fe
commit 3cfaeef8f3
5 changed files with 28 additions and 22 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Feb 12 11:59:37 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 2.10.56:
* drop support for python2
* no upstream changelog
- Rebase patch split_debug.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Dec 14 22:15:42 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de> Sat Dec 14 22:15:42 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python # spec file for package python
# #
# Copyright (c) 2019 SUSE LLC # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,13 +19,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test" %if "%{flavor}" == "test"
%bcond_without test
%define psuffix -test %define psuffix -test
%bcond_without test
%else %else
%bcond_with test %bcond_with test
%endif %endif
%define skip_python2 1
Name: python-construct%{?psuffix} Name: python-construct%{?psuffix}
Version: 2.9.45 Version: 2.10.56
Release: 0 Release: 0
Summary: A declarative parser/builder for binary data Summary: A declarative parser/builder for binary data
License: MIT License: MIT
@ -35,18 +36,16 @@ Patch0: split_debug.patch
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-arrow
Recommends: python-numpy
Recommends: python-ruamel.yaml
BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module arrow} BuildRequires: %{python_module arrow}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six} BuildRequires: %{python_module ruamel.yaml}
BuildRequires: python2-enum34
%endif
Requires: python-arrow
Requires: python-six
BuildArch: noarch
%ifpython2
Requires: python-enum34
%endif %endif
%python_subpackages %python_subpackages

View File

@ -1,7 +1,7 @@
Index: construct-2.9.45/construct/__init__.py Index: construct-2.10.56/construct/__init__.py
=================================================================== ===================================================================
--- construct-2.9.45.orig/construct/__init__.py --- construct-2.10.56.orig/construct/__init__.py
+++ construct-2.9.45/construct/__init__.py +++ construct-2.10.56/construct/__init__.py
@@ -21,7 +21,6 @@ Hands-on example: @@ -21,7 +21,6 @@ Hands-on example:
from construct.core import * from construct.core import *
@ -17,8 +17,8 @@ Index: construct-2.9.45/construct/__init__.py
- 'Debugger', - 'Debugger',
'Default', 'Default',
'Double', 'Double',
'Embedded', 'Enum',
@@ -144,7 +142,6 @@ __all__ = [ @@ -143,7 +141,6 @@ __all__ = [
'possiblestringencodings', 'possiblestringencodings',
'Prefixed', 'Prefixed',
'PrefixedArray', 'PrefixedArray',
@ -26,14 +26,13 @@ Index: construct-2.9.45/construct/__init__.py
'ProcessRotateLeft', 'ProcessRotateLeft',
'ProcessXor', 'ProcessXor',
'RangeError', 'RangeError',
@@ -207,3 +204,10 @@ __all__ = [ @@ -206,3 +203,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__ += ["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 (32,64) for bln in "bln"] __all__ += ["Float%s%s" % (n,bln) for n in (16,32,64) for bln in "bln"]
+ +
+try: +try:
+ from construct.debug import * + from construct.debug import *
+ __all__ += ['Debugger', 'Probe'] + __all__ += ['Debugger', 'Probe']
+except ImportError: +except ImportError:
+ pass + pass
+

3
v2.10.56.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7fa228d6547e3a2cbf1af7afbce5a11ae0b2b83d5f4a941ad0cf8c0eefc7665d
size 1184110

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:28718d4d598acaaf5eca201037c47b234166c92a355cc3d7045646554bb5e7b7
size 1042299