Skip to content

add function for version_spec creation#126

Merged
ryanraaschCDC merged 6 commits into
mainfrom
rr-115-download-version
Jul 21, 2026
Merged

add function for version_spec creation#126
ryanraaschCDC merged 6 commits into
mainfrom
rr-115-download-version

Conversation

@ryanraaschCDC

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

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.

Pull request overview

This PR introduces a small helper in cfa.dataops.utils to convert a “raw” version string into a packaging specifier, and wires it into version_matcher so callers can pass either a full specifier (e.g. >=...) or a bare version (treated as exact match).

Changes:

  • Add construct_version_spec() utility to prepend == when no operator is provided.
  • Update version_matcher() to call construct_version_spec() before building a SpecifierSet.
  • Add unit tests covering construct_version_spec().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
cfa/dataops/utils.py Adds construct_version_spec() and applies it in version_matcher() to support bare-version inputs.
tests/test_utils_version_matcher.py Adds tests for the new construct_version_spec() helper alongside existing version_matcher tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cfa/dataops/utils.py
Comment thread tests/test_utils_version_matcher.py
Comment thread tests/test_utils_version_matcher.py
ryanraaschCDC and others added 4 commits July 20, 2026 19:07
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ryanraaschCDC
ryanraaschCDC requested a review from kokbent July 20, 2026 20:48

@kokbent kokbent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@ryanraaschCDC
ryanraaschCDC marked this pull request as ready for review July 21, 2026 19:28
@ryanraaschCDC
ryanraaschCDC merged commit b9fffdf into main Jul 21, 2026
4 checks passed
@ryanraaschCDC
ryanraaschCDC deleted the rr-115-download-version branch July 21, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.download_version_to_local() doesn't work if version is specified?

4 participants