File python-pyfortified-requests.spec of Package python-pyfortified-requests
#
# spec file for package python-pyfortified-requests
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pyfortified-requests
Version: 0.3.6.1
Release: 0
License: MIT
Summary: Extension to Python `requests` functionality
Url: https://github.com/jeff00seattle/pyfortified-requests
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/p/pyfortified-requests/pyfortified-requests-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module beautifulsoup4 >= 4.5.3}
BuildRequires: %{python_module DateTime >= 4.1.1}
BuildRequires: %{python_module deepdiff >= 3.3.0}
BuildRequires: %{python_module pprintpp >= 0.3.0}
BuildRequires: %{python_module psutil >= 5.0.1}
BuildRequires: %{python_module pyfortified-logging >= 0.1.8}
BuildRequires: %{python_module pyhttpstatus-utils >= 0.3.3}
BuildRequires: %{python_module pymemcache-client >= 0.3.2}
BuildRequires: %{python_module pytest >= 3.5.1}
BuildRequires: %{python_module pytest-cov >= 2.5.1}
BuildRequires: %{python_module pytest-flask >= 0.10.0}
BuildRequires: %{python_module pytest-forked >= 0.2}
BuildRequires: %{python_module pytest-httpbin >= 0.3.0}
BuildRequires: %{python_module pytest-mock >= 1.10.0}
BuildRequires: %{python_module pytest-xdist >= 1.22.2}
BuildRequires: %{python_module python-dateutil >= 2.6.0}
BuildRequires: %{python_module requests >= 2.18.4}
BuildRequires: %{python_module requests-mock >= 1.4.0}
BuildRequires: %{python_module requests-toolbelt >= 0.8.0}
BuildRequires: %{python_module safe-cast >= 0.3.0}
BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: %{python_module tzlocal >= 1.3}
BuildRequires: %{python_module ujson >= 1.35}
BuildRequires: %{python_module xmltodict >= 0.10.2}
# /SECTION
BuildRequires: fdupes
Requires: python-beautifulsoup4 >= 4.5.3
Requires: python-DateTime >= 4.1.1
Requires: python-deepdiff >= 3.3.0
Requires: python-pprintpp >= 0.3.0
Requires: python-psutil >= 5.0.1
Requires: python-pyfortified-logging >= 0.1.8
Requires: python-pyhttpstatus-utils >= 0.3.3
Requires: python-pymemcache-client >= 0.3.2
Requires: python-python-dateutil >= 2.6.0
Requires: python-requests >= 2.18.4
Requires: python-requests-toolbelt >= 0.8.0
Requires: python-safe-cast >= 0.3.0
Requires: python-six >= 1.10.0
Requires: python-tzlocal >= 1.3
Requires: python-ujson >= 1.35
Requires: python-xmltodict >= 0.10.2
BuildArch: noarch
%python_subpackages
%description
Extension to Python `requests` functionality.
%prep
%setup -q -n pyfortified-requests-master
sed -i 's/python3.5/python3/' Makefile
# Drop dependency on local-build task
sed -i 's/: local-build.*$/:/' Makefile
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} make run-examples-35
%files %{python_files}
%doc AUTHORS.rst README.rst
%license LICENSE
%{python_sitelib}/*
%changelog