Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-resampy for openSUSE:Factory checked in at 2024-03-17 22:14:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-resampy (Old) and /work/SRC/openSUSE:Factory/.python-resampy.new.1905 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-resampy" Sun Mar 17 22:14:59 2024 rev:9 rq:1158459 version:0.4.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-resampy/python-resampy.changes 2023-05-30 22:02:22.046983787 +0200 +++ /work/SRC/openSUSE:Factory/.python-resampy.new.1905/python-resampy.changes 2024-03-17 22:15:20.782941556 +0100 @@ -1,0 +2,6 @@ +Sat Mar 16 11:55:05 UTC 2024 - Dirk Müller <[email protected]> + +- update to 0.4.3: + * Update to remove deprecated usage of pkg_resources + +------------------------------------------------------------------- Old: ---- resampy-0.4.2-gh.tar.gz New: ---- resampy-0.4.3-gh.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-resampy.spec ++++++ --- /var/tmp/diff_new_pack.ygPNCD/_old 2024-03-17 22:15:22.238994819 +0100 +++ /var/tmp/diff_new_pack.ygPNCD/_new 2024-03-17 22:15:22.238994819 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-resampy # -# Copyright (c) 2023 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 @@ -17,7 +17,7 @@ Name: python-resampy -Version: 0.4.2 +Version: 0.4.3 Release: 0 Summary: Signal resampling in Python License: ISC ++++++ resampy-0.4.2-gh.tar.gz -> resampy-0.4.3-gh.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/.github/workflows/ci-minimal.yml new/resampy-0.4.3/.github/workflows/ci-minimal.yml --- old/resampy-0.4.2/.github/workflows/ci-minimal.yml 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/.github/workflows/ci-minimal.yml 2024-03-05 21:33:19.000000000 +0100 @@ -22,9 +22,9 @@ python-version: ["3.6"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Conda Environment - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: miniforge-variant: Mambaforge miniforge-version: latest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/.github/workflows/ci.yml new/resampy-0.4.3/.github/workflows/ci.yml --- old/resampy-0.4.2/.github/workflows/ci.yml 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/.github/workflows/ci.yml 2024-03-05 21:33:19.000000000 +0100 @@ -19,17 +19,17 @@ fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] include: - os: windows-latest - python-version: "3.10" + python-version: "3.12" - os: macos-latest - python-version: "3.10" + python-version: "3.12" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Conda Environment - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: miniforge-variant: Mambaforge miniforge-version: latest @@ -50,8 +50,9 @@ python -m pytest tests python -m pytest --doctest-only resampy - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: + token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.xml directory: ./coverage/reports/ flags: unittests diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/.github/workflows/lint_python.yml new/resampy-0.4.3/.github/workflows/lint_python.yml --- old/resampy-0.4.2/.github/workflows/lint_python.yml 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/.github/workflows/lint_python.yml 2024-03-05 21:33:19.000000000 +0100 @@ -4,8 +4,8 @@ lint_python: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 - run: pip install bandit codespell flake8 velin - run: bandit --recursive --skip B101,B110 . - run: codespell resampy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/.github/workflows/publish.yml new/resampy-0.4.3/.github/workflows/publish.yml --- old/resampy-0.4.2/.github/workflows/publish.yml 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/.github/workflows/publish.yml 2024-03-05 21:33:19.000000000 +0100 @@ -10,11 +10,11 @@ runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Set up Python 3.7 - uses: actions/setup-python@v1 + - uses: actions/checkout@v4 + - name: Set up Python 3.12 + uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: 3.12 - name: Install pypa/build run: >- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/docs/changes.rst new/resampy-0.4.3/docs/changes.rst --- old/resampy-0.4.2/docs/changes.rst 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/docs/changes.rst 2024-03-05 21:33:19.000000000 +0100 @@ -1,6 +1,12 @@ Changes ------- +v0.4.3 +~~~~~~ +2024-03-05 + +- `#117 <https://github.com/bmcree/resampy/pull/117>`_ Update to remove deprecated usage of pkg_resources. + v0.4.2 ~~~~~~ 2022-09-13 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/resampy/core.py new/resampy-0.4.3/resampy/core.py --- old/resampy-0.4.2/resampy/core.py 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/resampy/core.py 2024-03-05 21:33:19.000000000 +0100 @@ -43,7 +43,7 @@ parallel : optional, bool Enable/disable parallel computation exploiting multi-threading. - Default: True. + Default: False. **kwargs additional keyword arguments provided to the specified filter diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/resampy/filters.py new/resampy-0.4.3/resampy/filters.py --- old/resampy-0.4.2/resampy/filters.py 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/resampy/filters.py 2024-03-05 21:33:19.000000000 +0100 @@ -46,10 +46,15 @@ ''' import numpy as np -import os -import pkg_resources import sys +if sys.version_info < (3, 9): + # Use the backport of importlib resources for old python + import importlib_resources +else: + from importlib import resources as importlib_resources + + FILTER_FUNCTIONS = ['sinc_window'] FILTER_CACHE = dict() @@ -203,10 +208,10 @@ ''' if filter_name not in FILTER_CACHE: - fname = os.path.join('data', - os.path.extsep.join([filter_name, 'npz'])) + fname = importlib_resources.files("resampy") / 'data' / f'{filter_name}.npz' + with importlib_resources.as_file(fname) as f: + data = np.load(f) - data = np.load(pkg_resources.resource_filename(__name__, fname)) FILTER_CACHE[filter_name] = data['half_window'], data['precision'], data['rolloff'] return FILTER_CACHE[filter_name] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/resampy/version.py new/resampy-0.4.3/resampy/version.py --- old/resampy-0.4.2/resampy/version.py 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/resampy/version.py 2024-03-05 21:33:19.000000000 +0100 @@ -3,4 +3,4 @@ """Version info""" short_version = '0.4' -version = '0.4.2' +version = '0.4.3' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/setup.cfg new/resampy-0.4.3/setup.cfg --- old/resampy-0.4.2/setup.cfg 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/setup.cfg 2024-03-05 21:33:19.000000000 +0100 @@ -32,6 +32,9 @@ Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 + [options] packages = find: @@ -40,6 +43,7 @@ install_requires = numpy>=1.17 numba>=0.53 + importlib_resources; python_version < "3.9" [options.package_data] resampy = data/* @@ -52,7 +56,7 @@ tests = pytest < 8 pytest-cov - scipy>=1.0 + scipy>=1.1 design = optuna >= 2.10.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/tests/test_core.py new/resampy-0.4.3/tests/test_core.py --- old/resampy-0.4.2/tests/test_core.py 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/tests/test_core.py 2024-03-05 21:33:19.000000000 +0100 @@ -141,7 +141,7 @@ sr_orig = 100 sr_new = 200 x = np.random.randn(500) - y = resampy.resample(x, sr_orig, sr_new, filter='sinc_window', window=scipy.signal.blackman) + y = resampy.resample(x, sr_orig, sr_new, filter='sinc_window', window=scipy.signal.windows.blackman) assert len(y) == 2 * len(x) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/resampy-0.4.2/tests/test_filters.py new/resampy-0.4.3/tests/test_filters.py --- old/resampy-0.4.2/tests/test_filters.py 2022-09-13 18:13:37.000000000 +0200 +++ new/resampy-0.4.3/tests/test_filters.py 2024-03-05 21:33:19.000000000 +0100 @@ -9,7 +9,7 @@ @pytest.mark.parametrize('filt', ['sinc_window', resampy.filters.sinc_window]) [email protected]('window', [None, scipy.signal.hann]) [email protected]('window', [None, scipy.signal.windows.hann]) @pytest.mark.parametrize('num_zeros', [None, 13]) @pytest.mark.parametrize('precision', [None, 9]) @pytest.mark.parametrize('rolloff', [None, 0.925])
