Skip to content

Commit 25594ac

Browse files
committed
revert pytz
1 parent e2ef5ad commit 25594ac

12 files changed

+11
-20
lines changed

ci/environment-dev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ dependencies:
99
- pytest>=3.1
1010
- python-dateutil>=2.5.0
1111
- python=3
12-
- pytz>=2016.1
12+
- pytz
1313
- setuptools
1414
- sphinx

ci/requirements-2.7.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
python=2.7*
22
python-dateutil=2.5.0
3-
pytz=2016.1
3+
pytz=2013b
44
nomkl
55
numpy
66
cython=0.23

ci/requirements-2.7.run

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
python-dateutil=2.5.0
2-
pytz=2016.1
2+
pytz=2013b
33
numpy
44
xlwt=0.7.5
55
numexpr

ci/requirements-2.7_COMPAT.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ python=2.7*
22
numpy=1.9.2
33
cython=0.23
44
python-dateutil=2.5.0
5-
pytz=2016.1
5+
pytz=2013b

ci/requirements-2.7_COMPAT.run

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
numpy=1.9.2
22
python-dateutil=2.5.0
3-
pytz=2016.1
3+
pytz=2013b
44
scipy=0.14.0
55
xlwt=0.7.5
66
xlrd=0.9.2

ci/requirements-2.7_LOCALE.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
python=2.7*
22
python-dateutil
3-
pytz=2016.1
3+
pytz=2013b
44
numpy=1.9.2
55
cython=0.23

ci/requirements_dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ NumPy
55
moto
66
pytest>=3.1
77
python-dateutil>=2.5.0
8-
pytz>=2016.1
8+
pytz
99
setuptools
1010
sphinx

conda.recipe/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ requirements:
2121
- python
2222
- numpy x.x
2323
- python-dateutil >=2.5.0
24-
- pytz >=2016.1
24+
- pytz
2525

2626
test:
2727
imports:

doc/source/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Dependencies
201201
* `setuptools <https://setuptools.readthedocs.io/en/latest/>`__
202202
* `NumPy <http://www.numpy.org>`__: 1.9.0 or higher
203203
* `python-dateutil <//https://dateutil.readthedocs.io/en/stable/>`__: 2.5 or higher
204-
* `pytz <http://pytz.sourceforge.net/>`__: 2016.1 or higher.
204+
* `pytz <http://pytz.sourceforge.net/>`__
205205

206206
.. _install.recommended_dependencies:
207207

doc/source/io.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -2935,7 +2935,7 @@ Writing Excel Files to Memory
29352935
+++++++++++++++++++++++++++++
29362936

29372937
Pandas supports writing Excel files to buffer-like objects such as ``StringIO`` or
2938-
``BytesIO`` using :class:`~pandas.io.excel.ExcelWriter`. Pandas also supports Openpyxl >= 2.2.
2938+
``BytesIO`` using :class:`~pandas.io.excel.ExcelWriter`.
29392939

29402940
.. code-block:: python
29412941
@@ -2991,9 +2991,7 @@ files if `Xlsxwriter`_ is not available.
29912991
To specify which writer you want to use, you can pass an engine keyword
29922992
argument to ``to_excel`` and to ``ExcelWriter``. The built-in engines are:
29932993

2994-
- ``openpyxl``: This includes stable support for Openpyxl from 1.6.1. However,
2995-
it is advised to use version 2.2 and higher, especially when working with
2996-
styles.
2994+
- ``openpyxl``: version 2.4 or higher is required
29972995
- ``xlsxwriter``
29982996
- ``xlwt``
29992997

doc/source/whatsnew/v0.22.0.txt

-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ If installed, we now require:
100100
+=================+=================+==========+
101101
| python-dateutil | 2.5.0 | X |
102102
+-----------------+-----------------+----------+
103-
| pytz | 2016.1 | X |
104-
+-----------------+-----------------+----------+
105103
| openpyxl | 2.4.0 | |
106104
+-----------------+-----------------+----------+
107105

pandas/compat/__init__.py

-5
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,6 @@ def raise_with_traceback(exc, traceback=Ellipsis):
404404
from dateutil import parser as _date_parser
405405
parse_date = _date_parser.parse
406406

407-
# pytz minimum version
408-
import pytz
409-
410-
if LooseVersion(pytz.__version__) < '2016.1':
411-
raise ImportError('pytz 2016.1 is the minimum required version')
412407

413408
# https://github.com/pandas-dev/pandas/pull/9123
414409
def is_platform_little_endian():

0 commit comments

Comments
 (0)