-
Notifications
You must be signed in to change notification settings - Fork 113
Update templates to use serverless environment version 4 and matching Python version #3897
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
base: main
Are you sure you want to change the base?
Conversation
Remove the Python version spec changes from experimental-jobs-as-code template to minimize the diff. This template doesn't need the same Python version constraints as the default template. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
12 failing tests:
|
Expands the python_version_spec comment to explain why we use >=3.10,<3.13 rather than pinning to 3.12. The broader range improves usability by avoiding the need for version managers while maintaining compatibility with DB Connect 15, serverless environment v4/v5, and DBR 16/17. Addresses PR feedback: #3897 (review) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
kanterov
left a comment
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.
LGTM. I've left a few suggestions
| version = "0.0.1" | ||
| authors = [{ name = "{{user_name}}" }] | ||
| requires-python = "{{template "conservative_db_connect_python_version_spec"}}" | ||
| requires-python = "{{template "python_version_spec"}}" |
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.
Below, there is a line with "databricks-connect>=15.4,<15.5". Perhaps it's worth adding a short version of the DB Connect comment from versions.tmpl?
| * the template. | ||
| * | ||
| * See https://docs.databricks.com/dev-tools/databricks-connect/python/index.html#requirements | ||
| * for DB Connect release notes and version compatibility. |
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.
Can it make sense to change how DB Connect version is selected for serverless-only bundles?
Changes
This updates templates to serverless environment version 4 and associated Python versions
Some considerations:
Why
Tests