2023-05-26 22:51:06 +00:00
committed by Git OBS Bridge
5 changed files with 23 additions and 37 deletions
+14
View File
@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Tue May 23 18:01:33 UTC 2023 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 0.7.1:
* Update all gw-openscience.org references to gwosc.org
* Include custom User-Agent header in requests
- Changes from version 0.7.0:
* Remove deprecated tag keyword from gwosc.locate.get_urls
* Remove deprecated gwosc.catalog module
* Implement query feature
* Formally support Python 3.11
- Drop gwosc-pytest-warns.patch: incorporated upstream.
- Use wheel based builds instead of setuptools.
-------------------------------------------------------------------
Sun Jul 3 18:55:24 UTC 2022 - Ben Greiner <code@bnavigator.de>
+6 -8
View File
@@ -1,7 +1,7 @@
#
# spec file for package python-gwosc
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,18 +18,16 @@
%define modname gwosc
%define skip_python2 1
Name: python-gwosc
Version: 0.6.1
Version: 0.7.1
Release: 0
Summary: Python interface to the Gravitational-Wave Open Data Center archive
License: MIT
URL: https://gwosc.readthedocs.io/en/latest/
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}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -52,10 +50,10 @@ Virgo gravitational-wave observatories.
sed -i 's/--color=yes//' pyproject.toml
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname}/
@@ -72,7 +70,7 @@ sed -i 's/--color=yes//' pyproject.toml
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/%{modname}
%{python_sitelib}/%{modname}/
%{python_sitelib}/%{modname}-%{version}*-info/
%changelog
-3
View File
@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cfe0d65aa92827e3d50652c9abcccc846449a42512b1a2a19007b30f98bf1e26
size 33896
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5328223410081731ba4ef6f3be9f13ac4b3b9a43397fa04c1f50ddeb59895816
size 35423
-26
View File
@@ -1,26 +0,0 @@
From e61e89ea23407d9ca92d19156289a86c00bc01ff Mon Sep 17 00:00:00 2001
From: "duncan.macleod" <duncan.macleod@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