2021-04-01 12:23:58 +00:00
|
|
|
|
%global pypi_name treq
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global with_doc 1
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
2021-09-05 17:35:57 +00:00
|
|
|
|
Version: 21.5.0
|
|
|
|
|
Release: 1%{?dist}
|
2021-04-01 12:23:58 +00:00
|
|
|
|
Summary: A requests-like API built on top of twisted.web's Agent
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/twisted/treq
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
BuildRequires: python3-twisted
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-incremental
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
Requires: python3-incremental
|
|
|
|
|
Requires: python3-requests >= 2.1.0
|
|
|
|
|
Requires: python3-six
|
|
|
|
|
Requires: python3-twisted >= 16.3.0
|
|
|
|
|
Requires: python3-attrs
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
%package -n python-%{pypi_name}-doc
|
|
|
|
|
Summary: treq documentation
|
|
|
|
|
%description -n python-%{pypi_name}-doc
|
|
|
|
|
Documentation for treq
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
# Remove bundled egg-info
|
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
# generate html docs
|
|
|
|
|
export PYTHONPATH=%{python2_sitelib}:%{python3_sitelib}:src
|
|
|
|
|
sphinx-build docs html
|
|
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
%files -n python-%{pypi_name}-doc
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc html
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 18.6.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18.6.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 18.6.0-3
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18.6.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2019 Orion Poplawski <orion@nwra.com> - 18.6.0-1
|
|
|
|
|
- Update to 18.6.0
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 17.8.0-10
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 17.8.0-9
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.8.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.8.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 17.8.0-6
|
|
|
|
|
- Python2 binary package has been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.8.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 17.8.0-4
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.8.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Aug 30 2017 Yatin Karel <ykarel@redhat.com> - 17.8.0-2
|
|
|
|
|
- Enabled Doc build, Fix BR Issues and some nit picks
|
|
|
|
|
|
|
|
|
|
* Fri Aug 11 2017 ykarel <ykarel@redhat.com> - 17.8.0-1
|
|
|
|
|
- Initial package.
|