* Removes the patch to de-embbed six, which is now an external dependency

also in upstream code.
This commit is contained in:
Thomas Goirand 2015-06-01 23:15:02 +02:00
parent caa878ef96
commit f25843d566
4 changed files with 19 additions and 63 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
python-retrying (1.3.3-1) unstable; urgency=medium
* New upstream release.
* Removes the patch to de-embbed six, which is now an external dependency
also in upstream code.
-- Thomas Goirand <zigo@debian.org> Mon, 01 Jun 2015 23:10:00 +0200
python-retrying (1.2.3-2) unstable; urgency=medium python-retrying (1.2.3-2) unstable; urgency=medium
* Removed embedded copy of six using a patch from Chuck Short. Thanks to * Removed embedded copy of six using a patch from Chuck Short. Thanks to

22
debian/control vendored
View File

@ -2,16 +2,14 @@ Source: python-retrying
Section: python Section: python
Priority: optional Priority: optional
Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org> Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
Uploaders: Julien Danjou <acid@debian.org>, Uploaders: Thomas Goirand <zigo@debian.org>,
Thomas Goirand <zigo@debian.org>,
Mehdi Abaakouk <sileht@sileht.net>,
Gonéri Le Bouder <goneri@debian.org>
Build-Depends: debhelper (>= 9), Build-Depends: debhelper (>= 9),
python-all (>= 2.6.6-3~), python-all,
python-setuptools, python-setuptools,
python3-all, python3-all,
python3-setuptools python3-setuptools,
Build-Depends-Indep: python-six, python3-six Build-Depends-Indep: python-six,
python3-six,
Standards-Version: 3.9.5 Standards-Version: 3.9.5
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-retrying.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-retrying.git
Vcs-Git: git://anonscm.debian.org/openstack/python-retrying.git Vcs-Git: git://anonscm.debian.org/openstack/python-retrying.git
@ -19,8 +17,9 @@ Homepage: https://github.com/rholder/retrying
Package: python-retrying Package: python-retrying
Architecture: all Architecture: all
Pre-Depends: dpkg (>= 1.15.6~) Depends: python-six,
Depends: python-six, ${misc:Depends}, ${python:Depends} ${misc:Depends},
${python:Depends},
Description: simplifies the task of adding retry behavior - Python 2.x Description: simplifies the task of adding retry behavior - Python 2.x
Retrying is an Apache 2.0 licensed general-purpose retrying library, written Retrying is an Apache 2.0 licensed general-purpose retrying library, written
in Python, to simplify the task of adding retry behavior to just about in Python, to simplify the task of adding retry behavior to just about
@ -37,8 +36,9 @@ Description: simplifies the task of adding retry behavior - Python 2.x
Package: python3-retrying Package: python3-retrying
Architecture: all Architecture: all
Pre-Depends: dpkg (>= 1.15.6~) Depends: python3-six,
Depends: python3-six, ${misc:Depends}, ${python3:Depends} ${misc:Depends},
${python3:Depends},
Description: simplifies the task of adding retry behavior - Python 3.x Description: simplifies the task of adding retry behavior - Python 3.x
Retrying is an Apache 2.0 licensed general-purpose retrying library, written Retrying is an Apache 2.0 licensed general-purpose retrying library, written
in Python, to simplify the task of adding retry behavior to just about in Python, to simplify the task of adding retry behavior to just about

View File

@ -1 +0,0 @@
six.patch

View File

@ -1,51 +0,0 @@
Description: Remove six copying and use six directly.
Author: Chuck Short <zulcss@ubuntu.com>
Forwarded: Not yet
Last-Update: 2014-09-30
Index: python-retrying/retrying.py
===================================================================
--- python-retrying.orig/retrying.py
+++ python-retrying/retrying.py
@@ -40,31 +40,7 @@ import sys
import time
import traceback
-# Python 3 compatibility hacks, pilfered from https://pypi.python.org/pypi/six/1.6.1
-PY3 = sys.version_info[0] == 3
-if PY3:
- def reraise(tp, value, tb=None):
- if value.__traceback__ is not tb:
- raise value.with_traceback(tb)
- raise value
-
-else:
- def exec_(_code_, _globs_=None, _locs_=None):
- """Execute code in a namespace."""
- if _globs_ is None:
- frame = sys._getframe(1)
- _globs_ = frame.f_globals
- if _locs_ is None:
- _locs_ = frame.f_locals
- del frame
- elif _locs_ is None:
- _locs_ = _globs_
- exec("""exec _code_ in _globs_, _locs_""")
-
-
- exec_("""def reraise(tp, value, tb=None):
- raise tp, value, tb
-""")
+import six
# sys.maxint / 2, since Python 3.2 doesn't have a sys.maxint...
MAX_WAIT = 1073741823
@@ -282,7 +258,7 @@ class Attempt(object):
if wrap_exception:
raise RetryError(self)
else:
- reraise(self.value[0], self.value[1], self.value[2])
+ six.reraise(self.value[0], self.value[1], self.value[2])
else:
return self.value