forked from pool/python-habanero
Markéta Machová
337139cfea
- update to 1.2.6: * mark two more tests for vcr to create cassettes for (both content_negotation tests) - no user facing changes (#114) * habanero now conditionally uses bibtexparser to roundtrip bibtex to attempt to fix any bibtex that's not formatted correctly (#144) (#153) * generalize handling of field queries like query.publisher-name to allow all field queries, and any in the future (#150) (#152) * improved error handling (#123) * ids now a required param in the Crossref.prefixes method; improved crossef API error parsing (#116) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-habanero?expand=0&rev=3
65 lines
1.9 KiB
RPMSpec
65 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-habanero
|
|
#
|
|
# Copyright (c) 2024 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/
|
|
#
|
|
|
|
|
|
Name: python-habanero
|
|
Version: 1.2.6
|
|
Release: 0
|
|
Summary: Low Level Client for Crossref Search API
|
|
License: MIT
|
|
URL: https://github.com/sckott/habanero
|
|
Source: https://files.pythonhosted.org/packages/source/h/habanero/habanero-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-requests >= 2.7.0
|
|
Requires: python-tqdm
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pytest-vcr}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module requests >= 2.7.0}
|
|
BuildRequires: %{python_module tqdm}
|
|
BuildRequires: %{python_module vcrpy}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Low Level Client for Crossref Search API
|
|
|
|
%prep
|
|
%autosetup -p1 -n habanero-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest -k 'not vcr'
|
|
|
|
%files %{python_files}
|
|
%doc Changelog.rst README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/habanero
|
|
%{python_sitelib}/habanero-%{version}*-info
|
|
|
|
%changelog
|