forked from pool/python-CherryPy
- Update to 18.1.0:
* too many changes to iterate, see CHANGES.rst * Dropped support for python2 - Make sure tests are run OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CherryPy?expand=0&rev=23
This commit is contained in:
committed by
Git OBS Bridge
parent
7131bed871
commit
c49c2fa23d
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2ee7e514de0167b63233a6bba25dda2bb9d5ef800da8ea3a0282a9a57a382274
|
|
||||||
size 688216
|
|
3
CherryPy-18.1.0.tar.gz
Normal file
3
CherryPy-18.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4dd2f59b5af93bd9ca85f1ed0bb8295cd0f5a8ee2b84d476374d4e070aa5c615
|
||||||
|
size 682792
|
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 5 12:19:29 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 18.1.0:
|
||||||
|
* too many changes to iterate, see CHANGES.rst
|
||||||
|
* Dropped support for python2
|
||||||
|
- Make sure tests are run
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 9 14:23:16 UTC 2018 - normand@linux.vnet.ibm.com
|
Fri Feb 9 14:23:16 UTC 2018 - normand@linux.vnet.ibm.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-CherryPy
|
# spec file for package python-CherryPy
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,57 +12,46 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
# transient tests failures for PowerPC and x86_64
|
%define skip_python2 1
|
||||||
%bcond_with tests
|
|
||||||
|
|
||||||
%bcond_without python2
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define oldpython python
|
|
||||||
Name: python-CherryPy
|
Name: python-CherryPy
|
||||||
Version: 10.2.1
|
Version: 18.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.cherrypy.org
|
|
||||||
Summary: Object-Oriented HTTP framework
|
Summary: Object-Oriented HTTP framework
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
URL: http://www.cherrypy.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/C/CherryPy/CherryPy-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/C/CherryPy/CherryPy-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
# SECTION test requirements
|
|
||||||
BuildRequires: %{python_module cheroot >= 5.2.0}
|
|
||||||
BuildRequires: %{python_module nose}
|
|
||||||
BuildRequires: %{python_module portend >= 1.6.1}
|
|
||||||
BuildRequires: %{python_module pytest-runner}
|
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: %{python_module six}
|
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: python2-backports.unittest_mock
|
|
||||||
%endif
|
|
||||||
# /SECTION
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-cheroot >= 6.2.4
|
||||||
|
Requires: python-more-itertools
|
||||||
|
Requires: python-portend >= 2.1.1
|
||||||
|
Requires: python-zc.lockfile
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
Requires: python-cheroot >= 5.2.0
|
Recommends: python-Routes >= 2.3.1
|
||||||
Requires: python-portend >= 1.6.1
|
|
||||||
Requires: python-six
|
|
||||||
Recommends: python-simplejson
|
|
||||||
Recommends: python-Routes
|
|
||||||
Recommends: python-pyOpenSSL
|
|
||||||
Recommends: python-memcached >= 1.58
|
|
||||||
Recommends: python-flup
|
Recommends: python-flup
|
||||||
|
Recommends: python-memcached >= 1.58
|
||||||
|
Recommends: python-pyOpenSSL
|
||||||
|
Recommends: python-simplejson
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%ifpython2
|
# SECTION test requirements
|
||||||
Provides: %{oldpython}-cherrypy = %{version}
|
BuildRequires: %{python_module cheroot >= 6.2.4}
|
||||||
Obsoletes: %{oldpython}-cherrypy < %{version}
|
BuildRequires: %{python_module more-itertools}
|
||||||
%endif
|
BuildRequires: %{python_module path.py}
|
||||||
|
BuildRequires: %{python_module portend >= 2.1.1}
|
||||||
|
BuildRequires: %{python_module pytest-services}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module requests-toolbelt}
|
||||||
|
BuildRequires: %{python_module zc.lockfile}
|
||||||
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -80,21 +69,19 @@ Oh, and most importantly: CherryPy is fun to work with :-)
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n CherryPy-%{version}
|
%setup -q -n CherryPy-%{version}
|
||||||
|
# do not require cov/xdist/etc
|
||||||
|
sed -i -e '/addopts/d' pytest.ini
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%python_clone -a %{buildroot}%{_bindir}/cherryd
|
%python_clone -a %{buildroot}%{_bindir}/cherryd
|
||||||
%fdupes %{buildroot}%{_prefix}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with tests}
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
|
||||||
%python_exec -m pytest cherrypy/test
|
|
||||||
%else
|
|
||||||
echo "transient test failures so disable pytest."
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative cherryd
|
%python_install_alternative cherryd
|
||||||
@@ -103,8 +90,8 @@ echo "transient test failures so disable pytest."
|
|||||||
%python_uninstall_alternative cherryd
|
%python_uninstall_alternative cherryd
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE.md
|
||||||
%doc README.rst LICENSE.md CHANGES.rst
|
%doc README.rst CHANGES.rst
|
||||||
%python_alternative %{_bindir}/cherryd
|
%python_alternative %{_bindir}/cherryd
|
||||||
%{python_sitelib}/cherrypy/
|
%{python_sitelib}/cherrypy/
|
||||||
%{python_sitelib}/CherryPy-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/CherryPy-%{version}-py%{python_version}.egg-info
|
||||||
|
Reference in New Issue
Block a user