|
rdobuilder |
331a50 |
%global pypi_name wsgi_intercept
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%global with_docs 1
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%global common_desc \
|
|
rdobuilder |
331a50 |
It installs a WSGI application in place of a real URI for testing. \
|
|
rdobuilder |
331a50 |
Testing a WSGI application normally involves starting a server at \
|
|
rdobuilder |
331a50 |
a local host and port, then pointing your test code to that address. \
|
|
rdobuilder |
331a50 |
Instead,this library lets you intercept calls to any specific host/port \
|
|
rdobuilder |
331a50 |
combination and redirect them into a `WSGI application`_ importable by \
|
|
rdobuilder |
331a50 |
your test program.
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
Name: python-%{pypi_name}
|
|
rdobuilder |
331a50 |
Version: 1.13.1
|
|
rdobuilder |
331a50 |
Release: 1%{?dist}
|
|
rdobuilder |
331a50 |
Summary: wsgi_intercept installs a WSGI application in place of a real URI for testing
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
License: MIT
|
|
rdobuilder |
331a50 |
URL: https://github.com/cdent/wsgi-intercept
|
|
rdobuilder |
331a50 |
Source0: %pypi_source
|
|
rdobuilder |
331a50 |
BuildArch: noarch
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
BuildRequires: python3-devel
|
|
rdobuilder |
331a50 |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%description
|
|
rdobuilder |
331a50 |
%{common_desc}
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%package -n python3-%{pypi_name}
|
|
rdobuilder |
331a50 |
Summary: wsgi_intercept installs a WSGI application in place of a real URI for testing
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%description -n python3-%{pypi_name}
|
|
rdobuilder |
331a50 |
%{common_desc}
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%package -n python-%{pypi_name}-doc
|
|
rdobuilder |
331a50 |
Summary: Documentation for the wsgi-intercept module
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%description -n python-%{pypi_name}-doc
|
|
rdobuilder |
331a50 |
Documentation for the wsgi-intercept module
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%prep
|
|
rdobuilder |
331a50 |
%autosetup -n %{pypi_name}-%{version} -p1
|
|
rdobuilder |
331a50 |
sed -i 's/\.\[.*\]//' tox.ini
|
|
rdobuilder |
331a50 |
sed -i "s/'urllib3.*'/'urllib3'/" setup.py
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%generate_buildrequires
|
|
rdobuilder |
331a50 |
%if 0%{?with_docs}
|
|
rdobuilder |
331a50 |
%pyproject_buildrequires -t -x testing -x docs
|
|
rdobuilder |
331a50 |
%else
|
|
rdobuilder |
331a50 |
%pyproject_buildrequires -t -x testing
|
|
rdobuilder |
331a50 |
%endif
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%build
|
|
rdobuilder |
331a50 |
%pyproject_wheel
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
# generate html docs
|
|
rdobuilder |
331a50 |
%if 0%{?with_docs}
|
|
rdobuilder |
331a50 |
%tox -e docs
|
|
rdobuilder |
331a50 |
# remove the sphinx-build leftovers
|
|
rdobuilder |
331a50 |
rm -rf build/sphinx/.{doctrees,buildinfo}
|
|
rdobuilder |
331a50 |
%endif
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%install
|
|
rdobuilder |
331a50 |
%pyproject_install
|
|
rdobuilder |
331a50 |
%pyproject_save_files wsgi_intercept
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%check
|
|
rdobuilder |
331a50 |
export WSGI_INTERCEPT_SKIP_NETWORK=true
|
|
rdobuilder |
331a50 |
%tox
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
rdobuilder |
331a50 |
%doc README
|
|
rdobuilder |
331a50 |
%license LICENSE
|
|
rdobuilder |
331a50 |
%exclude %{python3_sitelib}/%{pypi_name}/tests
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%if 0%{?with_docs}
|
|
rdobuilder |
331a50 |
%files -n python-%{pypi_name}-doc
|
|
rdobuilder |
331a50 |
%license LICENSE
|
|
rdobuilder |
331a50 |
%doc build/sphinx
|
|
rdobuilder |
331a50 |
%endif
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
%changelog
|
|
rdobuilder |
331a50 |
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-7
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.12.0-6
|
|
rdobuilder |
331a50 |
- Rebuilt for Python 3.13
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-5
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-4
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 1.12.0-2
|
|
rdobuilder |
331a50 |
- Rebuilt for Python 3.12
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Mon Jul 03 2023 Joel Capitao <jcapitao@redhat.com> - 1.12.0-1
|
|
rdobuilder |
331a50 |
- Update to 1.12.0 (#2218071)
|
|
rdobuilder |
331a50 |
- Switch to pyproject-rpm-macros
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.11.0-2
|
|
rdobuilder |
331a50 |
- Rebuilt for Python 3.12
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Tue May 23 2023 Joel Capitao <jcapitao@redhat.com> - 1.11.0-1
|
|
rdobuilder |
331a50 |
- Update to 1.11.0 (#2140362)
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Aug 19 2022 Joel Capitao <jcapitao@redhat.com> - 1.10.0-1
|
|
rdobuilder |
331a50 |
- Update to 1.10.0 (#2040722)
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-9
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 1.9.2-8
|
|
rdobuilder |
331a50 |
- Rebuilt for Python 3.11
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-7
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-6
|
|
rdobuilder |
331a50 |
- Second attempt - Rebuilt for
|
|
rdobuilder |
331a50 |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.9.2-5
|
|
rdobuilder |
331a50 |
- Rebuilt for Python 3.10
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-4
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-3
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-2
|
|
rdobuilder |
331a50 |
- Rebuilt for Python 3.9
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Tue Feb 11 2020 Yatin Karel <ykarel@redhat.com> - 1.9.2-1
|
|
rdobuilder |
331a50 |
- Update to 1.9.2 (Resolves #1429737)
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-16
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-15
|
|
rdobuilder |
331a50 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-14
|
|
rdobuilder |
331a50 |
- Rebuilt for Python 3.8
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-13
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Thu May 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-12
|
|
rdobuilder |
331a50 |
- Subpackage python2-wsgi_intercept has been removed
|
|
rdobuilder |
331a50 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-11
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-10
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-9
|
|
rdobuilder |
331a50 |
- Rebuilt for Python 3.7
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.2-8
|
|
rdobuilder |
331a50 |
- Update Python 2 dependency declarations to new packaging standards
|
|
rdobuilder |
331a50 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.2-7
|
|
rdobuilder |
331a50 |
- Escape macros in %%changelog
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-6
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-5
|
|
rdobuilder |
331a50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-4
|
|
rdobuilder |
331a50 |
- Rebuild for Python 3.6
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Wed May 11 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-3
|
|
rdobuilder |
331a50 |
- Added missing python3 macro in %%check
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Wed May 11 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-2
|
|
rdobuilder |
331a50 |
- Applied python3 Alan Pevec patch
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Wed May 05 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-1
|
|
rdobuilder |
331a50 |
- Bumped to version 1.2.2
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Mon Sep 21 2015 Chandan Kumar <chkumar246@gmail.com> - 0.10.3-2
|
|
rdobuilder |
331a50 |
- Fixed import error
|
|
rdobuilder |
331a50 |
- Removed test folder
|
|
rdobuilder |
331a50 |
|
|
rdobuilder |
331a50 |
* Wed Sep 16 2015 Chandan Kumar <chkumar246@gmail.com> - 0.10.3-1
|
|
rdobuilder |
331a50 |
- Initial package.
|