Blame SPECS/python-wsgi_intercept.spec

389e2b
%global pypi_name wsgi_intercept
389e2b
389e2b
389e2b
Name:           python-%{pypi_name}
389e2b
Version:        1.9.2
389e2b
Release:        4%{?dist}
389e2b
Summary:        wsgi_intercept installs a WSGI application in place of a real URI for testing
389e2b
389e2b
License:        MIT
389e2b
URL:            https://github.com/cdent/wsgi-intercept
389e2b
Source0:        https://pypi.python.org/packages/source/w/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
389e2b
BuildArch:      noarch
389e2b
389e2b
%description
389e2b
It installs a WSGI application in place of a real URI for testing.
389e2b
Testing a WSGI application normally involves starting a server at
389e2b
a local host and port, then pointing your test code to that address.
389e2b
Instead,this library lets you intercept calls to any specific host/port
389e2b
combination and redirect them into a `WSGI application`_ importable by
389e2b
your test program.
389e2b
389e2b
%package -n python-%{pypi_name}-doc
389e2b
Summary:        Documentation for the wsgi-intercept module
389e2b
BuildRequires:  python3-sphinx
389e2b
BuildRequires:  python3-sphinx_rtd_theme
389e2b
389e2b
%description -n python-%{pypi_name}-doc
389e2b
Documentation for the wsgi-intercept module
389e2b
389e2b
%package -n python3-%{pypi_name}
389e2b
Summary:        wsgi_intercept installs a WSGI application in place of a real URI for testing
389e2b
%{?python_provide:%python_provide python3-%{pypi_name}}
389e2b
389e2b
BuildRequires:  python3-devel
389e2b
BuildRequires:  python3-setuptools
389e2b
# test dependencies
389e2b
BuildRequires:  python3-pytest
389e2b
BuildRequires:  python3-httplib2
389e2b
BuildRequires:  python3-requests
389e2b
389e2b
Requires:       python3-setuptools
389e2b
389e2b
%description -n python3-%{pypi_name}
389e2b
It installs a WSGI application in place of a real URI for testing.
389e2b
Testing a WSGI application normally involves starting a server at
389e2b
a local host and port, then pointing your test code to that address.
389e2b
Instead,this library lets you intercept calls to any specific host/port
389e2b
combination and redirect them into a `WSGI application`_ importable by
389e2b
your test program.
389e2b
389e2b
%prep
389e2b
%setup -q -n %{pypi_name}-%{version}
389e2b
# Remove bundled egg-info
389e2b
rm -rf %{pypi_name}.egg-info
389e2b
389e2b
%build
389e2b
%py3_build
389e2b
389e2b
# generate html docs
389e2b
export PYTHONPATH="$( pwd ):$PYTHONPATH"
389e2b
sphinx-build docs html
389e2b
# remove the sphinx-build leftovers
389e2b
rm -rf html/.{doctrees,buildinfo}
389e2b
389e2b
# fix file encoding
389e2b
sed -i 's/\r$//' html/_static/jquery.js
389e2b
389e2b
%install
389e2b
%py3_install
389e2b
389e2b
%check
389e2b
%{__python3} setup.py test
389e2b
389e2b
%files -n python3-%{pypi_name}
389e2b
%doc README
389e2b
%license LICENSE
389e2b
%{python3_sitelib}/%{pypi_name}*
389e2b
%exclude %{python3_sitelib}/test
389e2b
389e2b
%files -n python-%{pypi_name}-doc
389e2b
%license LICENSE
389e2b
%doc html
389e2b
389e2b
%changelog
389e2b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-4
389e2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
389e2b
389e2b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-3
389e2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
389e2b
389e2b
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-2
389e2b
- Rebuilt for Python 3.9
389e2b
389e2b
* Tue Feb 11 2020 Yatin Karel <ykarel@redhat.com> - 1.9.2-1
389e2b
- Update to 1.9.2 (Resolves #1429737)
389e2b
389e2b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-16
389e2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
389e2b
389e2b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-15
389e2b
- Rebuilt for Python 3.8.0rc1 (#1748018)
389e2b
389e2b
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-14
389e2b
- Rebuilt for Python 3.8
389e2b
389e2b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-13
389e2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
389e2b
389e2b
* Thu May 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-12
389e2b
- Subpackage python2-wsgi_intercept has been removed
389e2b
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
389e2b
389e2b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-11
389e2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
389e2b
389e2b
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-10
389e2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
389e2b
389e2b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-9
389e2b
- Rebuilt for Python 3.7
389e2b
389e2b
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.2-8
389e2b
- Update Python 2 dependency declarations to new packaging standards
389e2b
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
389e2b
389e2b
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.2-7
389e2b
- Escape macros in %%changelog
389e2b
389e2b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-6
389e2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
389e2b
389e2b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-5
389e2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
389e2b
389e2b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-4
389e2b
- Rebuild for Python 3.6
389e2b
389e2b
* Wed May 11 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-3
389e2b
- Added missing python3 macro in %%check
389e2b
389e2b
* Wed May 11 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-2
389e2b
- Applied python3 Alan Pevec patch
389e2b
389e2b
* Wed May 05 2016 Chandan Kumar <chkumar246@gmail.com> - 1.2.2-1
389e2b
- Bumped to version 1.2.2
389e2b
389e2b
* Mon Sep 21 2015 Chandan Kumar <chkumar246@gmail.com> - 0.10.3-2
389e2b
- Fixed import error
389e2b
- Removed test folder
389e2b
389e2b
* Wed Sep 16 2015 Chandan Kumar <chkumar246@gmail.com> - 0.10.3-1
389e2b
- Initial package.