Pin galaxy-tool-util-models to current minor version in dependents

galaxy-tool-util-models was listed as an unversioned dependency in
galaxy-schema, galaxy-tool-util, and galaxy-tool-shed-schema. This
caused pip to leave it at a stale version when upgrading an existing
virtualenv, because the already-installed version satisfied the loose
(unconstrained) requirement.

The symptom was ImportError failures at job execution time — e.g.:

  ImportError: cannot import name 'AnySafeValidatorModel' from
    'galaxy.tool_util_models.parameter_validators'

    — where galaxy-util (at the new version) referenced a symbol that
    didn't exist in the older galaxy-tool-util-models still present in
    the venv.

    Fix: add a >=26.0 lower bound in each dependent package so pip is
    forced to upgrade galaxy-tool-util-models when installing any of
    these packages at 26.0 or later.

    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
John Davis
2026-06-10 13:30:34 -04:00
parent e8e0017a5a
commit ad3ea80e74
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ version = 26.0.2.dev0
[options]
include_package_data = True
install_requires =
galaxy-tool-util-models
galaxy-tool-util-models>=26.0
galaxy-util
pydantic[email]>=2.7.4
packages = find:
+1 -1
View File
@@ -14,7 +14,7 @@ version = 26.0.2.dev0
[options]
include_package_data = True
install_requires =
galaxy-tool-util-models
galaxy-tool-util-models>=26.0
pydantic>=2.7.4
typing-extensions
packages = find:
+1 -1
View File
@@ -14,7 +14,7 @@ version = 26.0.2.dev0
[options]
include_package_data = True
install_requires =
galaxy-tool-util-models
galaxy-tool-util-models>=26.0
galaxy-util[template,image-util]>=22.1
conda-package-streaming
lxml!=4.2.2