Skip to content

Commit cc89ae3

Browse files
committed
API: only support python 3.5+
Matplotlib 3.0 will not support python2.7
1 parent 79da80c commit cc89ae3

File tree

3 files changed

+7
-43
lines changed

3 files changed

+7
-43
lines changed

.appveyor.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ environment:
1919
# theoretically the CONDA_INSTALL_LOCN could be only two: one for 32bit,
2020
# one for 64bit because we construct envs anyway. But using one for the
2121
# right python version is hopefully making it fast due to package caching.
22-
- PYTHON_VERSION: "2.7"
23-
CONDA_INSTALL_LOCN: "C:\\Miniconda-x64"
24-
TEST_ALL: "no"
2522
- PYTHON_VERSION: "3.5"
2623
CONDA_INSTALL_LOCN: "C:\\Miniconda35-x64"
2724
TEST_ALL: "no"

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ env:
6565

6666
matrix:
6767
include:
68-
- python: 2.7
68+
- python: 3.5
6969
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124.
7070
env:
7171
- CYCLER=cycler==0.10
@@ -78,7 +78,7 @@ matrix:
7878
- PYTEST=pytest==3.1.0
7979
- PYTEST_COV=pytest-cov==2.3.1
8080
- SPHINX=sphinx==1.3
81-
- python: 3.4
81+
- python: 3.5
8282
env: PYTHON_ARGS=-OO
8383
- python: 3.6
8484
env: DELETE_FONT_CACHE=1 PANDAS='pandas<0.21.0' PYTEST_PEP8=pytest-pep8 RUN_PEP8=--pep8
@@ -111,7 +111,9 @@ before_install:
111111
else
112112
brew update
113113
brew tap homebrew/gui
114-
brew install python libpng ffmpeg imagemagick mplayer ccache
114+
brew install python3 libpng ffmpeg imagemagick mplayer ccache
115+
# make 'python' mean 'pyhon3'
116+
ln -s /usr/local/bin/python3 /usr/local/bin/python
115117
# We could install ghostscript and inkscape here to test svg and pdf
116118
# but this makes the test time really long.
117119
# brew install ghostscript inkscape

INSTALL.rst

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -32,43 +32,14 @@ Although not required, we suggest also installing ``IPython`` for
3232
interactive use. To easily install a complete Scientific Python
3333
stack, see :ref:`install_scipy_dists` below.
3434

35-
.. _installing_windows:
36-
37-
Windows
38-
-------
39-
40-
In case Python 2.7 or 3.4 are not installed for all users,
41-
the Microsoft Visual C++ 2008
42-
(`64 bit <https://www.microsoft.com/en-us/download/details.aspx?id=15336>`__
43-
or
44-
`32 bit <https://www.microsoft.com/en-us/download/details.aspx?id=29>`__
45-
for Python 2.7) or Microsoft Visual C++ 2010
46-
(`64 bit <https://www.microsoft.com/en-us/download/details.aspx?id=14632>`__
47-
or
48-
`32 bit <https://www.microsoft.com/en-us/download/details.aspx?id=5555>`__
49-
for Python 3.4) redistributable packages need to be installed.
5035

5136
macOS
5237
-----
5338

54-
If you are using Python 2.7 on a Mac you may need to do::
55-
56-
xcode-select --install
57-
58-
so that *subprocess32*, a dependency, may be compiled.
59-
6039
To use the native OSX backend you will need :ref:`a framework build
6140
<osxframework-faq>` build of Python.
6241

6342

64-
Linux
65-
-----
66-
67-
On extremely old versions of Linux and Python 2.7 you may need to
68-
install the master version of *subprocess32* (`see comments
69-
<https://github.com/google/python-subprocess32/issues/12#issuecomment-304724113>`__).
70-
71-
7243
Test Data
7344
---------
7445

@@ -167,7 +138,7 @@ Dependencies
167138

168139
Matplotlib requires a large number of dependencies:
169140

170-
* `Python <https://www.python.org/downloads/>`_ (>= 2.7 or >= 3.4)
141+
* `Python <https://www.python.org/downloads/>`_ (>= 3.5)
171142
* `NumPy <http://www.numpy.org>`_ (>= |minimum_numpy_version|)
172143
* `setuptools <https://setuptools.readthedocs.io/en/latest/>`__
173144
* `dateutil <https://pypi.python.org/pypi/python-dateutil>`_ (>= 2.1)
@@ -176,13 +147,9 @@ Matplotlib requires a large number of dependencies:
176147
* `pytz <http://pytz.sourceforge.net/>`__
177148
* FreeType (>= 2.3)
178149
* `cycler <http://matplotlib.org/cycler/>`__ (>= 0.10.0)
179-
* `six <https://pypi.python.org/pypi/six>`_
180-
* `backports.functools_lru_cache <https://pypi.python.org/pypi/backports.functools_lru_cache>`_
181-
(for Python 2.7 only)
182-
* `subprocess32 <https://pypi.python.org/pypi/subprocess32/>`_ (for Python
183-
2.7 only, on Linux and macOS only)
184150
* `kiwisolver <https://github.com/nucleic/kiwi>`__ (>= 1.0.0)
185151

152+
186153
Optionally, you can also install a number of packages to enable better user
187154
interface toolkits. See :ref:`what-is-a-backend` for more details on the
188155
optional Matplotlib backends and the capabilities they provide.
@@ -325,8 +292,6 @@ without fiddling with environment variables::
325292
conda install pyqt
326293
# this package is only available in the conda-forge channel
327294
conda install -c conda-forge msinttypes
328-
# for Python 2.7
329-
conda install -c conda-forge backports.functools_lru_cache
330295

331296
# copy the libs which have "wrong" names
332297
set LIBRARY_LIB=%CONDA_DEFAULT_ENV%\Library\lib

0 commit comments

Comments
 (0)