-
Notifications
You must be signed in to change notification settings - Fork 94
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
Support Python 3.11 #60
Conversation
The Python 3.11 tests fail because our numpy dependency is pinned to 1.21.1 but Python 3.11 support was added in 1.23.2 I'm going to split the dependency specification so that 1.21.1 is installed for Python 3.7 and a newer version is used for newer Pythons. This dependency resolution takes a long time on my workstation though. Will update this branch once the resolution completes. |
Alright, I fixed the issue with numpy but now pyarrow is raising concerns 😬 . Will continue debugging and update this PR as I have more info. |
Looks like the Pyarrow team are at work on this here apache/arrow#14499 |
I tried manually installing |
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
…n version I installed the latest poetry (v1.2.2), deleted my lockfile, and ran poetry update to generate these changes. I manually edited pyproject.toml following the guidance from poetry's docs: https: //python-poetry.org/docs/dependency-specification/#multiple-constraints-dependencies Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
This revision runs tests once for a pull request and once for any push to the main branch. Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
…endency Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
188c796
to
e6ec156
Compare
I forced a push after rebasing on |
pyproject.toml
Outdated
@@ -14,8 +14,12 @@ thrift = "^0.16.0" | |||
pandas = "^1.3.0" | |||
pyarrow = "^9.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Python 3.11 compatible wheels are for pyarrow versions >=10.0.1, so this line needs to change to make this PR work.
You could try using pyarrow = ">=9.0.0"
or maybe better
pyarrow = [
{version = ">=9.0.0", python = ">=3.7,<3.11"},
{version = ">=10.0.1", python = ">=3.11"}
]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
…n version I installed the latest poetry (v1.2.2), deleted my lockfile, and ran poetry update to generate these changes. I manually edited pyproject.toml following the guidance from poetry's docs: https: //python-poetry.org/docs/dependency-specification/#multiple-constraints-dependencies Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
This revision runs tests once for a pull request and once for any push to the main branch. Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
See #60 for discussion about why this was necessary Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
I installed the latest poetry (v1.2.2), deleted my lockfile, and ran poetry update to generate these changes. I manually edited pyproject.toml following the guidance from poetry's docs. Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
…rift dependency" This reverts commit e6ec156. Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
I rebuilt the lockfile with our latest change including @alexmalins revised pyarrow dependency spec. I'm watching the PR checks now to make sure they go through. Assuming they do, we'll bump our version and cut a new release in the next 24 hours. |
Everything builds 🚀 I ran the e2e tests from Python 3.11 and Python 3.10.5 and all pass from |
Woooohooo ! I hope we get binary wheel in Pypi soon :) |
Version |
Update: v2.2.1 is now available on Pypi. |
Tomorrows news today :) . Thanks ! |
Thanks for your help and persistence on this! |
### Description Upgrades `databricks-sql-connector` to `2.2.2`. It includes: - Add tests for parameter sanitisation / escaping (databricks/databricks-sql-python#46) for the fix for #249 - Support Python 3.11 (databricks/databricks-sql-python#60)
### Description Upgrades `databricks-sql-connector` to `2.2.2`. It includes: - Add tests for parameter sanitisation / escaping (databricks/databricks-sql-python#46) for the fix for #249 - Support Python 3.11 (databricks/databricks-sql-python#60)
### Description Upgrades `databricks-sql-connector` to `2.2.2`. It includes: - Add tests for parameter sanitisation / escaping (databricks/databricks-sql-python#46) for the fix for #249 - Support Python 3.11 (databricks/databricks-sql-python#60)
### Description Upgrades `databricks-sql-connector` to `2.2.2`. It includes: - Add tests for parameter sanitisation / escaping (databricks/databricks-sql-python#46) for the fix for #249 - Support Python 3.11 (databricks/databricks-sql-python#60)
Description
Status: This PR is on-hold awaiting PyArrow to release their pre-built wheels for Python 3.11.
This PR adds Python 3.11 to the unit testing matrix.
Closes #59