Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3.7 support #53

Merged
merged 3 commits into from
Aug 9, 2018
Merged

Add Python 3.7 support #53

merged 3 commits into from
Aug 9, 2018

Conversation

mgedmin
Copy link
Member

@mgedmin mgedmin commented Aug 8, 2018

(Should I also bump the upcoming version number to 4.3.0?)

@mgedmin mgedmin requested a review from tseaver August 8, 2018 15:02
@@ -6,6 +6,9 @@ matrix:
- python: 3.4
- python: 3.5
- python: 3.6
- python: 3.7
dist: xenial

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why specify dist and sudo for 3.7 when we aren't doing that for other Python versions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because Python 3.7 does not work without those settings on Travis CI: travis-ci/travis-ci#9815

(Something about new OpenSSL version requirement that means 3.7 cannot be built on Ubuntu trusty, which is the default Travis CI image AFAIU. No clue why it fails without the sudo bit, but that issue indicates that it's also required.)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch. OK, I don't think we need to be the ones to debug ubuntu or travis issues, so... guess we can live with it. :-(

@mgedmin
Copy link
Member Author

mgedmin commented Aug 8, 2018

There's one test failure in proxy.rst:

**********************************************************************
File "proxy.rst", line 348, in default
Failed example:
    ABCMeta._abc_invalidation_counter += 1
Exception raised:
    Traceback (most recent call last):
      File "/opt/python/3.7.0/lib/python3.7/doctest.py", line 1329, in __run
        compileflags, 1), test.globs)
      File "<doctest default[0]>", line 1, in <module>
        ABCMeta._abc_invalidation_counter += 1
    AttributeError: type object 'ABCMeta' has no attribute '_abc_invalidation_counter'
*********************************************************************

I can reproduce it locally with tox -e py37.

ABCMeta._abc_invalidation_counter is no more.

The test passes if we don't touch it, so we're all good?  There are no
more hidden caches we need to worry about?  Anybody want to dig into
this deeper?
ABCMeta._abc_invalidation_counter is still present on Python 3.7 when
the pure-python _py_abc implementation is used (as opposed to the
builtin _abc).
@mgedmin mgedmin merged commit bf3a316 into master Aug 9, 2018
@mgedmin mgedmin deleted the py37 branch August 9, 2018 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants