You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

600 lines
18 KiB

4 years ago
  1. Metadata-Version: 2.1
  2. Name: zope.interface
  3. Version: 4.6.0
  4. Summary: Interfaces for Python
  5. Home-page: https://github.com/zopefoundation/zope.interface
  6. Author: Zope Foundation and Contributors
  7. Author-email: zope-dev@zope.org
  8. License: ZPL 2.1
  9. Keywords: interface,components,plugins
  10. Platform: UNKNOWN
  11. Classifier: Development Status :: 5 - Production/Stable
  12. Classifier: Intended Audience :: Developers
  13. Classifier: License :: OSI Approved :: Zope Public License
  14. Classifier: Operating System :: OS Independent
  15. Classifier: Programming Language :: Python
  16. Classifier: Programming Language :: Python :: 2
  17. Classifier: Programming Language :: Python :: 2.7
  18. Classifier: Programming Language :: Python :: 3
  19. Classifier: Programming Language :: Python :: 3.4
  20. Classifier: Programming Language :: Python :: 3.5
  21. Classifier: Programming Language :: Python :: 3.6
  22. Classifier: Programming Language :: Python :: 3.7
  23. Classifier: Programming Language :: Python :: Implementation :: CPython
  24. Classifier: Programming Language :: Python :: Implementation :: PyPy
  25. Classifier: Framework :: Zope :: 3
  26. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  27. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
  28. Provides-Extra: test
  29. Provides-Extra: docs
  30. Provides-Extra: testing
  31. Requires-Dist: setuptools
  32. Provides-Extra: docs
  33. Requires-Dist: Sphinx; extra == 'docs'
  34. Requires-Dist: repoze.sphinx.autointerface; extra == 'docs'
  35. Provides-Extra: test
  36. Requires-Dist: zope.event; extra == 'test'
  37. Provides-Extra: testing
  38. Requires-Dist: zope.event; extra == 'testing'
  39. Requires-Dist: nose; extra == 'testing'
  40. Requires-Dist: coverage; extra == 'testing'
  41. ``zope.interface``
  42. ==================
  43. .. image:: https://img.shields.io/pypi/v/zope.interface.svg
  44. :target: https://pypi.python.org/pypi/zope.interface/
  45. :alt: Latest Version
  46. .. image:: https://img.shields.io/pypi/pyversions/zope.interface.svg
  47. :target: https://pypi.org/project/zope.interface/
  48. :alt: Supported Python versions
  49. .. image:: https://travis-ci.org/zopefoundation/zope.interface.svg?branch=master
  50. :target: https://travis-ci.org/zopefoundation/zope.interface
  51. .. image:: https://readthedocs.org/projects/zopeinterface/badge/?version=latest
  52. :target: https://zopeinterface.readthedocs.io/en/latest/
  53. :alt: Documentation Status
  54. This package is intended to be independently reusable in any Python
  55. project. It is maintained by the `Zope Toolkit project
  56. <https://zopetoolkit.readthedocs.io/>`_.
  57. This package provides an implementation of "object interfaces" for Python.
  58. Interfaces are a mechanism for labeling objects as conforming to a given
  59. API or contract. So, this package can be considered as implementation of
  60. the `Design By Contract`_ methodology support in Python.
  61. .. _Design By Contract: http://en.wikipedia.org/wiki/Design_by_contract
  62. For detailed documentation, please see https://zopeinterface.readthedocs.io/en/latest/
  63. Changes
  64. =======
  65. 4.6.0 (2018-10-23)
  66. ------------------
  67. - Add support for Python 3.7
  68. - Fix ``verifyObject`` for class objects with staticmethods on
  69. Python 3. See `issue 126
  70. <https://github.com/zopefoundation/zope.interface/issues/126>`_.
  71. 4.5.0 (2018-04-19)
  72. ------------------
  73. - Drop support for 3.3, avoid accidental dependence breakage via setup.py.
  74. See `PR 110 <https://github.com/zopefoundation/zope.interface/pull/110>`_.
  75. - Allow registering and unregistering instance methods as listeners.
  76. See `issue 12 <https://github.com/zopefoundation/zope.interface/issues/12>`_
  77. and `PR 102 <https://github.com/zopefoundation/zope.interface/pull/102>`_.
  78. - Synchronize and simplify zope/__init__.py. See `issue 114
  79. <https://github.com/zopefoundation/zope.interface/issues/114>`_
  80. 4.4.3 (2017-09-22)
  81. ------------------
  82. - Avoid exceptions when the ``__annotations__`` attribute is added to
  83. interface definitions with Python 3.x type hints. See `issue 98
  84. <https://github.com/zopefoundation/zope.interface/issues/98>`_.
  85. - Fix the possibility of a rare crash in the C extension when
  86. deallocating items. See `issue 100
  87. <https://github.com/zopefoundation/zope.interface/issues/100>`_.
  88. 4.4.2 (2017-06-14)
  89. ------------------
  90. - Fix a regression storing
  91. ``zope.component.persistentregistry.PersistentRegistry`` instances.
  92. See `issue 85 <https://github.com/zopefoundation/zope.interface/issues/85>`_.
  93. - Fix a regression that could lead to the utility registration cache
  94. of ``Components`` getting out of sync. See `issue 93
  95. <https://github.com/zopefoundation/zope.interface/issues/93>`_.
  96. 4.4.1 (2017-05-13)
  97. ------------------
  98. - Simplify the caching of utility-registration data. In addition to
  99. simplification, avoids spurious test failures when checking for
  100. leaks in tests with persistent registries. See `pull 84
  101. <https://github.com/zopefoundation/zope.interface/pull/84>`_.
  102. - Raise ``ValueError`` when non-text names are passed to adapter registry
  103. methods: prevents corruption of lookup caches.
  104. 4.4.0 (2017-04-21)
  105. ------------------
  106. - Avoid a warning from the C compiler.
  107. (https://github.com/zopefoundation/zope.interface/issues/71)
  108. - Add support for Python 3.6.
  109. 4.3.3 (2016-12-13)
  110. ------------------
  111. - Correct typos and ReST formatting errors in documentation.
  112. - Add API documentation for the adapter registry.
  113. - Ensure that the ``LICENSE.txt`` file is included in built wheels.
  114. - Fix C optimizations broken on Py3k. See the Python bug at:
  115. http://bugs.python.org/issue15657
  116. (https://github.com/zopefoundation/zope.interface/issues/60)
  117. 4.3.2 (2016-09-05)
  118. ------------------
  119. - Fix equality testing of ``implementedBy`` objects and proxies.
  120. (https://github.com/zopefoundation/zope.interface/issues/55)
  121. 4.3.1 (2016-08-31)
  122. ------------------
  123. - Support Components subclasses that are not hashable.
  124. (https://github.com/zopefoundation/zope.interface/issues/53)
  125. 4.3.0 (2016-08-31)
  126. ------------------
  127. - Add the ability to sort the objects returned by ``implementedBy``.
  128. This is compatible with the way interface classes sort so they can
  129. be used together in ordered containers like BTrees.
  130. (https://github.com/zopefoundation/zope.interface/issues/42)
  131. - Make ``setuptools`` a hard dependency of ``setup.py``.
  132. (https://github.com/zopefoundation/zope.interface/issues/13)
  133. - Change a linear algorithm (O(n)) in ``Components.registerUtility`` and
  134. ``Components.unregisterUtility`` into a dictionary lookup (O(1)) for
  135. hashable components. This substantially improves the time taken to
  136. manipulate utilities in large registries at the cost of some
  137. additional memory usage. (https://github.com/zopefoundation/zope.interface/issues/46)
  138. 4.2.0 (2016-06-10)
  139. ------------------
  140. - Add support for Python 3.5
  141. - Drop support for Python 2.6 and 3.2.
  142. 4.1.3 (2015-10-05)
  143. ------------------
  144. - Fix installation without a C compiler on Python 3.5
  145. (https://github.com/zopefoundation/zope.interface/issues/24).
  146. 4.1.2 (2014-12-27)
  147. ------------------
  148. - Add support for PyPy3.
  149. - Remove unittest assertions deprecated in Python3.x.
  150. - Add ``zope.interface.document.asReStructuredText``, which formats the
  151. generated text for an interface using ReST double-backtick markers.
  152. 4.1.1 (2014-03-19)
  153. ------------------
  154. - Add support for Python 3.4.
  155. 4.1.0 (2014-02-05)
  156. ------------------
  157. - Update ``boostrap.py`` to version 2.2.
  158. - Add ``@named(name)`` declaration, that specifies the component name, so it
  159. does not have to be passed in during registration.
  160. 4.0.5 (2013-02-28)
  161. ------------------
  162. - Fix a bug where a decorated method caused false positive failures on
  163. ``verifyClass()``.
  164. 4.0.4 (2013-02-21)
  165. ------------------
  166. - Fix a bug that was revealed by porting zope.traversing. During a loop, the
  167. loop body modified a weakref dict causing a ``RuntimeError`` error.
  168. 4.0.3 (2012-12-31)
  169. ------------------
  170. - Fleshed out PyPI Trove classifiers.
  171. 4.0.2 (2012-11-21)
  172. ------------------
  173. - Add support for Python 3.3.
  174. - Restored ability to install the package in the absence of ``setuptools``.
  175. - LP #1055223: Fix test which depended on dictionary order and failed randomly
  176. in Python 3.3.
  177. 4.0.1 (2012-05-22)
  178. ------------------
  179. - Drop explicit ``DeprecationWarnings`` for "class advice" APIS (these
  180. APIs are still deprecated under Python 2.x, and still raise an exception
  181. under Python 3.x, but no longer cause a warning to be emitted under
  182. Python 2.x).
  183. 4.0.0 (2012-05-16)
  184. ------------------
  185. - Automated build of Sphinx HTML docs and running doctest snippets via tox.
  186. - Deprecate the "class advice" APIs from ``zope.interface.declarations``:
  187. ``implements``, ``implementsOnly``, and ``classProvides``. In their place,
  188. prefer the equivalent class decorators: ``@implementer``,
  189. ``@implementer_only``, and ``@provider``. Code which uses the deprecated
  190. APIs will not work as expected under Py3k.
  191. - Remove use of '2to3' and associated fixers when installing under Py3k.
  192. The code is now in a "compatible subset" which supports Python 2.6, 2.7,
  193. and 3.2, including PyPy 1.8 (the version compatible with the 2.7 language
  194. spec).
  195. - Drop explicit support for Python 2.4 / 2.5 / 3.1.
  196. - Add support for PyPy.
  197. - Add support for continuous integration using ``tox`` and ``jenkins``.
  198. - Add 'setup.py dev' alias (runs ``setup.py develop`` plus installs
  199. ``nose`` and ``coverage``).
  200. - Add 'setup.py docs' alias (installs ``Sphinx`` and dependencies).
  201. - Replace all unittest coverage previously accomplished via doctests with
  202. unittests. The doctests have been moved into a ``docs`` section, managed
  203. as a Sphinx collection.
  204. - LP #910987: Ensure that the semantics of the ``lookup`` method of
  205. ``zope.interface.adapter.LookupBase`` are the same in both the C and
  206. Python implementations.
  207. - LP #900906: Avoid exceptions due to tne new ``__qualname__`` attribute
  208. added in Python 3.3 (see PEP 3155 for rationale). Thanks to Antoine
  209. Pitrou for the patch.
  210. 3.8.0 (2011-09-22)
  211. ------------------
  212. - New module ``zope.interface.registry``. This is code moved from
  213. ``zope.component.registry`` which implements a basic nonperistent component
  214. registry as ``zope.interface.registry.Components``. This class was moved
  215. from ``zope.component`` to make porting systems (such as Pyramid) that rely
  216. only on a basic component registry to Python 3 possible without needing to
  217. port the entirety of the ``zope.component`` package. Backwards
  218. compatibility import shims have been left behind in ``zope.component``, so
  219. this change will not break any existing code.
  220. - New ``tests_require`` dependency: ``zope.event`` to test events sent by
  221. Components implementation. The ``zope.interface`` package does not have a
  222. hard dependency on ``zope.event``, but if ``zope.event`` is importable, it
  223. will send component registration events when methods of an instance of
  224. ``zope.interface.registry.Components`` are called.
  225. - New interfaces added to support ``zope.interface.registry.Components``
  226. addition: ``ComponentLookupError``, ``Invalid``, ``IObjectEvent``,
  227. ``ObjectEvent``, ``IComponentLookup``, ``IRegistration``,
  228. ``IUtilityRegistration``, ``IAdapterRegistration``,
  229. ``ISubscriptionAdapterRegistration``, ``IHandlerRegistration``,
  230. ``IRegistrationEvent``, ``RegistrationEvent``, ``IRegistered``,
  231. ``Registered``, ``IUnregistered``, ``Unregistered``,
  232. ``IComponentRegistry``, and ``IComponents``.
  233. - No longer Python 2.4 compatible (tested under 2.5, 2.6, 2.7, and 3.2).
  234. 3.7.0 (2011-08-13)
  235. ------------------
  236. - Move changes from 3.6.2 - 3.6.5 to a new 3.7.x release line.
  237. 3.6.7 (2011-08-20)
  238. ------------------
  239. - Fix sporadic failures on x86-64 platforms in tests of rich comparisons
  240. of interfaces.
  241. 3.6.6 (2011-08-13)
  242. ------------------
  243. - LP #570942: Now correctly compare interfaces from different modules but
  244. with the same names.
  245. N.B.: This is a less intrusive / destabilizing fix than the one applied in
  246. 3.6.3: we only fix the underlying cmp-alike function, rather than adding
  247. the other "rich comparison" functions.
  248. - Revert to software as released with 3.6.1 for "stable" 3.6 release branch.
  249. 3.6.5 (2011-08-11)
  250. ------------------
  251. - LP #811792: work around buggy behavior in some subclasses of
  252. ``zope.interface.interface.InterfaceClass``, which invoke ``__hash__``
  253. before initializing ``__module__`` and ``__name__``. The workaround
  254. returns a fixed constant hash in such cases, and issues a ``UserWarning``.
  255. - LP #804832: Under PyPy, ``zope.interface`` should not build its C
  256. extension. Also, prevent attempting to build it under Jython.
  257. - Add a tox.ini for easier xplatform testing.
  258. - Fix testing deprecation warnings issued when tested under Py3K.
  259. 3.6.4 (2011-07-04)
  260. ------------------
  261. - LP 804951: InterfaceClass instances were unhashable under Python 3.x.
  262. 3.6.3 (2011-05-26)
  263. ------------------
  264. - LP #570942: Now correctly compare interfaces from different modules but
  265. with the same names.
  266. 3.6.2 (2011-05-17)
  267. ------------------
  268. - Moved detailed documentation out-of-line from PyPI page, linking instead to
  269. http://docs.zope.org/zope.interface .
  270. - Fixes for small issues when running tests under Python 3.2 using
  271. ``zope.testrunner``.
  272. - LP # 675064: Specify return value type for C optimizations module init
  273. under Python 3: undeclared value caused warnings, and segfaults on some
  274. 64 bit architectures.
  275. - setup.py now raises RuntimeError if you don't have Distutils installed when
  276. running under Python 3.
  277. 3.6.1 (2010-05-03)
  278. ------------------
  279. - A non-ASCII character in the changelog made 3.6.0 uninstallable on
  280. Python 3 systems with another default encoding than UTF-8.
  281. - Fix compiler warnings under GCC 4.3.3.
  282. 3.6.0 (2010-04-29)
  283. ------------------
  284. - LP #185974: Clear the cache used by ``Specificaton.get`` inside
  285. ``Specification.changed``. Thanks to Jacob Holm for the patch.
  286. - Add support for Python 3.1. Contributors:
  287. Lennart Regebro
  288. Martin v Loewis
  289. Thomas Lotze
  290. Wolfgang Schnerring
  291. The 3.1 support is completely backwards compatible. However, the implements
  292. syntax used under Python 2.X does not work under 3.X, since it depends on
  293. how metaclasses are implemented and this has changed. Instead it now supports
  294. a decorator syntax (also under Python 2.X)::
  295. class Foo:
  296. implements(IFoo)
  297. ...
  298. can now also be written::
  299. @implementer(IFoo):
  300. class Foo:
  301. ...
  302. There are 2to3 fixers available to do this change automatically in the
  303. zope.fixers package.
  304. - Python 2.3 is no longer supported.
  305. 3.5.4 (2009-12-23)
  306. ------------------
  307. - Use the standard Python doctest module instead of zope.testing.doctest, which
  308. has been deprecated.
  309. 3.5.3 (2009-12-08)
  310. ------------------
  311. - Fix an edge case: make providedBy() work when a class has '__provides__' in
  312. its __slots__ (see http://thread.gmane.org/gmane.comp.web.zope.devel/22490)
  313. 3.5.2 (2009-07-01)
  314. ------------------
  315. - BaseAdapterRegistry.unregister, unsubscribe: Remove empty portions of
  316. the data structures when something is removed. This avoids leaving
  317. references to global objects (interfaces) that may be slated for
  318. removal from the calling application.
  319. 3.5.1 (2009-03-18)
  320. ------------------
  321. - verifyObject: use getattr instead of hasattr to test for object attributes
  322. in order to let exceptions other than AttributeError raised by properties
  323. propagate to the caller
  324. - Add Sphinx-based documentation building to the package buildout
  325. configuration. Use the ``bin/docs`` command after buildout.
  326. - Improve package description a bit. Unify changelog entries formatting.
  327. - Change package's mailing list address to zope-dev at zope.org as
  328. zope3-dev at zope.org is now retired.
  329. 3.5.0 (2008-10-26)
  330. ------------------
  331. - Fix declaration of _zope_interface_coptimizations, it's not a top level
  332. package.
  333. - Add a DocTestSuite for odd.py module, so their tests are run.
  334. - Allow to bootstrap on Jython.
  335. - Fix https://bugs.launchpad.net/zope3/3.3/+bug/98388: ISpecification
  336. was missing a declaration for __iro__.
  337. - Add optional code optimizations support, which allows the building
  338. of C code optimizations to fail (Jython).
  339. - Replace `_flatten` with a non-recursive implementation, effectively making
  340. it 3x faster.
  341. 3.4.1 (2007-10-02)
  342. ------------------
  343. - Fix a setup bug that prevented installation from source on systems
  344. without setuptools.
  345. 3.4.0 (2007-07-19)
  346. ------------------
  347. - Final release for 3.4.0.
  348. 3.4.0b3 (2007-05-22)
  349. --------------------
  350. - When checking whether an object is already registered, use identity
  351. comparison, to allow adding registering with picky custom comparison methods.
  352. 3.3.0.1 (2007-01-03)
  353. --------------------
  354. - Made a reference to OverflowWarning, which disappeared in Python
  355. 2.5, conditional.
  356. 3.3.0 (2007/01/03)
  357. ------------------
  358. New Features
  359. ++++++++++++
  360. - Refactor the adapter-lookup algorithim to make it much simpler and faster.
  361. Also, implement more of the adapter-lookup logic in C, making
  362. debugging of application code easier, since there is less
  363. infrastructre code to step through.
  364. - Treat objects without interface declarations as if they
  365. declared that they provide ``zope.interface.Interface``.
  366. - Add a number of richer new adapter-registration interfaces
  367. that provide greater control and introspection.
  368. - Add a new interface decorator to zope.interface that allows the
  369. setting of tagged values on an interface at definition time (see
  370. zope.interface.taggedValue).
  371. Bug Fixes
  372. +++++++++
  373. - A bug in multi-adapter lookup sometimes caused incorrect adapters to
  374. be returned.
  375. 3.2.0.2 (2006-04-15)
  376. --------------------
  377. - Fix packaging bug: 'package_dir' must be a *relative* path.
  378. 3.2.0.1 (2006-04-14)
  379. --------------------
  380. - Packaging change: suppress inclusion of 'setup.cfg' in 'sdist' builds.
  381. 3.2.0 (2006-01-05)
  382. ------------------
  383. - Corresponds to the verison of the zope.interface package shipped as part of
  384. the Zope 3.2.0 release.
  385. 3.1.0 (2005-10-03)
  386. ------------------
  387. - Corresponds to the verison of the zope.interface package shipped as part of
  388. the Zope 3.1.0 release.
  389. - Made attribute resolution order consistent with component lookup order,
  390. i.e. new-style class MRO semantics.
  391. - Deprecate 'isImplementedBy' and 'isImplementedByInstancesOf' APIs in
  392. favor of 'implementedBy' and 'providedBy'.
  393. 3.0.1 (2005-07-27)
  394. ------------------
  395. - Corresponds to the verison of the zope.interface package shipped as part of
  396. the Zope X3.0.1 release.
  397. - Fix a bug reported by James Knight, which caused adapter registries
  398. to fail occasionally to reflect declaration changes.
  399. 3.0.0 (2004-11-07)
  400. ------------------
  401. - Corresponds to the verison of the zope.interface package shipped as part of
  402. the Zope X3.0.0 release.