Skip to content

Commit 4673405

Browse files
authored
Merge pull request influxdata#457 from sebito91/fix_py27
updating deps for py27, including pandas
2 parents 06824f0 + a2ac2e8 commit 4673405

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ install:
3131
- pip install tox
3232
- pip install coveralls
3333
- mkdir influxdb_install
34-
- wget https://dl.influxdata.com/influxdb/releases/influxdb_1.1.0_amd64.deb
34+
- wget https://dl.influxdata.com/influxdb/releases/influxdb_1.2.4_amd64.deb
3535
- dpkg -x influxdb*.deb influxdb_install
3636
script:
3737
- export INFLUXDB_PYTHON_INFLUXD_PATH=$(pwd)/influxdb_install/usr/bin/influxd

influxdb/_dataframe_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ def _convert_dataframe_to_json(self,
177177
if not isinstance(dataframe, pd.DataFrame):
178178
raise TypeError('Must be DataFrame, but type was: {0}.'
179179
.format(type(dataframe)))
180-
if not (isinstance(dataframe.index, pd.tseries.period.PeriodIndex) or
181-
isinstance(dataframe.index, pd.tseries.index.DatetimeIndex)):
180+
if not (isinstance(dataframe.index, pd.PeriodIndex) or
181+
isinstance(dataframe.index, pd.DatetimeIndex)):
182182
raise TypeError('Must be DataFrame with DatetimeIndex or \
183183
PeriodIndex.')
184184

@@ -234,8 +234,8 @@ def _convert_dataframe_to_lines(self,
234234
if not isinstance(dataframe, pd.DataFrame):
235235
raise TypeError('Must be DataFrame, but type was: {0}.'
236236
.format(type(dataframe)))
237-
if not (isinstance(dataframe.index, pd.tseries.period.PeriodIndex) or
238-
isinstance(dataframe.index, pd.tseries.index.DatetimeIndex)):
237+
if not (isinstance(dataframe.index, pd.PeriodIndex) or
238+
isinstance(dataframe.index, pd.DatetimeIndex)):
239239
raise TypeError('Must be DataFrame with DatetimeIndex or \
240240
PeriodIndex.')
241241

@@ -279,7 +279,7 @@ def _convert_dataframe_to_lines(self,
279279
}.get(time_precision, 1)
280280

281281
# Make array of timestamp ints
282-
if isinstance(dataframe.index, pd.tseries.period.PeriodIndex):
282+
if isinstance(dataframe.index, pd.PeriodIndex):
283283
time = ((dataframe.index.to_timestamp().values.astype(int) /
284284
precision_factor).astype(int).astype(str))
285285
else:

influxdb/influxdb08/dataframe_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ def _convert_dataframe_to_json(self, dataframe, name, time_precision='s'):
128128
if not isinstance(dataframe, pd.DataFrame):
129129
raise TypeError('Must be DataFrame, but type was: {0}.'
130130
.format(type(dataframe)))
131-
if not (isinstance(dataframe.index, pd.tseries.period.PeriodIndex) or
132-
isinstance(dataframe.index, pd.tseries.index.DatetimeIndex)):
131+
if not (isinstance(dataframe.index, pd.PeriodIndex) or
132+
isinstance(dataframe.index, pd.DatetimeIndex)):
133133
raise TypeError('Must be DataFrame with DatetimeIndex or \
134134
PeriodIndex.')
135135

136-
if isinstance(dataframe.index, pd.tseries.period.PeriodIndex):
136+
if isinstance(dataframe.index, pd.PeriodIndex):
137137
dataframe.index = dataframe.index.to_timestamp()
138138
else:
139139
dataframe.index = pd.to_datetime(dataframe.index)

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
python-dateutil>=2.0.0
1+
python-dateutil>=2.6.0
22
pytz
3-
requests>=1.0.3
4-
six>=1.9.0
3+
requests>=2.17.0
4+
six>=1.10.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
'Programming Language :: Python',
5050
'Programming Language :: Python :: 2.7',
5151
'Programming Language :: Python :: 3',
52-
'Programming Language :: Python :: 3.3',
52+
'Programming Language :: Python :: 3.4',
5353
'Topic :: Software Development :: Libraries',
5454
'Topic :: Software Development :: Libraries :: Python Modules',
5555
),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy