17
0

Accepting request 1172523 from devel:languages:python:numeric

- add sle15_python_module_pythons

- Update to 1.6.0
  * This release is a minor update to 1.6.x. It adds support for
    NumPy 2.0, which also keeping compatibility with NumPy
    1.22-1.26. It requires Cython 3.0; support for 0.29.x is
    dropped.
  ## Other noteworthy improvements:
  * Improved documentation for ``pywt.cwt``
  * The documentation was migrated to the PyData Sphinx Theme and
    the content organization improved
  * Releases on PyPI now include wheels for ``musllinux`` (x86-64
    and aarch64)
  * The test suite is now passing and tested in CI with
    Emscripten/Pyodide
  * Nightly builds will be available at
    https://anaconda.org/scientific-python-nightly-wheels/PyWavelets/
    going forward
- Release 1.5.0
  * This release is a minor update to 1.4.x. It adds support for
    Python 3.12 and drops support for Python 3.8. It also adds
    support for Cython 3.0.
  * PyWavelets now uses Meson as its build system, and meson-python
    as the build backend.

  + Highlights:
    * Added a test suite
- remove -O1 and --skip-build flags from the install command line
- first package

OBS-URL: https://build.opensuse.org/request/show/1172523
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyWavelets?expand=0&rev=12
This commit is contained in:
2024-05-08 09:39:38 +00:00
committed by Git OBS Bridge
4 changed files with 56 additions and 39 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6437af3ddf083118c26d8f97ab43b0724b956c9f958e9ea788659f6a2834ba93
size 4589677

View File

@@ -1,3 +1,34 @@
-------------------------------------------------------------------
Tue May 7 20:10:56 UTC 2024 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons
-------------------------------------------------------------------
Sun May 5 15:11:10 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update to 1.6.0
* This release is a minor update to 1.6.x. It adds support for
NumPy 2.0, which also keeping compatibility with NumPy
1.22-1.26. It requires Cython 3.0; support for 0.29.x is
dropped.
## Other noteworthy improvements:
* Improved documentation for ``pywt.cwt``
* The documentation was migrated to the PyData Sphinx Theme and
the content organization improved
* Releases on PyPI now include wheels for ``musllinux`` (x86-64
and aarch64)
* The test suite is now passing and tested in CI with
Emscripten/Pyodide
* Nightly builds will be available at
https://anaconda.org/scientific-python-nightly-wheels/PyWavelets/
going forward
- Release 1.5.0
* This release is a minor update to 1.4.x. It adds support for
Python 3.12 and drops support for Python 3.8. It also adds
support for Cython 3.0.
* PyWavelets now uses Meson as its build system, and meson-python
as the build backend.
-------------------------------------------------------------------
Sat Sep 17 15:22:43 UTC 2022 - Arun Persaud <arun@gmx.de>
@@ -266,9 +297,9 @@ Mon Jan 11 08:29:46 UTC 2016 - toddrme2178@gmail.com
* Complex number support
* nD versions of the multilevel DWT and IDWT
- Update to 0.3.0
+ Highlights:
+ Highlights:
* Support for Python 3.x (>=3.3)
* Added a test suite
* Added a test suite
(based on nose, coverage up to 61% so far)
* Maintenance work: C style complying to the Numpy style guide,
improved templating system, more complete docstrings,
@@ -284,10 +315,10 @@ Thu Oct 24 17:40:23 UTC 2013 - toddrme2178@gmail.com
Wed Jun 13 20:31:30 UTC 2012 - scorot@free.fr
- use proper python command instead of %%{__python} macro
- remove -O1 and --skip-build flags from the install command line
- remove -O1 and --skip-build flags from the install command line
-------------------------------------------------------------------
Wed Jun 13 19:10:42 UTC 2012 - scorot@free.fr
- first package
- first package

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyWavelets
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,29 +16,28 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
# no python36-numpy in Tumbleweed (NEP 29)
%define skip_python36 1
%define skip_python37 1
%{?sle15_python_module_pythons}
Name: python-PyWavelets
Version: 1.4.1
Version: 1.6.0
Release: 0
Summary: PyWavelets is a Python wavelet transforms module
License: MIT
Group: Development/Libraries/Python
URL: https://github.com/PyWavelets/pywt
Source0: https://files.pythonhosted.org/packages/source/P/PyWavelets/PyWavelets-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel >= 1.17.3}
BuildRequires: %{python_module setuptools}
Source0: https://files.pythonhosted.org/packages/source/P/PyWavelets/pywavelets-%{version}.tar.gz
BuildRequires: %{python_module Cython >= 3.0.4}
BuildRequires: %{python_module devel >= 3.9}
BuildRequires: %{python_module meson-python >= 0.15}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: meson
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-numpy >= 1.17.3
Requires: (python-numpy >= 1.22.4 with python-numpy < 3)
Provides: python-PyWavelets-doc = %{version}
Obsoletes: python-PyWavelets-doc < %{version}
Provides: python-pywavelets = %{version}-%{release}
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
@@ -56,29 +55,16 @@ PyWavelets is a Python wavelet transforms module that can do:
* Results compatibility with Matlab Wavelet Toolbox
%prep
%setup -q -n PyWavelets-%{version}
sed -i -e '/^#!\//, 1d' pywt/tests/*.py
# Fix wrong-script-interpreter
find demo -name '*.py' -exec sed -i "s|#!%{_bindir}/env python|#!%__python3|" {} \;
# Remove unneeded shebangs
sed -i '1{\@^#!%{_bindir}/env python@d}' pywt/data/create_dat.py
# Remove unneeded executable bits
for lib in test_concurrent test_data test_deprecations test_doc test_matlab_compatibility test_matlab_compatibility_cwt test_thresholding data/generate_matlab_data data/generate_matlab_data_cwt ; do
chmod a-x pywt/tests/$lib.py
done
%autosetup -p1 -n pywavelets-%{version}
sed -i '1{/env python/d}' pywt/tests/*.py pywt/data/create_dat.py
chmod -x pywt/data/create_dat.py
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%pyproject_wheel
%install
%python_install
# Fix wrong-script-interpreter
%python_expand sed -i "s|#!%{_bindir}/env python.*$|#!%{_bindir}$python|" %{buildroot}%{$python_sitearch}/pywt/tests/*.py
%{python_compileall}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
@@ -92,6 +78,6 @@ mv temp/pywt pywt
%doc README.rst
%license LICENSE
%{python_sitearch}/pywt/
%{python_sitearch}/PyWavelets-%{version}-py*.egg-info
%{python_sitearch}/pywavelets-%{version}.dist-info
%changelog

3
pywavelets-1.6.0.tar.gz Normal file
View File

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