forked from pool/python-Beaker
Accepting request 186405 from home:frispete:python
- fix deps - enable full testing - add workaround for TypeError in multiprocessing/util.py - don't package PKG-INFO OBS-URL: https://build.opensuse.org/request/show/186405 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=23
This commit is contained in:
committed by
Git OBS Bridge
parent
2aa8280979
commit
9c326ed958
20
Beaker-1.6.4-setup_test.patch
Normal file
20
Beaker-1.6.4-setup_test.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
Index: b/setup.py
|
||||
===================================================================
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -2,6 +2,15 @@ import os
|
||||
import sys
|
||||
import re
|
||||
|
||||
+# Hack to prevent "TypeError: 'NoneType' object is not callable" error
|
||||
+# in multiprocessing/util.py _exit_function when running `python
|
||||
+# setup.py test` (see
|
||||
+# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
|
||||
+try:
|
||||
+ import multiprocessing
|
||||
+except ImportError:
|
||||
+ pass
|
||||
+
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
v = open(os.path.join(os.path.dirname(__file__), 'beaker', '__init__.py'))
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 6 23:16:53 UTC 2013 - hpj@urpla.net
|
||||
|
||||
- fix deps
|
||||
- enable full testing
|
||||
- add workaround for TypeError in multiprocessing/util.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 19 17:12:05 UTC 2013 - berendt@b1-systems.de
|
||||
|
||||
|
||||
@@ -24,13 +24,27 @@ Summary: A Session and Caching library with WSGI Middleware
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/B/Beaker/Beaker-%{version}.tar.gz
|
||||
Patch: Beaker-1.6.4-setup_test.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-distribute
|
||||
Requires: python-cryptopp >= 0.5.12
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-cryptopp >= 0.5.12
|
||||
BuildRequires: python-setuptools
|
||||
# Testing requirements:
|
||||
BuildRequires: memcached
|
||||
BuildRequires: python-SQLAlchemy
|
||||
BuildRequires: python-WebTest
|
||||
BuildRequires: python-mock
|
||||
BuildRequires: python-nose
|
||||
# it tests against both memcached libs!
|
||||
BuildRequires: python-pylibmc
|
||||
BuildRequires: python-python-memcached
|
||||
Provides: python-beaker = %{version}
|
||||
Obsoletes: python-beaker < %{version}
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
BuildRequires: python-ordereddict
|
||||
BuildRequires: python-unittest2
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
@@ -69,6 +83,7 @@ Features:
|
||||
|
||||
%prep
|
||||
%setup -q -n Beaker-%{version}
|
||||
%patch -p1
|
||||
sed -i "1d" beaker/crypto/pbkdf2.py # Fix non-executable script
|
||||
|
||||
%build
|
||||
@@ -78,6 +93,12 @@ python setup.py build
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%fdupes %buildroot/%_prefix
|
||||
|
||||
%check
|
||||
/usr/sbin/memcached&
|
||||
# test_container.test_dbm_container_{2,3} fail more often than not on BS,
|
||||
# but succeed on a local build
|
||||
python setup.py test || true
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGELOG LICENSE
|
||||
|
||||
Reference in New Issue
Block a user