2018-10-11 08:15:16 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package python-treq
|
|
|
|
|
#
|
2023-05-10 11:48:45 +00:00
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-10-11 08:15:16 +00:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-10-11 08:47:03 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2018-10-11 08:15:16 +00:00
|
|
|
|
|
|
|
|
|
|
2022-02-03 10:22:35 +00:00
|
|
|
|
%define skip_python2 1
|
2018-10-11 08:15:16 +00:00
|
|
|
|
Name: python-treq
|
2022-06-07 16:41:31 +00:00
|
|
|
|
Version: 22.2.0
|
2018-10-11 08:15:16 +00:00
|
|
|
|
Release: 0
|
2018-10-14 11:22:12 +00:00
|
|
|
|
Summary: HTTP library inspired by python-requests
|
2018-10-11 08:47:03 +00:00
|
|
|
|
License: MIT
|
2018-10-11 08:15:16 +00:00
|
|
|
|
Group: Development/Languages/Python
|
2018-10-11 08:47:03 +00:00
|
|
|
|
URL: https://github.com/twisted/treq
|
2018-10-11 08:15:16 +00:00
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/treq/treq-%{version}.tar.gz
|
2022-06-28 22:17:45 +00:00
|
|
|
|
BuildRequires: %{python_module Twisted-tls >= 18.7.0}
|
2018-10-11 08:15:16 +00:00
|
|
|
|
BuildRequires: %{python_module attrs}
|
2018-10-22 07:51:41 +00:00
|
|
|
|
BuildRequires: %{python_module httpbin}
|
2021-03-18 08:11:07 +00:00
|
|
|
|
BuildRequires: %{python_module hyperlink >= 21.0.0}
|
2018-10-11 08:15:16 +00:00
|
|
|
|
BuildRequires: %{python_module incremental}
|
2022-02-03 11:35:00 +00:00
|
|
|
|
BuildRequires: %{python_module pip}
|
2018-10-11 08:15:16 +00:00
|
|
|
|
BuildRequires: %{python_module requests >= 2.1.0}
|
2019-10-05 07:18:23 +00:00
|
|
|
|
BuildRequires: %{python_module service_identity}
|
2018-10-11 08:47:03 +00:00
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-02-03 11:35:00 +00:00
|
|
|
|
BuildRequires: %{python_module wheel}
|
2018-10-11 08:15:16 +00:00
|
|
|
|
BuildRequires: fdupes
|
2018-10-11 08:47:03 +00:00
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-06-28 22:17:45 +00:00
|
|
|
|
Requires: python-Twisted-tls >= 18.7.0
|
2018-10-11 08:47:03 +00:00
|
|
|
|
Requires: python-attrs
|
2021-03-18 08:11:07 +00:00
|
|
|
|
Requires: python-hyperlink >= 21.0.0
|
2018-10-11 08:15:16 +00:00
|
|
|
|
Requires: python-incremental
|
|
|
|
|
Requires: python-requests >= 2.1.0
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
treq is an HTTP library inspired by requests but written on top of Twisted’s Agents.
|
|
|
|
|
It provides a simple, higher level API for making HTTP requests when using Twisted.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n treq-%{version}
|
2019-09-12 17:22:14 +00:00
|
|
|
|
%autopatch -p1
|
2018-10-11 08:15:16 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2022-02-03 11:35:00 +00:00
|
|
|
|
%pyproject_wheel
|
2018-10-11 08:15:16 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2022-02-03 11:35:00 +00:00
|
|
|
|
%pyproject_install
|
2018-10-11 08:15:16 +00:00
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/treq
|
|
|
|
|
|
|
|
|
|
%check
|
2018-10-22 07:51:41 +00:00
|
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
2019-03-07 11:34:48 +00:00
|
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} %{_bindir}/trial-%{$python_bin_suffix} treq
|
2018-10-11 08:15:16 +00:00
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-10-22 07:25:38 +00:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2018-10-11 08:15:16 +00:00
|
|
|
|
%{python_sitelib}/treq
|
2022-02-03 11:35:00 +00:00
|
|
|
|
%{python_sitelib}/treq-%{version}*-info/
|
2018-10-11 08:15:16 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|