From 2377f8b18bf6924eb41b06b670b4755be4ccf2ade33984876aaa38518f767292 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 14 Feb 2021 00:05:37 +0000 Subject: [PATCH] Accepting request 872034 from home:bnavigator:branches:devel:languages:python - Update to 2.10.60 * no changelog - Skip NumPy tests on pyhton36 flavor. Due to NEP29, python36-numpy is being dropped in TW, but it is just optional for construct. OBS-URL: https://build.opensuse.org/request/show/872034 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=37 --- construct-2.10.60.tar.gz | 3 +++ python-construct.changes | 8 ++++++++ python-construct.spec | 16 +++++++++++----- v2.10.56.tar.gz | 3 --- 4 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 construct-2.10.60.tar.gz delete mode 100644 v2.10.56.tar.gz diff --git a/construct-2.10.60.tar.gz b/construct-2.10.60.tar.gz new file mode 100644 index 0000000..099385a --- /dev/null +++ b/construct-2.10.60.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c6c080a422e9ff384aac8259b1d1a0212921cfcd50dc9a5dbdf869cbd176655 +size 1185983 diff --git a/python-construct.changes b/python-construct.changes index 2ec0b7f..7c4e967 100644 --- a/python-construct.changes +++ b/python-construct.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +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 + is being dropped in TW, but it is just optional for construct. + ------------------------------------------------------------------- Tue Jun 23 14:27:05 UTC 2020 - Benjamin Greiner diff --git a/python-construct.spec b/python-construct.spec index 5e45172..e9df8ee 100644 --- a/python-construct.spec +++ b/python-construct.spec @@ -1,7 +1,7 @@ # # spec file for package python # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,26 +26,30 @@ %endif %define skip_python2 1 Name: python-construct%{?psuffix} -Version: 2.10.56 +Version: 2.10.60 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 +Source: https://github.com/construct/construct/archive/v%{version}.tar.gz#/construct-%{version}.tar.gz Patch0: split_debug.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-arrow +Recommends: python-cloudpickle +Recommends: python-lz4 Recommends: python-numpy Recommends: python-ruamel.yaml BuildArch: noarch %if %{with test} BuildRequires: %{python_module arrow} -BuildRequires: %{python_module numpy} +BuildRequires: %{python_module cloudpickle} +BuildRequires: %{python_module lz4} BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module pytest} BuildRequires: %{python_module ruamel.yaml} +BuildRequires: %{python_module numpy if (%python-base without python36-base)} %endif %python_subpackages @@ -80,7 +84,9 @@ rm -rf tests/deprecated_gallery %if %{with test} # local source dir is needed for tests export PYTHONPATH=$(pwd) -%pytest --benchmark-disable +# Don't test with NumPy in the python36 flavor, because python36-numpy is not in TW anymore +python36_donttest="numpy or test_overall_parse or test_overall_build" +%pytest --benchmark-disable ${$python_donttest:+ -k "not (${$python_donttest})"} %endif %if %{without test} diff --git a/v2.10.56.tar.gz b/v2.10.56.tar.gz deleted file mode 100644 index 5b62cd3..0000000 --- a/v2.10.56.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7fa228d6547e3a2cbf1af7afbce5a11ae0b2b83d5f4a941ad0cf8c0eefc7665d -size 1184110