mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-14 12:06:54 +00:00
* Fix datamodel codegen and bump versions * Add 3.11 tests * Update hive * pandas * pandas
This commit is contained in:
parent
d4d8f3655f
commit
eaacc693bd
2
.github/workflows/py-tests.yml
vendored
2
.github/workflows/py-tests.yml
vendored
@ -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
|
||||
|
@ -28,7 +28,7 @@ VERSIONS = {
|
||||
"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",
|
||||
@ -45,7 +45,7 @@ VERSIONS = {
|
||||
"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",
|
||||
@ -58,7 +58,9 @@ COMMONS = {
|
||||
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",
|
||||
@ -189,7 +191,8 @@ plugins: Dict[str, Set[str]] = {
|
||||
"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",
|
||||
},
|
||||
@ -197,7 +200,7 @@ plugins: Dict[str, Set[str]] = {
|
||||
"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"]},
|
||||
|
@ -46,6 +46,7 @@ main(args)
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user