Skip to content

Commit 8b62d77

Browse files
authored
deps: add minimum version constraint for sqlglot to 19.9.0 (#389)
* deps: add minimum version constraint for sqlglot to 19.9.0 This shouldn't be necessary, as sqlglot is only used as a transitive dependency through ibis-framework, but in setting the constraints, we can have greater assurance that sqlglot is upgraded alongside bigframes in existing environments. * formatting
1 parent 4037992 commit 8b62d77

File tree

2 files changed

+16
-108
lines changed

2 files changed

+16
-108
lines changed

setup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@
3232
# 'Development Status :: 5 - Production/Stable'
3333
release_status = "Development Status :: 3 - Alpha"
3434
dependencies = [
35+
# please keep these in sync with the minimum versions in testing/constraints-3.9.txt
3536
"cloudpickle >= 2.0.0",
3637
"fsspec >=2023.3.0",
3738
"gcsfs >=2023.3.0",
3839
"geopandas >=0.12.2",
39-
"google-auth >2.14.1,<3.0dev",
40+
"google-auth >=2.15.0,<3.0dev",
4041
"google-cloud-bigquery[bqstorage,pandas] >=3.10.0",
4142
"google-cloud-functions >=1.10.1",
4243
"google-cloud-bigquery-connection >=1.12.0",
@@ -51,6 +52,10 @@
5152
"requests >=2.27.1",
5253
"scikit-learn >=1.2.2",
5354
"sqlalchemy >=1.4,<3.0dev",
55+
# Keep sqlglot versions in sync with ibis-framework. This avoids problems
56+
# where the incorrect version of sqlglot is installed, such as
57+
# https://github.com/googleapis/python-bigquery-dataframes/issues/315
58+
"sqlglot >=19.9.0,<20",
5459
"tabulate >= 0.9",
5560
"ipywidgets >=7.7.1",
5661
"humanize >= 4.6.0",

testing/constraints-3.9.txt

+10-107
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,24 @@
1-
argcomplete==2.1.2
2-
asyncmock==0.4.2
3-
atpublic==3.1.1
4-
attrs==22.2.0
5-
bidict==0.22.1
6-
black==23.3.0
7-
bleach==6.0.0
8-
cachetools==5.3.0
9-
certifi==2022.12.7
10-
cffi==1.15.1
11-
cfgv==3.3.1
12-
charset-normalizer==2.0.0
13-
click==8.1.3
1+
# please keep these in sync with the minimum versions in setup.py
142
cloudpickle==2.0.0
15-
colorlog==6.7.0
16-
coverage==7.2.2
17-
cryptography==40.0.1
18-
distlib==0.3.6
19-
docstring-inheritance==2.0.0
20-
docutils==0.19
21-
exceptiongroup==1.1.1
22-
execnet==1.9.0
23-
filelock==3.10.7
243
fsspec==2023.3.0
25-
gcp-docuploader==0.6.5
26-
gcp-releasetool==1.11.0
274
gcsfs==2023.3.0
285
geopandas==0.12.2
29-
google-api-core==2.11.0
30-
google-auth==2.17.0
31-
google-auth-oauthlib==1.0.0
6+
google-auth==2.15.0
327
google-cloud-bigquery==3.10.0
33-
google-cloud-bigquery-connection==1.12.0
34-
google-cloud-bigquery-storage==2.19.1
35-
google-cloud-core==2.3.2
368
google-cloud-functions==1.10.1
9+
google-cloud-bigquery-connection==1.12.0
3710
google-cloud-iam==2.12.1
3811
google-cloud-resource-manager==1.10.3
3912
google-cloud-storage==2.0.0
40-
google-cloud-testutils==1.3.3
41-
google-crc32c==1.5.0
42-
google-resumable-media==2.4.1
43-
googleapis-common-protos==1.59.0
44-
greenlet==2.0.2
45-
grpc-google-iam-v1==0.12.6
46-
grpcio==1.53.0
47-
grpcio-status==1.48.2
4813
ibis-framework==7.1.0
49-
humanize==4.6.0
50-
identify==2.5.22
51-
idna==3.4
52-
importlib-metadata==6.1.0
53-
iniconfig==2.0.0
54-
ipywidgets==7.7.1
55-
jaraco.classes==3.2.3
56-
jeepney==0.8.0
57-
Jinja2==3.1.2
58-
keyring==23.13.1
59-
markdown-it-py==2.2.0
60-
MarkupSafe==2.1.2
61-
mdurl==0.1.2
62-
mock==5.0.1
63-
more-itertools==9.1.0
64-
multipledispatch==0.6.0
65-
mypy-extensions==1.0.0
66-
nodeenv==1.7.0
67-
nox==2022.11.21
68-
numpy==1.24.2
69-
oauthlib==3.2.2
70-
packaging==23.0
7114
pandas==1.5.0
72-
pandas-gbq==0.19.0
73-
parsy==2.1
74-
pathspec==0.11.1
75-
pkginfo==1.9.6
76-
platformdirs==3.2.0
77-
pluggy==1.0.0
78-
pooch==1.7.0
79-
pre-commit==3.2.1
80-
proto-plus==1.22.2
81-
protobuf==3.20.3
82-
pyarrow==11.0.0
83-
pyasn1==0.4.8
84-
pyasn1-modules==0.2.8
85-
pycparser==2.21
8615
pydata-google-auth==1.8.2
87-
Pygments==2.14.0
88-
PyJWT==2.6.0
89-
pyperclip==1.8.2
90-
pytest==7.2.2
91-
pytest-asyncio==0.21.0
92-
pytest-cov==4.0.0
93-
pytest-mock==3.11.1
94-
pytest-retry==1.1.0
95-
pytest-xdist==3.2.1
96-
python-dateutil==2.8.2
97-
pytz==2023.3
98-
PyYAML==6.0
99-
readme-renderer==37.3
10016
requests==2.27.1
101-
requests-oauthlib==1.3.1
102-
requests-toolbelt==0.10.1
103-
rfc3986==2.0.0
104-
rich==13.3.3
105-
rsa==4.9
10617
scikit-learn==1.2.2
107-
SecretStorage==3.3.3
108-
six==1.16.0
109-
SQLAlchemy==1.4.0
110-
sqlglot==18.12.0
111-
tomli==2.0.1
112-
toolz==0.12.0
113-
tqdm==4.65.0
114-
twine==4.0.2
115-
typing_extensions==4.5.0
116-
tzdata==2023.3
117-
urllib3==1.26.15
118-
virtualenv==20.21.0
119-
webencodings==0.5.1
120-
xxhash==3.2.0
121-
zipp==3.15.0
18+
sqlalchemy==1.4
19+
sqlglot==19.9.0
20+
tabulate==0.9
21+
ipywidgets==7.7.1
22+
humanize==4.6.0
23+
# extras
24+
pandas-gbq==0.19.0

0 commit comments

Comments
 (0)