summaryrefslogtreecommitdiffstats
path: root/python-cheroot.spec
diff options
context:
space:
mode:
authorKen Dreyer <kdreyer@redhat.com>2019-02-25 10:21:30 -0700
committerKen Dreyer <kdreyer@redhat.com>2019-02-25 15:47:22 -0700
commit2a15a34d74c99f1501e0a433fb49271b1d959aa5 (patch)
treedd12fa8f978489eb485677723f6f93d34816c0ec /python-cheroot.spec
downloadpython-cheroot-2a15a34d74c99f1501e0a433fb49271b1d959aa5.tar.gz
python-cheroot-2a15a34d74c99f1501e0a433fb49271b1d959aa5.tar.xz
python-cheroot-2a15a34d74c99f1501e0a433fb49271b1d959aa5.zip
initial package
Diffstat (limited to 'python-cheroot.spec')
-rw-r--r--python-cheroot.spec64
1 files changed, 64 insertions, 0 deletions
diff --git a/python-cheroot.spec b/python-cheroot.spec
new file mode 100644
index 0000000..aa90ac1
--- /dev/null
+++ b/python-cheroot.spec
@@ -0,0 +1,64 @@
+%global pkgname cheroot
+
+Name: python-%{pkgname}
+Version: 6.5.4
+Release: 1%{?dist}
+Summary: Highly-optimized, pure-python HTTP server
+License: BSD
+URL: https://cheroot.cherrypy.org/
+
+Source0: https://files.pythonhosted.org/packages/source/c/%{pkgname}/%{pkgname}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python3-devel
+BuildRequires: python3-pytest >= 2.8
+BuildRequires: python3-pytest-mock
+BuildRequires: python3-setuptools_scm
+BuildRequires: python3-setuptools_scm_git_archive
+BuildRequires: python3-ddt
+BuildRequires: python3-pyOpenSSL
+BuildRequires: python3-requests
+BuildRequires: python3-trustme
+BuildRequires: python3-requests-unixsocket
+
+%global _description\
+Cheroot is the high-performance, pure-Python HTTP server used by CherryPy.
+
+%description %_description
+
+%package -n python3-%{pkgname}
+Summary: Highly-optimized, pure-python HTTP server
+Requires: python3
+
+%description -n python3-%{pkgname} %_description
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+# Drop testmon and coverage dependencies:
+sed -i 's/ --testmon//' pytest.ini
+sed -i 's/ --cov=cheroot//' pytest.ini
+sed -i 's/ --cov-report term-missing:skip-covered//' pytest.ini
+sed -i 's/ --cov-report xml//' pytest.ini
+
+%build
+SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
+%{py3_build}
+
+%install
+%{py3_install}
+
+%check
+# test_ssl.py currently fails to handle requests.exceptions.SSLError message
+# comparisons. Need to debug further and report/fix upstream.
+py.test-%{python3_version} || :
+
+%files -n python3-%{pkgname}
+%license LICENSE.md
+%doc README.rst
+%{python3_sitelib}/*
+%{_bindir}/cheroot
+
+%changelog
+* Mon Feb 25 2019 Ken Dreyer <kdreyer@redhat.com> - 6.5.4-1
+- initial package.