123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455 |
- Metadata-Version: 2.0
- Name: zope.component
- Version: 4.5
- Summary: Zope Component Architecture
- Home-page: https://github.com/zopefoundation/zope.component
- Author: Zope Foundation and Contributors
- Author-email: zope-dev@zope.org
- License: ZPL 2.1
- Keywords: interface component coupling loose utility adapter
- Platform: UNKNOWN
- Classifier: Development Status :: 5 - Production/Stable
- Classifier: Intended Audience :: Developers
- Classifier: License :: OSI Approved
- Classifier: License :: OSI Approved :: Zope Public License
- Classifier: Operating System :: OS Independent
- Classifier: Programming Language :: Python
- Classifier: Programming Language :: Python :: 2
- Classifier: Programming Language :: Python :: 2.7
- Classifier: Programming Language :: Python :: 3
- Classifier: Programming Language :: Python :: 3.4
- Classifier: Programming Language :: Python :: 3.5
- Classifier: Programming Language :: Python :: 3.6
- Classifier: Programming Language :: Python :: 3.7
- Classifier: Programming Language :: Python :: Implementation :: CPython
- Classifier: Programming Language :: Python :: Implementation :: PyPy
- Classifier: Framework :: Zope3
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
- Provides-Extra: mintests
- Provides-Extra: persistentregistry
- Provides-Extra: docs
- Provides-Extra: hook
- Provides-Extra: zcml
- Provides-Extra: test
- Provides-Extra: security
- Requires-Dist: setuptools
- Requires-Dist: zope.deferredimport (>=4.2.1)
- Requires-Dist: zope.deprecation (>=4.3.0)
- Requires-Dist: zope.event
- Requires-Dist: zope.hookable (>=4.2.0)
- Requires-Dist: zope.interface (>=4.1.0)
- Provides-Extra: docs
- Requires-Dist: Sphinx; extra == 'docs'
- Requires-Dist: ZODB; extra == 'docs'
- Requires-Dist: repoze.sphinx.autointerface; extra == 'docs'
- Provides-Extra: hook
- Provides-Extra: mintests
- Requires-Dist: zope.configuration; extra == 'mintests'
- Requires-Dist: zope.i18nmessageid; extra == 'mintests'
- Requires-Dist: zope.testing; extra == 'mintests'
- Requires-Dist: zope.testrunner; extra == 'mintests'
- Provides-Extra: persistentregistry
- Requires-Dist: persistent; extra == 'persistentregistry'
- Provides-Extra: security
- Requires-Dist: zope.location; extra == 'security'
- Requires-Dist: zope.proxy; extra == 'security'
- Requires-Dist: zope.security; extra == 'security'
- Provides-Extra: test
- Requires-Dist: persistent; extra == 'test'
- Requires-Dist: zope.configuration; extra == 'test'
- Requires-Dist: zope.i18nmessageid; extra == 'test'
- Requires-Dist: zope.location; extra == 'test'
- Requires-Dist: zope.proxy; extra == 'test'
- Requires-Dist: zope.security; extra == 'test'
- Requires-Dist: zope.testing; extra == 'test'
- Requires-Dist: zope.testrunner; extra == 'test'
- Provides-Extra: zcml
- Requires-Dist: zope.configuration; extra == 'zcml'
- Requires-Dist: zope.i18nmessageid; extra == 'zcml'
-
- ``zope.component``
- ==================
-
- .. image:: https://img.shields.io/pypi/v/zope.component.svg
- :target: https://pypi.python.org/pypi/zope.component/
- :alt: Latest Version
-
- .. image:: https://travis-ci.org/zopefoundation/zope.component.svg?branch=master
- :target: https://travis-ci.org/zopefoundation/zope.component
- :alt: Build Status
-
- .. image:: https://readthedocs.org/projects/zopecomponent/badge/?version=latest
- :target: http://zopecomponent.readthedocs.org/en/latest/
- :alt: Documentation Status
-
- .. image:: https://coveralls.io/repos/github/zopefoundation/zope.component/badge.svg?branch=master
- :target: https://coveralls.io/github/zopefoundation/zope.component?branch=master
- :alt: Coverage Status
-
-
- .. note::
-
- This package is intended to be independently reusable in any Python
- project. It is maintained by the
- `Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.
-
- This package represents the core of the Zope Component Architecture.
- Together with the zope.interface_ package, it provides facilities for
- defining, registering and looking up components.
-
- Please see https://zopecomponent.readthedocs.io/en/latest/ for the
- documentation.
-
- .. _zope.interface: https://github.com/zopefoundation/zope.interface
-
- Changes
- =======
-
- 4.5 (2018-10-10)
- ----------------
-
- - Add support for Python 3.7.
-
- - Always install ``zope.hookable`` as a dependency (the ``hook``
- extra is now empty). ``zope.hookable`` respects the PURE_PYTHON
- environment variable, and has an optional C extension.
-
- - Make accessing names that have been moved to ``zope.interface``
- produce a ``DeprecationWarning``.
-
- 4.4.1 (2017-09-26)
- ------------------
-
- - Remove obsolete call of ``searchInterface`` from
- ``interfaceToName``. See https://github.com/zopefoundation/zope.component/issues/32
-
-
- 4.4.0 (2017-07-25)
- ------------------
-
- - Add support for Python 3.6.
-
- - Drop support for Python 3.3.
-
- - Drop support for "setup.py test".
-
- - Code coverage reports are now `produced and hosted by coveralls.io
- <https://coveralls.io/github/zopefoundation/zope.component>`_, and
- PRs must keep them at 100%.
-
- - Internal test code in ``zope.component.testfiles`` has been adjusted
- and in some cases removed.
-
- 4.3.0 (2016-08-26)
- ------------------
-
- - When testing ``PURE_PYTHON`` environments under ``tox``, avoid poisoning
- the user's global wheel cache.
-
- - Drop support for Python 2.6 and 3.2.
-
- - Add support for Python 3.5.
-
- 4.2.2 (2015-06-04)
- ------------------
-
- - Fix test cases for PyPy and PyPy3.
-
- 4.2.1 (2014-03-19)
- ------------------
-
- - Add support for Python 3.4.
-
- 4.2.0 (2014-02-05)
- ------------------
-
- - Update ``boostrap.py`` to version 2.2.
-
- - Reset the cached ``adapter_hooks`` at ``zope.testing.cleanup.cleanUp``
- time (LP1100501).
-
- - Implement ability to specify adapter and utility names in Python. Use
- the ``@zope.component.named(name)`` decorator to specify the name.
-
- 4.1.0 (2013-02-28)
- ------------------
-
- - Change "ZODB3" depdendency to "persistent".
-
- - ``tox`` now runs all tests for Python 3.2 and 3.3.
-
- - Enable buildout for Python 3.
-
- - Fix new failing tests.
-
- 4.0.2 (2012-12-31)
- ------------------
-
- - Flesh out PyPI Trove classifiers.
-
- 4.0.1 (2012-11-21)
- ------------------
-
- - Add support for Python 3.3.
-
- 4.0.0 (2012-07-02)
- ------------------
-
- - Add PyPy and Python 3.2 support:
-
- - Security support omitted until ``zope.security`` ported.
-
- - Persistent registry support omitted until ``ZODB`` ported (or
- ``persistent`` factored out).
-
- - Bring unit test coverage to 100%.
-
- - Remove the long-deprecated ``layer`` argument to the
- ``zope.component.zcml.view`` and ``zope.component.zcml.resource``
- ZCML directives.
-
- - Add support for continuous integration using ``tox`` and ``jenkins``.
-
- - Got tests to run using ``setup.py test``.
-
- - Add ``Sphinx`` documentation.
-
- - Add ``setup.py docs`` alias (installs ``Sphinx`` and dependencies).
-
- - Add ``setup.py dev`` alias (runs ``setup.py develop`` plus installs
- ``nose`` and ``coverage``).
-
- 3.12.1 (2012-04-02)
- -------------------
-
- - Wrap ``with site(foo)`` in try/finally (LP768151).
-
- 3.12.0 (2011-11-16)
- -------------------
-
- - Add convenience function zope.component.hooks.site (a contextmanager),
- so one can write ``with site(foo): ...``.
-
- 3.11.0 (2011-09-22)
- -------------------
-
- - Move code from ``zope.component.registry`` which implements a basic
- nonperistent component registry to ``zope.interface.registry``. This code
- was moved from ``zope.component`` into ``zope.interface`` to make porting
- systems (such as Pyramid) that rely only on a basic component registry to
- Python 3 possible without needing to port the entirety of the
- ``zope.component`` package. Backwards compatibility import shims have been
- left behind in ``zope.component``, so this change will not break any
- existing code.
-
- - Move interfaces from ``zope.component.interfaces`` to
- ``zope.interface.interfaces``: ``ComponentLookupError``, ``Invalid``,
- ``IObjectEvent``, ``ObjectEvent``, ``IComponentLookup``, ``IRegistration``,
- ``IUtilityRegistration``, ``IAdapterRegistration``,
- ``ISubscriptionAdapterRegistration``, ``IHandlerRegistration``,
- ``IRegistrationEvent``, ``RegistrationEvent``, ``IRegistered``,
- ``Registered``, ``IUnregistered``, ``Unregistered``,
- ``IComponentRegistry``, and ``IComponents``. Backwards compatibility shims
- left in place.
-
- - Depend on ``zope.interface`` >= 3.8.0.
-
- 3.10.0 (2010-09-25)
- -------------------
-
- - Remove the ``docs`` extra and the ``sphinxdoc`` recipe.
-
- - Create a ``security`` extra to move security-related dependencies out of the
- ``test`` extra.
-
- - Use the new ``zope.testrunner`` package for tests.
-
- - Add a basic test for the ``configure.zcml`` file provided.
-
- 3.9.5 (2010-07-09)
- ------------------
-
- - Fix test requirements specification.
-
- 3.9.4 (2010-04-30)
- ------------------
-
- - Prefer the standard library ``doctest`` to the one from ``zope.testing``.
-
- 3.9.3 (2010-03-08)
- ------------------
-
- - The ZCML directives provided by ``zope.component`` now register the
- components in the registry returned by ``getSiteManager`` instead of the
- global registry. This change allows the hooking of the ``getSiteManager``
- method before the load of a ZCML file to register the components in a
- custom registry.
-
- 3.9.2 (2010-01-22)
- ------------------
-
- - Fix a bug introduced by recent refactoring, where passing
- ``CheckerPublic`` to ``securityAdapterFactory`` wrongly wrapped the factory
- into a ``LocatingUntrustedAdapterFactory``.
-
- 3.9.1 (2010-01-21)
- ------------------
-
- - Modify the tests to avoid allowing the tested testrunner to be influenced
- by options of the outer testrunner, such a the ``-v`` option.
-
- 3.9.0 (2010-01-21)
- ------------------
-
- - Add testlayer support. It is now possible to load a ZCML file within
- tests more easily. See ``src/zope/component/testlayer.py`` and
- ``src/zope/component/testlayer.txt``.
-
- 3.8.0 (2009-11-16)
- ------------------
-
- - Remove the dependencies on ``zope.proxy`` and ``zope.security`` from the
- zcml extra: ``zope.component`` no longer has a hard dependency on them;
- the support for security proxied components ZCML registrations is enabled
- only if ``zope.security`` and ``zope.proxy`` are available.
-
- - Move the ``IPossibleSite`` and ``ISite`` interfaces here from
- ``zope.location`` as they are dealing with ``zope.component``'s concept of
- a site, but not with location.
-
- - Move the ``zope.site.hooks`` functionality to ``zope.component.hooks`` as it
- isn't actually dealing with ``zope.site``'s concept of a site.
-
- 3.7.1 (2009-07-24)
- ------------------
-
- - Fix a problem, where ``queryNextUtility`` could fail if the context could
- not be adapted to a ``IComponentLookup``.
-
- - Fix 2 related bugs:
-
- When a utility is registered and there was previously a utility
- registered for the same interface and name, then the old utility is
- unregistered. The 2 bugs related to this:
-
- - There was no ``Unregistered`` for the implicit unregistration. Now
- there is.
-
- - The old utility was still held and returned by
- ``getAllUtilitiesRegisteredFor``. In other words, it was still
- considered registered, eeven though it wasn't. A particularly
- negative consequence of this is that the utility is held in memory
- or in the database even though it isn't used.
-
- 3.7.0 (2009-05-21)
- ------------------
-
- - Ensure that ``HookableTests`` are run by the testrunner.
-
- - Add ``zope:view`` and ``zope:resource`` implementations into
- ``zope.component.zcml`` (dependency loaded with ``zope.component [zcml]``).
-
- 3.6.0 (2009-03-12)
- ------------------
-
- - IMPORTANT: the interfaces that were defined in the
- ``zope.component.bbb.interfaces`` and deprecated for years are
- now (re)moved. However, some packages, including part of zope
- framework were still using those interfaces. They will be adapted
- for this change. If you were using some of those interfaces, you
- need to adapt your code as well:
-
- - Move ``IView`` and ``IDefaultViewName`` to ``zope.publisher.interfaces``.
-
- - Move ``IResource`` to ``zope.app.publisher.interfaces``.
-
- - Remove ``IContextDependent``, ``IPresentation``, ``IPresentationRequest``,
- ``IResourceFactory``, and ``IViewFactory`` completely.
-
- If you used ``IViewFactory`` in context of ``zope.app.form``, there's now
- ``IWidgetFactory`` in the ``zope.app.form.interfaces`` instead.
-
- - Move ``getNextUtility`` / ``queryNextUtility`` functions here from
- ``zope.site`` (they were in ``zope.app.component`` even earlier).
-
- - Add a pure-Python ``hookable`` implementation, for use when
- ``zope.hookable`` is not present.
-
- - Remove use of ``zope.deferredimport`` by breaking import cycles.
-
- - Cleanup package documentation and changelog a bit. Add sphinx-based
- documentation building command to the buildout.
-
- - Remove deprecated code.
-
- - Change package's mailing list address to zope-dev at zope.org, because
- zope3-dev at zope.org is now retired.
-
- 3.5.1 (2008-07-25)
- ------------------
-
- - Fix bug introduced in 3.5.0: ``<utility factory="...">`` no longer supported
- interfaces declared in Python and always wanted an explicit
- ``provides="..."`` attribute. https://bugs.launchpad.net/zope3/+bug/251865
-
- 3.5.0 (2008-07-25)
- ------------------
-
- - Support registration of utilities via factories through the component
- registry and return factory information in the registration information.
- Fixes https://bugs.launchpad.net/zope3/+bug/240631
-
- - Optimize ``un/registerUtility`` by storing an optimized data structure for
- efficient retrieval of already registered utilities. This avoids looping over
- all utilities when registering a new one.
-
- 3.4.0 (2007-09-29)
- ------------------
-
- No further changes since 3.4.0a1.
-
- 3.4.0a1 (2007-04-22)
- --------------------
-
- Corresponds to ``zope.component`` from Zope 3.4.0a1.
-
- - In the Zope 3.3.x series, ``zope.component`` was simplified yet once
- more. See http://wiki.zope.org/zope3/LocalComponentManagementSimplification
- for the proposal describing the changes.
-
- 3.2.0.2 (2006-04-15)
- --------------------
-
- - Fix packaging bug: ``package_dir`` must be a *relative* path.
-
- 3.2.0.1 (2006-04-14)
- --------------------
-
- - Packaging change: suppress inclusion of ``setup.cfg`` in ``sdist`` builds.
-
- 3.2.0 (2006-01-05)
- ------------------
-
- Corresponds to the verison of the ``zope.component`` package shipped as part
- of the Zope 3.2.0 release.
-
- - Deprecated services and related APIs. The adapter and utility registries
- are now available directly via the site manager's 'adapters' and 'utilities'
- attributes, respectively. Services are accessible, but deprecated, and
- will be removed in Zope 3.3.
-
- - Deprecated all presentation-related APIs, including all view-related
- API functions. Use the adapter API functions instead.
- See http://dev.zope.org/Zope3/ImplementViewsAsAdapters`
-
- - Deprecated ``contextdependent`` package: site managers are now looked up
- via a thread global, set during URL traversal. The ``context`` argument
- is now always optional, and should no longer be passed.
-
- 3.0.0 (2004-11-07)
- ------------------
-
- Corresponds to the verison of the ``zope.component`` package shipped as part of
- the Zope X3.0.0 release.
-
|