File python-apiron.spec of Package python-apiron

# spec file for package python-apiron
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2019 Dr. Axel Braun <>
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define modname apiron
Name:           python-%{modname}
Version:        5.1.0
Release:        0
Summary:        Apiron helps you cook a tasty client for RESTful APIs
License:        MIT
BuildRequires:  %{python_module pytest-cov}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module requests >= 2.11.1}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
Requires:       python-requests >= 2.11.1
BuildArch:      noarch

Gathering data from multiple services has become a ubiquitous task for web application developers. The complexity can grow quickly: calling an API endpoint with multiple parameter sets, calling multiple API endpoints, calling multiple endpoints in multiple APIs. While the business logic can get hairy, the code to interact with those APIs doesn't have to.

apiron provides declarative, structured configuration of services and endpoints with a unified interface for interacting with them.

%setup -q -n %{modname}-%{version}


%python_expand %fdupes %{buildroot}%{$python_sitelib}

# TestEndpoint.test_call - online test
%pytest -k 'not test_call'

%files %{python_files}
%license LICENSE

openSUSE Build Service is sponsored by