From fdb403aac7eb13eeed5fbb2cc5b8e5888e92fbf839c68656887c6bb88e399633 Mon Sep 17 00:00:00 2001 From: Dmitry Roshchin Date: Mon, 9 Dec 2024 05:03:20 +0000 Subject: [PATCH] Fix builds by avoiding tests not ready for updated ligo-segments yet. OBS-URL: https://build.opensuse.org/package/show/science/python-gwdatafind?expand=0&rev=13 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + gwdatafind-1.2.0.tar.gz | 3 ++ python-gwdatafind.changes | 71 +++++++++++++++++++++++++++++++++ python-gwdatafind.spec | 82 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 180 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 gwdatafind-1.2.0.tar.gz create mode 100644 python-gwdatafind.changes create mode 100644 python-gwdatafind.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gwdatafind-1.2.0.tar.gz b/gwdatafind-1.2.0.tar.gz new file mode 100644 index 0000000..ec8e207 --- /dev/null +++ b/gwdatafind-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f74942e66cdb9a53030da29069110b3cb30afc2a034790957786028fb09f451 +size 40381 diff --git a/python-gwdatafind.changes b/python-gwdatafind.changes new file mode 100644 index 0000000..1749f22 --- /dev/null +++ b/python-gwdatafind.changes @@ -0,0 +1,71 @@ +------------------------------------------------------------------- +Fri Dec 6 01:35:43 UTC 2024 - Atri Bhattacharya + +- Fix builds by avoiding tests not ready for updated ligo-segments + yet. + +------------------------------------------------------------------- +Thu Dec 28 17:22:38 UTC 2023 - Atri Bhattacharya + +- Update to version 1.2.0 + * Add support for non-GWF file extensions (!83) + * Use argparse-manpage for manual generation (!80) + * Update references to gwosc.org (!87) + * Support multi-character site IDs (!91) + * Add support for Python 3.11 and 3.12 (!93) +- Update dependencies: (Build)Requires: python-igwn-auth-utils + instead of python-igwn-auth-utils-requests. + +------------------------------------------------------------------- +Fri Jan 13 09:38:25 UTC 2023 - Atri Bhattacharya + +- Update to version 1.1.3: + * No changelog. +- Update python-igwn-auth-utils version requirement in keeping + with upstream. + +------------------------------------------------------------------- +Sun Jul 3 19:25:06 UTC 2022 - Ben Greiner + +- Update to version 1.1.1 + * [!72] fix critical issue with deprecated HTTPConnection + interface +- Release 1.1.0 + * [!38] the gwdatafind.http module and the classes therein have + been deprecated and replaced by the functional calls available + from the top-level gwdatafind module; gwdatafind.http will be + removed in GWDataFind 2.0.0. + * [!50] support for Python 3.5 has been dropped + * [!38] the library was refactored to use + igwn_auth_utils.requests for all HTTP access; this provides + support for authorized queries using SciTokens + +------------------------------------------------------------------- +Mon Mar 21 13:37:00 UTC 2022 - pgajdos@suse.com + +- actually does not require python-mock for build + +------------------------------------------------------------------- +Tue Feb 8 20:49:58 UTC 2022 - Atri Bhattacharya + +- Update to version 1.0.5: + * Remove support for Python 2 [!32]. + * Add support for Python 3.10 [!37]. + * Rename `LIGO_DATAFIND_SERVER` -> `GWDATAFIND_SERVER` [!29]. + * Restructure binary packages for Debian and RHEL [!27,!35,!42]. + +------------------------------------------------------------------- +Fri Jan 22 00:17:36 UTC 2021 - Atri Bhattacharya + +- Fix binary installation for multi-version python. + +------------------------------------------------------------------- +Mon Nov 2 12:31:07 UTC 2020 - Atri Bhattacharya + +- Use `%pytest` to run tests and drop python-pytest-runner from + BuildRequires. + +------------------------------------------------------------------- +Thu Apr 23 17:13:22 UTC 2020 - Atri Bhattacharya + +- Initial package. diff --git a/python-gwdatafind.spec b/python-gwdatafind.spec new file mode 100644 index 0000000..a633b00 --- /dev/null +++ b/python-gwdatafind.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-gwdatafind +# +# 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 +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define skip_python2 1 + +Name: python-gwdatafind +Version: 1.2.0 +Release: 0 +License: GPL-3.0-only +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 setuptools} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module ligo-segments} +BuildRequires: %{python_module igwn-auth-utils} +BuildRequires: %{python_module pytest >= 2.8.0} +BuildRequires: %{python_module requests-mock} +# /SECTION +BuildRequires: fdupes +Requires: python-igwn-auth-utils +Requires: python-ligo-segments +BuildArch: noarch +Requires(post): update-alternatives +Requires(postun):update-alternatives + +%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} +sed -i 's/--color=yes//' pyproject.toml + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%python_clone -a %{buildroot}%{_bindir}/gw_data_find + +%check +%pytest -k 'not (test_find_urls or test_find_frame_urls or test_postprocess_cache_gaps)' + +%post +%python_install_alternative gw_data_find + +%postun +%python_uninstall_alternative gw_data_find + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/gw_data_find +%{python_sitelib}/gwdatafind +%{python_sitelib}/gwdatafind-%{version}*-info + +%changelog