[Checkins] [zopefoundation/persistent] 328253: Add the ability to force use of C extensions.

Jason Madden noreply at github.com
Tue Mar 3 15:37:06 CET 2020


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/persistent
  Commit: 328253dfdde2fea2aecfddfc5fec290d8e4c9ab0
      https://github.com/zopefoundation/persistent/commit/328253dfdde2fea2aecfddfc5fec290d8e4c9ab0
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M appveyor.yml
    M persistent/__init__.py
    M persistent/_compat.py
    M persistent/cPersistence.c
    M persistent/persistence.py
    M persistent/picklecache.py
    M persistent/tests/test_persistence.py
    M persistent/tests/test_picklecache.py
    M persistent/tests/test_timestamp.py
    M persistent/tests/utils.py
    M persistent/timestamp.py
    M setup.py
    M tox.ini

  Log Message:
  -----------
  Add the ability to force use of C extensions.

With PURE_PYTHON=0, like in zope.interface.

Also always require all three extensions. This solves mysterious issues you can get if you wind up mixing and matching (#124).

Fixes #131

Add travis and tox tests for this.


  Commit: fd5dd0009f894ddee4b38ad070aa8236e4581066
      https://github.com/zopefoundation/persistent/commit/fd5dd0009f894ddee4b38ad070aa8236e4581066
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-03-03 (Tue, 03 Mar 2020)

  Changed paths:
    M CHANGES.rst
    M persistent/__init__.py
    M persistent/_compat.py
    M persistent/interfaces.py
    M persistent/persistence.py
    M persistent/picklecache.py
    A persistent/tests/test__compat.py
    M persistent/tests/test_persistence.py
    M persistent/tests/test_picklecache.py
    M persistent/tests/test_timestamp.py
    M persistent/timestamp.py

  Log Message:
  -----------
  Incorporate review feedback.

- Let an empty value of PURE_PYTHON mean the same thing as it did before (no preference)
- Add tests for the functions that handle PURE_PYTHON
- Clean up imports in various places
- Add more tests for C TimeStamp hash code.
- Add some comments.


  Commit: 49c9ffb1c1a3e1f607c3e249ac0c57e7a9e3a583
      https://github.com/zopefoundation/persistent/commit/49c9ffb1c1a3e1f607c3e249ac0c57e7a9e3a583
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-03-03 (Tue, 03 Mar 2020)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M appveyor.yml
    M persistent/__init__.py
    M persistent/_compat.py
    M persistent/cPersistence.c
    M persistent/interfaces.py
    M persistent/persistence.py
    M persistent/picklecache.py
    A persistent/tests/test__compat.py
    M persistent/tests/test_persistence.py
    M persistent/tests/test_picklecache.py
    M persistent/tests/test_timestamp.py
    M persistent/tests/utils.py
    M persistent/timestamp.py
    M setup.py
    M tox.ini

  Log Message:
  -----------
  Merge pull request #132 from zopefoundation/issue131

Add the ability to force use of C extensions.


Compare: https://github.com/zopefoundation/persistent/compare/29d207e7849b...49c9ffb1c1a3


More information about the checkins mailing list