Skip to content

Commit 50e5026

Browse files
authored
fix: loosen ipywidgets restrictions further to address ipython compatibility issues (#1531)
* fix: loosen ipywidgets restrictions further to address ipython compatibility issues * include ipywidgets in prerelease deps * show all package versions * add ipykernel dependency * ipykernel in noxfile * oops
1 parent 5e4465d commit 50e5026

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

noxfile.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ def prerelease_deps(session):
303303
session.install(
304304
"--pre",
305305
"--upgrade",
306+
"IPython",
307+
"ipykernel",
308+
"ipywidgets",
309+
"tqdm",
306310
"git+https://github.com/pypa/packaging.git",
307311
)
308312

@@ -321,7 +325,6 @@ def prerelease_deps(session):
321325
"google-cloud-datacatalog",
322326
"google-cloud-storage",
323327
"google-cloud-testutils",
324-
"IPython",
325328
"mock",
326329
"psutil",
327330
"pytest",
@@ -356,6 +359,7 @@ def prerelease_deps(session):
356359
session.run("python", "-c", "import grpc; print(grpc.__version__)")
357360
session.run("python", "-c", "import pandas; print(pandas.__version__)")
358361
session.run("python", "-c", "import pyarrow; print(pyarrow.__version__)")
362+
session.run("python", "-m", "pip", "freeze")
359363

360364
# Run all tests, except a few samples tests which require extra dependencies.
361365
session.run("py.test", "tests/unit")

setup.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,15 @@
6767
pyarrow_dependency,
6868
"db-dtypes>=0.3.0,<2.0.0dev",
6969
],
70-
"ipywidgets": ["ipywidgets>=7.7.0,<8.0.1"],
70+
"ipywidgets": [
71+
"ipywidgets>=7.7.0",
72+
"ipykernel>=6.0.0",
73+
],
7174
"geopandas": ["geopandas>=0.9.0, <1.0dev", "Shapely>=1.8.4, <2.0dev"],
72-
"ipython": ["ipython>=7.0.1,!=8.1.0"],
75+
"ipython": [
76+
"ipython>=7.23.1,!=8.1.0",
77+
"ipykernel>=6.0.0",
78+
],
7379
"tqdm": ["tqdm >= 4.7.4, <5.0.0dev"],
7480
"opentelemetry": [
7581
"opentelemetry-api >= 1.1.0",

testing/constraints-3.7.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ google-cloud-core==1.6.0
1313
google-resumable-media==0.6.0
1414
grpcio==1.47.0
1515
ipywidgets==7.7.1
16-
ipython==7.0.1
16+
ipython==7.23.1
17+
ipykernel==6.0.0
1718
opentelemetry-api==1.1.0
1819
opentelemetry-instrumentation==0.20b0
1920
opentelemetry-sdk==1.1.0

0 commit comments

Comments
 (0)