[Checkins] [zopefoundation/z3c.autoinclude] 496854: Add support for Python 3.4/3.5 and PyPy. (#3)

GitHub noreply at github.com
Tue Aug 23 15:43:46 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/z3c.autoinclude
  Commit: 49685419437a7bc31722ad403eaafad5f82bac99
      https://github.com/zopefoundation/z3c.autoinclude/commit/49685419437a7bc31722ad403eaafad5f82bac99
  Author: Jason Madden <jason+github at nextthought.com>
  Date:   2016-08-23 (Tue, 23 Aug 2016)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M buildout.cfg
    M setup.py
    M src/z3c/autoinclude/__init__.py
    M src/z3c/autoinclude/api.py
    M src/z3c/autoinclude/dependency.py
    M src/z3c/autoinclude/dependency.txt
    M src/z3c/autoinclude/plugin.txt
    M src/z3c/autoinclude/tests/tests.py
    M src/z3c/autoinclude/utils.py
    M src/z3c/autoinclude/utils.txt
    M tox.ini

  Log Message:
  -----------
  Add support for Python 3.4/3.5 and PyPy. (#3)

* Add support for Python 3.4/3.5 and PyPy.

This was almost entirely test changes.

There was one syntax change, one import change, and one
generator-to-list change.

There is one test in utils.txt that was broken on both Python 2 and
Python 3; I kluged up a "fix" but the functionality seems broken in all
versions currently.

* Readability: skip filter for a comprehension, and pprint a dict in a test case.

* Return the root distribution (if such a thing exists) for a NS package
in distributionForPackage/DottedName.

Fixes #4.

* Naming and determinism for distributionFromDottedName.

- Use == 0 instead of is 0; worked before because of integer caching,
  but that's not guaranteed.
- Sort multiple matches to be independent of the order they're returned.

* Update comment since we fixed the test failure. [skip ci]




More information about the checkins mailing list