[Python-modules-commits] [lazr.delegates] 02/04: Import lazr.delegates_2.0.3.orig.tar.gz

Barry Warsaw barry at moszumanska.debian.org
Wed Jul 8 15:15:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

barry pushed a commit to branch master
in repository lazr.delegates.

commit 30cd030c58ed350ad9bc3821734bc4821ed59969
Author: Barry Warsaw <barry at python.org>
Date:   Wed Jul 8 11:13:02 2015 -0400

    Import lazr.delegates_2.0.3.orig.tar.gz
---
 PKG-INFO                                 |  2 +-
 lazr.delegates.egg-info/PKG-INFO         |  2 +-
 lazr/delegates/__init__.py               |  2 ++
 lazr/delegates/docs/NEWS.rst             | 14 ++++++++++++++
 lazr/delegates/tests/test_passthrough.py |  2 +-
 lazr/delegates/version.txt               |  2 +-
 setup.py                                 | 18 ++++--------------
 tox.ini                                  |  2 +-
 8 files changed, 25 insertions(+), 19 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index 4a0d363..2de3a71 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: lazr.delegates
-Version: 2.0.2
+Version: 2.0.3
 Summary: Easily write objects that delegate behavior
 Home-page: https://launchpad.net/lazr.delegates
 Author: LAZR Developers
diff --git a/lazr.delegates.egg-info/PKG-INFO b/lazr.delegates.egg-info/PKG-INFO
index 4a0d363..2de3a71 100644
--- a/lazr.delegates.egg-info/PKG-INFO
+++ b/lazr.delegates.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: lazr.delegates
-Version: 2.0.2
+Version: 2.0.3
 Summary: Easily write objects that delegate behavior
 Home-page: https://launchpad.net/lazr.delegates
 Author: LAZR Developers
diff --git a/lazr/delegates/__init__.py b/lazr/delegates/__init__.py
index 5601956..6a54673 100644
--- a/lazr/delegates/__init__.py
+++ b/lazr/delegates/__init__.py
@@ -25,6 +25,8 @@ import pkg_resources
 __version__ = pkg_resources.resource_string(
     "lazr.delegates", "version.txt").strip()
 
+from lazr.delegates._passthrough import Passthrough
+
 # The class decorator syntax is different in Python 2 vs. Python 3.
 import sys
 if sys.version_info[0] == 2:
diff --git a/lazr/delegates/docs/NEWS.rst b/lazr/delegates/docs/NEWS.rst
index adbb485..d4480f4 100644
--- a/lazr/delegates/docs/NEWS.rst
+++ b/lazr/delegates/docs/NEWS.rst
@@ -2,38 +2,52 @@
 NEWS for lazr.delegates
 =======================
 
+2.0.3 (2015-07-08)
+==================
+- Restore the public import of ``lazr.delegates.Passthrough`` which was
+  inadvertently lost during the port to Python 3.
+- Officially add support for Python 3.5.
+- Drop official Python 2.6 support.
+
+
 2.0.2 (2015-01-05)
 ==================
 - Always use old-style namespace package registration in ``lazr/__init__.py``
   since the mere presence of this file subverts PEP 420 style namespace
   packages.  (LP: #1407816)
 
+
 2.0.1 (2014-08-21)
 ==================
 - Drop the use of `distribute` in favor of `setuptools`.  (LP: #1359927)
 - Run the test suite with `tox`.
 
+
 2.0 (2013-01-10)
 ================
 - Port to Python 3, which requires the use of the ``@delegate_to`` class
   decorator instead of the ``delegates()`` function call.  Officially support
   Python 2.6, 2.7, 3.2, and 3.3.
 
+
 1.2.0 (2010-07-16)
 ==================
 - Extend Passthrough so that it takes an extra (optional) callable argument,
   used to adapt the context before accessing the delegated attribute.
 
+
 1.1.0 (2009-08-31)
 ==================
 - Remove build dependencies on bzr and egg_info
 - remove sys.path hack in setup.py for __version__
 
+
 1.0.1 (2009-03-24)
 ==================
 - specify only v3 of LGPL
 - build/developer improvements
 
+
 1.0 (2008-12-19)
 ================
 - Initial release
diff --git a/lazr/delegates/tests/test_passthrough.py b/lazr/delegates/tests/test_passthrough.py
index 1dceff8..009ed73 100644
--- a/lazr/delegates/tests/test_passthrough.py
+++ b/lazr/delegates/tests/test_passthrough.py
@@ -18,7 +18,7 @@
 
 import unittest
 
-from lazr.delegates._passthrough import Passthrough
+from lazr.delegates import Passthrough
 
 
 class Base:
diff --git a/lazr/delegates/version.txt b/lazr/delegates/version.txt
index e9307ca..50ffc5a 100644
--- a/lazr/delegates/version.txt
+++ b/lazr/delegates/version.txt
@@ -1 +1 @@
-2.0.2
+2.0.3
diff --git a/setup.py b/setup.py
index 9cdf3c8..4f4894a 100755
--- a/setup.py
+++ b/setup.py
@@ -16,20 +16,6 @@
 
 from setuptools import setup, find_packages
 
-# generic helpers primarily for the long_description
-def generate(*docname_or_string):
-    res = []
-    for value in docname_or_string:
-        if value.endswith('.rst'):
-            f = open(value)
-            value = f.read()
-            f.close()
-        res.append(value)
-        if not value.endswith('\n'):
-            res.append('')
-    return '\n'.join(res)
-# end generic helpers
-
 __version__ = open("lazr/delegates/version.txt").read().strip()
 
 setup(
@@ -66,4 +52,8 @@ delegating behavior.
         'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
         ],
+    # nose plugins don't really work with `python setup.py test` so use
+    # `python setup.py nosetests` instead, or just `tox`.  Gosh, we really
+    # should switch to nose2. :/  - BAW 2014-08-20
+    #test_suite='nose.collector',
     )
diff --git a/tox.ini b/tox.ini
index 9b0f890..12a635e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = py27,py32,py33,py34
+envlist = py27,py32,py33,py34,py35
 
 [testenv]
 commands = python setup.py nosetests

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/lazr.delegates.git



More information about the Python-modules-commits mailing list