././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1687501707.7690022 zope.event-5.0/0000755000076600000240000000000014445235614013166 5ustar00m.howitzstaff././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/CHANGES.rst0000644000076600000240000000370714445235613014776 0ustar00m.howitzstaff========================== ``zope.event`` Changelog ========================== 5.0 (2023-06-23) ================ - Drop support for Python 2.7, 3.5, 3.6. 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. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/CONTRIBUTING.md0000644000076600000240000000144414445235613015421 0ustar00m.howitzstaff # 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. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/COPYRIGHT.txt0000644000076600000240000000004014445235613015270 0ustar00m.howitzstaffZope Foundation and Contributors././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/LICENSE.txt0000644000076600000240000000402614445235613015012 0ustar00m.howitzstaffZope Public License (ZPL) Version 2.1 A copyright notice accompanies this license document that identifies the copyright holders. This license has been certified as open source. It has also been designated as GPL compatible by the Free Software Foundation (FSF). Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions in source code must retain the accompanying copyright notice, this list of conditions, and the following disclaimer. 2. Redistributions in binary form must reproduce the accompanying copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Names of the copyright holders must not be used to endorse or promote products derived from this software without prior written permission from the copyright holders. 4. The right to distribute this software or to use it for any purpose does not give you the right to use Servicemarks (sm) or Trademarks (tm) of the copyright holders. Use of them is covered by separate agreement with the copyright holders. 5. If any files are modified, you must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. Disclaimer THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/MANIFEST.in0000644000076600000240000000053014445235613014721 0ustar00m.howitzstaff# Generated from: # https://github.com/zopefoundation/meta/tree/master/config/pure-python include *.md include *.rst include *.txt include buildout.cfg include tox.ini recursive-include docs *.py recursive-include docs *.rst recursive-include docs *.txt recursive-include docs Makefile recursive-include src *.py recursive-include docs *.bat ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1687501707.7690692 zope.event-5.0/PKG-INFO0000644000076600000240000001034314445235614014264 0ustar00m.howitzstaffMetadata-Version: 2.1 Name: zope.event Version: 5.0 Summary: Very basic event publishing system Home-page: https://github.com/zopefoundation/zope.event Author: Zope Foundation and Contributors Author-email: zope-dev@zope.dev License: ZPL-2.1 Keywords: event framework dispatch subscribe publish Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Zope Public License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 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 Classifier: Framework :: Zope :: 3 Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=3.7 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 ========================== 5.0 (2023-06-23) ================ - Drop support for Python 2.7, 3.5, 3.6. 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. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/README.rst0000644000076600000240000000206314445235613014655 0ustar00m.howitzstaff======================= ``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. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/buildout.cfg0000644000076600000240000000014014445235613015470 0ustar00m.howitzstaff[buildout] develop = . parts = test [test] recipe = zc.recipe.testrunner eggs = zope.event ././@PaxHeader0000000000000000000000000000003300000000000010211 xustar0027 mtime=1687501707.767232 zope.event-5.0/docs/0000755000076600000240000000000014445235614014116 5ustar00m.howitzstaff././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/docs/Makefile0000644000076600000240000000607414445235613015564 0ustar00m.howitzstaff# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" @echo " dirhtml to make HTML files named index.html in directories" @echo " pickle to make pickle files" @echo " json to make JSON files" @echo " htmlhelp to make HTML files and a HTML help project" @echo " qthelp to make HTML files and a qthelp project" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @echo " changes to make an overview of all changed/added/deprecated items" @echo " linkcheck to check all external links for integrity" @echo " doctest to run all doctests embedded in the documentation (if enabled)" clean: -rm -rf $(BUILDDIR)/* html: $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." dirhtml: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." pickle: $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle @echo @echo "Build finished; now you can process the pickle files." json: $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json @echo @echo "Build finished; now you can process the JSON files." htmlhelp: $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp @echo @echo "Build finished; now you can run HTML Help Workshop with the" \ ".hhp project file in $(BUILDDIR)/htmlhelp." qthelp: $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp @echo @echo "Build finished; now you can run "qcollectiongenerator" with the" \ ".qhcp project file in $(BUILDDIR)/qthelp, like this:" @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/zopeevent.qhcp" @echo "To view the help file:" @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/zopeevent.qhc" latex: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \ "run these through (pdf)latex." changes: $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes @echo @echo "The overview file is in $(BUILDDIR)/changes." linkcheck: $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck @echo @echo "Link check complete; look for any errors in the above output " \ "or in $(BUILDDIR)/linkcheck/output.txt." doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt." ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/docs/api.rst0000644000076600000240000000042014445235613015414 0ustar00m.howitzstaff.. _api-docs: ================================= :mod:`zope.event` API Reference ================================= The package exports the following API symbols. Data ==== .. autodata:: zope.event.subscribers Functions ========= .. autofunction:: zope.event.notify ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/docs/classhandler.rst0000644000076600000240000000030314445235613017306 0ustar00m.howitzstaff============================ Class-based event handlers ============================ .. automodule:: zope.event.classhandler :no-members: .. autofunction:: handler(event_class, [handler]) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/docs/conf.py0000644000076600000240000001537414445235613015426 0ustar00m.howitzstaff# -*- coding: utf-8 -*- # # zope.event documentation build configuration file, created by # sphinx-quickstart on Fri Apr 16 17:22:42 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import sys, os, pkg_resources # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.append(os.path.abspath('.')) sys.path.append(os.path.abspath('../src')) rqmt = pkg_resources.require('zope.event')[0] # -- General configuration ----------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. #source_encoding = 'utf-8' # The master toctree document. master_doc = 'index' # General information about the project. project = u'zope.event' copyright = u'2010-2018, Zope Foundation and Contributors' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = '%s.%s' % tuple(map(int, rqmt.version.split('.')[:2])) # The full version, including alpha/beta/rc tags. release = rqmt.version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of documents that shouldn't be included in the build. #unused_docs = [] # List of directories, relative to source directory, that shouldn't be searched # for source files. exclude_trees = ['_build'] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. #add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). #add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. #show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] # -- Options for HTML output --------------------------------------------------- # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. #html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. #html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. #html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {} # If false, no module index is generated. #html_use_modindex = True # If false, no index is generated. #html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False # If true, links to the reST sources are added to the pages. #html_show_sourcelink = True # If true, an OpenSearch description file will be output, and all pages will # contain a tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. #html_use_opensearch = '' # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml"). #html_file_suffix = '' # Output file base name for HTML help builder. htmlhelp_basename = 'zopeeventdoc' # -- Options for LaTeX output -------------------------------------------------- # The paper size ('letter' or 'a4'). #latex_paper_size = 'letter' # The font size ('10pt', '11pt' or '12pt'). #latex_font_size = '10pt' # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ ('index', 'zopeevent.tex', u'zope.event Documentation', u'Zope Foundation and Contributors', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of # the title page. #latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. #latex_use_parts = False # Additional stuff for the LaTeX preamble. #latex_preamble = '' # Documents to append as an appendix to all manuals. #latex_appendices = [] # If false, no module index is generated. #latex_use_modindex = True # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { 'https://docs.python.org/': None } autodoc_default_flags = ['members', 'show-inheritance'] autodoc_member_order = 'bysource' autoclass_content = 'both' ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/docs/hacking.rst0000644000076600000240000002054114445235613016255 0ustar00m.howitzstaffHacking on :mod:`zope.event` ============================ Getting the Code ################ The main repository for :mod:`zope.event` is in the Zope Foundation Github repository: https://github.com/zopefoundation/zope.event You can get a read-only checkout from there: .. code-block:: sh $ git clone https://github.com/zopefoundation/zope.event.git or fork it and get a writeable checkout of your fork: .. code-block:: sh $ git clone git@github.com/jrandom/zope.event.git The project also mirrors the trunk from the Github repository as a Bazaar branch on Launchpad: https://code.launchpad.net/zope.event You can branch the trunk from there using Bazaar: .. code-block:: sh $ bzr branch lp:zope.event 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 than the ``python`` binary in a virtualenv. First, create a scratch environment: .. code-block:: sh $ /path/to/virtualenv --no-site-packages /tmp/hack-zope.event Next, get this package registered as a "development egg" in the environment: .. code-block:: sh $ /tmp/hack-zope.event/bin/python setup.py develop Running the tests ----------------- Then, you canrun the tests using the build-in ``setuptools`` testrunner: .. code-block:: sh $ /tmp/hack-zope.event/bin/python setup.py test running test ... test_empty (zope.event.tests.Test_notify) ... ok test_not_empty (zope.event.tests.Test_notify) ... ok ---------------------------------------------------------------------- Ran 2 tests in 0.000s OK If you have the :mod:`nose` package installed in the virtualenv, you can use its testrunner too: .. code-block:: sh $ /tmp/hack-zope.event/bin/easy_install nose ... $ /tmp/hack-zope.event/bin/python setup.py nosetests running nosetests ... ---------------------------------------------------------------------- Ran 3 tests in 0.011s OK or: .. code-block:: sh $ /tmp/hack-zope.event/bin/nosetests ... ---------------------------------------------------------------------- Ran 3 tests in 0.011s OK If you have the :mod:`coverage` pacakge installed in the virtualenv, you can see how well the tests cover the code: .. code-block:: sh $ /tmp/hack-zope.event/bin/easy_install nose coverage ... $ /tmp/hack-zope.event/bin/python setup.py nosetests \ --with coverage --cover-package=zope.event running nosetests ... Name Stmts Exec Cover Missing ------------------------------------------ zope.event 5 5 100% ---------------------------------------------------------------------- Ran 3 tests in 0.019s OK Building the documentation -------------------------- :mod:`zope.event` uses the nifty :mod:`Sphinx` documentation system for building its docs. Using the same virtualenv you set up to run the tests, you can build the docs: .. code-block:: sh $ /tmp/hack-zope.event/bin/easy_install Sphinx ... $ cd docs $ PATH=/tmp/hack-zope.event/bin:$PATH make html sphinx-build -b html -d _build/doctrees . _build/html ... build succeeded. Build finished. The HTML pages are in _build/html. You can also test the code snippets in the documentation: .. code-block:: sh $ PATH=/tmp/hack-zope.event/bin:$PATH make doctest sphinx-build -b doctest -d _build/doctrees . _build/doctest ... running tests... Document: index --------------- 1 items passed all tests: 17 tests in default 17 tests in 1 items. 17 passed and 0 failed. Test passed. Doctest summary =============== 17 tests 0 failures in tests 0 failures in setup code build succeeded. Testing of doctests in the sources finished, look at the \ results in _build/doctest/output.txt. Using :mod:`zc.buildout` ######################## Setting up the buildout ----------------------- :mod:`zope.event` ships with its own :file:`buildout.cfg` file and :file:`bootstrap.py` for setting up a development buildout: .. code-block:: sh $ /path/to/python2.6 bootstrap.py ... Generated script '.../bin/buildout' $ bin/buildout Develop: '/home/jrandom/projects/Zope/zope.event/.' ... Generated script '.../bin/sphinx-quickstart'. Generated script '.../bin/sphinx-build'. Running the tests ----------------- You can now run the tests: .. code-block:: sh $ bin/test --all Running zope.testing.testrunner.layer.UnitTests tests: Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds. Ran 2 tests with 0 failures and 0 errors in 0.000 seconds. Tearing down left over layers: Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds. Using :mod:`tox` ################ Running Tests on Multiple Python Versions ----------------------------------------- `tox `_ is a Python-based test automation tool designed to run tests against multiple Python versions. It creates 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: - The ``py26``, ``py27``, ``py33``, ``py34``, and ``pypy`` environments builds a ``virtualenv`` with the corresponding interpreter, installs :mod:`zope.event` and dependencies, and runs the tests via ``python setup.py -q test -q``. - The ``coverage`` environment builds a ``virtualenv`` with ``python2.6``, installs :mod:`zope.event`, installs :mod:`nose` and :mod:`coverage`, and runs ``nosetests`` with statement and branch coverage. - The ``docs`` environment builds a virtualenv with ``python2.6``, installs :mod:`zope.event`, installs ``Sphinx`` and dependencies, and then builds the docs and exercises the doctest snippets. This example requires that you have a working ``python2.6`` on your path, as well as installing ``tox``: .. code-block:: sh $ tox -e py26 GLOB sdist-make: .../zope.event/setup.py py26 sdist-reinst: .../zope.event/.tox/dist/zope.event-4.0.2dev.zip py26 runtests: commands[0] ... ---------------------------------------------------------------------- Ran 2 tests in 0.000s OK ___________________________________ summary ____________________________________ py26: commands succeeded congratulations :) Running ``tox`` with no arguments runs all the configured environments, including building the docs and testing their snippets: .. code-block:: sh $ tox GLOB sdist-make: .../zope.event/setup.py py26 sdist-reinst: .../zope.event/.tox/dist/zope.event-4.0.2dev.zip py26 runtests: commands[0] ... Doctest summary =============== 17 tests 0 failures in tests 0 failures in setup code 0 failures in cleanup code build succeeded. ___________________________________ summary ____________________________________ py26: commands succeeded py27: commands succeeded py32: commands succeeded pypy: commands succeeded coverage: commands succeeded docs: commands succeeded congratulations :) Contributing to :mod:`zope.event` ################################# Submitting a Bug Report ----------------------- :mod:`zope.event` tracks its bugs on Github: https://github.com/zopefoundation/zope.event/issues Please submit bug reports and feature requests there. Sharing Your Changes -------------------- .. note:: Please ensure that all tests are passing before you submit your code. If possible, your submission should include new tests for new features or bug fixes, although it is possible that you may have tested your new code by updating existing tests. 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: https://github.com/zopefoundation/zope.event/pulls If you branched the code from Launchpad using Bazaar, you have another option: you can "push" your branch to Launchpad: .. code-block:: sh $ bzr push lp:~jrandom/zope.event/cool_feature After pushing your branch, you can link it to a bug report on Github, or request that the maintainers merge your branch using the Launchpad "merge request" feature. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/docs/index.rst0000644000076600000240000000174214445235613015762 0ustar00m.howitzstaff================================= :mod:`zope.event` Documentation ================================= This package provides a simple event system on which application-specific event systems can be built. For example, a type-based event dispatching system that builds on `zope.interface `_ can be found in `zope.component `_. A simpler system is distributed with this package and is described in :doc:`classhandler`. Application code can generate events without being concerned about the event-processing frameworks that might handle the events. Events are objects that represent something happening in a system. They are used to extend processing by providing processing plug points. Contents: .. toctree:: :maxdepth: 2 usage theory api classhandler hacking ==================== Indices and tables ==================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/docs/make.bat0000644000076600000240000000600514445235613015523 0ustar00m.howitzstaff@ECHO OFF REM Command file for Sphinx documentation set SPHINXBUILD=sphinx-build set BUILDDIR=_build set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . if NOT "%PAPER%" == "" ( set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% ) if "%1" == "" goto help if "%1" == "help" ( :help echo.Please use `make ^` where ^ is one of echo. html to make standalone HTML files echo. dirhtml to make HTML files named index.html in directories echo. pickle to make pickle files echo. json to make JSON files echo. htmlhelp to make HTML files and a HTML help project echo. qthelp to make HTML files and a qthelp project echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter echo. changes to make an overview over all changed/added/deprecated items echo. linkcheck to check all external links for integrity echo. doctest to run all doctests embedded in the documentation if enabled goto end ) if "%1" == "clean" ( for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i del /q /s %BUILDDIR%\* goto end ) if "%1" == "html" ( %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html echo. echo.Build finished. The HTML pages are in %BUILDDIR%/html. goto end ) if "%1" == "dirhtml" ( %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml echo. echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. goto end ) if "%1" == "pickle" ( %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle echo. echo.Build finished; now you can process the pickle files. goto end ) if "%1" == "json" ( %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json echo. echo.Build finished; now you can process the JSON files. goto end ) if "%1" == "htmlhelp" ( %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp echo. echo.Build finished; now you can run HTML Help Workshop with the ^ .hhp project file in %BUILDDIR%/htmlhelp. goto end ) if "%1" == "qthelp" ( %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp echo. echo.Build finished; now you can run "qcollectiongenerator" with the ^ .qhcp project file in %BUILDDIR%/qthelp, like this: echo.^> qcollectiongenerator %BUILDDIR%\qthelp\zopeevent.qhcp echo.To view the help file: echo.^> assistant -collectionFile %BUILDDIR%\qthelp\zopeevent.ghc goto end ) if "%1" == "latex" ( %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex echo. echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. goto end ) if "%1" == "changes" ( %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes echo. echo.The overview file is in %BUILDDIR%/changes. goto end ) if "%1" == "linkcheck" ( %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck echo. echo.Link check complete; look for any errors in the above output ^ or in %BUILDDIR%/linkcheck/output.txt. goto end ) if "%1" == "doctest" ( %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest echo. echo.Testing of doctests in the sources finished, look at the ^ results in %BUILDDIR%/doctest/output.txt. goto end ) :end ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/docs/theory.rst0000644000076600000240000000075514445235613016170 0ustar00m.howitzstaff.. _theory-docs: Theory of Operation =================== .. note:: This section explains both why an application or framework might publish events, and various ways the integrator might configure the subscribers to achieve different goals. Outline ------- - Events as decoupling mechanism. - Injecting policy into reusable applications. - Extending frameworks. - Event dispatch strategies - Type-based dispatch, as used in ZCA - Attribute-based / key-based dispatch ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/docs/usage.rst0000644000076600000240000000616514445235613015763 0ustar00m.howitzstaff.. _usage-docs: ========================= Using :mod:`zope.event` ========================= .. py:module:: zope.event At its core, :mod:`zope.event` simply consists of two things: a list of subscribers (callable objects), and an API function (:func:`~.zope.event.notify`) that invokes those subscribers in order. .. testsetup:: import zope.event old_subscribers = zope.event.subscribers[:] del zope.event.subscribers[:] Notifications ============= Alerting subscribers that an event has occurred is referred to as "notifying them", or sometimes "sending them the event." The package provides a :func:`~.zope.event.notify` function, which is used to notify subscribers that something has happened: .. doctest:: >>> class MyEvent(object): ... pass >>> event = MyEvent() >>> zope.event.notify(event) The notify function is called with a single object, which we call an event. Any object will do: .. doctest:: >>> zope.event.notify(None) >>> zope.event.notify(42) Our subscriber list is currently empty, so nothing happened in response to these notifications. Subscribers =========== A *subscriber* is a callable object that takes one argument, an object that we call the *event*. Application code can manage subscriptions by manipulating the list that ``zope.event`` maintains. This list starts out empty. .. doctest:: >>> import zope.event >>> zope.event.subscribers [] .. note:: Users of higher-level event frameworks will not typically need to modify *this* subscriber list directly. Generally, such event (or application) frameworks will provide more sophisticated subscription mechanisms that build on this simple mechanism. The frameworks will install subscribers that then distribute the event to other subscribers based on event types or data. A simple framework that is based on the class hierarchy is distributed with this package and described in :doc:`classhandler`. A higher-level event framework is distributed with :mod:`zope.component`. For information on using :mod:`zope.event` together with :mod:`zope.component`, see `zope.component's documentation `_. Trivial Subscribers ------------------- As mentioned above, subscribers are simply callable objects that are added to the subscriptions list: .. doctest:: >>> def f(event): ... print('got:', event) >>> zope.event.subscribers.append(f) >>> zope.event.notify(42) got: 42 >>> def g(event): ... print('also got:', event) >>> zope.event.subscribers.append(g) >>> zope.event.notify(42) got: 42 also got: 42 To unsubscribe, simply remove a subscriber from the list: .. doctest:: >>> zope.event.subscribers.remove(f) >>> zope.event.notify(42) also got: 42 >>> zope.event.subscribers.remove(g) >>> zope.event.notify(42) .. 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. ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1687501707.7693143 zope.event-5.0/setup.cfg0000644000076600000240000000072614445235614015014 0ustar00m.howitzstaff[bdist_wheel] universal = 0 [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 = docutils, pkg_resources, pytz known_zope = known_first_party = default_section = ZOPE line_length = 79 lines_after_imports = 2 [egg_info] tag_build = tag_date = 0 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/setup.py0000644000076600000240000000545014445235613014703 0ustar00m.howitzstaff############################################################################## # # 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. # ############################################################################## # This package is developed by the Zope Toolkit project, documented here: # https://zopetoolkit.readthedocs.io/ # When developing and releasing this package, please follow the documented # Zope Toolkit policies as described by this documentation. ############################################################################## """Setup for zope.event package """ import os 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='5.0', url='https://github.com/zopefoundation/zope.event', license='ZPL-2.1', description='Very basic event publishing system', author='Zope Foundation and Contributors', author_email='zope-dev@zope.dev', long_description=( read('README.rst') + '\n' + read('CHANGES.rst') ), keywords="event framework dispatch subscribe publish", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "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", "Framework :: Zope :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], packages=find_packages('src'), package_dir={'': 'src'}, namespace_packages=['zope', ], include_package_data=True, python_requires='>=3.7', install_requires=['setuptools'], zip_safe=False, extras_require={ 'docs': [ 'Sphinx', ], 'test': [ 'zope.testrunner', ], }, ) ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1687501707.7644465 zope.event-5.0/src/0000755000076600000240000000000014445235614013755 5ustar00m.howitzstaff././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1687501707.7673807 zope.event-5.0/src/zope/0000755000076600000240000000000014445235614014732 5ustar00m.howitzstaff././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope/__init__.py0000644000076600000240000000011414445235613017036 0ustar00m.howitzstaff__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1687501707.7688649 zope.event-5.0/src/zope/event/0000755000076600000240000000000014445235614016053 5ustar00m.howitzstaff././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope/event/__init__.py0000644000076600000240000000216614445235613020170 0ustar00m.howitzstaff############################################################################## # # Copyright (c) 2004 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. # ############################################################################## """ Base event system implementation """ #: Applications may register for notification of events by appending a #: callable to the ``subscribers`` list. #: #: Each subscriber takes a single argument, which is the event object #: being published. #: #: Exceptions raised by subscribers will be propagated *without* running #: any remaining subscribers. subscribers = [] def notify(event): """ Notify all subscribers of ``event``. """ for subscriber in subscribers: subscriber(event) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope/event/classhandler.py0000644000076600000240000000343414445235613021073 0ustar00m.howitzstaff"""Class-based event handlers A light-weight event-handler framework based on event classes. Handlers are registered for event classes: >>> import zope.event.classhandler >>> class MyEvent(object): ... pass >>> def handler1(event): ... print("handler1 %r" % event.__class__.__name__) >>> zope.event.classhandler.handler(MyEvent, handler1) Descriptor syntax: >>> @zope.event.classhandler.handler(MyEvent) ... def handler2(event): ... print("handler2 %r" % event.__class__.__name__) >>> class MySubEvent(MyEvent): ... pass >>> @zope.event.classhandler.handler(MySubEvent) ... def handler3(event): ... print("handler3 %r" % event.__class__.__name__) Subscribers are called in class method-resolution order, so only new-style event classes are supported, and then by order of registry. >>> import zope.event >>> zope.event.notify(MySubEvent()) handler3 'MySubEvent' handler1 'MySubEvent' handler2 'MySubEvent' """ import zope.event __all__ = [ 'handler', ] registry = {} def handler(event_class, handler_=None, _decorator=False): """ Define an event handler for a (new-style) class. This can be called with a class and a handler, or with just a class and the result used as a handler decorator. """ if handler_ is None: return lambda func: handler(event_class, func, True) if not registry: zope.event.subscribers.append(dispatch) if event_class not in registry: registry[event_class] = [handler_] else: registry[event_class].append(handler_) if _decorator: return handler def dispatch(event): for event_class in event.__class__.__mro__: for handler in registry.get(event_class, ()): handler(event) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope/event/tests.py0000644000076600000240000000351714445235613017574 0ustar00m.howitzstaff############################################################################## # # Copyright (c) 2004 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. # ############################################################################## """ Test the event system """ import doctest import unittest class Test_notify(unittest.TestCase): def setUp(self): from zope.event import subscribers self._old_subscribers = subscribers[:] subscribers[:] = [] def tearDown(self): from zope.event import subscribers subscribers[:] = self._old_subscribers def _callFUT(self, event): from zope.event import notify notify(event) def test_empty(self): event = object() self._callFUT(event) def test_not_empty(self): from zope.event import subscribers dummy = [] subscribers.append(dummy.append) event = object() 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) )) ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1687501707.7684293 zope.event-5.0/src/zope.event.egg-info/0000755000076600000240000000000014445235614017544 5ustar00m.howitzstaff././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope.event.egg-info/PKG-INFO0000644000076600000240000001034314445235613020641 0ustar00m.howitzstaffMetadata-Version: 2.1 Name: zope.event Version: 5.0 Summary: Very basic event publishing system Home-page: https://github.com/zopefoundation/zope.event Author: Zope Foundation and Contributors Author-email: zope-dev@zope.dev License: ZPL-2.1 Keywords: event framework dispatch subscribe publish Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Zope Public License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 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 Classifier: Framework :: Zope :: 3 Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=3.7 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 ========================== 5.0 (2023-06-23) ================ - Drop support for Python 2.7, 3.5, 3.6. 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. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope.event.egg-info/SOURCES.txt0000644000076600000240000000116714445235613021434 0ustar00m.howitzstaffCHANGES.rst CONTRIBUTING.md COPYRIGHT.txt LICENSE.txt MANIFEST.in README.rst buildout.cfg setup.cfg setup.py tox.ini docs/Makefile docs/api.rst docs/classhandler.rst docs/conf.py docs/hacking.rst docs/index.rst docs/make.bat docs/theory.rst docs/usage.rst src/zope/__init__.py src/zope.event.egg-info/PKG-INFO src/zope.event.egg-info/SOURCES.txt src/zope.event.egg-info/dependency_links.txt src/zope.event.egg-info/namespace_packages.txt src/zope.event.egg-info/not-zip-safe src/zope.event.egg-info/requires.txt src/zope.event.egg-info/top_level.txt src/zope/event/__init__.py src/zope/event/classhandler.py src/zope/event/tests.py././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope.event.egg-info/dependency_links.txt0000644000076600000240000000000114445235613023611 0ustar00m.howitzstaff ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope.event.egg-info/namespace_packages.txt0000644000076600000240000000000514445235613024071 0ustar00m.howitzstaffzope ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope.event.egg-info/not-zip-safe0000644000076600000240000000000114445235613021771 0ustar00m.howitzstaff ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope.event.egg-info/requires.txt0000644000076600000240000000006214445235613022141 0ustar00m.howitzstaffsetuptools [docs] Sphinx [test] zope.testrunner ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/src/zope.event.egg-info/top_level.txt0000644000076600000240000000000514445235613022270 0ustar00m.howitzstaffzope ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1687501707.0 zope.event-5.0/tox.ini0000644000076600000240000000343714445235613014507 0ustar00m.howitzstaff# Generated from: # https://github.com/zopefoundation/meta/tree/master/config/pure-python [tox] minversion = 3.18 envlist = lint py37 py38 py39 py310 py311 pypy3 docs coverage [testenv] usedevelop = true deps = commands = zope-testrunner --test-path=src {posargs:-vc} sphinx-build -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest extras = test docs [testenv:lint] basepython = python3 skip_install = true commands = isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py flake8 src setup.py check-manifest check-python-versions deps = check-manifest check-python-versions >= 0.19.1 wheel flake8 isort [testenv:isort-apply] basepython = python3 skip_install = true commands_pre = deps = isort commands = isort {toxinidir}/src {toxinidir}/setup.py [] [testenv:docs] 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 = coverage 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 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