2020-05-29 18:58:11 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-gwdatafind
|
|
|
|
|
#
|
2025-06-18 12:04:23 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2020-05-29 18:58:11 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2022-02-11 23:11:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2020-05-29 18:58:11 +00:00
|
|
|
|
|
|
|
|
%define skip_python2 1
|
|
|
|
|
|
|
|
|
|
Name: python-gwdatafind
|
2024-01-02 06:09:42 +00:00
|
|
|
Version: 1.2.0
|
2020-05-29 18:58:11 +00:00
|
|
|
Release: 0
|
2022-02-11 23:11:28 +00:00
|
|
|
License: GPL-3.0-only
|
2020-05-29 18:58:11 +00:00
|
|
|
Summary: Client library for the LIGO Data Replicator (LDR) service
|
2022-02-11 23:11:28 +00:00
|
|
|
URL: https://gwdatafind.readthedocs.io/
|
2020-05-29 18:58:11 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/g/gwdatafind/gwdatafind-%{version}.tar.gz
|
2022-07-10 11:50:18 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.6}
|
2025-06-18 12:04:23 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-05-29 18:58:11 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-18 12:04:23 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2022-02-11 23:11:28 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-05-29 18:58:11 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module ligo-segments}
|
2024-01-02 06:09:42 +00:00
|
|
|
BuildRequires: %{python_module igwn-auth-utils}
|
2020-05-29 18:58:11 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 2.8.0}
|
2022-07-10 11:50:18 +00:00
|
|
|
BuildRequires: %{python_module requests-mock}
|
2020-05-29 18:58:11 +00:00
|
|
|
# /SECTION
|
|
|
|
|
BuildRequires: fdupes
|
2024-01-02 06:09:42 +00:00
|
|
|
Requires: python-igwn-auth-utils
|
2020-05-29 18:58:11 +00:00
|
|
|
Requires: python-ligo-segments
|
|
|
|
|
BuildArch: noarch
|
2021-02-06 22:00:19 +00:00
|
|
|
Requires(post): update-alternatives
|
2025-06-18 12:04:23 +00:00
|
|
|
Requires(postun): update-alternatives
|
2020-05-29 18:58:11 +00:00
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The client library for the LIGO Data Replicator (LDR) service.
|
|
|
|
|
|
|
|
|
|
The DataFind service allows users to query for the location of
|
|
|
|
|
Gravitational-Wave Frame (GWF) files containing data from the current
|
|
|
|
|
gravitational-wave detectors
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n gwdatafind-%{version}
|
2022-07-10 11:50:18 +00:00
|
|
|
sed -i 's/--color=yes//' pyproject.toml
|
2020-05-29 18:58:11 +00:00
|
|
|
|
|
|
|
|
%build
|
2025-06-18 12:04:23 +00:00
|
|
|
%pyproject_wheel
|
2020-05-29 18:58:11 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-06-18 12:04:23 +00:00
|
|
|
%pyproject_install
|
2020-05-29 18:58:11 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2021-02-06 22:00:19 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/gw_data_find
|
|
|
|
|
|
2020-05-29 18:58:11 +00:00
|
|
|
%check
|
2024-12-09 05:03:20 +00:00
|
|
|
%pytest -k 'not (test_find_urls or test_find_frame_urls or test_postprocess_cache_gaps)'
|
2021-02-06 22:00:19 +00:00
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%python_install_alternative gw_data_find
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative gw_data_find
|
2020-05-29 18:58:11 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
2021-02-06 22:00:19 +00:00
|
|
|
%python_alternative %{_bindir}/gw_data_find
|
2022-07-10 11:50:18 +00:00
|
|
|
%{python_sitelib}/gwdatafind
|
2025-06-18 12:04:23 +00:00
|
|
|
%{python_sitelib}/gwdatafind-%{version}.dist-info
|
2020-05-29 18:58:11 +00:00
|
|
|
|
|
|
|
|
%changelog
|