Skip to content

Commit 6cf1dd2

Browse files
committed
revert pytz
1 parent bcaa058 commit 6cf1dd2

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
@@ -2922,7 +2922,7 @@ Writing Excel Files to Memory
29222922
+++++++++++++++++++++++++++++
29232923

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

29272927
.. code-block:: python
29282928
@@ -2978,9 +2978,7 @@ files if `Xlsxwriter`_ is not available.
29782978
To specify which writer you want to use, you can pass an engine keyword
29792979
argument to ``to_excel`` and to ``ExcelWriter``. The built-in engines are:
29802980

2981-
- ``openpyxl``: This includes stable support for Openpyxl from 1.6.1. However,
2982-
it is advised to use version 2.2 and higher, especially when working with
2983-
styles.
2981+
- ``openpyxl``: version 2.4 or higher is required
29842982
- ``xlsxwriter``
29852983
- ``xlwt``
29862984

doc/source/whatsnew/v0.22.0.txt

-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ If installed, we now require:
6868
+=================+=================+==========+
6969
| python-dateutil | 2.5.0 | X |
7070
+-----------------+-----------------+----------+
71-
| pytz | 2016.1 | X |
72-
+-----------------+-----------------+----------+
7371
| openpyxl | 2.4.0 | |
7472
+-----------------+-----------------+----------+
7573

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)