Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit ec7b279

Browse files
committed
chore: added support for Python 3.8, added InfluxDB 1.8.3 to test suite
1 parent c49c79a commit ec7b279

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ python:
55
- "3.5"
66
- "3.6"
77
- "3.7"
8+
- "3.8"
89
- "pypy"
910
- "pypy3"
1011

@@ -15,6 +16,7 @@ env:
1516
- INFLUXDB_VER=1.5.4 # 2018-06-22
1617
- INFLUXDB_VER=1.6.4 # 2018-10-24
1718
- INFLUXDB_VER=1.7.4 # 2019-02-14
19+
- INFLUXDB_VER=1.8.3 # 2020-10-16
1820

1921
addons:
2022
apt:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313
### Changed
1414
- Amend retry to avoid sleep after last retry before raising exception (#790 thx @krzysbaranski)
1515
- Remove msgpack pinning for requirements (#818 thx @prometheanfire)
16+
- Update test suite to add support for Python 3.8 and InfluxDB v1.8.3 (#856)
1617

1718
### Removed
1819

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ InfluxDB is an open-source distributed time series database, find more about Inf
3939
InfluxDB pre v1.1.0 users
4040
-------------------------
4141

42-
This module is tested with InfluxDB versions: v1.2.4, v1.3.9, v1.4.3, v1.5.4, v1.6.4, and 1.7.4.
42+
This module is tested with InfluxDB versions: v1.2.4, v1.3.9, v1.4.3, v1.5.4, v1.6.4, v1.7.4 and v1.8.3.
4343

4444
Those users still on InfluxDB v0.8.x users may still use the legacy client by importing ``from influxdb.influxdb08 import InfluxDBClient``.
4545

@@ -59,7 +59,7 @@ On Debian/Ubuntu, you can install it with this command::
5959
Dependencies
6060
------------
6161

62-
The influxdb-python distribution is supported and tested on Python 2.7, 3.5, 3.6, 3.7, PyPy and PyPy3.
62+
The influxdb-python distribution is supported and tested on Python 2.7, 3.5, 3.6, 3.7, 3.8, PyPy and PyPy3.
6363

6464
**Note:** Python <3.5 are currently untested. See ``.travis.yml``.
6565

influxdb/_dataframe_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def _convert_dataframe_to_json(dataframe,
305305
'time': np.int64(ts.value / precision_factor)}
306306
for ts, tag, (_, rec) in zip(
307307
dataframe.index,
308-
dataframe[tag_columns].to_dict('record'),
308+
dataframe[tag_columns].to_dict('records'),
309309
dataframe[field_columns].iterrows()
310310
)
311311
]

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
'Programming Language :: Python :: 3.4',
5454
'Programming Language :: Python :: 3.5',
5555
'Programming Language :: Python :: 3.6',
56+
'Programming Language :: Python :: 3.7',
57+
'Programming Language :: Python :: 3.8',
5658
'Topic :: Software Development :: Libraries',
5759
'Topic :: Software Development :: Libraries :: Python Modules',
5860
],

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27, py35, py36, py37, pypy, pypy3, flake8, pep257, coverage, docs, mypy
2+
envlist = py27, py35, py36, py37, py38, pypy, pypy3, flake8, pep257, coverage, docs, mypy
33

44
[testenv]
55
passenv = INFLUXDB_PYTHON_INFLUXD_PATH
@@ -14,6 +14,8 @@ deps = -r{toxinidir}/requirements.txt
1414
py36: numpy==1.15.4
1515
py37: pandas==0.24.2
1616
py37: numpy==1.16.2
17+
py38: pandas==1.1.2
18+
py38: numpy==1.19.0
1719
# Only install pandas with non-pypy interpreters
1820
# Testing all combinations would be too expensive
1921
commands = nosetests -v --with-doctest {posargs}

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