Skip to content

Commit d35334e

Browse files
authored
deps: drop Python 3.5 and 3.6 (#342)
* deps: support Python 3.9, drop 3.5 and 3.6 * update minimum pandas * drop 3.9 * drop 3.9 * add docs-presubmit to build * fix lint session
1 parent 97c9aaa commit d35334e

11 files changed

+47
-54
lines changed

.circleci/config.yml

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
version: 2
22
jobs:
3-
# Pip
4-
"pip-3.5":
3+
"lint":
54
docker:
65
- image: thekevjames/nox
6+
environment:
7+
# Resolve "Python 3 was configured to use ASCII as encoding for the environment"
8+
LC_ALL: C.UTF-8
9+
LANG: C.UTF-8
710
steps:
811
- checkout
9-
- run: ci/config_auth.sh
10-
- run: nox -s unit-3.5 system-3.5
11-
12-
"pip-3.6":
12+
- run: nox -s lint
13+
"docs-presubmit":
1314
docker:
1415
- image: thekevjames/nox
16+
environment:
17+
# Resolve "Python 3 was configured to use ASCII as encoding for the environment"
18+
LC_ALL: C.UTF-8
19+
LANG: C.UTF-8
1520
steps:
1621
- checkout
17-
- run: ci/config_auth.sh
18-
- run: nox -s unit-3.6
22+
- run: nox -s docs
1923

24+
# Pip
2025
"pip-3.7":
2126
docker:
2227
- image: thekevjames/nox
2328
steps:
2429
- checkout
2530
- run: ci/config_auth.sh
2631
- run: nox -s unit-3.7
27-
2832
"pip-3.8":
2933
docker:
3034
- image: thekevjames/nox
@@ -33,33 +37,22 @@ jobs:
3337
- run: ci/config_auth.sh
3438
- run: nox -s unit-3.8 system-3.8 cover
3539

36-
"lint":
37-
docker:
38-
- image: thekevjames/nox
39-
environment:
40-
# Resolve "Python 3 was configured to use ASCII as encoding for the environment"
41-
LC_ALL: C.UTF-8
42-
LANG: C.UTF-8
43-
steps:
44-
- checkout
45-
- run: nox -s lint
46-
4740
# Conda
48-
"conda-3.6-0.20.1":
41+
"conda-3.7":
4942
docker:
5043
- image: continuumio/miniconda3
5144
environment:
52-
PYTHON: "3.6"
53-
PANDAS: "0.20.1"
45+
PYTHON: "3.7"
46+
PANDAS: "0.23.2"
5447
steps:
5548
- checkout
5649
- run: ci/config_auth.sh
5750
- run: ci/run_conda.sh
58-
"conda-3.8-NIGHTLY":
51+
"conda-3.9-NIGHTLY":
5952
docker:
6053
- image: continuumio/miniconda3
6154
environment:
62-
PYTHON: "3.8"
55+
PYTHON: "3.9"
6356
PANDAS: "NIGHTLY"
6457
steps:
6558
- checkout
@@ -70,10 +63,9 @@ workflows:
7063
version: 2
7164
build:
7265
jobs:
73-
- "pip-3.5"
74-
- "pip-3.6"
66+
- lint
67+
- docs-presubmit
7568
- "pip-3.7"
7669
- "pip-3.8"
77-
- lint
78-
- "conda-3.6-0.20.1"
79-
- "conda-3.8-NIGHTLY"
70+
- "conda-3.7"
71+
- "conda-3.9-NIGHTLY"

ci/constraints-3.5.pip

Lines changed: 0 additions & 6 deletions
This file was deleted.

ci/constraints-3.6.pip

Lines changed: 0 additions & 3 deletions
This file was deleted.

ci/constraints-3.7.pip

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
pandas==0.24.0
2-
google-cloud-bigquery==1.12.0
3-
pydata-google-auth==0.1.2
1+
numpy==1.14.5
2+
pandas==0.23.2
3+
google-auth==1.4.1
4+
google-auth-oauthlib==0.0.1
5+
google-cloud-bigquery==1.11.1
6+
google-cloud-bigquery[bqstorage,pandas]==1.11.1
7+
pydata-google-auth==0.1.2
8+
tqdm==4.23.0

ci/constraints-3.8.pip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pandas
1+
numpy==1.17.5

ci/constraints-3.9.pip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
numpy==1.19.4
2+
pandas==1.1.4
File renamed without changes.
File renamed without changes.

docs/source/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ Features
1313
client project. Specify the target table ID as ``project.dataset.table`` to
1414
use this feature. (:issue:`321`, :issue:`347`)
1515

16+
Dependencies
17+
~~~~~~~~~~~~
18+
19+
- Drop support for Python 3.5 and 3.6. (:issue:`337`)
20+
1621

1722
.. _changelog-0.14.1:
1823

noxfile.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@
1010
import nox
1111

1212

13-
supported_pythons = ["3.5", "3.6", "3.7", "3.8"]
14-
system_test_pythons = ["3.5", "3.8"]
13+
supported_pythons = ["3.7", "3.8"]
14+
system_test_pythons = ["3.7", "3.8"]
1515
latest_python = "3.8"
1616

1717
# Use a consistent version of black so CI is deterministic.
1818
# Should match Stickler: https://stickler-ci.com/docs#black
1919
black_package = "black==20.8b1"
2020

2121

22-
@nox.session
23-
def lint(session, python=latest_python):
22+
@nox.session(python=latest_python)
23+
def lint(session):
2424
session.install(black_package, "flake8")
25-
session.install("-e", ".")
2625
session.run("flake8", "pandas_gbq")
2726
session.run("flake8", "tests")
2827
session.run("black", "--check", ".")
@@ -57,8 +56,8 @@ def unit(session):
5756
)
5857

5958

60-
@nox.session
61-
def cover(session, python=latest_python):
59+
@nox.session(python=latest_python)
60+
def cover(session):
6261
session.install("coverage", "pytest-cov")
6362
session.run("coverage", "report", "--show-missing", "--fail-under=73")
6463
session.run("coverage", "erase")

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def readme():
1818

1919
INSTALL_REQUIRES = [
2020
"setuptools",
21-
"pandas>=0.20.1",
21+
"pandas>=0.23.2",
2222
"pydata-google-auth",
2323
"google-auth",
2424
"google-auth-oauthlib",
@@ -44,16 +44,15 @@ def readme():
4444
"Operating System :: OS Independent",
4545
"Programming Language :: Python",
4646
"Programming Language :: Python :: 3",
47-
"Programming Language :: Python :: 3.5",
48-
"Programming Language :: Python :: 3.6",
4947
"Programming Language :: Python :: 3.7",
5048
"Programming Language :: Python :: 3.8",
49+
"Programming Language :: Python :: 3.9",
5150
"Topic :: Scientific/Engineering",
5251
],
5352
keywords="data",
5453
install_requires=INSTALL_REQUIRES,
5554
extras_require=extras,
56-
python_requires=">=3.5",
55+
python_requires=">=3.7",
5756
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
5857
test_suite="tests",
5958
)

0 commit comments

Comments
 (0)