-
Notifications
You must be signed in to change notification settings - Fork 258
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
MAINT: Require Python >= 3.5, purge Python 2 compatibility #787
Conversation
7c437af
to
930ee6c
Compare
Codecov Report
@@ Coverage Diff @@
## master #787 +/- ##
==========================================
- Coverage 90.03% 90.03% -0.01%
==========================================
Files 94 94
Lines 12018 11886 -132
Branches 2136 2119 -17
==========================================
- Hits 10821 10702 -119
+ Misses 851 840 -11
+ Partials 346 344 -2
Continue to review full report at Codecov.
|
647c329
to
676be6b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to update docs one more time.
A review would be greatly appreciated.
6a4f727
to
814727a
Compare
80704a0
to
d6442c1
Compare
Taking the plunge. |
Summary of changes:
assert_warns
does not work properly with multiple warnings being emitted until then; we've been somehow missing this edge case by checking minimum versions on Py2 only)nibabel.externals.six
altogether, along with all imports fromsix
nibabel.py3k
tonumpy.compat.py3k
. They don't seem to be dropping it when dropping Python 2 support so it seems safe to rely on it.grep -E -rIi 'py(thon)? ?[23]' nibabel | grep '\.py:'
were removed.pkg_info
will be handled in MAINT: Manage versioning with versioneer #786.six
py3k
from __future__
PY2
/PY3
tags indicating compatibility hacks