METADATA 17 KB

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