Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-zope.event for openSUSE:Factory checked in at 2023-02-19 18:18:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-zope.event (Old) and /work/SRC/openSUSE:Factory/.python-zope.event.new.22824 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zope.event" Sun Feb 19 18:18:58 2023 rev:15 rq:1066381 version:4.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-zope.event/python-zope.event.changes 2021-09-28 19:16:20.880173111 +0200 +++ /work/SRC/openSUSE:Factory/.python-zope.event.new.22824/python-zope.event.changes 2023-02-19 18:19:02.065508657 +0100 @@ -1,0 +2,7 @@ +Fri Feb 10 12:58:28 UTC 2023 - Dirk Müller <[email protected]> + +- update to 4.6: + * Port documentation to Python 3. + * Add support for Python 3.10, 3.11. + +------------------------------------------------------------------- Old: ---- zope.event-4.5.0.tar.gz New: ---- zope.event-4.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-zope.event.spec ++++++ --- /var/tmp/diff_new_pack.fjKcKd/_old 2023-02-19 18:19:02.669512495 +0100 +++ /var/tmp/diff_new_pack.fjKcKd/_new 2023-02-19 18:19:02.673512521 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-zope.event # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,11 +20,11 @@ %global modname zope.event %define oldpython python Name: python-zope.event -Version: 4.5.0 +Version: 4.6 Release: 0 Summary: Very basic event publishing system License: ZPL-2.1 -URL: http://pypi.python.org/pypi/%{modname} +URL: https://pypi.python.org/pypi/%{modname} Source: https://files.pythonhosted.org/packages/source/z/zope.event/%{modname}-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes ++++++ zope.event-4.5.0.tar.gz -> zope.event-4.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/.coveragerc new/zope.event-4.6/.coveragerc --- old/zope.event-4.5.0/.coveragerc 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/.coveragerc 1970-01-01 01:00:00.000000000 +0100 @@ -1,8 +0,0 @@ -[run] -source = zope.event - -[report] -exclude_lines = - pragma: no cover - if __name__ == '__main__': - raise NotImplementedError diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/.travis.yml new/zope.event-4.6/.travis.yml --- old/zope.event-4.5.0/.travis.yml 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,29 +0,0 @@ -language: python -python: - - 2.7 - - 3.5 - - 3.6 - - 3.7 - - 3.8 - - 3.9-dev - - pypy - - pypy3 - -script: - - coverage run -m zope.testrunner --test-path=src - -after_success: - - coveralls -notifications: - email: false - -install: - - pip install -U pip setuptools - - pip install -U coveralls coverage - - pip install -U -e ".[test]" - - -cache: pip - -before_cache: - - rm -f $HOME/.cache/pip/log/debug.log diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/CHANGES.rst new/zope.event-4.6/CHANGES.rst --- old/zope.event-4.5.0/CHANGES.rst 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/CHANGES.rst 2022-12-15 08:21:08.000000000 +0100 @@ -2,6 +2,14 @@ ``zope.event`` Changelog ========================== +4.6 (2022-12-15) +================ + +- Port documentation to Python 3. + +- Add support for Python 3.10, 3.11. + + 4.5.0 (2020-09-18) ================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/CONTRIBUTING.md new/zope.event-4.6/CONTRIBUTING.md --- old/zope.event-4.5.0/CONTRIBUTING.md 1970-01-01 01:00:00.000000000 +0100 +++ new/zope.event-4.6/CONTRIBUTING.md 2022-12-15 08:21:08.000000000 +0100 @@ -0,0 +1,23 @@ +<!-- +Generated from: +https://github.com/zopefoundation/meta/tree/master/config/pure-python +--> +# Contributing to zopefoundation projects + +The projects under the zopefoundation GitHub organization are open source and +welcome contributions in different forms: + +* bug reports +* code improvements and bug fixes +* documentation improvements +* pull request reviews + +For any changes in the repository besides trivial typo fixes you are required +to sign the contributor agreement. See +https://www.zope.dev/developer/becoming-a-committer.html for details. + +Please visit our [Developer +Guidelines](https://www.zope.dev/developer/guidelines.html) if you'd like to +contribute code changes and our [guidelines for reporting +bugs](https://www.zope.dev/developer/reporting-bugs.html) if you want to file a +bug report. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/MANIFEST.in new/zope.event-4.6/MANIFEST.in --- old/zope.event-4.5.0/MANIFEST.in 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/MANIFEST.in 2022-12-15 08:21:08.000000000 +0100 @@ -1,20 +1,15 @@ +# Generated from: +# https://github.com/zopefoundation/meta/tree/master/config/pure-python +include *.md include *.rst include *.txt - -include .travis.yml -include .coveragerc -include tox.ini -include bootstrap.py include buildout.cfg +include tox.ini -recursive-include docs *.rst *.py Makefile make.bat -recursive-include docs/_static * -recursive-include src * - -global-exclude *.dll -global-exclude *.pyc -global-exclude *.pyo -global-exclude *.so -global-exclude *.class +recursive-include docs *.py +recursive-include docs *.rst +recursive-include docs *.txt +recursive-include docs Makefile -recursive-exclude docs/_build * +recursive-include src *.py +recursive-include docs *.bat diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/PKG-INFO new/zope.event-4.6/PKG-INFO --- old/zope.event-4.5.0/PKG-INFO 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/PKG-INFO 2022-12-15 08:21:11.386886000 +0100 @@ -1,151 +1,11 @@ Metadata-Version: 2.1 Name: zope.event -Version: 4.5.0 +Version: 4.6 Summary: Very basic event publishing system Home-page: https://github.com/zopefoundation/zope.event Author: Zope Foundation and Contributors Author-email: [email protected] -License: ZPL 2.1 -Description: ======================= - ``zope.event`` README - ======================= - - .. image:: https://img.shields.io/pypi/v/zope.event.svg - :target: https://pypi.python.org/pypi/zope.event/ - :alt: Latest Version - - .. image:: https://travis-ci.org/zopefoundation/zope.event.svg?branch=master - :target: https://travis-ci.org/zopefoundation/zope.event - - .. image:: https://readthedocs.org/projects/zopeevent/badge/?version=latest - :target: http://zopeevent.readthedocs.org/en/latest/ - :alt: Documentation Status - - The ``zope.event`` package provides a simple event system, including: - - - An event publishing API, intended for use by applications which are - unaware of any subscribers to their events. - - - A very simple event-dispatching system on which more sophisticated - event dispatching systems can be built. For example, a type-based - event dispatching system that builds on ``zope.event`` can be found in - ``zope.component``. - - Please see http://zopeevent.readthedocs.io/ for the documentation. - - ========================== - ``zope.event`` Changelog - ========================== - - 4.5.0 (2020-09-18) - ================== - - - Add support for Python 3.8 and 3.9. - - - Remove support for Python 3.4. - - - 4.4 (2018-10-05) - ================ - - - Add support for Python 3.7 - - - 4.3.0 (2017-07-25) - ================== - - - Add support for Python 3.6. - - - Drop support for Python 3.3. - - - 4.2.0 (2016-02-17) - ================== - - - Add support for Python 3.5. - - - Drop support for Python 2.6 and 3.2. - - - 4.1.0 (2015-10-18) - ================== - - - Require 100% branch (as well as statement) coverage. - - - Add a simple class-based handler implementation. - - - 4.0.3 (2014-03-19) - ================== - - - Add support for Python 3.4. - - - Update ``boostrap.py`` to version 2.2. - - - 4.0.2 (2012-12-31) - ================== - - - Flesh out PyPI Trove classifiers. - - - Add support for jython 2.7. - - - 4.0.1 (2012-11-21) - ================== - - - Add support for Python 3.3. - - - 4.0.0 (2012-05-16) - ================== - - - Automate build of Sphinx HTML docs and running doctest snippets via tox. - - - Drop explicit support for Python 2.4 / 2.5 / 3.1. - - - Add support for PyPy. - - - 3.5.2 (2012-03-30) - ================== - - - This release is the last which will maintain support for Python 2.4 / - Python 2.5. - - - Add support for continuous integration using ``tox`` and ``jenkins``. - - - Add 'setup.py dev' alias (runs ``setup.py develop`` plus installs - ``nose`` and ``coverage``). - - - Add 'setup.py docs' alias (installs ``Sphinx`` and dependencies). - - - 3.5.1 (2011-08-04) - ================== - - - Add Sphinx documentation. - - - 3.5.0 (2010-05-01) - ================== - - - Add change log to ``long-description``. - - - Add support for Python 3.x. - - - 3.4.1 (2009-03-03) - ================== - - - A few minor cleanups. - - - 3.4.0 (2007-07-14) - ================== - - - Initial release as a separate project. - +License: ZPL-2.1 Keywords: event framework dispatch subscribe publish Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable @@ -161,6 +21,8 @@ Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: Jython Classifier: Programming Language :: Python :: Implementation :: PyPy @@ -168,3 +30,154 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules Provides-Extra: docs Provides-Extra: test +License-File: LICENSE.txt + +======================= + ``zope.event`` README +======================= + +.. image:: https://img.shields.io/pypi/v/zope.event.svg + :target: https://pypi.python.org/pypi/zope.event/ + :alt: Latest Version + +.. image:: https://github.com/zopefoundation/zope.event/actions/workflows/tests.yml/badge.svg + :target: https://github.com/zopefoundation/zope.event/actions/workflows/tests.yml + +.. image:: https://readthedocs.org/projects/zopeevent/badge/?version=latest + :target: http://zopeevent.readthedocs.org/en/latest/ + :alt: Documentation Status + +The ``zope.event`` package provides a simple event system, including: + +- An event publishing API, intended for use by applications which are + unaware of any subscribers to their events. + +- A very simple synchronous event-dispatching system, on which more sophisticated + event dispatching systems can be built. For example, a type-based + event dispatching system that builds on ``zope.event`` can be found in + ``zope.component``. + +Please see http://zopeevent.readthedocs.io/ for the documentation. + +========================== + ``zope.event`` Changelog +========================== + +4.6 (2022-12-15) +================ + +- Port documentation to Python 3. + +- Add support for Python 3.10, 3.11. + + +4.5.0 (2020-09-18) +================== + +- Add support for Python 3.8 and 3.9. + +- Remove support for Python 3.4. + + +4.4 (2018-10-05) +================ + +- Add support for Python 3.7 + + +4.3.0 (2017-07-25) +================== + +- Add support for Python 3.6. + +- Drop support for Python 3.3. + + +4.2.0 (2016-02-17) +================== + +- Add support for Python 3.5. + +- Drop support for Python 2.6 and 3.2. + + +4.1.0 (2015-10-18) +================== + +- Require 100% branch (as well as statement) coverage. + +- Add a simple class-based handler implementation. + + +4.0.3 (2014-03-19) +================== + +- Add support for Python 3.4. + +- Update ``boostrap.py`` to version 2.2. + + +4.0.2 (2012-12-31) +================== + +- Flesh out PyPI Trove classifiers. + +- Add support for jython 2.7. + + +4.0.1 (2012-11-21) +================== + +- Add support for Python 3.3. + + +4.0.0 (2012-05-16) +================== + +- Automate build of Sphinx HTML docs and running doctest snippets via tox. + +- Drop explicit support for Python 2.4 / 2.5 / 3.1. + +- Add support for PyPy. + + +3.5.2 (2012-03-30) +================== + +- This release is the last which will maintain support for Python 2.4 / + Python 2.5. + +- Add support for continuous integration using ``tox`` and ``jenkins``. + +- Add 'setup.py dev' alias (runs ``setup.py develop`` plus installs + ``nose`` and ``coverage``). + +- Add 'setup.py docs' alias (installs ``Sphinx`` and dependencies). + + +3.5.1 (2011-08-04) +================== + +- Add Sphinx documentation. + + +3.5.0 (2010-05-01) +================== + +- Add change log to ``long-description``. + +- Add support for Python 3.x. + + +3.4.1 (2009-03-03) +================== + +- A few minor cleanups. + + +3.4.0 (2007-07-14) +================== + +- Initial release as a separate project. + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/README.rst new/zope.event-4.6/README.rst --- old/zope.event-4.5.0/README.rst 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/README.rst 2022-12-15 08:21:08.000000000 +0100 @@ -6,8 +6,8 @@ :target: https://pypi.python.org/pypi/zope.event/ :alt: Latest Version -.. image:: https://travis-ci.org/zopefoundation/zope.event.svg?branch=master - :target: https://travis-ci.org/zopefoundation/zope.event +.. image:: https://github.com/zopefoundation/zope.event/actions/workflows/tests.yml/badge.svg + :target: https://github.com/zopefoundation/zope.event/actions/workflows/tests.yml .. image:: https://readthedocs.org/projects/zopeevent/badge/?version=latest :target: http://zopeevent.readthedocs.org/en/latest/ @@ -18,7 +18,7 @@ - An event publishing API, intended for use by applications which are unaware of any subscribers to their events. -- A very simple event-dispatching system on which more sophisticated +- A very simple synchronous event-dispatching system, on which more sophisticated event dispatching systems can be built. For example, a type-based event dispatching system that builds on ``zope.event`` can be found in ``zope.component``. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/bootstrap.py new/zope.event-4.6/bootstrap.py --- old/zope.event-4.5.0/bootstrap.py 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/bootstrap.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,210 +0,0 @@ -############################################################################## -# -# Copyright (c) 2006 Zope Foundation and Contributors. -# All Rights Reserved. -# -# This software is subject to the provisions of the Zope Public License, -# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED -# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS -# FOR A PARTICULAR PURPOSE. -# -############################################################################## -"""Bootstrap a buildout-based project - -Simply run this script in a directory containing a buildout.cfg. -The script accepts buildout command-line options, so you can -use the -c option to specify an alternate configuration file. -""" - -import os -import shutil -import sys -import tempfile - -from optparse import OptionParser - -__version__ = '2015-07-01' -# See zc.buildout's changelog if this version is up to date. - -tmpeggs = tempfile.mkdtemp(prefix='bootstrap-') - -usage = '''\ -[DESIRED PYTHON FOR BUILDOUT] bootstrap.py [options] - -Bootstraps a buildout-based project. - -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 -this script from going over the network. -''' - -parser = OptionParser(usage=usage) -parser.add_option("--version", - action="store_true", default=False, - help=("Return bootstrap.py version.")) -parser.add_option("-t", "--accept-buildout-test-releases", - dest='accept_buildout_test_releases', - action="store_true", default=False, - help=("Normally, if you do not specify a --version, the " - "bootstrap script and buildout gets the newest " - "*final* versions of zc.buildout and its recipes and " - "extensions for you. If you use this flag, " - "bootstrap and buildout will get the newest releases " - "even if they are alphas or betas.")) -parser.add_option("-c", "--config-file", - help=("Specify the path to the buildout configuration " - "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("--buildout-version", - help="Use a specific zc.buildout version") -parser.add_option("--setuptools-version", - help="Use a specific setuptools version") -parser.add_option("--setuptools-to-dir", - help=("Allow for re-use of existing directory of " - "setuptools versions")) - -options, args = parser.parse_args() -if options.version: - print("bootstrap.py version %s" % __version__) - sys.exit(0) - - -###################################################################### -# load/install setuptools - -try: - from urllib.request import urlopen -except ImportError: - from urllib2 import urlopen - -ez = {} -if os.path.exists('ez_setup.py'): - exec(open('ez_setup.py').read(), ez) -else: - exec(urlopen('https://bootstrap.pypa.io/ez_setup.py').read(), ez) - -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(): - # Strip all site-packages directories from sys.path that - # are not sys.prefix; this is because on Windows - # sys.prefix is a site-package directory. - if sitepackage_path != sys.prefix: - 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 -if options.setuptools_to_dir is not None: - setup_args['to_dir'] = options.setuptools_to_dir - -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 - -ws = pkg_resources.working_set - -setuptools_path = ws.find( - pkg_resources.Requirement.parse('setuptools')).location - -# Fix sys.path here as easy_install.pth added before PYTHONPATH -cmd = [sys.executable, '-c', - 'import sys; sys.path[0:0] = [%r]; ' % setuptools_path + - 'from setuptools.command.easy_install import main; main()', - '-mZqNxd', tmpeggs] - -find_links = os.environ.get( - 'bootstrap-testing-find-links', - options.find_links or - ('http://downloads.buildout.org/' - if options.accept_buildout_test_releases else None) - ) -if find_links: - cmd.extend(['-f', find_links]) - -requirement = 'zc.buildout' -version = options.buildout_version -if version is None and not options.accept_buildout_test_releases: - # Figure out the most recent final version of zc.buildout. - import setuptools.package_index - _final_parts = '*final-', '*final' - - def _final_version(parsed_version): - 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: - index.add_find_links((find_links,)) - req = pkg_resources.Requirement.parse(requirement) - if index.obtain(req) is not None: - best = [] - bestv = None - for dist in index[req.project_name]: - distv = dist.parsed_version - if _final_version(distv): - if bestv is None or distv > bestv: - best = [dist] - bestv = distv - elif distv == bestv: - best.append(dist) - if best: - best.sort() - version = best[-1].version -if version: - requirement = '=='.join((requirement, version)) -cmd.append(requirement) - -import subprocess -if subprocess.call(cmd) != 0: - raise Exception( - "Failed to execute command:\n%s" % repr(cmd)[1:-1]) - -###################################################################### -# Import and run buildout - -ws.add_entry(tmpeggs) -ws.require(requirement) -import zc.buildout.buildout - -if not [a for a in args if '=' not in a]: - args.append('bootstrap') - -# if -c was provided, we push it back into args for buildout' main function -if options.config_file is not None: - args[0:0] = ['-c', options.config_file] - -zc.buildout.buildout.main(args) -shutil.rmtree(tmpeggs) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/docs/hacking.rst new/zope.event-4.6/docs/hacking.rst --- old/zope.event-4.5.0/docs/hacking.rst 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/docs/hacking.rst 2022-12-15 08:21:08.000000000 +0100 @@ -113,7 +113,7 @@ ... Name Stmts Exec Cover Missing ------------------------------------------ - zope.event 5 5 100% + zope.event 5 5 100% ---------------------------------------------------------------------- Ran 3 tests in 0.019s @@ -124,7 +124,7 @@ -------------------------- :mod:`zope.event` uses the nifty :mod:`Sphinx` documentation system -for building its docs. Using the same virtualenv you set up to run the +for building its docs. Using the same virtualenv you set up to run the tests, you can build the docs: .. code-block:: sh @@ -213,7 +213,7 @@ a ``virtualenv`` for each configured version, installs the current package and configured dependencies into each ``virtualenv``, and then runs the configured commands. - + :mod:`zope.event` configures the following :mod:`tox` environments via its ``tox.ini`` file: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/docs/usage.rst new/zope.event-4.6/docs/usage.rst --- old/zope.event-4.5.0/docs/usage.rst 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/docs/usage.rst 2022-12-15 08:21:08.000000000 +0100 @@ -86,14 +86,14 @@ .. doctest:: >>> def f(event): - ... print 'got:', event + ... print('got:', event) >>> zope.event.subscribers.append(f) >>> zope.event.notify(42) got: 42 >>> def g(event): - ... print 'also got:', event + ... print('also got:', event) >>> zope.event.subscribers.append(g) @@ -115,3 +115,7 @@ .. testcleanup:: zope.event.subscribers[:] = old_subscribers + +.. note:: The :func:`~.zope.event.notify` is synchronous, meaning it calls the + subscribers in sequential order (and not in parallel). This also means that the + process will not continue until all subscribers are done handling the event. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/setup.cfg new/zope.event-4.6/setup.cfg --- old/zope.event-4.5.0/setup.cfg 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/setup.cfg 2022-12-15 08:21:11.387738200 +0100 @@ -1,19 +1,27 @@ -[nosetests] -nocapture = 1 -cover-package = zope.event -cover-erase = 1 -cover-branches = 1 -cover-min-percentage = 100 -with-doctest = 0 -where = src - -[aliases] -dev = develop easy_install zope.event[testing] -docs = easy_install zope.event[docs] - [bdist_wheel] universal = 1 +[flake8] +doctests = 1 + +[check-manifest] +ignore = + .editorconfig + .meta.toml + docs/_build/html/_sources/* + docs/_build/doctest/* + +[isort] +force_single_line = True +combine_as_imports = True +sections = FUTURE,STDLIB,THIRDPARTY,ZOPE,FIRSTPARTY,LOCALFOLDER +known_third_party = six, docutils, pkg_resources +known_zope = +known_first_party = +default_section = ZOPE +line_length = 79 +lines_after_imports = 2 + [egg_info] tag_build = tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/setup.py new/zope.event-4.6/setup.py --- old/zope.event-4.5.0/setup.py 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/setup.py 2022-12-15 08:21:08.000000000 +0100 @@ -20,17 +20,21 @@ """ import os -from setuptools import setup, find_packages + +from setuptools import find_packages +from setuptools import setup + def read(*rnames): with open(os.path.join(os.path.dirname(__file__), *rnames)) as f: return f.read() + setup( name='zope.event', - version='4.5.0', + version='4.6', url='https://github.com/zopefoundation/zope.event', - license='ZPL 2.1', + license='ZPL-2.1', description='Very basic event publishing system', author='Zope Foundation and Contributors', author_email='[email protected]', @@ -54,6 +58,8 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: Jython", "Programming Language :: Python :: Implementation :: PyPy", @@ -62,7 +68,7 @@ ], packages=find_packages('src'), package_dir={'': 'src'}, - namespace_packages=['zope',], + namespace_packages=['zope', ], include_package_data=True, install_requires=['setuptools'], zip_safe=False, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/src/zope/__init__.py new/zope.event-4.6/src/zope/__init__.py --- old/zope.event-4.5.0/src/zope/__init__.py 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/src/zope/__init__.py 2022-12-15 08:21:08.000000000 +0100 @@ -1 +1 @@ -__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover +__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/src/zope/event/__init__.py new/zope.event-4.6/src/zope/event/__init__.py --- old/zope.event-4.5.0/src/zope/event/__init__.py 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/src/zope/event/__init__.py 2022-12-15 08:21:08.000000000 +0100 @@ -25,6 +25,7 @@ #: any remaining subscribers. subscribers = [] + def notify(event): """ Notify all subscribers of ``event``. """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/src/zope/event/classhandler.py new/zope.event-4.6/src/zope/event/classhandler.py --- old/zope.event-4.5.0/src/zope/event/classhandler.py 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/src/zope/event/classhandler.py 2022-12-15 08:21:08.000000000 +0100 @@ -41,12 +41,14 @@ """ import zope.event + __all__ = [ 'handler', ] registry = {} + def handler(event_class, handler_=None, _decorator=False): """ Define an event handler for a (new-style) class. @@ -67,6 +69,7 @@ if _decorator: return handler + def dispatch(event): for event_class in event.__class__.__mro__: for handler in registry.get(event_class, ()): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/src/zope/event/tests.py new/zope.event-4.6/src/zope/event/tests.py --- old/zope.event-4.5.0/src/zope/event/tests.py 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/src/zope/event/tests.py 2022-12-15 08:21:08.000000000 +0100 @@ -16,6 +16,7 @@ import doctest import unittest + class Test_notify(unittest.TestCase): def setUp(self): @@ -43,18 +44,21 @@ self._callFUT(event) self.assertEqual(dummy, [event]) + def setUpClassHandlers(test): import zope.event test.globs['old_subs'] = zope.event.subscribers + def tearDownClassHandlers(test): import zope.event zope.event.subscribers = test.globs['old_subs'] + def test_suite(): return unittest.TestSuite(( unittest.defaultTestLoader.loadTestsFromName(__name__), doctest.DocTestSuite( 'zope.event.classhandler', setUp=setUpClassHandlers, tearDown=tearDownClassHandlers) - )) + )) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/src/zope.event.egg-info/PKG-INFO new/zope.event-4.6/src/zope.event.egg-info/PKG-INFO --- old/zope.event-4.5.0/src/zope.event.egg-info/PKG-INFO 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/src/zope.event.egg-info/PKG-INFO 2022-12-15 08:21:10.000000000 +0100 @@ -1,151 +1,11 @@ Metadata-Version: 2.1 Name: zope.event -Version: 4.5.0 +Version: 4.6 Summary: Very basic event publishing system Home-page: https://github.com/zopefoundation/zope.event Author: Zope Foundation and Contributors Author-email: [email protected] -License: ZPL 2.1 -Description: ======================= - ``zope.event`` README - ======================= - - .. image:: https://img.shields.io/pypi/v/zope.event.svg - :target: https://pypi.python.org/pypi/zope.event/ - :alt: Latest Version - - .. image:: https://travis-ci.org/zopefoundation/zope.event.svg?branch=master - :target: https://travis-ci.org/zopefoundation/zope.event - - .. image:: https://readthedocs.org/projects/zopeevent/badge/?version=latest - :target: http://zopeevent.readthedocs.org/en/latest/ - :alt: Documentation Status - - The ``zope.event`` package provides a simple event system, including: - - - An event publishing API, intended for use by applications which are - unaware of any subscribers to their events. - - - A very simple event-dispatching system on which more sophisticated - event dispatching systems can be built. For example, a type-based - event dispatching system that builds on ``zope.event`` can be found in - ``zope.component``. - - Please see http://zopeevent.readthedocs.io/ for the documentation. - - ========================== - ``zope.event`` Changelog - ========================== - - 4.5.0 (2020-09-18) - ================== - - - Add support for Python 3.8 and 3.9. - - - Remove support for Python 3.4. - - - 4.4 (2018-10-05) - ================ - - - Add support for Python 3.7 - - - 4.3.0 (2017-07-25) - ================== - - - Add support for Python 3.6. - - - Drop support for Python 3.3. - - - 4.2.0 (2016-02-17) - ================== - - - Add support for Python 3.5. - - - Drop support for Python 2.6 and 3.2. - - - 4.1.0 (2015-10-18) - ================== - - - Require 100% branch (as well as statement) coverage. - - - Add a simple class-based handler implementation. - - - 4.0.3 (2014-03-19) - ================== - - - Add support for Python 3.4. - - - Update ``boostrap.py`` to version 2.2. - - - 4.0.2 (2012-12-31) - ================== - - - Flesh out PyPI Trove classifiers. - - - Add support for jython 2.7. - - - 4.0.1 (2012-11-21) - ================== - - - Add support for Python 3.3. - - - 4.0.0 (2012-05-16) - ================== - - - Automate build of Sphinx HTML docs and running doctest snippets via tox. - - - Drop explicit support for Python 2.4 / 2.5 / 3.1. - - - Add support for PyPy. - - - 3.5.2 (2012-03-30) - ================== - - - This release is the last which will maintain support for Python 2.4 / - Python 2.5. - - - Add support for continuous integration using ``tox`` and ``jenkins``. - - - Add 'setup.py dev' alias (runs ``setup.py develop`` plus installs - ``nose`` and ``coverage``). - - - Add 'setup.py docs' alias (installs ``Sphinx`` and dependencies). - - - 3.5.1 (2011-08-04) - ================== - - - Add Sphinx documentation. - - - 3.5.0 (2010-05-01) - ================== - - - Add change log to ``long-description``. - - - Add support for Python 3.x. - - - 3.4.1 (2009-03-03) - ================== - - - A few minor cleanups. - - - 3.4.0 (2007-07-14) - ================== - - - Initial release as a separate project. - +License: ZPL-2.1 Keywords: event framework dispatch subscribe publish Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable @@ -161,6 +21,8 @@ Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: Jython Classifier: Programming Language :: Python :: Implementation :: PyPy @@ -168,3 +30,154 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules Provides-Extra: docs Provides-Extra: test +License-File: LICENSE.txt + +======================= + ``zope.event`` README +======================= + +.. image:: https://img.shields.io/pypi/v/zope.event.svg + :target: https://pypi.python.org/pypi/zope.event/ + :alt: Latest Version + +.. image:: https://github.com/zopefoundation/zope.event/actions/workflows/tests.yml/badge.svg + :target: https://github.com/zopefoundation/zope.event/actions/workflows/tests.yml + +.. image:: https://readthedocs.org/projects/zopeevent/badge/?version=latest + :target: http://zopeevent.readthedocs.org/en/latest/ + :alt: Documentation Status + +The ``zope.event`` package provides a simple event system, including: + +- An event publishing API, intended for use by applications which are + unaware of any subscribers to their events. + +- A very simple synchronous event-dispatching system, on which more sophisticated + event dispatching systems can be built. For example, a type-based + event dispatching system that builds on ``zope.event`` can be found in + ``zope.component``. + +Please see http://zopeevent.readthedocs.io/ for the documentation. + +========================== + ``zope.event`` Changelog +========================== + +4.6 (2022-12-15) +================ + +- Port documentation to Python 3. + +- Add support for Python 3.10, 3.11. + + +4.5.0 (2020-09-18) +================== + +- Add support for Python 3.8 and 3.9. + +- Remove support for Python 3.4. + + +4.4 (2018-10-05) +================ + +- Add support for Python 3.7 + + +4.3.0 (2017-07-25) +================== + +- Add support for Python 3.6. + +- Drop support for Python 3.3. + + +4.2.0 (2016-02-17) +================== + +- Add support for Python 3.5. + +- Drop support for Python 2.6 and 3.2. + + +4.1.0 (2015-10-18) +================== + +- Require 100% branch (as well as statement) coverage. + +- Add a simple class-based handler implementation. + + +4.0.3 (2014-03-19) +================== + +- Add support for Python 3.4. + +- Update ``boostrap.py`` to version 2.2. + + +4.0.2 (2012-12-31) +================== + +- Flesh out PyPI Trove classifiers. + +- Add support for jython 2.7. + + +4.0.1 (2012-11-21) +================== + +- Add support for Python 3.3. + + +4.0.0 (2012-05-16) +================== + +- Automate build of Sphinx HTML docs and running doctest snippets via tox. + +- Drop explicit support for Python 2.4 / 2.5 / 3.1. + +- Add support for PyPy. + + +3.5.2 (2012-03-30) +================== + +- This release is the last which will maintain support for Python 2.4 / + Python 2.5. + +- Add support for continuous integration using ``tox`` and ``jenkins``. + +- Add 'setup.py dev' alias (runs ``setup.py develop`` plus installs + ``nose`` and ``coverage``). + +- Add 'setup.py docs' alias (installs ``Sphinx`` and dependencies). + + +3.5.1 (2011-08-04) +================== + +- Add Sphinx documentation. + + +3.5.0 (2010-05-01) +================== + +- Add change log to ``long-description``. + +- Add support for Python 3.x. + + +3.4.1 (2009-03-03) +================== + +- A few minor cleanups. + + +3.4.0 (2007-07-14) +================== + +- Initial release as a separate project. + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/src/zope.event.egg-info/SOURCES.txt new/zope.event-4.6/src/zope.event.egg-info/SOURCES.txt --- old/zope.event-4.5.0/src/zope.event.egg-info/SOURCES.txt 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/src/zope.event.egg-info/SOURCES.txt 2022-12-15 08:21:11.000000000 +0100 @@ -1,11 +1,9 @@ -.coveragerc -.travis.yml CHANGES.rst +CONTRIBUTING.md COPYRIGHT.txt LICENSE.txt MANIFEST.in README.rst -bootstrap.py buildout.cfg setup.cfg setup.py @@ -19,7 +17,6 @@ docs/make.bat docs/theory.rst docs/usage.rst -docs/_static/.gitignore src/zope/__init__.py src/zope.event.egg-info/PKG-INFO src/zope.event.egg-info/SOURCES.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zope.event-4.5.0/tox.ini new/zope.event-4.6/tox.ini --- old/zope.event-4.5.0/tox.ini 2020-09-18 12:19:44.000000000 +0200 +++ new/zope.event-4.6/tox.ini 2022-12-15 08:21:08.000000000 +0100 @@ -1,36 +1,93 @@ +# Generated from: +# https://github.com/zopefoundation/meta/tree/master/config/pure-python [tox] +minversion = 3.18 envlist = -# Jython 2.7b1 support pending fix for Jython incompat. w/ pip's vendored-in -# requests -> html5 libraries. See -# https://github.com/html5lib/html5lib-python/pull/150 -# py27,py33,py34,pypy,pypy3,jython,coverage,docs - py27,py35,py36,py37,py38,py39,pypy,pypy3,coverage,docs + lint + py27 + py35 + py36 + py37 + py38 + py39 + py310 + py311 + pypy + pypy3 + docs + coverage [testenv] +usedevelop = true +deps = +commands = + zope-testrunner --test-path=src {posargs:-vc} + !py27-!pypy: sphinx-build -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest +extras = + test + docs + +[testenv:lint] +basepython = python3 +skip_install = true commands = - coverage run -m zope.testrunner --test-path=src [] + isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py + flake8 src setup.py + check-manifest + check-python-versions deps = - .[test] - coverage -setenv = - COVERAGE_FILE=.coverage.{envname} + check-manifest + check-python-versions >= 0.19.1 + wheel + flake8 + isort -[testenv:coverage] -setenv = - COVERAGE_FILE=.coverage +[testenv:isort-apply] +basepython = python3 skip_install = true +commands_pre = +deps = + isort commands = - coverage erase - coverage combine - coverage report - coverage html - coverage xml + isort {toxinidir}/src {toxinidir}/setup.py [] [testenv:docs] -basepython = - python2.7 +basepython = python3 +skip_install = false +commands_pre = commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest + +[testenv:coverage] +basepython = python3 +allowlist_externals = + mkdir deps = - Sphinx + coverage + coverage-python-version +commands = + mkdir -p {toxinidir}/parts/htmlcov + coverage run -m zope.testrunner --test-path=src {posargs:-vc} + coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest + coverage html --ignore-errors + coverage report --ignore-errors --show-missing --fail-under=100 + +[coverage:run] +branch = True +plugins = coverage_python_version +source = zope.event + +[coverage:report] +precision = 2 +exclude_lines = + pragma: no cover + pragma: nocover + except ImportError: + raise NotImplementedError + if __name__ == '__main__': + self.fail + raise AssertionError + +[coverage:html] +directory = parts/htmlcov
