15
0
forked from pool/python-Beaker

Accepting request 304167 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/304167
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Beaker?expand=0&rev=18
This commit is contained in:
Stephan Kulow
2015-04-27 20:08:51 +00:00
committed by Git OBS Bridge
5 changed files with 32 additions and 52 deletions

View File

@@ -1,20 +0,0 @@
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'))

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5b06dcc9f7b1921bc962235c4051aa5f3f5d3609f42faa6064dc614ace031a3a
size 54480

3
Beaker-1.7.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:98eec7e4cdba442079d0871fea6853627c8fd87ed0da644510c1d3b184f0646f
size 34299

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Sat Apr 25 18:36:03 UTC 2015 - benoit.monin@gmx.fr
- update to version 1.7.0:
* Beaker no longer supports python 2.4 and 2.5
* Beaker now supports Python 2.6, 2.7, 3.2, 3.3, 3.4 without
2to3 usage
* Fixed Encrypted Cookie Session on Python3 #57
* New pbkdf2 mobule working on Python3 #21
* Fixed Test suite on Python 3.3 #53, #51
- additional changes from version 1.6.5:
* @cached decorator now keeps docstring of decorated method.
* Fix crash when Session ``accessed_time`` is not available,
this happened when session ``encrypt_key`` was changed.
* Fix cache regions not providing a default key length even
though this was required and examples in the doc didn't
provide it.
* Fix crash when cache expire wasn't an int, this happened when
caching options were loaded from a config file.
- remove everything related to tests:
upstream deleted them from archive
- drop Beaker-1.6.4-setup_test.patch: only used by the tests
- do not delete the shebang of pbkdf2.py: fixed upstream
- remove CHANGELOG and LICENSE from package: deleted from archive
- add README.rst to the package documentation
-------------------------------------------------------------------
Fri Aug 9 09:20:00 UTC 2013 - speilicke@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Beaker
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,35 +16,19 @@
#
# memcached with both bindings can be a bit heavy at times, thus only enable
# with a build conditional (off by default):
%bcond_with tests
Name: python-Beaker
Version: 1.6.4
Version: 1.7.0
Release: 0
Url: http://beaker.rtfd.org/
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
Requires: python-cryptopp >= 0.5.12
BuildRequires: fdupes
BuildRequires: python-cryptopp >= 0.5.12
BuildRequires: python-setuptools
%if %{with tests}
# 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
%endif
Provides: python-beaker = %{version}
Obsoletes: python-beaker < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
@@ -88,8 +72,6 @@ Features:
%prep
%setup -q -n Beaker-%{version}
%patch -p1
sed -i "1d" beaker/crypto/pbkdf2.py # Fix non-executable script
%build
python setup.py build
@@ -98,17 +80,9 @@ python setup.py build
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes %buildroot/%_prefix
%if %{with tests}
%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
%endif
%files
%defattr(-,root,root,-)
%doc CHANGELOG LICENSE
%doc README.rst
%{python_sitelib}/beaker/
%{python_sitelib}/Beaker-%{version}-py%{py_ver}.egg-info