tested django-newsletter

This commit is contained in:
Esther Kleinhenz
2018-10-26 15:21:17 +02:00
parent 7ed667d043
commit 811b7c5453
2352 changed files with 448169 additions and 1 deletions
@@ -0,0 +1,44 @@
Zope Public License (ZPL) Version 2.1
A copyright notice accompanies this license document that identifies the
copyright holders.
This license has been certified as open source. It has also been designated as
GPL compatible by the Free Software Foundation (FSF).
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions in source code must retain the accompanying copyright
notice, this list of conditions, and the following disclaimer.
2. Redistributions in binary form must reproduce the accompanying copyright
notice, this list of conditions, and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Names of the copyright holders must not be used to endorse or promote
products derived from this software without prior written permission from the
copyright holders.
4. The right to distribute this software or to use it for any purpose does not
give you the right to use Servicemarks (sm) or Trademarks (tm) of the
copyright
holders. Use of them is covered by separate agreement with the copyright
holders.
5. If any files are modified, you must cause the modified files to carry
prominent notices stating that you changed the files and the date of any
change.
Disclaimer
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,412 @@
Metadata-Version: 2.1
Name: persistent
Version: 4.4.3
Summary: Translucent persistent objects
Home-page: https://github.com/zopefoundation/persistent/
Author: Zope Corporation
Author-email: zodb-dev@zope.org
License: ZPL 2.1
Platform: any
Classifier: Development Status :: 6 - Mature
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Framework :: ZODB
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: Unix
Requires-Dist: zope.interface
Provides-Extra: docs
Requires-Dist: Sphinx; extra == 'docs'
Requires-Dist: repoze.sphinx.autointerface; extra == 'docs'
Provides-Extra: test
Requires-Dist: zope.testrunner; extra == 'test'
Requires-Dist: manuel; extra == 'test'
Requires-Dist: cffi; (platform_python_implementation == "CPython") and extra == 'test'
Provides-Extra: testing
``persistent``: automatic persistence for Python objects
=========================================================
.. image:: https://travis-ci.org/zopefoundation/persistent.svg?branch=master
:target: https://travis-ci.org/zopefoundation/persistent
.. image:: https://coveralls.io/repos/github/zopefoundation/persistent/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/persistent?branch=master
.. image:: https://readthedocs.org/projects/persistent/badge/?version=latest
:target: http://persistent.readthedocs.org/en/latest/
:alt: Documentation Status
.. image:: https://img.shields.io/pypi/v/persistent.svg
:target: https://pypi.org/project/persistent
:alt: Latest release
.. image:: https://img.shields.io/pypi/pyversions/persistent.svg
:target: https://pypi.org/project/persistent
:alt: Python versions
This package contains a generic persistence implementation for Python. It
forms the core protocol for making objects interact "transparently" with
a database such as the ZODB.
Please see the Sphinx documentation (``docs/index.rst``) for further
information, or view the documentation at Read The Docs, for either
the latest (``http://persistent.readthedocs.io/en/latest/``) or stable
release (``http://persistent.readthedocs.io/en/stable/``).
.. note::
Use of this standalone ``persistent`` release is not recommended or
supported with ZODB < 3.11. ZODB 3.10 and earlier bundle their own
version of the ``persistent`` package.
``persistent`` Changelog
========================
4.4.3 (2018-10-22)
------------------
- Fix the repr of the persistent objects to include the module name
when using the C extension. This matches the pure-Python behaviour
and the behaviour prior to 4.4.0. See `issue 92
<https://github.com/zopefoundation/persistent/issues/92>`_.
- Change the repr of persistent objects to format the OID as in
integer in hexadecimal notation if it is an 8-byte byte string, as
ZODB does. This eliminates some issues in doctests. See `issue 95
<https://github.com/zopefoundation/persistent/pull/95>`_.
4.4.2 (2018-08-28)
------------------
- Explicitly use unsigned constants for packing and unpacking C
timestamps, fixing an arithmetic issue for GCC when optimizations
are enabled and ``-fwrapv`` is *not* enabled. See `issue 86
<https://github.com/zopefoundation/persistent/issues/86>`_.
4.4.1 (2018-08-23)
------------------
- Fix installation of source packages on PyPy. See `issue 88
<https://github.com/zopefoundation/persistent/issues/88>`_.
4.4.0 (2018-08-22)
------------------
- Use unsigned constants when doing arithmetic on C timestamps,
possibly avoiding some overflow issues with some compilers or
compiler settings. See `issue 86
<https://github.com/zopefoundation/persistent/issues/86>`_.
- Change the default representation of ``Persistent`` objects to
include the representation of their OID and jar, if set. Also add
the ability for subclasses to implement ``_p_repr()`` instead of
overriding ``__repr__`` for better exception handling. See `issue 11
<https://github.com/zopefoundation/persistent/issues/11>`_.
- Reach and maintain 100% test coverage.
- Simplify ``__init__.py``, including removal of an attempted legacy
import of ``persistent.TimeStamp``. See `PR 80
<https://github.com/zopefoundation/persistent/pull/80>`_.
- Add support for Python 3.7 and drop support for Python 3.3.
- Build the CFFI modules (used on PyPy or when PURE_PYTHON is set) `at
installation or wheel building time
<https://cffi.readthedocs.io/en/latest/cdef.html#ffibuilder-set-source-preparing-out-of-line-modules>`_
when CFFI is available. This replaces `the deprecated way
<https://cffi.readthedocs.io/en/latest/overview.html#abi-versus-api>`_
of building them at import time. If binary wheels are distributed,
it eliminates the need to have a functioning C compiler to use PyPy.
See `issue 75
<https://github.com/zopefoundation/persistent/issues/75>`_.
- Fix deleting the ``_p_oid`` of a pure-Python persistent object when
it is in a cache.
- Fix deleting special (``_p``) attributes of a pure-Python persistent
object that overrides ``__delattr__`` and correctly calls ``_p_delattr``.
- Remove some internal compatibility shims that are no longer
necessary. See `PR 82 <https://github.com/zopefoundation/persistent/pull/82>`_.
- Make the return value of ``TimeStamp.second()`` consistent across C
and Python implementations when the ``TimeStamp`` was created from 6
arguments with floating point seconds. Also make it match across
trips through ``TimeStamp.raw()``. Previously, the C version could
initially have erroneous rounding and too much false precision,
while the Python version could have too much precision. The raw/repr
values have not changed. See `issue 41
<https://github.com/zopefoundation/persistent/issues/41>`_.
4.3.0 (2018-07-30)
------------------
- Fix the possibility of a rare crash in the C extension when
deallocating items. See https://github.com/zopefoundation/persistent/issues/66
- Change cPickleCache's comparison of object sizes to determine
whether an object can go in the cache to use ``PyObject_TypeCheck()``.
This matches what the pure Python implementation does and is a
stronger test that the object really is compatible with the cache.
Previously, an object could potentially include ``cPersistent_HEAD``
and *not* set ``tp_base`` to ``cPersistenceCAPI->pertype`` and still
be eligible for the pickle cache; that is no longer the case. See
`issue 69 <https://github.com/zopefoundation/persistent/issues/69>`_.
4.2.4.2 (2017-04-23)
--------------------
- Packaging-only release: fix Python 2.7 ``manylinux`` wheels.
4.2.4.1 (2017-04-21)
--------------------
- Packaging-only release: get ``manylinux`` wheel built automatically.
4.2.4 (2017-03-20)
------------------
- Avoid raising a ``SystemError: error return without exception set``
when loading an object with slots whose jar generates an exception
(such as a ZODB ``POSKeyError``) in ``setstate``.
4.2.3 (2017-03-08)
------------------
- Fix the hashcode of Python ``TimeStamp`` objects on 64-bit Python on
Windows. See https://github.com/zopefoundation/persistent/pull/55
- Stop calling ``gc.collect`` every time ``PickleCache.incrgc`` is called (every
transaction boundary) in pure-Python mode (PyPy). This means that
the reported size of the cache may be wrong (until the next GC), but
it is much faster. This should not have any observable effects for
user code.
- Stop clearing the dict and slots of objects added to
``PickleCache.new_ghost`` (typically these values are passed to
``__new__`` from the pickle data) in pure-Python mode (PyPy). This
matches the behaviour of the C code.
- Add support for Python 3.6.
- Fix ``__setstate__`` interning when ``state`` parameter is not a built-in dict
4.2.2 (2016-11-29)
------------------
- Drop use of ``ctypes`` for determining maximum integer size, to increase
pure-Python compatibility. See https://github.com/zopefoundation/persistent/pull/31
- Ensure that ``__slots__`` attributes are cleared when a persistent
object is ghostified. (This excluses classes that override
``__new__``. See
https://github.com/zopefoundation/persistent/wiki/Notes_on_state_new_and_slots
if you're curious.)
4.2.1 (2016-05-26)
------------------
- Fix the hashcode of C ``TimeStamp`` objects on 64-bit Python 3 on
Windows.
4.2.0 (2016-05-05)
------------------
- Fixed the Python(/PYPY) implementation ``TimeStamp.timeTime`` method
to have subsecond precision.
- When testing ``PURE_PYTHON`` environments under ``tox``, avoid poisoning
the user's global wheel cache.
- Add support for Python 3.5.
- Drop support for Python 2.6 and 3.2.
4.1.1 (2015-06-02)
------------------
- Fix manifest and re-upload to fix stray files included in 4.1.0.
4.1.0 (2015-05-19)
------------------
- Make the Python implementation of ``Persistent`` and ``PickleCache``
behave more similarly to the C implementation. In particular, the
Python version can now run the complete ZODB and ZEO test suites.
- Fix the hashcode of the Python ``TimeStamp`` on 32-bit platforms.
4.0.9 (2015-04-08)
------------------
- Make the C and Python ``TimeStamp`` objects behave more alike. The
Python version now produces the same ``repr`` and ``.raw()`` output as
the C version, and has the same hashcode. In addition, the Python
version is now supports ordering and equality like the C version.
- Intern keys of object state in ``__setstate__`` to reduce memory usage
when unpickling multiple objects with the same attributes.
- Add support for PyPy3.
- 100% branch coverage.
4.0.8 (2014-03-20)
------------------
- Add support for Python 3.4.
- In pure-Python ``Persistent``, avoid loading state in ``_p_activate``
for non-ghost objects (which could corrupt their state). (PR #9)
- In pure-Python, and don't throw ``POSKeyError`` if ``_p_activate`` is
called on an object that has never been committed. (PR #9)
- In pure-Python ``Persistent``, avoid calling a subclass's ``__setattr__``
at instance creation time. (PR #8)
- Make it possible to delete ``_p_jar`` / ``_p_oid`` of a pure-Python
``Persistent`` object which has been removed from the jar's cache
(fixes aborting a ZODB Connection that has added objects). (PR #7)
4.0.7 (2014-02-20)
------------------
- Avoid a KeyError from ``_p_accessed()`` on newly-created objects under
pure-Python: these objects may be assigned to a jar, but not yet added
to its cache. (PR #6)
- Avoid a failure in ``Persistent.__setstate__`` when the state dict
contains exactly two keys. (PR #5)
- Fix a hang in ``picklecache`` invalidation if OIDs are manually passed
out-of-order. (PR #4)
- Add ``PURE_PYTHON`` environment variable support: if set, the C
extensions will not be built, imported, or tested.
4.0.6 (2013-01-03)
------------------
- Updated Trove classifiers.
4.0.5 (2012-12-14)
------------------
- Fixed the C-extensions under Py3k (previously they compiled but were
not importable).
4.0.4 (2012-12-11)
------------------
- Added support for Python 3.3.
- C extenstions now build under Python 3.2, passing the same tests as
the pure-Python reference implementation.
4.0.3 (2012-11-19)
------------------
- Fixed: In the C implimentation, an integer was compared with a
pointer, with undefined results and a compiler warning.
- Fixed: the Python implementation of the ``_p_estimated_size`` propety
didn't support deletion.
- Simplified implementation of the ``_p_estimated_size`` property to
only accept integers. A TypeError is raised if an incorrect type is
provided.
4.0.2 (2012-08-27)
------------------
- Correct initialization functions in renamed ``_timestamp`` extension.
4.0.1 (2012-08-26)
------------------
- Worked around test failure due to overflow to long on 32-bit systems.
- Renamed ``TimeStamp`` extension module to avoid clash with pure-Python
``timestamp`` module on case-insensitive filesystems.
N.B: the canonical way to import the ``TimeStamp`` class is now::
from persistent.timestamp import TimeStamp
which will yield the class from the extension module (if available),
falling back to the pure-Python reference implementation.
4.0.0 (2012-08-11)
------------------
Platform Changes
################
- Added explicit support for Python 3.2 and PyPy.
- Note that the C implementations of Persistent, PickleCache, and Timestamp
are not built (yet) on these platforms.
- Dropped support for Python < 2.6.
Testing Changes
###############
- 100% unit test coverage.
- Removed all ``ZODB``-dependent tests:
- Rewrote some to avoid the dependency
- Cloned the remainder into new ``ZODB.tests`` modules.
- Refactored some doctests refactored as unittests.
- Completed pure-Python reference implementations of 'Persistent',
'PickleCache', and 'TimeStamp'.
- All covered platforms tested under ``tox``.
- Added support for continuous integration using ``tox`` and ``jenkins``.
- Added ``setup.py dev`` alias (installs ``nose`` and ``coverage``).
- Dropped dependency on ``zope.testing`` / ``zope.testrunner``: tests now
run with ``setup.py test``.
Documentation Changes
#####################
- Refactored many Doctests as Sphinx documentation (snippets are exercised
via 'tox').
- Added ``setup.py docs`` alias (installs ``Sphinx`` and
``repoze.sphinx.autointerface``).
@@ -0,0 +1,67 @@
../../../include/site/python3.6/persistent/cPersistence.h,sha256=sSXwdcCpn9t1WpAJ2Po2RjboAtgVieedjk2rcZwB04Y,5114
../../../include/site/python3.6/persistent/ring.h,sha256=RbpXV2O0vgqFwSERFZAkJgU8J17q3C3s-Y_dWQTrAE0,2639
persistent-4.4.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
persistent-4.4.3.dist-info/LICENSE.txt,sha256=PmcdsR32h1FswdtbPWXkqjg-rKPCDOo_r1Og9zNdCjw,2070
persistent-4.4.3.dist-info/METADATA,sha256=wMhHSH93H1lOmyxfkFZ8A2Tv38vjGEV6XUDmjKSRuuM,14062
persistent-4.4.3.dist-info/RECORD,,
persistent-4.4.3.dist-info/WHEEL,sha256=EqYtf7kBe5N6WHAm79ETzUPLkyUuvZrFyRt3YQhGXds,109
persistent-4.4.3.dist-info/top_level.txt,sha256=I3n7tB5JKG4dsBBbfoBzNiYFa4qVxfkpY1FOO5szyns,11
persistent/__init__.py,sha256=OVIqHdnT-92GHgXWkHrpYw4cYqAl1yMPzq-K1axhjYQ,2070
persistent/__pycache__/__init__.cpython-36.pyc,,
persistent/__pycache__/_compat.cpython-36.pyc,,
persistent/__pycache__/_ring_build.cpython-36.pyc,,
persistent/__pycache__/dict.cpython-36.pyc,,
persistent/__pycache__/interfaces.cpython-36.pyc,,
persistent/__pycache__/list.cpython-36.pyc,,
persistent/__pycache__/mapping.cpython-36.pyc,,
persistent/__pycache__/persistence.cpython-36.pyc,,
persistent/__pycache__/picklecache.cpython-36.pyc,,
persistent/__pycache__/ring.cpython-36.pyc,,
persistent/__pycache__/timestamp.cpython-36.pyc,,
persistent/__pycache__/wref.cpython-36.pyc,,
persistent/_compat.h,sha256=f7-F-5-xYnSFv8L4AXxldlpjTNMayHFp2kui3pEXdO0,1531
persistent/_compat.py,sha256=K0P14BwahHDT0t7rpRtlFTHVkCatmG5YBm82vEs3zRw,1107
persistent/_ring.abi3.so,sha256=t0NyGiXtnYv4fqoJ6oWeE-l7p94WQ2gksv79xqLdSQQ,27552
persistent/_ring_build.py,sha256=2ui8bMEyYMqpdLWkJ_0oUCfQVQtYWY2xCjvtQyTVbqA,1056
persistent/_timestamp.c,sha256=qi8z1k0qdwimtqhutYyIsWlEhPPbOjXLVcGOEGlR4_A,17071
persistent/_timestamp.cpython-36m-darwin.so,sha256=GSn7G35_9aVY4pSc5xcYNzVqd1WU34UCjS75tzlkE0U,37412
persistent/cPersistence.c,sha256=uhtzUVHHGK9d9n-1bZxgbyd3WMTCzdsMlI3g57Zhtvc,48599
persistent/cPersistence.cpython-36m-darwin.so,sha256=cgaoCsfGKD1QPnJqGLlNNGfFo6xkaOM55BC5bL2qbjA,73856
persistent/cPersistence.h,sha256=sSXwdcCpn9t1WpAJ2Po2RjboAtgVieedjk2rcZwB04Y,5114
persistent/cPickleCache.c,sha256=-fqWdeJdI1q-oVMRoe3YazjUpcNLNXslLDfTBD7wRRE,41506
persistent/cPickleCache.cpython-36m-darwin.so,sha256=qkX6IEZiLSIDUZbzbpZJtP4ZL5HM801g9mk4euwIRJA,52252
persistent/dict.py,sha256=MuOlMTApJ39KBRDfklZrkplp_dPqybRM731esQwoFCs,751
persistent/interfaces.py,sha256=bw-UG1G9tCFyidVkEax3IbWLGfngawWC3H3rUtC4QFE,18119
persistent/list.py,sha256=qZ4UWorMS5OmoZ3VqzUMxUQw7H6Y7RXNaWIkl0QIQjA,2882
persistent/mapping.py,sha256=CXn5EiGWqC95K5-nPbxbxc9WenoYfFIBzHW5fZpZ5iI,3448
persistent/persistence.py,sha256=jyRmyWMmtjnVDWG9mN66WR6IxtxBRkaLQUFQuNuj5NY,21596
persistent/picklecache.py,sha256=KpIX-Fduh3o1ZnFWrhDq-Oi69dmbdOgd6xIm6lP-KuM,14548
persistent/ring.c,sha256=0U8ubpb9xRuj0E0AkatqvO47BnjVGrpQVEITVmFbAbo,1803
persistent/ring.h,sha256=RbpXV2O0vgqFwSERFZAkJgU8J17q3C3s-Y_dWQTrAE0,2639
persistent/ring.py,sha256=3wHmIpYHe8lmUg3n_vIrEyK8TrNVEkunPVQ7cflQi_o,7177
persistent/tests/__init__.py,sha256=UnxmjVrk-eNORsitiM48W0pB6yfsaErOak8RYh_ELt8,10
persistent/tests/__pycache__/__init__.cpython-36.pyc,,
persistent/tests/__pycache__/attrhooks.cpython-36.pyc,,
persistent/tests/__pycache__/cucumbers.cpython-36.pyc,,
persistent/tests/__pycache__/test_docs.cpython-36.pyc,,
persistent/tests/__pycache__/test_list.cpython-36.pyc,,
persistent/tests/__pycache__/test_mapping.cpython-36.pyc,,
persistent/tests/__pycache__/test_persistence.cpython-36.pyc,,
persistent/tests/__pycache__/test_picklecache.cpython-36.pyc,,
persistent/tests/__pycache__/test_ring.cpython-36.pyc,,
persistent/tests/__pycache__/test_timestamp.cpython-36.pyc,,
persistent/tests/__pycache__/test_wref.cpython-36.pyc,,
persistent/tests/__pycache__/utils.cpython-36.pyc,,
persistent/tests/attrhooks.py,sha256=yhEx6IU8LBY7b3XMf3WzXfTB2Cs6-xpnUCsbQdO3tSk,4214
persistent/tests/cucumbers.py,sha256=miha0gTITw4DGJiXO3H8XbUJ0uOBz_RiQPz1CBD8FeY,2790
persistent/tests/test_docs.py,sha256=AAWAnklWFyu_uE_eOtP4hd2CGBzyh39-S4O8sXLPHyc,2000
persistent/tests/test_list.py,sha256=hdC_tCARO4yEYxNkO34tDAJ3OYO4oblk7kG9wwxxn_4,8666
persistent/tests/test_mapping.py,sha256=2tJdLTcWePJFm3GMtpPtNyXIOaQYrYiWBWyAki8u5D4,7116
persistent/tests/test_persistence.py,sha256=JSKKGgrqHt1moEwJUm-plNqObO0AiN-7vY0eDz93xCM,73608
persistent/tests/test_picklecache.py,sha256=KHmm5kY0VKtwB8quzrrWkfNGGpzeJEkb2idzXrE3Lxk,33089
persistent/tests/test_ring.py,sha256=crzufZuvFI8v3-Kd9OT6DtxVynEXyeuJey0Lh-tcRlM,4024
persistent/tests/test_timestamp.py,sha256=e-fKUndAjs9__Sh1I1ow3SMX6sBNt9g91dBDeynvWZw,15625
persistent/tests/test_wref.py,sha256=RU1zL2Npf56DpDQw3-0ckTyEfJXLS5gb0IIGPDwq6B0,11307
persistent/tests/utils.py,sha256=gx8tbQVsqgvRBRTPLUuDVRPfiEG9alwLINBMEj05C9s,1999
persistent/timestamp.py,sha256=ku8zhYFHjFRSx48G-Ufj7DZcekF0BU4c9yckFpE-8nk,6665
persistent/wref.py,sha256=JTWdsb4YNEbyqQl-za-SkiYZcmLPhPByruqA9SWn0rM,4099
@@ -0,0 +1,5 @@
Wheel-Version: 1.0
Generator: bdist_wheel (0.32.2)
Root-Is-Purelib: false
Tag: cp36-cp36m-macosx_10_6_intel