[Python-modules-commits] [vine] 02/09: Import vine_1.1.4+dfsg.orig.tar.gz
Christopher Stuart Hoskin
mans0954 at moszumanska.debian.org
Fri Oct 27 19:12:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
mans0954 pushed a commit to branch master
in repository vine.
commit 25eba831e0721ec1567637c3c9ff706d1a1f78cb
Author: Christopher Hoskin <mans0954 at debian.org>
Date: Fri Oct 27 19:47:37 2017 +0100
Import vine_1.1.4+dfsg.orig.tar.gz
---
Changelog | 13 ++++++++++++-
PKG-INFO | 8 ++++++--
README.rst | 2 +-
docs/includes/introduction.txt | 2 +-
setup.cfg | 1 -
setup.py | 4 ++++
vine/__init__.py | 2 +-
vine/five.py | 11 +++++++++--
vine/promises.py | 4 ++++
vine/synchronization.py | 2 +-
10 files changed, 39 insertions(+), 10 deletions(-)
diff --git a/Changelog b/Changelog
index bfce549..aa58245 100644
--- a/Changelog
+++ b/Changelog
@@ -1,7 +1,18 @@
Changes
=======
-.. _version-1.3.3:
+.. _version-1.1.4:
+
+1.1.4
+=====
+:release-date: 2017-07-16 10:30 P.M UTC+2
+:release-by: Ask Solem
+
+- Added official support for Python 3.5 & 3.6.
+- Improve Python 2/3 compatibility.
+- Don't set mutable default values to keyword arguments.
+
+.. _version-1.1.3:
1.1.3
=====
diff --git a/PKG-INFO b/PKG-INFO
index 048cd00..a65fb2d 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: vine
-Version: 1.1.3
+Version: 1.1.4
Summary: Promises, promises, promises.
Home-page: http://github.com/celery/vine
Author: Ask Solem
@@ -12,7 +12,7 @@ Description: ===================================================================
|build-status| |coverage| |license| |wheel| |pyversion| |pyimp|
- :Version: 1.1.3
+ :Version: 1.1.4
:Web: https://vine.readthedocs.io/
:Download: http://pypi.python.org/pypi/vine/
:Source: http://github.com/celery/vine/
@@ -54,6 +54,10 @@ Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: License :: OSI Approved :: BSD License
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
diff --git a/README.rst b/README.rst
index 1af8c81..87ddc3e 100644
--- a/README.rst
+++ b/README.rst
@@ -4,7 +4,7 @@
|build-status| |coverage| |license| |wheel| |pyversion| |pyimp|
-:Version: 1.1.3
+:Version: 1.1.4
:Web: https://vine.readthedocs.io/
:Download: http://pypi.python.org/pypi/vine/
:Source: http://github.com/celery/vine/
diff --git a/docs/includes/introduction.txt b/docs/includes/introduction.txt
index 0593aaf..573f4a1 100644
--- a/docs/includes/introduction.txt
+++ b/docs/includes/introduction.txt
@@ -1,4 +1,4 @@
-:Version: 1.1.3
+:Version: 1.1.4
:Web: https://vine.readthedocs.io/
:Download: http://pypi.python.org/pypi/vine/
:Source: http://github.com/celery/vine/
diff --git a/setup.cfg b/setup.cfg
index 2139e98..a50dce1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -14,5 +14,4 @@ universal = 1
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff --git a/setup.py b/setup.py
index 481f16d..a5c4819 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,10 @@ classes = """
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
+ Programming Language :: Python :: 3.5
+ Programming Language :: Python :: 3.6
+ Programming Language :: Python :: Implementation :: CPython
+ Programming Language :: Python :: Implementation :: PyPy
License :: OSI Approved :: BSD License
Intended Audience :: Developers
Operating System :: OS Independent
diff --git a/vine/__init__.py b/vine/__init__.py
index 3ef11d5..61865a7 100644
--- a/vine/__init__.py
+++ b/vine/__init__.py
@@ -14,7 +14,7 @@ from .funtools import (
)
-__version__ = '1.1.3'
+__version__ = '1.1.4'
__author__ = 'Ask Solem'
__contact__ = 'ask at celeryproject.org'
__homepage__ = 'http://github.com/celery/vine'
diff --git a/vine/five.py b/vine/five.py
index 2d87a41..e63caf7 100644
--- a/vine/five.py
+++ b/vine/five.py
@@ -48,7 +48,10 @@ PY2 = sys.version_info[0] < 3
try:
reload = reload # noqa
except NameError: # pragma: no cover
- from imp import reload # noqa
+ try:
+ from importlib import reload # noqa
+ except ImportError: # pragma: no cover
+ from imp import reload # noqa
try:
from collections import UserList # noqa
@@ -236,7 +239,7 @@ else:
exec_("""def reraise(tp, value, tb=None): raise tp, value, tb""")
-def with_metaclass(Type, skip_attrs={'__dict__', '__weakref__'}):
+def with_metaclass(Type, skip_attrs=None):
"""Class decorator to set metaclass.
Works with both Python 2 and Python 3 and it does not add
@@ -244,6 +247,9 @@ def with_metaclass(Type, skip_attrs={'__dict__', '__weakref__'}):
(that is -- it copies the original class instead of using inheritance).
"""
+ if skip_attrs is None:
+ skip_attrs = {'__dict__', '__weakref__'}
+
def _clone_with_metaclass(Class):
attrs = {key: value for key, value in items(vars(Class))
if key not in skip_attrs}
@@ -251,6 +257,7 @@ def with_metaclass(Type, skip_attrs={'__dict__', '__weakref__'}):
return _clone_with_metaclass
+
# ############# threading.TIMEOUT_MAX ########################################
try:
from threading import TIMEOUT_MAX as THREAD_TIMEOUT_MAX
diff --git a/vine/promises.py b/vine/promises.py
index cfa6451..a00aacc 100644
--- a/vine/promises.py
+++ b/vine/promises.py
@@ -94,6 +94,10 @@ class promise(object):
self.failed = False
self.value = None
self.reason = None
+ # Optimization
+ # Most promises will only have one callback, so we optimize for this
+ # case by using a list only when there are multiple callbacks.
+ # s(calar) pending / l(ist) pending
self._svpending = None
self._lvpending = None
self.on_error = on_error
diff --git a/vine/synchronization.py b/vine/synchronization.py
index 2463ab3..0dd6bfe 100644
--- a/vine/synchronization.py
+++ b/vine/synchronization.py
@@ -93,4 +93,4 @@ class barrier(object):
if not self.cancelled:
self.p.throw(*args, **kwargs)
throw1 = throw
-Thenable.register(barrier)
+Thenable.register(barrier) # noqa: E305
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/vine.git
More information about the Python-modules-commits
mailing list