Skip to content

Commit

Permalink
COMPAT: remove boto dep check, xref pandas-dev#11915
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Mar 3, 2016
1 parent bad7c0f commit bb5cb1c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions ci/requirements-3.5.run
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sqlalchemy
pymysql
psycopg2
xarray
boto

# incompat with conda ATM
# beautiful-soup
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.18.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ Bug Fixes
- Bug in ``Series.resample`` using a frequency of ``Nano`` when the index is a ``DatetimeIndex`` and contains non-zero nanosecond parts (:issue:`12037`)
- Bug in resampling with ``.nunique`` and a sparse index (:issue:`12352`)
- Removed some compiler warnings (:issue:`12471`)

- Work around compat issues with ``boto`` in python 3.5 (:issue:`11915`)
- Bug in ``NaT`` subtraction from ``Timestamp`` or ``DatetimeIndex`` with timezones (:issue:`11718`)
- Bug in subtraction of ``Series`` of a single tz-aware ``Timestamp`` (:issue:`12290`)

Expand Down
3 changes: 3 additions & 0 deletions pandas/computation/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
from pandas.core.common import _values_from_object
from pandas.computation import _NUMEXPR_INSTALLED

if _NUMEXPR_INSTALLED:
import numexpr as ne

_TEST_MODE = None
_TEST_RESULT = None
_USE_NUMEXPR = _NUMEXPR_INSTALLED
Expand Down
8 changes: 5 additions & 3 deletions pandas/core/datetools.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""A collection of random tools for dealing with dates in Python"""

from pandas.tseries.tools import * # noqa
from pandas.tseries.offsets import * # noqa
from pandas.tseries.frequencies import * # noqa
# flake8: noqa

from pandas.tseries.tools import *
from pandas.tseries.offsets import *
from pandas.tseries.frequencies import *

day = DateOffset()
bday = BDay()
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from pandas.core.index import Index, MultiIndex, _ensure_index
from pandas import compat
from pandas.compat import (StringIO, lzip, range, map, zip, reduce, u,
OrderedDict)
OrderedDict, unichr)
from pandas.util.terminal import get_terminal_size
from pandas.core.config import get_option, set_option
from pandas.io.common import _get_handle, UnicodeWriter, _expand_user
Expand Down
4 changes: 4 additions & 0 deletions pandas/io/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ def readline(self):
except ImportError:
# boto is only needed for reading from S3.
pass
except TypeError:
# boto/boto3 issues
# GH11915
pass


def _is_url(url):
Expand Down
1 change: 1 addition & 0 deletions pandas/util/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# flake8: noqa

import platform
import os
Expand Down
3 changes: 2 additions & 1 deletion pandas/util/print_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def show_versions(as_json=False):
("sqlalchemy", lambda mod: mod.__version__),
("pymysql", lambda mod: mod.__version__),
("psycopg2", lambda mod: mod.__version__),
("jinja2", lambda mod: mod.__version__)
("jinja2", lambda mod: mod.__version__),
("boto", lambda mod: mod.__version__)
]

deps_blob = list()
Expand Down

0 comments on commit bb5cb1c

Please sign in to comment.