Skip to content

Commit

Permalink
revert pytz
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Dec 3, 2017
1 parent e2ef5ad commit 25594ac
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 20 deletions.
2 changes: 1 addition & 1 deletion ci/environment-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ dependencies:
- pytest>=3.1
- python-dateutil>=2.5.0
- python=3
- pytz>=2016.1
- pytz
- setuptools
- sphinx
2 changes: 1 addition & 1 deletion ci/requirements-2.7.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
python=2.7*
python-dateutil=2.5.0
pytz=2016.1
pytz=2013b
nomkl
numpy
cython=0.23
2 changes: 1 addition & 1 deletion ci/requirements-2.7.run
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python-dateutil=2.5.0
pytz=2016.1
pytz=2013b
numpy
xlwt=0.7.5
numexpr
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-2.7_COMPAT.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ python=2.7*
numpy=1.9.2
cython=0.23
python-dateutil=2.5.0
pytz=2016.1
pytz=2013b
2 changes: 1 addition & 1 deletion ci/requirements-2.7_COMPAT.run
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
numpy=1.9.2
python-dateutil=2.5.0
pytz=2016.1
pytz=2013b
scipy=0.14.0
xlwt=0.7.5
xlrd=0.9.2
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-2.7_LOCALE.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python=2.7*
python-dateutil
pytz=2016.1
pytz=2013b
numpy=1.9.2
cython=0.23
2 changes: 1 addition & 1 deletion ci/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ NumPy
moto
pytest>=3.1
python-dateutil>=2.5.0
pytz>=2016.1
pytz
setuptools
sphinx
2 changes: 1 addition & 1 deletion conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ requirements:
- python
- numpy x.x
- python-dateutil >=2.5.0
- pytz >=2016.1
- pytz

test:
imports:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Dependencies
* `setuptools <https://setuptools.readthedocs.io/en/latest/>`__
* `NumPy <http://www.numpy.org>`__: 1.9.0 or higher
* `python-dateutil <//https://dateutil.readthedocs.io/en/stable/>`__: 2.5 or higher
* `pytz <http://pytz.sourceforge.net/>`__: 2016.1 or higher.
* `pytz <http://pytz.sourceforge.net/>`__

.. _install.recommended_dependencies:

Expand Down
6 changes: 2 additions & 4 deletions doc/source/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2935,7 +2935,7 @@ Writing Excel Files to Memory
+++++++++++++++++++++++++++++

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

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

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

Expand Down
2 changes: 0 additions & 2 deletions doc/source/whatsnew/v0.22.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ If installed, we now require:
+=================+=================+==========+
| python-dateutil | 2.5.0 | X |
+-----------------+-----------------+----------+
| pytz | 2016.1 | X |
+-----------------+-----------------+----------+
| openpyxl | 2.4.0 | |
+-----------------+-----------------+----------+

Expand Down
5 changes: 0 additions & 5 deletions pandas/compat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,6 @@ def raise_with_traceback(exc, traceback=Ellipsis):
from dateutil import parser as _date_parser
parse_date = _date_parser.parse

# pytz minimum version
import pytz

if LooseVersion(pytz.__version__) < '2016.1':
raise ImportError('pytz 2016.1 is the minimum required version')

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

0 comments on commit 25594ac

Please sign in to comment.