Skip to content

Add a check which tests test-mindeps bounds - #1276

Merged
sirosen merged 1 commit into
globus:mainfrom
sirosen:check-mindeps-match
Jul 20, 2026
Merged

Add a check which tests test-mindeps bounds#1276
sirosen merged 1 commit into
globus:mainfrom
sirosen:check-mindeps-match

Conversation

@sirosen

@sirosen sirosen commented Jul 1, 2026

Copy link
Copy Markdown
Member

Load test-mindeps and dependencies out of pyproject data, and compare
them to ensure that the specifiers in test-mindeps always contain the
minimum version listed in dependencies.

This is a new tox env and runs in CI. It should force bad test-mindeps
updates from dependabot to fail.

Load `test-mindeps` and `dependencies` out of pyproject data, and compare
them to ensure that the specifiers in `test-mindeps` always contain the
minimum version listed in `dependencies`.

This is a new tox env and runs in CI. It should force bad test-mindeps
updates from dependabot to fail.
@sirosen sirosen added the no-news-is-good-news This change does not require a news file label Jul 1, 2026
@sirosen sirosen added the no-news-is-good-news This change does not require a news file label Jul 1, 2026
r for r in group_resolver.lookup("test-mindeps") if isinstance(r, Requirement)
]

dependencies: tuple[str, ...] = dj.read.dependencies()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remind me where MDDJ is sourcing this metadata from? Is this also coming from pyproject.toml?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It pulls data from pyproject.toml as much as possible. If a field is not present there, it will fallback to a more complex (and slower) path which asks the package build system to get that information.

I should do a better job of documenting this, probably.

@sirosen
sirosen merged commit 15b719c into globus:main Jul 20, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-news-is-good-news This change does not require a news file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants