From a5d997ba410ac706b29cfcba557fdac0fb0e0a3b9513df79e13d94a7aca9ac61 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 23 Jan 2021 22:27:23 +0000 Subject: [PATCH 1/2] Accepting request 866240 from home:bnavigator:branches:devel:languages:python - Update to 0.9.3 * Qualify on Python 3.9 * Qualify on OpenJPEG 2.4.0 * Add support for multithreaded writes. - Always require importlib_resources for tests: the new python36 flavor on TW needs it, the python38 flavor is okay with it being installed. OBS-URL: https://build.opensuse.org/request/show/866240 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Glymur?expand=0&rev=15 --- Glymur-0.9.2.tar.gz | 3 --- Glymur-0.9.3.tar.gz | 3 +++ python-Glymur.changes | 11 +++++++++++ python-Glymur.spec | 17 ++++++++--------- 4 files changed, 22 insertions(+), 12 deletions(-) delete mode 100644 Glymur-0.9.2.tar.gz create mode 100644 Glymur-0.9.3.tar.gz diff --git a/Glymur-0.9.2.tar.gz b/Glymur-0.9.2.tar.gz deleted file mode 100644 index 8d66163..0000000 --- a/Glymur-0.9.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9588a9918fac1b4ccffce0f5ca944ae26a12fc26b5ca68ed3f3fcbcce36477ad -size 3418731 diff --git a/Glymur-0.9.3.tar.gz b/Glymur-0.9.3.tar.gz new file mode 100644 index 0000000..59b7e03 --- /dev/null +++ b/Glymur-0.9.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71acacd31807109f52f4526d0539c6171b8d67c357555e936b733c1c3529754a +size 3418726 diff --git a/python-Glymur.changes b/python-Glymur.changes index 44f9eff..273292a 100644 --- a/python-Glymur.changes +++ b/python-Glymur.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Jan 23 12:18:53 UTC 2021 - Benjamin Greiner + +- Update to 0.9.3 + * Qualify on Python 3.9 + * Qualify on OpenJPEG 2.4.0 + * Add support for multithreaded writes. +- Always require importlib_resources for tests: the new python36 + flavor on TW needs it, the python38 flavor is okay with it being + installed. + ------------------------------------------------------------------- Tue Jul 14 16:55:39 UTC 2020 - Matej Cepl diff --git a/python-Glymur.spec b/python-Glymur.spec index 0d24a62..1a6c573 100644 --- a/python-Glymur.spec +++ b/python-Glymur.spec @@ -1,7 +1,7 @@ # # spec file for package python-Glymur # -# 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 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-Glymur -Version: 0.9.2 +Version: 0.9.3 Release: 0 Summary: Tools for accessing JPEG2000 files License: MIT @@ -36,13 +36,11 @@ Requires(postun): update-alternatives Recommends: python-lxml BuildArch: noarch # SECTION test requirements +BuildRequires: %{python_module importlib_resources} BuildRequires: %{python_module lxml} BuildRequires: %{python_module numpy >= 1.7.1} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scikit-image} -%if 0%{?suse_version} <= 1500 -BuildRequires: %{python_module importlib_resources} -%endif # /SECTION %python_subpackages @@ -57,10 +55,11 @@ Python interface to the OpenJPEG library %install %python_install -# don't install tests -rm -rf %{buildroot}%{python_sitelib}/tests %python_clone -a %{buildroot}%{_bindir}/jp2dump -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%{python_expand # don't install tests +rm -rf %{buildroot}%{$python_sitelib}/tests +%fdupes %{buildroot}%{$python_sitelib} +} %check %pytest @@ -76,6 +75,6 @@ rm -rf %{buildroot}%{python_sitelib}/tests %license LICENSE.txt %python_alternative %{_bindir}/jp2dump %{python_sitelib}/glymur* -%{python_sitelib}/Glymur* +%{python_sitelib}/Glymur-%{version}*-info %changelog From e10cf3cd0061099425dd7e75f6eaae19981f132539f9d4884fa80a36b3cde9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 12 Feb 2021 10:56:44 +0000 Subject: [PATCH 2/2] Accepting request 871229 from home:bnavigator:branches:devel:languages:python - NEP 29: NumPy dropped Python 3.6 -- skip python36 build in TW - Make importlib_resources conditional for Python < 3.7 (SLE/Leap) OBS-URL: https://build.opensuse.org/request/show/871229 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Glymur?expand=0&rev=16 --- python-Glymur.changes | 6 ++++++ python-Glymur.spec | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python-Glymur.changes b/python-Glymur.changes index 273292a..77f9dfa 100644 --- a/python-Glymur.changes +++ b/python-Glymur.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 11 00:02:44 UTC 2021 - Benjamin Greiner + +- NEP 29: NumPy dropped Python 3.6 -- skip python36 build in TW +- Make importlib_resources conditional for Python < 3.7 (SLE/Leap) + ------------------------------------------------------------------- Sat Jan 23 12:18:53 UTC 2021 - Benjamin Greiner diff --git a/python-Glymur.spec b/python-Glymur.spec index 1a6c573..b7b71b9 100644 --- a/python-Glymur.spec +++ b/python-Glymur.spec @@ -18,6 +18,8 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +# NEP 29: NumPy dropped Python 3.6 +%define skip_python36 1 Name: python-Glymur Version: 0.9.3 Release: 0 @@ -36,7 +38,8 @@ Requires(postun): update-alternatives Recommends: python-lxml BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module importlib_resources} +# (importlib_resources for Leap's Python 3.6) +BuildRequires: %{python_module importlib_resources if %python-base < 3.7} BuildRequires: %{python_module lxml} BuildRequires: %{python_module numpy >= 1.7.1} BuildRequires: %{python_module pytest}