Skip to content

Upgrade uv to 0.9.8 and exclude databricks-connect#18746

Merged
harupy merged 2 commits intomasterfrom
copilot/add-exclude-dependencies-setting
Nov 8, 2025
Merged

Upgrade uv to 0.9.8 and exclude databricks-connect#18746
harupy merged 2 commits intomasterfrom
copilot/add-exclude-dependencies-setting

Conversation

Copy link
Contributor

Copilot AI commented Nov 8, 2025

Related Issues/PRs

#xxx

What changes are proposed in this pull request?

Upgrades uv from 0.8.18 to 0.9.8 and leverages the new exclude-dependencies setting to prevent databricks-connect from being installed. databricks-connect overrides pyspark and breaks pyspark tests.

Changes:

  • Updated required-version = "==0.9.8" in pyproject.toml
  • Added exclude-dependencies = ["databricks-connect"] to [tool.uv] section
  • Regenerated uv.lock with databricks-connect and its dependencies removed

databricks-agents remains installable despite listing databricks-connect as a dependency. Existing runtime code that handles databricks-connect conflicts in model requirements inference is unchanged.

How is this PR tested?

  • Existing unit/integration tests
  • New unit/integration tests
  • Manual tests

Does this PR require documentation update?

  • No. You can skip the rest of this section.
  • Yes. I've updated:
    • Examples
    • API references
    • Instructions

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release notes for MLflow users.

What component(s), interfaces, languages, and integrations does this PR affect?

Components

  • area/tracking: Tracking Service, tracking client APIs, autologging
  • area/models: MLmodel format, model serialization/deserialization, flavors
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/scoring: MLflow Model server, model deployment tools, Spark UDFs
  • area/evaluation: MLflow model evaluation features, evaluation metrics, and evaluation workflows
  • area/gateway: MLflow AI Gateway client APIs, server, and third-party integrations
  • area/prompts: MLflow prompt engineering features, prompt templates, and prompt management
  • area/tracing: MLflow Tracing features, tracing APIs, and LLM tracing functionality
  • area/projects: MLproject format, project running backends
  • area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server
  • area/build: Build and test infrastructure for MLflow
  • area/docs: MLflow documentation pages

How should the PR be classified in the release notes? Choose one:

  • rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section
  • rn/breaking-change - The PR will be mentioned in the "Breaking Changes" section
  • rn/feature - A new user-facing feature worth mentioning in the release notes
  • rn/bug-fix - A user-facing bug fix worth mentioning in the release notes
  • rn/documentation - A user-facing documentation change worth mentioning in the release notes

Should this PR be included in the next patch release?

  • Yes (this PR will be cherry-picked and included in the next patch release)
  • No (this PR will be included in the next minor release)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

uv 0.9.8 (https://github.com/astral-sh/uv/releases/tag/0.9.8) has been released. This version added a new setting exclude-dependencies to allow users to exclude specific dependencies when resolving project dependencies.

https://docs.astral.sh/uv/reference/settings/#exclude-dependencies

Dependencies to exclude when resolving the project's dependencies.
Excludes are used to prevent a package from being selected during resolution, regardless of whether it's requested by any other package. When a package is excluded, it will be omitted from the dependency list entirely.
Including a package as an exclusion will prevent it from being installed, even if it's requested by transitive dependencies. This can be useful for removing optional dependencies or working around packages with broken dependencies.

We want to use this feature to exclude databricks-connect which is known to overrides pyspark and causes tests that use pyspark to fail.

[tool.uv]
required-version = "==0.9.8"
...
exclude-dependencies = ["databricks-connect"]

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@harupy harupy marked this pull request as ready for review November 8, 2025 01:45
@harupy harupy added the rn/none List under Small Changes in Changelogs. label Nov 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

@Copilot Thank you for the contribution! Could you fix the following issue(s)?

⚠ Invalid PR template

This PR does not appear to have been filed using the MLflow PR template. Please copy the PR template from here and fill it out.

Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Copilot AI changed the title [WIP] Add exclude-dependencies setting to avoid databricks-connect Upgrade uv to 0.9.8 and exclude databricks-connect Nov 8, 2025
Copilot AI requested a review from harupy November 8, 2025 02:00
@github-actions github-actions bot added the area/build Build and test infrastructure for MLflow label Nov 8, 2025
@harupy harupy enabled auto-merge November 8, 2025 04:05
@harupy harupy added this pull request to the merge queue Nov 8, 2025
Merged via the queue into master with commit 7dc7298 Nov 8, 2025
77 of 100 checks passed
@harupy harupy deleted the copilot/add-exclude-dependencies-setting branch November 8, 2025 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Build and test infrastructure for MLflow rn/none List under Small Changes in Changelogs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants