Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-gwosc for openSUSE:Factory checked in at 2022-07-07 12:57:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-gwosc (Old) and /work/SRC/openSUSE:Factory/.python-gwosc.new.1523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gwosc" Thu Jul 7 12:57:11 2022 rev:3 rq:987210 version:0.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-gwosc/python-gwosc.changes 2022-01-26 21:27:34.849745701 +0100 +++ /work/SRC/openSUSE:Factory/.python-gwosc.new.1523/python-gwosc.changes 2022-07-07 12:57:30.947336807 +0200 @@ -1,0 +2,12 @@ +Sun Jul 3 18:55:24 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Clean up specfile +- Add gwosc-pytest-warns.patch + * Fixes pytest.PytestRemovedIn8Warning errors with newer pytest + * part of https://git.ligo.org/gwosc/client/-/merge_requests/80 +- Update Source for canonical PyPI hosted URL +- The setup.py just calls setuptools PEP517 style. Use up to date + pip instead of the vendored one by the Python interpreter. +- Add missing runtime requirement on python-requests. + +------------------------------------------------------------------- New: ---- gwosc-pytest-warns.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-gwosc.spec ++++++ --- /var/tmp/diff_new_pack.5rjKZ2/_old 2022-07-07 12:57:31.423337517 +0200 +++ /var/tmp/diff_new_pack.5rjKZ2/_new 2022-07-07 12:57:31.427337522 +0200 @@ -17,7 +17,6 @@ %define modname gwosc -# Disable python2 until py2 tests are fixed %define skip_python2 1 Name: python-gwosc Version: 0.6.1 @@ -25,8 +24,10 @@ Summary: Python interface to the Gravitational-Wave Open Data Center archive License: MIT URL: https://gwosc.readthedocs.io/en/latest/ -# Don't use sources directly from github, see https://github.com/gwpy/gwosc/issues/55 -Source: https://pypi.io/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gwosc-pytest-warns.patch -- part of https://git.ligo.org/gwosc/client/-/merge_requests/80 +Patch1: https://git.ligo.org/gwosc/client/-/commit/e61e89ea23407d9ca92d19156289a86c00bc01ff.patch#/gwosc-pytest-warns.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} @@ -34,8 +35,11 @@ BuildRequires: python-rpm-macros # SECTION For tests BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 1.0.0} BuildRequires: %{python_module requests-mock} # /SECTION +Requires: python-requests >= 1.0.0 +BuildArch: noarch %python_subpackages %description @@ -44,7 +48,8 @@ Virgo gravitational-wave observatories. %prep -%setup -q -n %{modname}-%{version} +%autosetup -p1 -n %{modname}-%{version} +sed -i 's/--color=yes//' pyproject.toml %build %python_build @@ -55,8 +60,10 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname}/ %check -# requests_mock too old for 15.1 -%if 0%{?suse_version} == 1500 && 0%{?sle_version} == 150100 +# macro missing for <SLE-15-SP1, (is the science project still supporting that?) +%{?!pytest:%define pytest py.test} +# requests_mock too old for <= 15.1 +%if 0%{?suse_version} == 1500 && 0%{?sle_version} <= 150100 %pytest -k "not remote and not test_fetch_json_local" %else %pytest -k "not remote" @@ -66,6 +73,6 @@ %license LICENSE %doc README.md %{python_sitelib}/%{modname} -%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/ +%{python_sitelib}/%{modname}-%{version}*-info/ %changelog ++++++ gwosc-pytest-warns.patch ++++++ >From e61e89ea23407d9ca92d19156289a86c00bc01ff Mon Sep 17 00:00:00 2001 From: "duncan.macleod" <duncan.macl...@ligo.org> Date: Fri, 1 Apr 2022 20:05:49 +0100 Subject: [PATCH] tests: fix misues of pytest.warns `pytest.warns(None)` is deprecated, see <https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests> --- gwosc/tests/test_datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gwosc/tests/test_datasets.py b/gwosc/tests/test_datasets.py index 0f5e03e..83f2288 100644 --- a/gwosc/tests/test_datasets.py +++ b/gwosc/tests/test_datasets.py @@ -92,7 +92,7 @@ def test_find_datasets_event_version_detector(): @mock.patch("gwosc.datasets._run_datasets", return_value=[]) def test_find_datasets_warning(_): - with pytest.warns(None): + with pytest.warns(UserWarning): datasets.find_datasets(type='run', version=1) -- GitLab