Hello community, here is the log from the commit of package python-zope.deprecation for openSUSE:Factory checked in at 2015-05-18 22:22:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-zope.deprecation (Old) and /work/SRC/openSUSE:Factory/.python-zope.deprecation.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zope.deprecation" Changes: -------- --- /work/SRC/openSUSE:Factory/python-zope.deprecation/python-zope.deprecation.changes 2014-03-01 19:43:54.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-zope.deprecation.new/python-zope.deprecation.changes 2015-05-18 22:22:13.000000000 +0200 @@ -1,0 +2,10 @@ +Fri May 15 11:39:49 UTC 2015 - benoit.mo...@gmx.fr + +- update to version 4.1.2: + * Do not require a self parameter for deprecated functions. + See: https://github.com/zopefoundation/zope.deprecation/pull/1 +- additional changes from version 4.1.1: + * Added explicit support for Python 3.4. +- pass -q to test to avoid spamming the build log + +------------------------------------------------------------------- Old: ---- zope.deprecation-4.1.0.tar.gz New: ---- zope.deprecation-4.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-zope.deprecation.spec ++++++ --- /var/tmp/diff_new_pack.mvBc8m/_old 2015-05-18 22:22:14.000000000 +0200 +++ /var/tmp/diff_new_pack.mvBc8m/_new 2015-05-18 22:22:14.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-zope.deprecation # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -18,7 +18,7 @@ Name: python-zope.deprecation -Version: 4.1.0 +Version: 4.1.2 Release: 0 Url: http://pypi.python.org/pypi/zope.deprecation Summary: Zope Deprecation Infrastructure @@ -61,7 +61,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %check -python setup.py test +python setup.py -q test %files %defattr(-,root,root,-) ++++++ zope.deprecation-4.1.0.tar.gz -> zope.deprecation-4.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/.travis.yml new/zope.deprecation-4.1.2/.travis.yml --- old/zope.deprecation-4.1.0/.travis.yml 2013-07-10 02:49:59.000000000 +0200 +++ new/zope.deprecation-4.1.2/.travis.yml 2015-01-13 16:26:58.000000000 +0100 @@ -1,12 +1,15 @@ language: python +sudo: false python: - 2.6 - 2.7 - 3.2 - 3.3 + - 3.4 - pypy + - pypy3 install: - - pip install . --use-mirrors + - pip install . script: - python setup.py test -q notifications: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/CHANGES.rst new/zope.deprecation-4.1.2/CHANGES.rst --- old/zope.deprecation-4.1.0/CHANGES.rst 2013-12-20 20:37:40.000000000 +0100 +++ new/zope.deprecation-4.1.2/CHANGES.rst 2015-01-13 16:28:42.000000000 +0100 @@ -1,6 +1,17 @@ ``zope.deprecation`` Changelog ============================== +4.1.2 (2015-01-13) +------------------ + +- Do not require a ``self`` parameter for deprecated functions. See: + https://github.com/zopefoundation/zope.deprecation/pull/1 + +4.1.1 (2014-03-19) +------------------ + +- Added explicit support for Python 3.4. + 4.1.0 (2013-12-20) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/PKG-INFO new/zope.deprecation-4.1.2/PKG-INFO --- old/zope.deprecation-4.1.0/PKG-INFO 2013-12-20 20:41:06.000000000 +0100 +++ new/zope.deprecation-4.1.2/PKG-INFO 2015-01-13 16:28:50.000000000 +0100 @@ -1,13 +1,16 @@ -Metadata-Version: 1.0 +Metadata-Version: 1.1 Name: zope.deprecation -Version: 4.1.0 +Version: 4.1.2 Summary: Zope Deprecation Infrastructure Home-page: http://pypi.python.org/pypi/zope.deprecation Author: Zope Corporation and Contributors Author-email: zope-...@zope.org License: ZPL 2.1 -Description: ``zope.deprecation`` README - =========================== +Description: ``zope.deprecation`` + ==================== + + .. image:: https://travis-ci.org/zopefoundation/zope.deprecation.png?branch=master + :target: https://travis-ci.org/zopefoundation/zope.deprecation This package provides a simple function called ``deprecated(names, reason)`` to mark deprecated modules, classes, functions, methods and properties. @@ -19,6 +22,17 @@ ``zope.deprecation`` Changelog ============================== + 4.1.2 (2015-01-13) + ------------------ + + - Do not require a ``self`` parameter for deprecated functions. See: + https://github.com/zopefoundation/zope.deprecation/pull/1 + + 4.1.1 (2014-03-19) + ------------------ + + - Added explicit support for Python 3.4. + 4.1.0 (2013-12-20) ------------------ @@ -109,6 +123,7 @@ Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.2 Classifier: Programming Language :: Python :: 3.3 +Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Framework :: Zope3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/README.rst new/zope.deprecation-4.1.2/README.rst --- old/zope.deprecation-4.1.0/README.rst 2013-01-08 00:34:10.000000000 +0100 +++ new/zope.deprecation-4.1.2/README.rst 2015-01-13 16:10:17.000000000 +0100 @@ -1,5 +1,8 @@ -``zope.deprecation`` README -=========================== +``zope.deprecation`` +==================== + +.. image:: https://travis-ci.org/zopefoundation/zope.deprecation.png?branch=master + :target: https://travis-ci.org/zopefoundation/zope.deprecation This package provides a simple function called ``deprecated(names, reason)`` to mark deprecated modules, classes, functions, methods and properties. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/bootstrap.py new/zope.deprecation-4.1.2/bootstrap.py --- old/zope.deprecation-4.1.0/bootstrap.py 2013-07-10 02:50:06.000000000 +0200 +++ new/zope.deprecation-4.1.2/bootstrap.py 2015-01-13 16:10:17.000000000 +0100 @@ -35,7 +35,7 @@ Simply run this script in a directory containing a buildout.cfg, using the Python that you want bin/buildout to use. -Note that by using --find-links to point to local resources, you can keep +Note that by using --find-links to point to local resources, you can keep this script from going over the network. ''' @@ -56,6 +56,11 @@ "file to be used.")) parser.add_option("-f", "--find-links", help=("Specify a URL to search for buildout releases")) +parser.add_option("--allow-site-packages", + action="store_true", default=False, + help=("Let bootstrap.py use existing site packages")) +parser.add_option("--setuptools-version", + help="use a specific setuptools version") options, args = parser.parse_args() @@ -63,32 +68,42 @@ ###################################################################### # load/install setuptools -to_reload = False try: - import pkg_resources - import setuptools + if options.allow_site_packages: + import setuptools + import pkg_resources + from urllib.request import urlopen except ImportError: - ez = {} + from urllib2 import urlopen + +ez = {} +exec(urlopen('https://bootstrap.pypa.io/ez_setup.py').read(), ez) - try: - from urllib.request import urlopen - except ImportError: - from urllib2 import urlopen - - # XXX use a more permanent ez_setup.py URL when available. - exec(urlopen('https://bitbucket.org/pypa/setuptools/raw/0.7.2/ez_setup.py' - ).read(), ez) - setup_args = dict(to_dir=tmpeggs, download_delay=0) - ez['use_setuptools'](**setup_args) - - if to_reload: - reload(pkg_resources) - import pkg_resources - # This does not (always?) update the default working set. We will - # do it. - for path in sys.path: - if path not in pkg_resources.working_set.entries: - pkg_resources.working_set.add_entry(path) +if not options.allow_site_packages: + # ez_setup imports site, which adds site packages + # this will remove them from the path to ensure that incompatible versions + # of setuptools are not in the path + import site + # inside a virtualenv, there is no 'getsitepackages'. + # We can't remove these reliably + if hasattr(site, 'getsitepackages'): + for sitepackage_path in site.getsitepackages(): + sys.path[:] = [x for x in sys.path if sitepackage_path not in x] + +setup_args = dict(to_dir=tmpeggs, download_delay=0) + +if options.setuptools_version is not None: + setup_args['version'] = options.setuptools_version + +ez['use_setuptools'](**setup_args) +import setuptools +import pkg_resources + +# This does not (always?) update the default working set. We will +# do it. +for path in sys.path: + if path not in pkg_resources.working_set.entries: + pkg_resources.working_set.add_entry(path) ###################################################################### # Install buildout @@ -119,10 +134,15 @@ _final_parts = '*final-', '*final' def _final_version(parsed_version): - for part in parsed_version: - if (part[:1] == '*') and (part not in _final_parts): - return False - return True + try: + return not parsed_version.is_prerelease + except AttributeError: + # Older setuptools + for part in parsed_version: + if (part[:1] == '*') and (part not in _final_parts): + return False + return True + index = setuptools.package_index.PackageIndex( search_path=[setuptools_path]) if find_links: @@ -149,8 +169,7 @@ import subprocess if subprocess.call(cmd, env=dict(os.environ, PYTHONPATH=setuptools_path)) != 0: raise Exception( - "Failed to execute command:\n%s", - repr(cmd)[1:-1]) + "Failed to execute command:\n%s" % repr(cmd)[1:-1]) ###################################################################### # Import and run buildout diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/docs/hacking.rst new/zope.deprecation-4.1.2/docs/hacking.rst --- old/zope.deprecation-4.1.0/docs/hacking.rst 2013-01-08 00:34:10.000000000 +0100 +++ new/zope.deprecation-4.1.2/docs/hacking.rst 2015-01-13 16:14:56.000000000 +0100 @@ -3,18 +3,24 @@ Getting the Code ------------------ +################ + +The main repository for :mod:`zope.deprecation` is in the Zope Foundation +Github repository: + + https://github.com/zopefoundation/zope.deprecation -The main repository for :mod:`zope.deprecation` is in the Zope Subversion -repository: +You can get a read-only checkout from there: -http://svn.zope.org/zope.deprecation +.. code-block:: sh + + $ git clone https://github.com/zopefoundation/zope.deprecation.git -You can get a read-only Subversion checkout from there: +or fork it and get a writeable checkout of your fork: .. code-block:: sh - $ svn checkout svn://svn.zope.org/repos/main/zope.deprecation/trunk zope.deprecation + $ git clone g...@github.com/jrandom/zope.deprecation.git The project also mirrors the trunk from the Subversion repository as a Bazaar branch on Launchpad: @@ -28,8 +34,11 @@ $ bzr branch lp:zope.deprecation -Running the tests in a ``virtualenv`` -------------------------------------- +Working in a ``virtualenv`` +########################### + +Installing +---------- If you use the ``virtualenv`` package to create lightweight Python development environments, you can run the tests using nothing more @@ -47,7 +56,11 @@ $ /tmp/hack-zope.deprecation/bin/python setup.py develop -Finally, run the tests using the build-in ``setuptools`` testrunner: + +Running the tests +----------------- + +Run the tests using the build-in ``setuptools`` testrunner: .. code-block:: sh @@ -109,8 +122,8 @@ OK -Building the documentation in a ``virtualenv`` ----------------------------------------------- +Building the documentation +-------------------------- :mod:`zope.deprecation` uses the nifty :mod:`Sphinx` documentation system for building its docs. Using the same virtualenv you set up to run the @@ -141,8 +154,11 @@ results in _build/doctest/output.txt. -Running the tests using :mod:`zc.buildout` -------------------------------------------- +Using :mod:`zc.buildout` +######################## + +Setting up the buildout +----------------------- :mod:`zope.deprecation` ships with its own :file:`buildout.cfg` file and :file:`bootstrap.py` for setting up a development buildout: @@ -158,7 +174,10 @@ Generated script '.../bin/sphinx-quickstart'. Generated script '.../bin/sphinx-build'. -You can now run the tests: +Running the tests using +----------------------- + +Run the tests: .. code-block:: sh @@ -170,11 +189,11 @@ Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds. -Building the documentation using :mod:`zc.buildout` ---------------------------------------------------- +Building the documentation +-------------------------- -The :mod:`zope.deprecation` buildout installs the Sphinx scripts required to build -the documentation, including testing its code snippets: +The :mod:`zope.deprecation` buildout installs the Sphinx scripts required to +build the documentation, including testing its code snippets: .. code-block:: sh @@ -193,8 +212,11 @@ build succeeded. -Running Tests on Multiple Python Versions via :mod:`tox` --------------------------------------------------------- +Using :mod:`tox` +################ + +Running Tests on Multiple Python Versions +----------------------------------------- `tox <http://tox.testrun.org/latest/>`_ is a Python-based test automation tool designed to run tests against multiple Python versions. It creates @@ -205,22 +227,11 @@ :mod:`zope.deprecation` configures the following :mod:`tox` environments via its ``tox.ini`` file: -- The ``py26`` environment builds a ``virtualenv`` with ``python2.6``, - installs :mod:`zope.deprecation`, and runs the tests - via ``python setup.py test -q``. - -- The ``py27`` environment builds a ``virtualenv`` with ``python2.7``, - installs :mod:`zope.deprecation`, and runs the tests - via ``python setup.py test -q``. - -- The ``py32`` environment builds a ``virtualenv`` with ``python3.2``, +- The ``py26``, ``py27``, ``py33``, ``py34``, and ``pypy`` environments + builds a ``virtualenv`` with ``pypy``, installs :mod:`zope.deprecation` and dependencies, and runs the tests via ``python setup.py test -q``. -- The ``pypy`` environment builds a ``virtualenv`` with ``pypy``, - installs :mod:`zope.deprecation`, and runs the tests - via ``python setup.py test -q``. - - The ``coverage`` environment builds a ``virtualenv`` with ``python2.6``, installs :mod:`zope.deprecation`, installs :mod:`nose` and :mod:`coverage`, and runs ``nosetests`` with statement @@ -275,12 +286,15 @@ congratulations :) +Contributing to :mod:`zope.deprecation` +####################################### + Submitting a Bug Report ----------------------- -:mod:`zope.deprecation` tracks its bugs on Launchpad: +:mod:`zope.deprecation` tracks its bugs on Github: -https://bugs.launchpad.net/zope.deprecation + https://github.com/zopefoundation/zope.deprecation/issues Please submit bug reports and feature requests there. @@ -295,16 +309,12 @@ or bug fixes, although it is possible that you may have tested your new code by updating existing tests. -If you got a read-only checkout from the Subversion repository, and you -have made a change you would like to share, the best route is to let -Subversion help you make a patch file: - -.. code-block:: sh - - $ svn diff > zope.deprecation-cool_feature.patch +If have made a change you would like to share, the best route is to fork +the Githb repository, check out your fork, make your changes on a branch +in your fork, and push it. You can then submit a pull request from your +branch: -You can then upload that patch file as an attachment to a Launchpad bug -report. + https://github.com/zopefoundation/zope.deprecation/pulls If you branched the code from Launchpad using Bazaar, you have another option: you can "push" your branch to Launchpad: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/setup.cfg new/zope.deprecation-4.1.2/setup.cfg --- old/zope.deprecation-4.1.0/setup.cfg 2013-12-20 20:41:06.000000000 +0100 +++ new/zope.deprecation-4.1.2/setup.cfg 2015-01-13 16:28:50.000000000 +0100 @@ -1,11 +1,6 @@ -[egg_info] -tag_build = -tag_date = 0 -tag_svn_revision = 0 - [nosetests] -cover-package = zope.deprecation nocapture = 1 +cover-package = zope.deprecation cover-erase = 1 with-doctest = 0 where = src @@ -14,3 +9,8 @@ dev = develop easy_install zope.deprecation[testing] docs = easy_install zope.deprecation[docs] +[egg_info] +tag_build = +tag_date = 0 +tag_svn_revision = 0 + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/setup.py new/zope.deprecation-4.1.2/setup.py --- old/zope.deprecation-4.1.0/setup.py 2013-12-20 20:39:14.000000000 +0100 +++ new/zope.deprecation-4.1.2/setup.py 2015-01-13 16:28:42.000000000 +0100 @@ -28,7 +28,7 @@ setup( name='zope.deprecation', - version='4.1.0', + version='4.1.2', url='http://pypi.python.org/pypi/zope.deprecation', license='ZPL 2.1', description='Zope Deprecation Infrastructure', @@ -48,6 +48,7 @@ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Framework :: Zope3", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/src/zope/deprecation/deprecation.py new/zope.deprecation-4.1.2/src/zope/deprecation/deprecation.py --- old/zope.deprecation-4.1.0/src/zope/deprecation/deprecation.py 2013-12-20 20:17:07.000000000 +0100 +++ new/zope.deprecation-4.1.2/src/zope/deprecation/deprecation.py 2014-12-18 17:52:23.000000000 +0100 @@ -161,10 +161,10 @@ def DeprecatedMethod(method, message): - def deprecated_method(self, *args, **kw): + def deprecated_method(*args, **kw): if __show__(): warnings.warn(message, DeprecationWarning, 2) - return method(self, *args, **kw) + return method(*args, **kw) return deprecated_method diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/src/zope/deprecation/tests.py new/zope.deprecation-4.1.2/src/zope/deprecation/tests.py --- old/zope.deprecation-4.1.0/src/zope/deprecation/tests.py 2013-12-20 20:15:53.000000000 +0100 +++ new/zope.deprecation-4.1.2/src/zope/deprecation/tests.py 2014-12-18 17:52:23.000000000 +0100 @@ -366,7 +366,7 @@ result = self._callFUT(functionfixture, 'hello') self.assertNotEqual(result, functionfixture) self.assertEqual(self.warnings.w, []) - result(self) + result() self.assertEqual( self.warnings.w, [('hello', DeprecationWarning, 2)]) @@ -422,7 +422,7 @@ def test___call__(self): proxy = self._makeOne('hello') result = proxy(functionfixture) - self.assertEqual(result(self), None) + self.assertEqual(result(), None) self.assertEqual( self.warnings.w, [('hello', DeprecationWarning, 2)]) @@ -502,4 +502,4 @@ class ClassFixture2(object): pass -def functionfixture(self): pass +def functionfixture(): pass diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/src/zope.deprecation.egg-info/PKG-INFO new/zope.deprecation-4.1.2/src/zope.deprecation.egg-info/PKG-INFO --- old/zope.deprecation-4.1.0/src/zope.deprecation.egg-info/PKG-INFO 2013-12-20 20:41:05.000000000 +0100 +++ new/zope.deprecation-4.1.2/src/zope.deprecation.egg-info/PKG-INFO 2015-01-13 16:28:48.000000000 +0100 @@ -1,13 +1,16 @@ -Metadata-Version: 1.0 +Metadata-Version: 1.1 Name: zope.deprecation -Version: 4.1.0 +Version: 4.1.2 Summary: Zope Deprecation Infrastructure Home-page: http://pypi.python.org/pypi/zope.deprecation Author: Zope Corporation and Contributors Author-email: zope-...@zope.org License: ZPL 2.1 -Description: ``zope.deprecation`` README - =========================== +Description: ``zope.deprecation`` + ==================== + + .. image:: https://travis-ci.org/zopefoundation/zope.deprecation.png?branch=master + :target: https://travis-ci.org/zopefoundation/zope.deprecation This package provides a simple function called ``deprecated(names, reason)`` to mark deprecated modules, classes, functions, methods and properties. @@ -19,6 +22,17 @@ ``zope.deprecation`` Changelog ============================== + 4.1.2 (2015-01-13) + ------------------ + + - Do not require a ``self`` parameter for deprecated functions. See: + https://github.com/zopefoundation/zope.deprecation/pull/1 + + 4.1.1 (2014-03-19) + ------------------ + + - Added explicit support for Python 3.4. + 4.1.0 (2013-12-20) ------------------ @@ -109,6 +123,7 @@ Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.2 Classifier: Programming Language :: Python :: 3.3 +Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Framework :: Zope3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/src/zope.deprecation.egg-info/requires.txt new/zope.deprecation-4.1.2/src/zope.deprecation.egg-info/requires.txt --- old/zope.deprecation-4.1.0/src/zope.deprecation.egg-info/requires.txt 2013-12-20 20:41:05.000000000 +0100 +++ new/zope.deprecation-4.1.2/src/zope.deprecation.egg-info/requires.txt 2015-01-13 16:28:48.000000000 +0100 @@ -5,4 +5,4 @@ [testing] nose -coverage \ No newline at end of file +coverage diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.deprecation-4.1.0/tox.ini new/zope.deprecation-4.1.2/tox.ini --- old/zope.deprecation-4.1.0/tox.ini 2013-01-08 00:34:10.000000000 +0100 +++ new/zope.deprecation-4.1.2/tox.ini 2015-01-13 16:27:09.000000000 +0100 @@ -3,7 +3,7 @@ # Jython support pending 2.7 support, due 2012-07-15 or so. See: # http://fwierzbicki.blogspot.com/2012/03/adconion-to-fund-jython-27.html # py26,py27,py32,jython,pypy,coverage - py26,py27,py32,py33,pypy,coverage,docs + py26,py27,py32,py33,py34,pypy,pypy3,coverage,docs [testenv] commands =