-
-
Notifications
You must be signed in to change notification settings - Fork 944
Add support for Python 3.7 #793
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
Conversation
3abca4b
to
b829669
Compare
Codecov Report
@@ Coverage Diff @@
## master #793 +/- ##
==========================================
- Coverage 94.71% 94.67% -0.04%
==========================================
Files 59 59
Lines 9371 9378 +7
==========================================
+ Hits 8876 8879 +3
- Misses 495 499 +4
Continue to review full report at Codecov.
|
Turns out that despite tests running against 3.7-dev (and nightly, which is actually just 3.7.0a4+), GitPython is not compatible with Python 3.7. The reason is PEP 479 which was released as part of Python 3.7. |
@michael-k Thanks for your efforts! Does that mean this PR should be closed as per your last comment? Or is it something that can be fixed, without breaking backward compatibility? Thank you. |
See PEP 479[1] which is part of Python 3.7[2]. [1]: https://www.python.org/dev/peps/pep-0479/ [2]: https://docs.python.org/3/whatsnew/3.7.html#changes-in-python-behavior
Running "nightly" on trusty (the current default on travis) is not nightly any more, but 3.7.0a4+. See https://docs.travis-ci.com/user/languages/python/#development-releases-support
@Byron Commit d6d89ad, the second one of the two included in this PR, should fix the mentioned problem in a backwards compatible way. GitPython uses Most projects that run their test suite against Python 3.7-dev (aka 3.7.0a4) on travis are also compatible with Python 3.7. There are a few examples and this project is one of them. This is what my comment was about. See https://travis-ci.com/michael-k/GitPython/builds/84335704 which ran the test suite against Python 3.7 and https://travis-ci.com/michael-k/GitPython/builds/84338644 which did the same thing, but without using However I missed that nightly also needs an update. I've fixed that and rebased. |
@michael-k but the CI job on the latest commit said it failed for two pythons. Did you see that?
I'm not quite sure what's up with that. |
@AnneTheAgile yeah, but is this related to this PR? They are also failing on master and the log looks similar enough to me. (I didn't compare the logs in detail.) It looks like not a single test run of master on AppVeyor was successful. |
There we go! Thanks a lot, @michael-k , now that Travis is back I am happy to see GitPython became a little more compatible to the new ways of python 3.7! |
No description provided.