PKG-INFO 22 KB

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