|
|
9ba7932 |
%global pypi_name wsgi_intercept
|
|
|
9ba7932 |
|
|
|
1905ab1 |
%global common_desc \
|
|
|
1905ab1 |
It installs a WSGI application in place of a real URI for testing. \
|
|
|
1905ab1 |
Testing a WSGI application normally involves starting a server at \
|
|
|
1905ab1 |
a local host and port, then pointing your test code to that address. \
|
|
|
1905ab1 |
Instead,this library lets you intercept calls to any specific host/port \
|
|
|
1905ab1 |
combination and redirect them into a `WSGI application`_ importable by \
|
|
|
1905ab1 |
your test program.
|
|
|
1905ab1 |
|
|
|
9ba7932 |
|
|
|
9ba7932 |
Name: python-%{pypi_name}
|
|
|
1905ab1 |
Version: 1.12.0
|
|
|
4c326b1 |
Release: 1%{?dist}
|
|
|
9ba7932 |
Summary: wsgi_intercept installs a WSGI application in place of a real URI for testing
|
|
|
9ba7932 |
|
|
|
9ba7932 |
License: MIT
|
|
|
9ba7932 |
URL: https://github.com/cdent/wsgi-intercept
|
|
|
1905ab1 |
Source0: %pypi_source
|
|
|
9ba7932 |
BuildArch: noarch
|
|
|
9ba7932 |
|
|
|
1905ab1 |
BuildRequires: python3-devel
|
|
|
1905ab1 |
BuildRequires: pyproject-rpm-macros
|
|
|
9ba7932 |
|
|
|
1905ab1 |
%description
|
|
|
1905ab1 |
%{common_desc}
|
|
|
9ba7932 |
|
|
|
9ba7932 |
%package -n python3-%{pypi_name}
|
|
|
9ba7932 |
Summary: wsgi_intercept installs a WSGI application in place of a real URI for testing
|
|
|
9ba7932 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
9ba7932 |
|
|
|
1905ab1 |
%description -n python3-%{pypi_name}
|
|
|
1905ab1 |
%{common_desc}
|
|
|
9ba7932 |
|
|
|
1905ab1 |
%package -n python-%{pypi_name}-doc
|
|
|
1905ab1 |
Summary: Documentation for the wsgi-intercept module
|
|
|
1905ab1 |
|
|
|
1905ab1 |
%description -n python-%{pypi_name}-doc
|
|
|
1905ab1 |
Documentation for the wsgi-intercept module
|
|
|
9ba7932 |
|
|
|
9ba7932 |
|
|
|
9ba7932 |
%prep
|
|
|
9ba7932 |
%setup -q -n %{pypi_name}-%{version}
|
|
|
1905ab1 |
|
|
|
1905ab1 |
%generate_buildrequires
|
|
|
1905ab1 |
%pyproject_buildrequires -x testing -x docs
|
|
|
9ba7932 |
|
|
|
9ba7932 |
%build
|
|
|
1905ab1 |
%pyproject_wheel
|
|
|
8014583 |
|
|
|
9ba7932 |
# generate html docs
|
|
|
1905ab1 |
# Use tox macro -e docs once https://github.com/cdent/wsgi-intercept/pull/71 is merged
|
|
|
1905ab1 |
# and contained in a release.
|
|
|
9ba7932 |
export PYTHONPATH="$( pwd ):$PYTHONPATH"
|
|
|
1905ab1 |
sphinx-build docs build/sphinx
|
|
|
9ba7932 |
# remove the sphinx-build leftovers
|
|
|
1905ab1 |
rm -rf build/sphinx/.{doctrees,buildinfo}
|
|
|
9ba7932 |
|
|
|
9ba7932 |
%install
|
|
|
1905ab1 |
%pyproject_install
|
|
|
1905ab1 |
%pyproject_save_files wsgi_intercept
|
|
|
9ba7932 |
|
|
|
9ba7932 |
%check
|
|
|
1905ab1 |
# Use tox macro once https://github.com/cdent/wsgi-intercept/pull/71 is merged
|
|
|
1905ab1 |
# and contained in a release.
|
|
|
9ba7932 |
%{__python3} setup.py test
|
|
|
9ba7932 |
|
|
|
1905ab1 |
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
9ba7932 |
%doc README
|
|
|
9ba7932 |
%license LICENSE
|
|
|
1905ab1 |
%exclude %{python3_sitelib}/%{pypi_name}/tests
|
|
|
9ba7932 |
|
|
|
9ba7932 |
%files -n python-%{pypi_name}-doc
|
|
|
9ba7932 |
%license LICENSE
|
|
|
1905ab1 |
%doc build/sphinx
|
|
|
9ba7932 |
|
|
|
9ba7932 |
%changelog
|
|
|
1905ab1 |
* Mon Jul 03 2023 Joel Capitao <jcapitao@redhat.com> - 1.12.0-1
|
|
|
1905ab1 |
- Update to 1.12.0 (#2218071)
|
|
|
1905ab1 |
- Switch to pyproject-rpm-macros
|
|
|
1905ab1 |
|
|
|
4c326b1 |
* Tue May 23 2023 Joel Capitao <jcapitao@redhat.com> - 1.11.0-1
|
|
|
4c326b1 |
- Update to 1.11.0 (#2140362)
|
|
|
4c326b1 |
|
|
|
93bb5b4 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
|
|
|
93bb5b4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
93bb5b4 |
|
|
|
7389a0b |
* Fri Aug 19 2022 Joel Capitao <jcapitao@redhat.com> - 1.10.0-1
|
|
|
7389a0b |
- Update to 1.10.0 (#2040722)
|
|
|
7389a0b |
|
|
|
c536eae |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-9
|
|
|
c536eae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
c536eae |
|
|
|
78184d6 |
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 1.9.2-8
|
|
|
78184d6 |
- Rebuilt for Python 3.11
|
|
|
78184d6 |
|
|
|
c9d6e0d |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-7
|
|
|
c9d6e0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
c9d6e0d |
|
|
|
557f756 |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-6
|
|
|
557f756 |
- Second attempt - Rebuilt for
|
|
|
557f756 |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
557f756 |
|
|
|
7527f23 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.9.2-5
|
|
|
7527f23 |
- Rebuilt for Python 3.10
|
|
|
7527f23 |
|
|
|
cf6d8c5 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-4
|
|
|
cf6d8c5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
cf6d8c5 |
|
|
|
4aece06 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-3
|
|
|
4aece06 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
4aece06 |
|
|
|
27af815 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-2
|
|
|
27af815 |
- Rebuilt for Python 3.9
|
|
|
27af815 |
|
|
|
577b449 |
* Tue Feb 11 2020 Yatin Karel <ykarel@redhat.com> - 1.9.2-1
|
|
|
577b449 |
- Update to 1.9.2 (Resolves #1429737)
|
|
|
577b449 |
|
|
|
424b228 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-16
|
|
|
424b228 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
424b228 |
|
|
|
bd9b231 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-15
|
|
|
bd9b231 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
bd9b231 |
|
|
|
9af0c41 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-14
|
|
|
9af0c41 |
- Rebuilt for Python 3.8
|
|
|
9af0c41 |
|
|
|
97bc342 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-13
|
|
|
97bc342 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
97bc342 |
|
|
|
8014583 |
* Thu May 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-12
|
|
|
8014583 |
- Subpackage python2-wsgi_intercept has been removed
|
|
|
8014583 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
8014583 |
|
|
|
3498798 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-11
|
|
|
3498798 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
3498798 |
|
|
|
d252e01 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-10
|
|
|
d252e01 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
d252e01 |
|
|
|
974cc06 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-9
|
|
|
974cc06 |
- Rebuilt for Python 3.7
|
|
|
974cc06 |
|
|
|
ef1c5e0 |
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.2-8
|
|
|
ef1c5e0 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
ef1c5e0 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
ef1c5e0 |
|
|
|
8de8b70 |
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.2-7
|
|
|
8de8b70 |
- Escape macros in %%changelog
|
|
|
8de8b70 |
|
|
|
3ecea4f |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-6
|
|
|
3ecea4f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
3ecea4f |
|
|
|
6d59f4c |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-5
|
|
|
6d59f4c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
6d59f4c |
|
|
|
2e0c449 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-4
|
|
|
2e0c449 |
- Rebuild for Python 3.6
|
|
|
2e0c449 |
|
|
|
2065710 |
* Wed May 11 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-3
|
|
|
8de8b70 |
- Added missing python3 macro in %%check
|
|
|
2065710 |
|
|
|
2ba6d7b |
* Wed May 11 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-2
|
|
|
2ba6d7b |
- Applied python3 Alan Pevec patch
|
|
|
826aa46 |
|
|
|
2ba6d7b |
* Wed May 05 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-1
|
|
|
2ba6d7b |
- Bumped to version 1.2.2
|
|
|
dd1aa08 |
|
|
|
9ba7932 |
* Mon Sep 21 2015 Chandan Kumar <chkumar246@gmail.com> - 0.10.3-2
|
|
|
9ba7932 |
- Fixed import error
|
|
|
9ba7932 |
- Removed test folder
|
|
|
9ba7932 |
|
|
|
9ba7932 |
* Wed Sep 16 2015 Chandan Kumar <chkumar246@gmail.com> - 0.10.3-1
|
|
|
9ba7932 |
- Initial package.
|