Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55daa7d

Browse files
authored
deps: declare support for Python 3.9 (#488)
Towards#462.With wheels for `pyarrow==3.0.0` released we can now officially support Python 3.9 - well, at least after when we add Python 3.9 checks to Kokoro.PR checklist:- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea- [x] Ensure the tests and linter pass- [x] Code coverage does not decrease (if any source code was changed)- [x] Appropriate docs were updated (if necessary)
1 parentf187fb0 commit55daa7d

File tree

4 files changed

+23
-32
lines changed

4 files changed

+23
-32
lines changed

‎README.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dependencies.
5252

5353
Supported Python Versions
5454
^^^^^^^^^^^^^^^^^^^^^^^^^
55-
Python >= 3.6, < 3.9
55+
Python >= 3.6, < 3.10
5656

5757
Unsupported Python Versions
5858
^^^^^^^^^^^^^^^^^^^^^^^^^^^

‎noxfile.py‎

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323

2424
BLACK_VERSION="black==19.10b0"
2525
BLACK_PATHS= ("docs","google","samples","tests","noxfile.py","setup.py")
26+
27+
DEFAULT_PYTHON_VERSION="3.8"
28+
SYSTEM_TEST_PYTHON_VERSIONS= ["3.8"]
29+
UNIT_TEST_PYTHON_VERSIONS= ["3.6","3.7","3.8","3.9"]
2630
CURRENT_DIRECTORY=pathlib.Path(__file__).parent.absolute()
2731

2832
# 'docfx' is excluded since it only needs to run in 'docs-presubmit'
@@ -80,13 +84,13 @@ def default(session):
8084
)
8185

8286

83-
@nox.session(python=["3.6","3.7","3.8"])
87+
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS)
8488
defunit(session):
8589
"""Run the unit test suite."""
8690
default(session)
8791

8892

89-
@nox.session(python=["3.8"])
93+
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
9094
defsystem(session):
9195
"""Run the system test suite."""
9296

@@ -118,7 +122,7 @@ def system(session):
118122
session.run("py.test","--quiet",os.path.join("tests","system"),*session.posargs)
119123

120124

121-
@nox.session(python=["3.8"])
125+
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
122126
defsnippets(session):
123127
"""Run the snippets test suite."""
124128

@@ -154,7 +158,7 @@ def snippets(session):
154158
)
155159

156160

157-
@nox.session(python="3.8")
161+
@nox.session(python=DEFAULT_PYTHON_VERSION)
158162
defcover(session):
159163
"""Run the final coverage report.
160164
@@ -166,7 +170,7 @@ def cover(session):
166170
session.run("coverage","erase")
167171

168172

169-
@nox.session(python="3.8")
173+
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
170174
defprerelease_deps(session):
171175
"""Run all tests with prerelease versions of dependencies installed.
172176
@@ -201,7 +205,7 @@ def prerelease_deps(session):
201205
session.run("py.test","samples/tests")
202206

203207

204-
@nox.session(python="3.8")
208+
@nox.session(python=DEFAULT_PYTHON_VERSION)
205209
deflint(session):
206210
"""Run linters.
207211
@@ -218,7 +222,7 @@ def lint(session):
218222
session.run("black","--check",*BLACK_PATHS)
219223

220224

221-
@nox.session(python="3.8")
225+
@nox.session(python=DEFAULT_PYTHON_VERSION)
222226
deflint_setup_py(session):
223227
"""Verify that setup.py is valid (including RST check)."""
224228

@@ -239,7 +243,7 @@ def blacken(session):
239243
session.run("black",*BLACK_PATHS)
240244

241245

242-
@nox.session(python="3.8")
246+
@nox.session(python=DEFAULT_PYTHON_VERSION)
243247
defdocs(session):
244248
"""Build the docs."""
245249

@@ -262,7 +266,7 @@ def docs(session):
262266
)
263267

264268

265-
@nox.session(python="3.8")
269+
@nox.session(python=DEFAULT_PYTHON_VERSION)
266270
defdocfx(session):
267271
"""Build the docfx yaml files for this library."""
268272

‎setup.py‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,9 @@
4545
# grpc.Channel.close() method isn't added until 1.32.0.
4646
# https://github.com/grpc/grpc/pull/15254
4747
"grpcio >= 1.32.0, < 2.0dev",
48-
"pyarrow >= 1.0.0, < 3.0dev",
49-
],
50-
"pandas": [
51-
"pandas>=0.23.0",
52-
# pyarrow 1.0.0 is required for the use of timestamp_as_object keyword.
53-
"pyarrow >= 1.0.0, < 3.0dev",
48+
"pyarrow >= 1.0.0, < 4.0dev",
5449
],
50+
"pandas": ["pandas>=0.23.0","pyarrow >= 1.0.0, < 4.0dev",],
5551
"tqdm": ["tqdm >= 4.7.4, <5.0.0dev"],
5652
"opentelemetry": [
5753
"opentelemetry-api==0.11b0",
@@ -112,6 +108,7 @@
112108
"Programming Language :: Python :: 3.6",
113109
"Programming Language :: Python :: 3.7",
114110
"Programming Language :: Python :: 3.8",
111+
"Programming Language :: Python :: 3.9",
115112
"Operating System :: OS Independent",
116113
"Topic :: Internet",
117114
],
@@ -120,7 +117,7 @@
120117
namespace_packages=namespaces,
121118
install_requires=dependencies,
122119
extras_require=extras,
123-
python_requires=">=3.6, <3.9",
120+
python_requires=">=3.6, <3.10",
124121
include_package_data=True,
125122
zip_safe=False,
126123
)

‎testing/constraints-3.6.txt‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,16 @@
66
# e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev",
77
# Then this file should have foo==1.14.0
88
google-api-core==1.23.0
9-
proto-plus==1.10.0
9+
google-cloud-bigquery-storage==2.0.0
1010
google-cloud-core==1.4.1
1111
google-resumable-media==0.6.0
12-
six==1.13.0
13-
protobuf==3.12.0
14-
google-cloud-bigquery-storage==2.0.0
1512
grpcio==1.32.0
16-
pyarrow==1.0.0
17-
pandas==0.23.0
18-
pyarrow==1.0.0
19-
tqdm==4.7.4
2013
opentelemetry-api==0.11b0
21-
opentelemetry-sdk==0.11b0
2214
opentelemetry-instrumentation==0.11b0
23-
google-cloud-bigquery-storage==2.0.0
24-
grpcio==1.32.0
25-
pyarrow==1.0.0
26-
opentelemetry-api==0.11b0
2715
opentelemetry-sdk==0.11b0
28-
opentelemetry-instrumentation==0.11b0
2916
pandas==0.23.0
17+
proto-plus==1.10.0
18+
protobuf==3.12.0
3019
pyarrow==1.0.0
31-
tqdm==4.7.4
20+
six==1.13.0
21+
tqdm==4.7.4

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp