forked from pool/python-CherryPy
- Update to 18.2.0:
* File-based sessions no longer attempt to remove the lock files when releasing locks, instead deferring to the default behavior of zc.lockfile. Fixes :issue:`1391` and :issue:`1779`. * Add native support for 308 Permanent Redirect usable via raise cherrypy.HTTPRedirect('/new_uri', 308). - Drop merged patch pytest5.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CherryPy?expand=0&rev=32
This commit is contained in:
committed by
Git OBS Bridge
parent
a039ff30bc
commit
118c202f01
@@ -19,14 +19,13 @@
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-CherryPy
|
||||
Version: 18.1.2
|
||||
Version: 18.2.0
|
||||
Release: 0
|
||||
Summary: Object-Oriented HTTP framework
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://www.cherrypy.org
|
||||
Source: https://files.pythonhosted.org/packages/source/C/CherryPy/CherryPy-%{version}.tar.gz
|
||||
Patch0: pytest5.patch
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -70,7 +69,6 @@ Oh, and most importantly: CherryPy is fun to work with :-)
|
||||
|
||||
%prep
|
||||
%setup -q -n CherryPy-%{version}
|
||||
%patch0 -p1
|
||||
# do not require cov/xdist/etc
|
||||
sed -i -e '/addopts/d' pytest.ini
|
||||
|
||||
@@ -79,12 +77,12 @@ sed -i -e '/addopts/d' pytest.ini
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/cherrypy/test
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/cherryd
|
||||
|
||||
%check
|
||||
# gh#cherrypy/cherrypy#1781
|
||||
%pytest -k 'not (test_wait_publishes_periodically or test_null_bytes)'
|
||||
%pytest -k 'not test_null_bytes'
|
||||
|
||||
%post
|
||||
%python_install_alternative cherryd
|
||||
|
Reference in New Issue
Block a user