summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Simplify _compat.py now that we only run on newer Pythonsremove_uJason Madden2017-09-0711-124/+77
| | | | | | | | | | | | | | | | | | - We have u'literals' so we don't need a _u() function. For the record the Emacs replacement regex was `_u(\(['"]\)\([^)]*\)\1) -> u\1\2\1`. Amazingly, I typed that right on the first try. A few things were only used in one (test) file or function, so it was better to keep the use, if any, local and out of the "public" api: - We can use io.StringIO everywhere and it's fast. It was only imported in one file anyway. - We can just import pickle. It was only imported in one file anyway. - TEXT was only used in one test function, `type(u'')` is just as clear (especially since the usual name is `text_type`). - reload was only used in one test function, so move the definition there.
* Merge pull request #30 from zopefoundation/coveralls_and_doctestsJason Madden2017-09-0712-193/+219
|\ | | | | Switch to modern 'coverage' environment and run doctests on all versions; fix Travis builds
| * simplify 'int' prints in api/checker.rstJason Madden2017-09-071-125/+125
| |
| * Fix issue with __length_hint__ in pure Python 3. This is picked out of #29Jason Madden2017-09-071-1/+6
| |
| * api/permission.rst feedback.Jason Madden2017-09-071-4/+5
| |
| * api/decorator.rst compatibility with PyPy2Jason Madden2017-09-071-3/+3
| | | | | | | | It wants to print `<__builtin__.Foo ...>` instead of just `<Foo ...>`.
| * Switch to modern 'coverage' environment and run doctests on all versionsJason Madden2017-09-0710-64/+84
|/ | | | | | | | | | | | | | Based on #29. Drop Python 3.3. Enable coveralls on Travis CI, and also fix using interpreters that aren't there in the new default 'trusty' image. Coverage is not at 100% and in fact appears to have dropped (I show 92% in one run, vs the previous reported 97%), but that's because `coverage` and coveralls report files that aren't even imported (we have a lot of those in the 'tests' package)...nosetests didn't.
* Merge pull request #28 from zopefoundation/issue27Jason Madden2017-08-317-42/+235
|\ | | | | Fix proxying of providedBy on Python 3 and fix __length_hint__ everywhere
| * Attempt to fix appveyor failing with AttributeError: '_NamespacePath' ↵issue27Jason Madden2017-08-301-4/+6
| | | | | | | | object has no attribute 'sort' on 3.5/3.6
| * install setuptools by itself on travisJason Madden2017-08-301-1/+2
| | | | | | | | The upgrade step is breaking on Python 3.6. See https://travis-ci.org/zopefoundation/zope.security/jobs/270003178
| * Fix proxying of providedBy on Python 3 and fix __length_hint__Jason Madden2017-08-305-37/+227
|/ | | | | | | | | | | | | | | | | Fixes #27. Add special cases to defaultCheckers for the two types of objects that can be returned from zope.interface.providedBy. On Python 2, these were never proxied, but on Python 3 they were. Now it's consistent (they're never proxied). (Using an _iteratorChecker for them would be a breaking change because the results of iterating them would be security proxied interface objects that don't compare equally.) Also fix `__length_hint__` while we're at it. Previously it was ignored because it is looked up on the type of the object, and proxy didn't implement that. So implement it, and add it to the list of names allowed for iterators.
* svbTres Seaver2017-05-172-1/+6
|
* Prep 4.1.1 release.4.1.1Tres Seaver2017-05-172-3/+3
|
* Merge pull request #24 from zopefoundation/fix-ordered-dict-checkerJason Madden2017-05-173-30/+64
|\ | | | | OrderedDict, BTree and dict all iterate the same way.
| * OrderedDict, BTree and dict all iterate the same way.fix-ordered-dict-checkerJason Madden2017-05-173-30/+64
|/ | | | | | | | | | | Fixes #23. Also a further fix for #20 (you couldn't iterate a BTree all by itself). Refactor the test case for BTree to be a shared implementation and confirm that it works as expected for dict, using the actual dict checker. Then apply it to OrderedDict and BTree and fix the resulting failures by refactoring the fixup in checker.py to a shared implementation and applying it.
* Merge pull request #22 from zopefoundation/issue20-extensionJason Madden2017-05-023-3/+10
|\ | | | | Be specific that BTrees.keys and .values also are fixed
| * Be specific that BTrees.keys and .values also are fixed in the same way that ↵issue20-extensionJason Madden2017-04-263-3/+10
|/ | | | .items was. See #20 and #21.
* svbTres Seaver2017-04-242-1/+6
|
* Prep 4.1.0 release.4.1.0Tres Seaver2017-04-242-8/+5
|
* Merge pull request #21 from zopefoundation/issue20Jason Madden2017-04-247-50/+115
|\ | | | | Fix iteration of BTrees.items() in pure-python; and 3.6 support
| * Another crack at fixing the Python 3 namespace issues on appveyorissue20Jason Madden2017-04-241-1/+2
| |
| * Fix iteration of BTrees.items() in pure-python; and 3.6 supportJason Madden2017-04-247-50/+114
|/ | | | | | | | | | | | | | | Also fix ``list(proxy_btree.items())`` (or a list comprehension of the same) in Python 3, which wants the ``__len__`` for a hint. This is a central place to make sure these all behave consistently. Fixes #20 Also drop pypy3 As a 3.2 implementation, it's not supported by pip anymore. There is a much more recent version, 3.5-beta, but it's not on Travis yet. The 3.3-alpha which is on Travis is a dead end.
* Merge pull request #18 from zopefoundation/fix-win64-maybeMarius Gedminas2016-06-062-2/+30
|\ | | | | Fix tests on 64-bit Windows
| * Appveyor: enable pure-Python buildsfix-win64-maybeMarius Gedminas2016-06-061-0/+2
| |
| * Fix test failures on 64-bit WindowsMarius Gedminas2016-06-061-2/+4
| | | | | | | | | | | | Hopefully. Appveyor should tell me if I've succeeded. Fixes #17.
| * Enable Appveyor CIMarius Gedminas2016-06-061-0/+24
|/
* Remove already done todosMichael Howitz2016-05-101-10/+0
|
* update bootstrap.pyAdam Groszer2016-04-201-15/+36
|
* Merge pull request #16 from ↵Tres Seaver2016-04-152-1/+6
|\ | | | | | | | | zopefoundation/avoid-poisoning-wheel-cache-python-pure Don't use/poison global wheel cache when building w/ PURE_PYTHON.
| * Don't use/poison global wheel cache when building w/ PURE_PYTHON.avoid-poisoning-wheel-cache-python-pureTres Seaver2016-04-142-1/+6
|/
* Merge pull request #15 from zopefoundation/drop-py26-py32-supportTres Seaver2016-03-234-11/+9
|\ | | | | Drop support for Python 2.6 and 3.2.
| * Bump version in CHANGES.rst to match setup.py.drop-py26-py32-supportTres Seaver2016-03-231-1/+1
| |
| * Drop support for Python 2.6 and 3.2.Tres Seaver2016-03-234-10/+8
|/
* Merge pull request #14 from felixonmars/masterMarius Gedminas2015-11-075-3/+8
|\ | | | | Note explicit support for Python 3.5
| * Note explicit support for Python 3.5Felix Yan2015-11-085-3/+8
|/
* svbTres Seaver2015-06-022-1/+6
|
* Prep 4.0.3 release.4.0.3Tres Seaver2015-06-022-2/+2
|
* Merge branch 'NextThought-pypy-support'Tres Seaver2015-06-023-108/+118
|\
| * Garden changelog.Tres Seaver2015-06-021-102/+103
| |
| * Changelog.Jason Madden2015-06-021-1/+2
| |
| * Merge branch 'master' of https://github.com/zopefoundation/zope.security ↵Jason Madden2015-06-025-11/+23
| |\ | |/ |/| | | into pypy-support
* | Merge pull request #12 from NextThought/pypy-supportTres Seaver2015-06-021-0/+16
|\ \ | | | | | | Skip the failing class-hashing tests under PyPy 2.5.0. Fixes #11.
* | | svbTres Seaver2015-06-022-1/+6
| | |
* | | Prep 4.0.2 release.4.0.2Tres Seaver2015-06-022-2/+2
| | |
* | | Switch to using 'tox' on Travis.Tres Seaver2015-06-011-7/+14
| | | | | | | | | | | | | | | Add tests for 'py27-pure', 'py33-pure', 'py34', 'coverage', and 'docs' builds.
* | | Fix 'py27-pure'/'py33-pure' tox environments.Tres Seaver2015-06-012-2/+2
| | |
* | | Merge pull request #11 from NextThought/pypy-supportTres Seaver2015-06-013-15/+60
|\ \ \ | | | | | | | | Compatibility with zope.proxy 4.1.5 under PyPy.
| | | * Make iteration over security-proxied items work under Python3 using the ↵Jason Madden2015-06-022-7/+15
| | |/ | | | | | | | | | pure-python implementation. Fixes zopefoundation/zope.component#16.
| | * Skip the failing class-hashing tests under PyPy 2.5.0. Fixes #11.Jason Madden2015-06-021-0/+16
| |/
| * Restore dict access of __builtins__ for non-PyPy. Interesting that it ↵Jason Madden2015-05-311-1/+4
| | | | | | | | doesn't fail interactively though.