Skip to content

Commit 5e8ff76

Browse files
committed
DEPS: set min versions
closes #15206, numpy >= 1.9 closes #15543, matplotlib >= 1.4.3 closes #15214, bottleneck >= 1.0.0 scipy >= 0.14.0
1 parent 7b9a57f commit 5e8ff76

24 files changed

+88
-180
lines changed

ci/requirements-2.7_COMPAT.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
python=2.7*
2-
numpy=1.7.1
2+
numpy=1.9.1
3+
libgfortran=1
34
cython=0.23
45
dateutil=1.5
56
pytz=2013b

ci/requirements-2.7_COMPAT.run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
numpy=1.7.1
1+
numpy=1.9.1
22
dateutil=1.5
33
pytz=2013b
4-
scipy=0.11.0
4+
scipy=0.14.0
55
xlwt=0.7.5
66
xlrd=0.9.2
7-
bottleneck=0.8.0
7+
bottleneck=1.0.0
88
numexpr=2.2.2
99
pytables=3.0.0
1010
html5lib=1.0b2

ci/requirements-2.7_LOCALE.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
python=2.7*
22
python-dateutil
33
pytz=2013b
4-
numpy=1.8.2
4+
numpy=1.9.1
5+
libgfortran=1
56
cython=0.23

ci/requirements-2.7_LOCALE.run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
python-dateutil
22
pytz=2013b
3-
numpy=1.8.2
3+
numpy=1.9.1
44
xlwt=0.7.5
55
openpyxl=1.6.2
66
xlsxwriter=0.4.6
77
xlrd=0.9.2
8-
bottleneck=0.8.0
9-
matplotlib=1.3.1
8+
bottleneck=1.0.0
9+
matplotlib=1.4.3
1010
sqlalchemy=0.8.1
1111
html5lib=1.0b2
1212
lxml=3.2.1

ci/requirements-2.7_SLOW.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
python=2.7*
22
python-dateutil
33
pytz
4-
numpy=1.8.2
4+
numpy=1.9.1
5+
libgfortran=1
56
cython

ci/requirements-2.7_SLOW.run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
python-dateutil
22
pytz
3-
numpy=1.8.2
4-
matplotlib=1.3.1
3+
numpy=1.9.1
4+
matplotlib=1.4.3
55
scipy
66
patsy
77
xlwt

doc/source/install.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Dependencies
203203
------------
204204

205205
* `setuptools <https://setuptools.readthedocs.io/en/latest/>`__
206-
* `NumPy <http://www.numpy.org>`__: 1.7.1 or higher
206+
* `NumPy <http://www.numpy.org>`__: 1.9.0 or higher
207207
* `python-dateutil <http://labix.org/python-dateutil>`__: 1.5 or higher
208208
* `pytz <http://pytz.sourceforge.net/>`__: Needed for time zone support
209209

@@ -217,7 +217,7 @@ Recommended Dependencies
217217
If installed, must be Version 2.4.6 or higher.
218218

219219
* `bottleneck <http://berkeleyanalytics.com/bottleneck>`__: for accelerating certain types of ``nan``
220-
evaluations. ``bottleneck`` uses specialized cython routines to achieve large speedups.
220+
evaluations. ``bottleneck`` uses specialized cython routines to achieve large speedups, Version 1.0.0 or higher.
221221

222222
.. note::
223223

@@ -232,7 +232,7 @@ Optional Dependencies
232232

233233
* `Cython <http://www.cython.org>`__: Only necessary to build development
234234
version. Version 0.23 or higher.
235-
* `SciPy <http://www.scipy.org>`__: miscellaneous statistical functions
235+
* `SciPy <http://www.scipy.org>`__: miscellaneous statistical functions, Version 0.14.0 or higher
236236
* `xarray <http://xarray.pydata.org>`__: pandas like handling for > 2 dims, needed for converting Panels to xarray objects. Version 0.7.0 or higher is recommended.
237237
* `PyTables <http://www.pytables.org>`__: necessary for HDF5-based storage. Version 3.0.0 or higher required, Version 3.2.1 or higher highly recommended.
238238
* `Feather Format <https://github.com/wesm/feather>`__: necessary for feather-based storage, version 0.3.1 or higher.
@@ -242,7 +242,7 @@ Optional Dependencies
242242
* `pymysql <https://github.com/PyMySQL/PyMySQL>`__: for MySQL.
243243
* `SQLite <https://docs.python.org/3.5/library/sqlite3.html>`__: for SQLite, this is included in Python's standard library by default.
244244

245-
* `matplotlib <http://matplotlib.org/>`__: for plotting
245+
* `matplotlib <http://matplotlib.org/>`__: for plotting, Version 1.4.3 or higher.
246246
* For Excel I/O:
247247

248248
* `xlrd/xlwt <http://www.python-excel.org/>`__: Excel reading (xlrd) and writing (xlwt)

doc/source/whatsnew/v0.21.0.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,26 @@ Other Enhancements
4646
Backwards incompatible API changes
4747
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4848

49+
50+
.. _whatsnew_0210.api_breaking.deps:
51+
52+
Dependencies have increased minimum versions
53+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54+
55+
We have updated our minimum supported versions of dependencies (:issue:`15206`, :issue:`15543`, :issue:`15214`). We now require:
56+
57+
+--------------+-----------------+
58+
| Package | Minimum Version |
59+
+======================+=========+
60+
| Numpy | 1.9.1 |
61+
+--------------+-----------------+
62+
| Matplotlib | 1.4.3 |
63+
+--------------+-----------------+
64+
| Scipy | 0.14.0 |
65+
+--------------+-----------------+
66+
| Bottleneck | 1.0.0 |
67+
+--------------+-----------------+
68+
4969
.. _whatsnew_0210.api_breaking.pandas_eval:
5070

5171
Improved error handling during item assignment in pd.eval

pandas/_libs/sparse.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ from distutils.version import LooseVersion
1212

1313
# numpy versioning
1414
_np_version = np.version.short_version
15-
_np_version_under1p8 = LooseVersion(_np_version) < '1.8'
16-
_np_version_under1p9 = LooseVersion(_np_version) < '1.9'
1715
_np_version_under1p10 = LooseVersion(_np_version) < '1.10'
1816
_np_version_under1p11 = LooseVersion(_np_version) < '1.11'
1917

pandas/compat/numpy/__init__.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99
# numpy versioning
1010
_np_version = np.__version__
1111
_nlv = LooseVersion(_np_version)
12-
_np_version_under1p8 = _nlv < '1.8'
13-
_np_version_under1p9 = _nlv < '1.9'
1412
_np_version_under1p10 = _nlv < '1.10'
1513
_np_version_under1p11 = _nlv < '1.11'
1614
_np_version_under1p12 = _nlv < '1.12'
1715
_np_version_under1p13 = _nlv < '1.13'
1816
_np_version_under1p14 = _nlv < '1.14'
17+
_np_version_under1p15 = _nlv < '1.15'
1918

20-
if _nlv < '1.7.0':
19+
if _nlv < '1.9':
2120
raise ImportError('this version of pandas is incompatible with '
22-
'numpy < 1.7.0\n'
21+
'numpy < 1.9.0\n'
2322
'your numpy version is {0}.\n'
24-
'Please upgrade numpy to >= 1.7.0 to use '
23+
'Please upgrade numpy to >= 1.9.0 to use '
2524
'this pandas version'.format(_np_version))
2625

2726

@@ -70,11 +69,10 @@ def np_array_datetime64_compat(arr, *args, **kwargs):
7069

7170

7271
__all__ = ['np',
73-
'_np_version_under1p8',
74-
'_np_version_under1p9',
7572
'_np_version_under1p10',
7673
'_np_version_under1p11',
7774
'_np_version_under1p12',
7875
'_np_version_under1p13',
79-
'_np_version_under1p14'
76+
'_np_version_under1p14',
77+
'_np_version_under1p15'
8078
]

0 commit comments

Comments
 (0)