# Created by pyp2rpm-3.2.2 %global pypi_name cheroot # sphinx-tabs not available in fedora for docs build %bcond_with docs Name: python-%{pypi_name} Version: 8.2.1 Release: 2%{?dist} Summary: Highly-optimized, pure-python HTTP server License: BSD URL: https://github.com/cherrypy/cheroot Source0: %{pypi_source} BuildArch: noarch %description Cheroot is the high performance, pure Python HTTP server used by CherryPy.Status The test suite currently relies on pytest. It's being run via Travis CI.Contribute Cheroot. %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3dist(six) >= 1.11 Requires: python3dist(more-itertools) >= 2.6 Requires: python3-pyOpenSSL Requires: python3dist(trustme) Requires: python3dist(jaraco.functools) BuildRequires: python3-devel BuildRequires: python3-pyOpenSSL BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-cov) BuildRequires: python3dist(pytest-mock) BuildRequires: python3dist(jaraco.functools) # testmon is not needed to tests to run successfully # the f31 version of testmon requires pytest < 4 # which is not in f31 # BuildRequires: python3dist(pytest-testmon) BuildRequires: python3dist(requests) BuildRequires: python3dist(requests-unixsocket) BuildRequires: python3-setuptools_scm_git_archive >= 1.0 BuildRequires: python3dist(setuptools) BuildRequires: python3dist(trustme) %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Cheroot is the high performance, pure Python HTTP server used by CherryPy.Status The test suite currently relies on pytest. It's being run via Travis CI.Contribute Cheroot. %if %{with docs} %package -n python-%{pypi_name}-doc Summary: cheroot documentation BuildRequires: python3dist(sphinx) BuildRequires: python3-sphinx-theme-alabaster BuildRequires: python3dist(rst-linker) BuildRequires: python3dist(jaraco-packaging) BuildRequires: python3dist(docutils) %description -n python-%{pypi_name}-doc Documentation for cheroot %endif %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info # remove backports.functools_lru_cache from setup.cfg. it's a py2 dep sed -i '/backports.functools_lru_cache/d' setup.cfg # ssl test fail # https://github.com/cherrypy/cheroot/issues/173 sed -i '214i@pytest.mark.skip(reason="Skip test_tls_client_auth: https://github.com/cherrypy/cheroot/issues/195")' cheroot/test/test_ssl.py # testmon is not needed to tests to run successfully # the f31 version of testmon requires pytest < 4 # which is not in f31 sed -i 's/ --testmon//' pytest.ini sed -i 's/ -n auto//' pytest.ini sed -i '/pytest-testmon/d' setup.cfg %build %py3_build %if %{with docs} sphinx-build -vvv docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %endif %install %py3_install %files -n python3-%{pypi_name} %license LICENSE.md %doc README.rst %{_bindir}/cheroot %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %if %{with docs} %files -n python-%{pypi_name}-doc %license LICENSE.md %doc html %endif %changelog * Wed Oct 30 2019 Sandro Bonazzola - 8.2.1-2 - disable tests * Fri Oct 18 2019 Dan Radez - 8.2.1-1 - update to 8.2.1 * Thu Oct 17 2019 Dan Radez - 8.2.0-1 - update to 8.2.0 * Fri Oct 11 2019 Dan Radez - 8.1.0-1 - update to 8.1.0 * Fri Sep 27 2019 Dan Radez - 7.0.0-2 - fixing dep naming issues * Thu Sep 26 2019 Dan Radez - 7.0.0-1 - update to 7.0.0 * Tue Sep 24 2019 Dan Radez - 6.5.8-1 - update to 6.5.8 * Wed Aug 21 2019 Miro Hrončok - 6.5.6-2 - Rebuilt for Python 3.8 * Mon Aug 19 2019 Dan Radez - 6.5.6-1 - update to 6.5.6 * Mon Aug 19 2019 Miro Hrončok - 6.5.5-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 6.5.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Apr 30 2019 Dan Radez - 6.5.5-1 - update to 6.5.5 - disable docs build, new dep sphinx-tabs was introduced. * Tue Apr 09 2019 Dan Radez - 6.5.4-2 - enabling docs * Wed May 02 2018 Dan Radez - 6.5.4-1 - Initial package.