15
0

- 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
  * documentation updates
  * no changelog available
- Skip NumPy tests on pyhton36 flavor. Due to NEP29, python36-numpy
  Necessary due change in pytest macro gh#openSUSE/python-rpm-macros#48

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=43
This commit is contained in:
2023-12-29 18:15:59 +00:00
committed by Git OBS Bridge
parent b5671d675d
commit a91814eb48
5 changed files with 38 additions and 22 deletions

View File

@@ -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