-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
API: only support python 3.5+ #10425
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
.travis.yml
Outdated
@@ -111,7 +111,9 @@ before_install: | |||
else | |||
brew update | |||
brew tap homebrew/gui | |||
brew install python libpng ffmpeg imagemagick mplayer ccache | |||
brew install python3 libpng ffmpeg imagemagick mplayer ccache | |||
# make 'python' mean 'pyhon3' |
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.
python3
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.
It would not be a PR from me with out a misspelling!
cc89ae3
to
2d6af56
Compare
.circleci/config.yml
Outdated
@@ -115,9 +115,9 @@ jobs: | |||
name: "Deploy new docs" | |||
command: ./.circleci/deploy-docs.sh | |||
|
|||
docs-python27: | |||
docs-python3.5: |
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.
Extra dot.
Should we leave this until 2.2 is out? (otherwise PRs to fix stuff in 2.2 won't get run on py27 CI) |
2d6af56
to
acd1929
Compare
The 2.2.x branch will still have the current CI set up. Either make PRs directly to 2.2.x or use the backport bot, either of which will run the CI before we merge. |
There seems to be an issue with py3.5 + np1.7.1 and there is a a sphinx issue in one of the docstrings.... |
Numpy 1.7 doesn't support py3.5, so I guess it needs bumping: https://docs.scipy.org/doc/numpy/release.html#numpy-1-7-2-release-notes |
Looks like 1.10 was the first release to support python 3.5: https://docs.scipy.org/doc/numpy/release.html#numpy-1-10-0-release-notes |
Well, that is exciting! |
ae6e5b2
to
f8cafce
Compare
@QuLogic 's change also exposed that I failed to convince the OSX version to use the right python. |
Looks like the file already exists:
|
This is working everywhere but doc builds. The 3.6 builds need a rebase to get the other fix. The 3.5 build is failing on If you rebase, please squash in those two fixup commits of mine (at least). |
Last commit fixes the NumPy date problem, so we just need a rebase for the other doc problem. |
@@ -126,10 +131,10 @@ install: | |||
ccache -s | |||
git describe | |||
# Upgrade pip and setuptools and wheel to get as clean an install as possible | |||
pip install --upgrade pip setuptools wheel | |||
python -mpip install --upgrade pip setuptools wheel |
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.
Instead of changing all calls to pip
to python -mpip
it would be easier to change all calls to python
to be python3
and all calls to pip
to be pip3
. That would avoid the need for the symlink.
.travis.yml
Outdated
@@ -111,7 +111,12 @@ before_install: | |||
else | |||
brew update | |||
brew tap homebrew/gui |
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.
This line causes an error message (that doesn't stop the build): https://travis-ci.org/matplotlib/matplotlib/jobs/340786248#L1724
The line can simply be omitted.
INSTALL.rst
Outdated
@@ -176,13 +147,9 @@ Matplotlib requires a large number of dependencies: | |||
* `pytz <http://pytz.sourceforge.net/>`__ | |||
* FreeType (>= 2.3) | |||
* `cycler <http://matplotlib.org/cycler/>`__ (>= 0.10.0) | |||
* `six <https://pypi.python.org/pypi/six>`_ |
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.
Shouldn't this stay until six is completely removed from the code base
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.
fair, I was being optimistic.
10503e6
to
ff7ac98
Compare
I've just rebased and force pushed to hopefully fix the documentation errors. |
Matplotlib 3.0 will not support python2.7
This change is based on the work that IPython did for their transition to Python 3-only [1]. [1] https://www.youtube.com/watch?v=2DkfPzWWC2Q
ff7ac98
to
08b5466
Compare
squashed the commits as @QuLogic asked, put six back as a dependency and force-pushed. |
@@ -99,6 +99,8 @@ | |||
to MATLAB®, a registered trademark of The MathWorks, Inc. | |||
|
|||
""" | |||
# NOTE: This file must remain Python 2 compatible for the forseeable future, | |||
# to ensure that we error out properly for existing editable installs. |
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.
In that case it may be worth having a test entry that just tries to python2 -mcompileall matplotlib/__init__.py
(or similar) to check that indeed the file is Py2-compatible (otherwise I'm sure it'll quickly break).
@@ -3,6 +3,9 @@ | |||
setup.cfg.template for more information. | |||
""" | |||
|
|||
# NOTE: This file must remain Python 2 compatible for the forseeable future, | |||
# to ensure that we error out properly for people with outdated setuptools | |||
# and/or pip. |
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.
I would just move the version check here and allow setupext to use Py3.
Since me and @jkseppan have approved, I'm going to merge so this doesn't hold up other |
Matplotlib 3.0 will not support python2.7