forked from pool/python-treq
* treq has vendored its dependency on the multipart library to avoid import conflicts with python-multipart; it should now be installable alongside that library. * treq now ships type annotations. * The new :mod:`treq.cookies` module provides helper functions for working with http.cookiejar.Cookie and CookieJar objects. * Python 3.13 is now supported. * :mod:`treq.content.text_content()` no longer generates deprecation warnings due to use of the cgi module. * Mixing the json argument with files or data now raises TypeError. * Passing non-string (str or bytes) values as part of a dict to the headers argument now results in a TypeError, as does passing any collection other than a dict or Headers instance. * Support for Python 3.7 and PyPy 3.8, which have reached end of support, has been dropped. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-treq?expand=0&rev=37
77 lines
2.5 KiB
RPMSpec
77 lines
2.5 KiB
RPMSpec
#
|
||
# spec file for package python-treq
|
||
#
|
||
# 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/
|
||
#
|
||
|
||
|
||
%{?sle15_python_module_pythons}
|
||
Name: python-treq
|
||
Version: 24.9.1
|
||
Release: 0
|
||
Summary: HTTP library inspired by python-requests
|
||
License: MIT
|
||
Group: Development/Languages/Python
|
||
URL: https://github.com/twisted/treq
|
||
Source: https://files.pythonhosted.org/packages/source/t/treq/treq-%{version}.tar.gz
|
||
BuildRequires: %{python_module Twisted-tls >= 22.10.0}
|
||
BuildRequires: %{python_module attrs}
|
||
BuildRequires: %{python_module base >= 3.9}
|
||
BuildRequires: %{python_module httpbin}
|
||
BuildRequires: %{python_module hyperlink >= 21.0.0}
|
||
BuildRequires: %{python_module incremental}
|
||
BuildRequires: %{python_module pip}
|
||
BuildRequires: %{python_module requests >= 2.1.0}
|
||
BuildRequires: %{python_module service_identity}
|
||
BuildRequires: %{python_module setuptools}
|
||
BuildRequires: %{python_module typing-extensions >= 3.10.0}
|
||
BuildRequires: %{python_module wheel}
|
||
BuildRequires: fdupes
|
||
BuildRequires: python-rpm-macros
|
||
Requires: python-Twisted-tls >= 22.10.0
|
||
Requires: python-attrs
|
||
Requires: python-hyperlink >= 21.0.0
|
||
Requires: python-incremental
|
||
Requires: python-requests >= 2.1.0
|
||
Requires: python-typing-extensions >= 3.10.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}
|
||
%autopatch -p1
|
||
|
||
%build
|
||
%pyproject_wheel
|
||
|
||
%install
|
||
%pyproject_install
|
||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/treq
|
||
|
||
%check
|
||
export PYTHONDONTWRITEBYTECODE=1
|
||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} %{_bindir}/trial-%{$python_bin_suffix} treq
|
||
|
||
%files %{python_files}
|
||
%license LICENSE
|
||
%doc README.rst
|
||
%{python_sitelib}/treq
|
||
%{python_sitelib}/treq-%{version}*-info/
|
||
|
||
%changelog
|