17
0

Compare commits

4 Commits

2 changed files with 19 additions and 6 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Jun 18 04:41:37 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Use pyproject macros to build and install.
-------------------------------------------------------------------
Fri Dec 6 01:35:43 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Fix builds by avoiding tests not ready for updated ligo-segments
yet.
-------------------------------------------------------------------
Thu Dec 28 17:22:38 UTC 2023 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-gwdatafind
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,9 @@ Summary: Client library for the LIGO Data Replicator (LDR) service
URL: https://gwdatafind.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/g/gwdatafind/gwdatafind-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module ligo-segments}
@@ -39,7 +41,7 @@ Requires: python-igwn-auth-utils
Requires: python-ligo-segments
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
%python_subpackages
@@ -55,16 +57,16 @@ gravitational-wave detectors
sed -i 's/--color=yes//' pyproject.toml
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/gw_data_find
%check
%pytest
%pytest -k 'not (test_find_urls or test_find_frame_urls or test_postprocess_cache_gaps)'
%post
%python_install_alternative gw_data_find
@@ -77,6 +79,6 @@ sed -i 's/--color=yes//' pyproject.toml
%license LICENSE
%python_alternative %{_bindir}/gw_data_find
%{python_sitelib}/gwdatafind
%{python_sitelib}/gwdatafind-%{version}*-info
%{python_sitelib}/gwdatafind-%{version}.dist-info
%changelog