Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#12027 - Add support for Python 3.11 #14385

Merged
merged 5 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/py-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
py-version: ['3.8', '3.9', '3.10']
py-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
Expand Down
13 changes: 8 additions & 5 deletions ingestion/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"grpc-tools": "grpcio-tools>=1.47.2",
"msal": "msal~=1.2",
"neo4j": "neo4j~=5.3.0",
"pandas": "pandas==1.3.5",
"pandas": "pandas<=2,<3",
"pyarrow": "pyarrow~=10.0",
"pydomo": "pydomo~=0.3",
"pymysql": "pymysql>=1.0.2",
Expand All @@ -45,7 +45,7 @@
"looker-sdk": "looker-sdk>=22.20.0",
"lkml": "lkml~=1.3",
"tableau": "tableau-api-lib~=0.1",
"pyhive": "pyhive~=0.7",
"pyhive": "pyhive[hive_pure_sasl]~=0.7",
"mongo": "pymongo~=4.3",
"redshift": "sqlalchemy-redshift==0.8.12",
"snowflake": "snowflake-sqlalchemy~=1.4",
Expand All @@ -58,7 +58,9 @@
VERSIONS["boto3"],
VERSIONS["pandas"],
VERSIONS["pyarrow"],
"python-snappy~=0.6.1",
# python-snappy does not work well on 3.11 https://github.com/aio-libs/aiokafka/discussions/931
# Using this as an alternative
"cramjam~=2.7",
},
"hive": {
"presto-types-parser>=0.0.2",
Expand Down Expand Up @@ -189,15 +191,16 @@
"hive": {
*COMMONS["hive"],
"thrift>=0.13,<1",
"sasl~=0.3",
# Replacing sasl with pure-sasl based on https://github.com/cloudera/python-sasl/issues/30 for py 3.11
"pure-sasl",
"thrift-sasl~=0.4",
"impyla~=0.18.0",
},
"impala": {
"presto-types-parser>=0.0.2",
"impyla[kerberos]~=0.18.0",
"thrift>=0.13,<1",
"sasl~=0.3",
"pure-sasl",
"thrift-sasl~=0.4",
},
"kafka": {*COMMONS["kafka"]},
Expand Down
3 changes: 2 additions & 1 deletion scripts/datamodel_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
for file_path in UNICODE_REGEX_REPLACEMENT_FILE_PATHS:
with open(file_path, "r", encoding="UTF-8") as file_:
content = file_.read()
content = content.replace("(?U)", "(?u)")
# Python now requires to move the global flags at the very start of the expression
content = content.replace("^(?U)", "(?u)^")
with open(file_path, "w", encoding="UTF-8") as file_:
file_.write(content)