zope.component


Namezope.component JSON
Version 6.0 PyPI version JSON
download
home_pagehttps://github.com/zopefoundation/zope.component
SummaryZope Component Architecture
upload_time2023-04-14 06:04:48
maintainer
docs_urlNone
authorZope Foundation and Contributors
requires_python>=3.7
licenseZPL 2.1
keywords interface component coupling loose utility adapter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ================
 zope.component
================

.. image:: https://github.com/zopefoundation/zope.component/actions/workflows/tests.yml/badge.svg
        :target: https://github.com/zopefoundation/zope.component/actions/workflows/tests.yml
        :alt: Unit test 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

.. image:: https://img.shields.io/pypi/v/zope.component.svg
        :target: https://pypi.python.org/pypi/zope.component/
        :alt: Current version on PyPI

.. image:: https://img.shields.io/pypi/pyversions/zope.component
        :target: https://pypi.org/project/zope.component/
        :alt: Supported Python versions

.. image:: https://readthedocs.org/projects/zopecomponent/badge/?version=latest
        :target: http://zopecomponent.readthedocs.org/en/latest/
        :alt: Documentation 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
=========

6.0 (2023-04-14)
================



- Drop support for Python 2.7, 3.5, 3.6.

5.1.0 (2023-01-03)
==================

- Fix crash when the environment variable `PYTHONOPTIMIZED` is set to `2`
  and docstrings are set to `None` by the interpreter.
  (`#67 <https://github.com/zopefoundation/zope.component/issues/67>`_)

- Add support for Python 3.10 and 3.11.


5.0.1 (2021-07-09)
==================

- Fix unregistering utilities on old persistent adapter registries.
  Previously this could raise ``TypeError``. See `issue 62
  <https://github.com/zopefoundation/zope.component/issues/62>`_.


5.0.0 (2021-03-19)
==================

- Remove backwards compatibility imports that were emitting
  deprecation warnings. This affects certain imports from
  ``zope.component.interfaces`` (which should be imported from
  ``zope.interface.interfaces``) as well as certain imports from
  ``zope.component.registery`` (import from
  ``zope.interface.registry``), and the entire
  ``zope.component.hookable`` module. See `issue 59
  <https://github.com/zopefoundation/zope.component/issues/59>`_.

- Respect permission value for utility factory registrations
  (`#54 <https://github.com/zopefoundation/zope.component/issues/54>`_)

- Add support for Python 3.9

- Fix the ``<subscriber>`` ZCML directive to allow a missing
  ``provides=`` attribute when a ``factory=`` is given and the Python
  object has been decorated with ``@implementer`` and implements a
  single interface. This has been documented, but hasn't worked
  before. See `issue 9
  <https://github.com/zopefoundation/zope.component/issues/9>`_.

- Make ``PersistentAdapterRegistry`` use persistent objects
  (``PersistentMapping`` and ``PersistentList``) for its internal data
  structures instead of plain dicts and lists. This helps make it
  scalable to larger registry sizes.

  This requires zope.interface 5.3.0a1 or later.

  New registries (and their primary users, ``PersistentComponents`` and
  zope.site's ``LocalSiteManager``) take full advantage of this
  automatically. For existing persistent registries to take advantage
  of this, you must call their ``rebuild()`` method and commit the
  transaction.

  See `issue 51 <https://github.com/zopefoundation/zope.component/issues/51>`_.

- Fix ``zope.interface.interface.provideInterface`` and the various
  search and query methods to use the current site manager instead of
  always using the global site manager. (``provideInterface`` is
  called implicitly when registering components from ZCML.) The search
  and query methods continue to return interfaces registered in base
  site managers.

  See `issue 10 <https://github.com/zopefoundation/zope.component/issues/51>`_.

4.6.2 (2020-07-03)
==================

- Improve the documentation, both published and in docstrings. See `PR
  49 <https://github.com/zopefoundation/zope.component/pull/49>`_.


4.6.1 (2020-03-23)
==================

- Ensure the resolution order of ``BaseGlobalComponents`` is
  consistent. See `issue 45 <https://github.com/zopefoundation/zope.component/issues/45>`_.


4.6.0 (2019-11-12)
==================

- Add support for Python 3.8.

- Drop support for Python 3.4.

- Fix tests on Python 2 following changes in ZODB 5.5.0.


4.5.0 (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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zopefoundation/zope.component",
    "name": "zope.component",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "interface component coupling loose utility adapter",
    "author": "Zope Foundation and Contributors",
    "author_email": "zope-dev@zope.dev",
    "download_url": "https://files.pythonhosted.org/packages/53/32/87db95f4a5f097aa837dcb951f5a4754e2e8d3ac70160a6c2df7bd215956/zope.component-6.0.tar.gz",
    "platform": null,
    "description": "================\n zope.component\n================\n\n.. image:: https://github.com/zopefoundation/zope.component/actions/workflows/tests.yml/badge.svg\n        :target: https://github.com/zopefoundation/zope.component/actions/workflows/tests.yml\n        :alt: Unit test status\n\n.. image:: https://coveralls.io/repos/github/zopefoundation/zope.component/badge.svg?branch=master\n        :target: https://coveralls.io/github/zopefoundation/zope.component?branch=master\n        :alt: Coverage Status\n\n.. image:: https://img.shields.io/pypi/v/zope.component.svg\n        :target: https://pypi.python.org/pypi/zope.component/\n        :alt: Current version on PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/zope.component\n        :target: https://pypi.org/project/zope.component/\n        :alt: Supported Python versions\n\n.. image:: https://readthedocs.org/projects/zopecomponent/badge/?version=latest\n        :target: http://zopecomponent.readthedocs.org/en/latest/\n        :alt: Documentation Status\n\n.. note::\n\n   This package is intended to be independently reusable in any Python\n   project. It is maintained by the\n   `Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.\n\nThis package represents the core of the Zope Component Architecture.\nTogether with the zope.interface_ package, it provides facilities for\ndefining, registering and looking up components.\n\nPlease see https://zopecomponent.readthedocs.io/en/latest/ for the\ndocumentation.\n\n.. _zope.interface: https://github.com/zopefoundation/zope.interface\n\n=========\n Changes\n=========\n\n6.0 (2023-04-14)\n================\n\n\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n5.1.0 (2023-01-03)\n==================\n\n- Fix crash when the environment variable `PYTHONOPTIMIZED` is set to `2`\n  and docstrings are set to `None` by the interpreter.\n  (`#67 <https://github.com/zopefoundation/zope.component/issues/67>`_)\n\n- Add support for Python 3.10 and 3.11.\n\n\n5.0.1 (2021-07-09)\n==================\n\n- Fix unregistering utilities on old persistent adapter registries.\n  Previously this could raise ``TypeError``. See `issue 62\n  <https://github.com/zopefoundation/zope.component/issues/62>`_.\n\n\n5.0.0 (2021-03-19)\n==================\n\n- Remove backwards compatibility imports that were emitting\n  deprecation warnings. This affects certain imports from\n  ``zope.component.interfaces`` (which should be imported from\n  ``zope.interface.interfaces``) as well as certain imports from\n  ``zope.component.registery`` (import from\n  ``zope.interface.registry``), and the entire\n  ``zope.component.hookable`` module. See `issue 59\n  <https://github.com/zopefoundation/zope.component/issues/59>`_.\n\n- Respect permission value for utility factory registrations\n  (`#54 <https://github.com/zopefoundation/zope.component/issues/54>`_)\n\n- Add support for Python 3.9\n\n- Fix the ``<subscriber>`` ZCML directive to allow a missing\n  ``provides=`` attribute when a ``factory=`` is given and the Python\n  object has been decorated with ``@implementer`` and implements a\n  single interface. This has been documented, but hasn't worked\n  before. See `issue 9\n  <https://github.com/zopefoundation/zope.component/issues/9>`_.\n\n- Make ``PersistentAdapterRegistry`` use persistent objects\n  (``PersistentMapping`` and ``PersistentList``) for its internal data\n  structures instead of plain dicts and lists. This helps make it\n  scalable to larger registry sizes.\n\n  This requires zope.interface 5.3.0a1 or later.\n\n  New registries (and their primary users, ``PersistentComponents`` and\n  zope.site's ``LocalSiteManager``) take full advantage of this\n  automatically. For existing persistent registries to take advantage\n  of this, you must call their ``rebuild()`` method and commit the\n  transaction.\n\n  See `issue 51 <https://github.com/zopefoundation/zope.component/issues/51>`_.\n\n- Fix ``zope.interface.interface.provideInterface`` and the various\n  search and query methods to use the current site manager instead of\n  always using the global site manager. (``provideInterface`` is\n  called implicitly when registering components from ZCML.) The search\n  and query methods continue to return interfaces registered in base\n  site managers.\n\n  See `issue 10 <https://github.com/zopefoundation/zope.component/issues/51>`_.\n\n4.6.2 (2020-07-03)\n==================\n\n- Improve the documentation, both published and in docstrings. See `PR\n  49 <https://github.com/zopefoundation/zope.component/pull/49>`_.\n\n\n4.6.1 (2020-03-23)\n==================\n\n- Ensure the resolution order of ``BaseGlobalComponents`` is\n  consistent. See `issue 45 <https://github.com/zopefoundation/zope.component/issues/45>`_.\n\n\n4.6.0 (2019-11-12)\n==================\n\n- Add support for Python 3.8.\n\n- Drop support for Python 3.4.\n\n- Fix tests on Python 2 following changes in ZODB 5.5.0.\n\n\n4.5.0 (2018-10-10)\n==================\n\n- Add support for Python 3.7.\n\n- Always install ``zope.hookable`` as a dependency (the ``hook``\n  extra is now empty). ``zope.hookable`` respects the PURE_PYTHON\n  environment variable, and has an optional C extension.\n\n- Make accessing names that have been moved to ``zope.interface``\n  produce a ``DeprecationWarning``.\n\n\n4.4.1 (2017-09-26)\n==================\n\n- Remove obsolete call of ``searchInterface`` from\n  ``interfaceToName``. See https://github.com/zopefoundation/zope.component/issues/32\n\n\n4.4.0 (2017-07-25)\n==================\n\n- Add support for Python 3.6.\n\n- Drop support for Python 3.3.\n\n- Drop support for \"setup.py test\".\n\n- Code coverage reports are now `produced and hosted by coveralls.io\n  <https://coveralls.io/github/zopefoundation/zope.component>`_, and\n  PRs must keep them at 100%.\n\n- Internal test code in ``zope.component.testfiles`` has been adjusted\n  and in some cases removed.\n\n\n4.3.0 (2016-08-26)\n==================\n\n- When testing ``PURE_PYTHON`` environments under ``tox``, avoid poisoning\n  the user's global wheel cache.\n\n- Drop support for Python 2.6 and 3.2.\n\n- Add support for Python 3.5.\n\n\n4.2.2 (2015-06-04)\n==================\n\n- Fix test cases for PyPy and PyPy3.\n\n\n4.2.1 (2014-03-19)\n==================\n\n- Add support for Python 3.4.\n\n\n4.2.0 (2014-02-05)\n==================\n\n- Update ``boostrap.py`` to version 2.2.\n\n- Reset the cached ``adapter_hooks`` at ``zope.testing.cleanup.cleanUp``\n  time (LP1100501).\n\n- Implement ability to specify adapter and utility names in Python. Use\n  the ``@zope.component.named(name)`` decorator to specify the name.\n\n\n4.1.0 (2013-02-28)\n==================\n\n- Change \"ZODB3\" depdendency to \"persistent\".\n\n- ``tox`` now runs all tests for Python 3.2 and 3.3.\n\n- Enable buildout for Python 3.\n\n- Fix new failing tests.\n\n\n4.0.2 (2012-12-31)\n==================\n\n- Flesh out PyPI Trove classifiers.\n\n\n4.0.1 (2012-11-21)\n==================\n\n- Add support for Python 3.3.\n\n\n4.0.0 (2012-07-02)\n==================\n\n- Add PyPy and Python 3.2 support:\n\n  - Security support omitted until ``zope.security`` ported.\n\n  - Persistent registry support omitted until ``ZODB`` ported (or\n    ``persistent`` factored out).\n\n- Bring unit test coverage to 100%.\n\n- Remove the long-deprecated ``layer`` argument to the\n  ``zope.component.zcml.view`` and ``zope.component.zcml.resource``\n  ZCML directives.\n\n- Add support for continuous integration using ``tox`` and ``jenkins``.\n\n- Got tests to run using ``setup.py test``.\n\n- Add ``Sphinx`` documentation.\n\n- Add ``setup.py docs`` alias (installs ``Sphinx`` and dependencies).\n\n- Add ``setup.py dev`` alias (runs ``setup.py develop`` plus installs\n  ``nose`` and ``coverage``).\n\n\n3.12.1 (2012-04-02)\n===================\n\n- Wrap ``with site(foo)`` in try/finally (LP768151).\n\n\n3.12.0 (2011-11-16)\n===================\n\n- Add convenience function zope.component.hooks.site (a contextmanager),\n  so one can write ``with site(foo): ...``.\n\n\n3.11.0 (2011-09-22)\n===================\n\n- Move code from ``zope.component.registry`` which implements a basic\n  nonperistent component registry to ``zope.interface.registry``.  This code\n  was moved from ``zope.component`` into ``zope.interface`` to make porting\n  systems (such as Pyramid) that rely only on a basic component registry to\n  Python 3 possible without needing to port the entirety of the\n  ``zope.component`` package.  Backwards compatibility import shims have been\n  left behind in ``zope.component``, so this change will not break any\n  existing code.\n\n- Move interfaces from ``zope.component.interfaces`` to\n  ``zope.interface.interfaces``: ``ComponentLookupError``, ``Invalid``,\n  ``IObjectEvent``, ``ObjectEvent``, ``IComponentLookup``, ``IRegistration``,\n  ``IUtilityRegistration``, ``IAdapterRegistration``,\n  ``ISubscriptionAdapterRegistration``, ``IHandlerRegistration``,\n  ``IRegistrationEvent``, ``RegistrationEvent``, ``IRegistered``,\n  ``Registered``, ``IUnregistered``, ``Unregistered``,\n  ``IComponentRegistry``, and ``IComponents``.  Backwards compatibility shims\n  left in place.\n\n- Depend on ``zope.interface`` >= 3.8.0.\n\n\n3.10.0 (2010-09-25)\n===================\n\n- Remove the ``docs`` extra and the ``sphinxdoc`` recipe.\n\n- Create a ``security`` extra to move security-related dependencies out of the\n  ``test`` extra.\n\n- Use the new ``zope.testrunner`` package for tests.\n\n- Add a basic test for the ``configure.zcml`` file provided.\n\n\n3.9.5 (2010-07-09)\n==================\n\n- Fix test requirements specification.\n\n\n3.9.4 (2010-04-30)\n==================\n\n- Prefer the standard library ``doctest`` to the one from ``zope.testing``.\n\n\n3.9.3 (2010-03-08)\n==================\n\n- The ZCML directives provided by ``zope.component`` now register the\n  components in the registry returned by ``getSiteManager`` instead of the\n  global registry. This change allows the hooking of the ``getSiteManager``\n  method before the load of a ZCML file to register the components in a\n  custom registry.\n\n\n3.9.2 (2010-01-22)\n==================\n\n- Fix a bug introduced by recent refactoring, where passing\n  ``CheckerPublic`` to ``securityAdapterFactory`` wrongly wrapped the factory\n  into a ``LocatingUntrustedAdapterFactory``.\n\n\n3.9.1 (2010-01-21)\n==================\n\n- Modify the tests to avoid allowing the tested testrunner to be influenced\n  by options of the outer testrunner, such a the ``-v`` option.\n\n\n3.9.0 (2010-01-21)\n==================\n\n- Add testlayer support. It is now possible to load a ZCML file within\n  tests more easily. See ``src/zope/component/testlayer.py`` and\n  ``src/zope/component/testlayer.txt``.\n\n\n3.8.0 (2009-11-16)\n==================\n\n- Remove the dependencies on ``zope.proxy`` and ``zope.security`` from the\n  zcml extra: ``zope.component`` no longer has a hard dependency on them;\n  the support for security proxied components ZCML registrations is enabled\n  only if ``zope.security`` and ``zope.proxy`` are available.\n\n- Move the ``IPossibleSite`` and ``ISite`` interfaces here from\n  ``zope.location`` as they are dealing with ``zope.component``'s concept of\n  a site, but not with location.\n\n- Move the ``zope.site.hooks`` functionality to ``zope.component.hooks`` as it\n  isn't actually dealing with ``zope.site``'s concept of a site.\n\n\n3.7.1 (2009-07-24)\n==================\n\n- Fix a problem, where ``queryNextUtility`` could fail if the context could\n  not be adapted to a ``IComponentLookup``.\n\n- Fix 2 related bugs:\n\n  When a utility is registered and there was previously a utility\n  registered for the same interface and name, then the old utility is\n  unregistered.  The 2 bugs related to this:\n\n  - There was no ``Unregistered`` for the implicit unregistration. Now\n    there is.\n\n  - The old utility was still held and returned by\n    ``getAllUtilitiesRegisteredFor``.  In other words, it was still\n    considered registered, eeven though it wasn't.  A particularly\n    negative consequence of this is that the utility is held in memory\n    or in the database even though it isn't used.\n\n\n3.7.0 (2009-05-21)\n==================\n\n- Ensure that ``HookableTests`` are run by the testrunner.\n\n- Add ``zope:view`` and ``zope:resource`` implementations into\n  ``zope.component.zcml`` (dependency loaded with ``zope.component [zcml]``).\n\n\n3.6.0 (2009-03-12)\n==================\n\n- IMPORTANT: the interfaces that were defined in the\n  ``zope.component.bbb.interfaces`` and deprecated for years are\n  now (re)moved. However, some packages, including part of zope\n  framework were still using those interfaces. They will be adapted\n  for this change. If you were using some of those interfaces, you\n  need to adapt your code as well:\n\n   - Move ``IView`` and ``IDefaultViewName`` to ``zope.publisher.interfaces``.\n\n   - Move ``IResource`` to ``zope.app.publisher.interfaces``.\n\n   - Remove ``IContextDependent``, ``IPresentation``, ``IPresentationRequest``,\n     ``IResourceFactory``, and ``IViewFactory`` completely.\n\n     If you used ``IViewFactory`` in context of ``zope.app.form``, there's now\n     ``IWidgetFactory`` in the ``zope.app.form.interfaces`` instead.\n\n- Move ``getNextUtility`` / ``queryNextUtility`` functions here from\n  ``zope.site`` (they were in ``zope.app.component`` even earlier).\n\n- Add a pure-Python ``hookable`` implementation, for use when\n  ``zope.hookable`` is not present.\n\n- Remove use of ``zope.deferredimport`` by breaking import cycles.\n\n- Cleanup package documentation and changelog a bit. Add sphinx-based\n  documentation building command to the buildout.\n\n- Remove deprecated code.\n\n- Change package's mailing list address to zope-dev at zope.org, because\n  zope3-dev at zope.org is now retired.\n\n\n3.5.1 (2008-07-25)\n==================\n\n- Fix bug introduced in 3.5.0: ``<utility factory=\"...\">`` no longer supported\n  interfaces declared in Python and always wanted an explicit\n  ``provides=\"...\"`` attribute. https://bugs.launchpad.net/zope3/+bug/251865\n\n\n3.5.0 (2008-07-25)\n==================\n\n- Support registration of utilities via factories through the component\n  registry and return factory information in the registration information.\n  Fixes https://bugs.launchpad.net/zope3/+bug/240631\n\n- Optimize ``un/registerUtility`` by storing an optimized data structure for\n  efficient retrieval of already registered utilities. This avoids looping over\n  all utilities when registering a new one.\n\n\n3.4.0 (2007-09-29)\n==================\n\nNo further changes since 3.4.0a1.\n\n\n3.4.0a1 (2007-04-22)\n====================\n\nCorresponds to ``zope.component`` from Zope 3.4.0a1.\n\n- In the Zope 3.3.x series, ``zope.component`` was simplified yet once\n  more.  See http://wiki.zope.org/zope3/LocalComponentManagementSimplification\n  for the proposal describing the changes.\n\n\n3.2.0.2 (2006-04-15)\n====================\n\n- Fix packaging bug:  ``package_dir`` must be a *relative* path.\n\n\n3.2.0.1 (2006-04-14)\n====================\n\n- Packaging change: suppress inclusion of ``setup.cfg`` in ``sdist`` builds.\n\n\n3.2.0 (2006-01-05)\n==================\n\nCorresponds to the verison of the ``zope.component`` package shipped as part\nof the Zope 3.2.0 release.\n\n- Deprecated services and related APIs. The adapter and utility registries\n  are now available directly via the site manager's 'adapters' and 'utilities'\n  attributes, respectively.  Services are accessible, but deprecated, and\n  will be removed in Zope 3.3.\n\n- Deprecated all presentation-related APIs, including all view-related\n  API functions. Use the adapter API functions instead.\n  See http://dev.zope.org/Zope3/ImplementViewsAsAdapters`\n\n- Deprecated ``contextdependent`` package:  site managers are now looked up\n  via a thread global, set during URL traversal.  The ``context`` argument\n  is now always optional, and should no longer be passed.\n\n\n3.0.0 (2004-11-07)\n==================\n\nCorresponds to the verison of the ``zope.component`` package shipped as part of\nthe Zope X3.0.0 release.\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "Zope Component Architecture",
    "version": "6.0",
    "project_urls": {
        "Documentation": "https://zopecomponent.readthedocs.io/",
        "Homepage": "https://github.com/zopefoundation/zope.component",
        "Issue Tracker": "https://github.com/zopefoundation/zope.component/issues",
        "Sources": "https://github.com/zopefoundation/zope.component"
    },
    "split_keywords": [
        "interface",
        "component",
        "coupling",
        "loose",
        "utility",
        "adapter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a0ea18a5e07ce7f66714aa289ba21c5bc52221bffc3a77d6e4318d50e8a0a3f7",
                "md5": "63c35276e172ebef20e1ee175dc25bb3",
                "sha256": "96d0a04db39643caf2dfaec152340f3e914df1dc3fa32fbb913782620dc6c3c6"
            },
            "downloads": -1,
            "filename": "zope.component-6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "63c35276e172ebef20e1ee175dc25bb3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 68841,
            "upload_time": "2023-04-14T06:04:45",
            "upload_time_iso_8601": "2023-04-14T06:04:45.628332Z",
            "url": "https://files.pythonhosted.org/packages/a0/ea/18a5e07ce7f66714aa289ba21c5bc52221bffc3a77d6e4318d50e8a0a3f7/zope.component-6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "533287db95f4a5f097aa837dcb951f5a4754e2e8d3ac70160a6c2df7bd215956",
                "md5": "55d4d24f425b18e2368a18c468f8cc47",
                "sha256": "9a0a0472ad201b94b4fe6741ce9ac2c30b8bb22c516077bf03692dec4dfb6906"
            },
            "downloads": -1,
            "filename": "zope.component-6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "55d4d24f425b18e2368a18c468f8cc47",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 90268,
            "upload_time": "2023-04-14T06:04:48",
            "upload_time_iso_8601": "2023-04-14T06:04:48.242167Z",
            "url": "https://files.pythonhosted.org/packages/53/32/87db95f4a5f097aa837dcb951f5a4754e2e8d3ac70160a6c2df7bd215956/zope.component-6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-14 06:04:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zopefoundation",
    "github_project": "zope.component",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "zope.component"
}
        
Elapsed time: 0.13144s