Update to version 2.7.1 OBS-URL: https://build.opensuse.org/request/show/845175 OBS-URL: https://build.opensuse.org/package/show/science/python-ligo-gracedb?expand=0&rev=2
93 lines
3.0 KiB
RPMSpec
93 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package python-ligo-gracedb
|
|
#
|
|
# Copyright (c) 2020 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/
|
|
#
|
|
|
|
|
|
# Tests require pyparsing >= 2.4.7, Leap 15.x only has <= 2.2.0
|
|
%if 0%{?suse_version} > 1500
|
|
%bcond_without tests
|
|
%else
|
|
%bcond_with tests
|
|
%endif
|
|
|
|
%global modname ligo-gracedb
|
|
Name: python-ligo-gracedb
|
|
Version: 2.7.1
|
|
Release: 0
|
|
Summary: Python module for accessing the Gravitational-wave Candidate Event Database API
|
|
License: GPL-3.0-or-later
|
|
URL: https://git.ligo.org/lscsoft/gracedb-client
|
|
Source: https://files.pythonhosted.org/packages/source/l/ligo-gracedb/ligo-gracedb-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-cryptography >= 1.7.2
|
|
Requires: python-future >= 0.15.0
|
|
Requires: python-requests >= 2.6.0
|
|
Requires: python-six >= 1.9.0
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
%if %{with tests}
|
|
BuildRequires: %{python_module cryptography >= 1.7.2}
|
|
BuildRequires: %{python_module future >= 0.15.0}
|
|
BuildRequires: %{python_module more-itertools}
|
|
BuildRequires: %{python_module pyparsing >= 2.4.7}
|
|
BuildRequires: %{python_module pytest >= 3.1.0}
|
|
BuildRequires: %{python_module pytest-cov}
|
|
BuildRequires: %{python_module requests >= 2.6.0}
|
|
BuildRequires: %{python_module six >= 1.9.0}
|
|
BuildRequires: %{python_module zipp}
|
|
%endif
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
The Gravitational-wave Candidate Event Database (GraceDB) is a web service
|
|
designed for aggregating and communicating information about candidate events
|
|
from gravitational-wave searches and associated follow-ups.
|
|
|
|
ligo-gracedb provides a Python-based client tool for facilitating interactions
|
|
with the GraceDB API.
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
sed -i "1{/#!\/usr\/bin\/env python/d}" ligo/gracedb/legacy_cli.py
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%if %{with tests}
|
|
%check
|
|
%pytest
|
|
%endif
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%python3_only %{_bindir}/gracedb
|
|
%python3_only %{_bindir}/gracedb_legacy
|
|
%dir %{python_sitelib}/ligo
|
|
%{python_sitelib}/ligo/gracedb/
|
|
%{python_sitelib}/ligo_gracedb-%{version}-py%{python_version}.egg-info/
|
|
%{python_sitelib}/ligo_gracedb-%{version}-py%{python_version}-nspkg.pth
|
|
|
|
%changelog
|