Skip to content

Fix set version#71

Merged
sbrunner merged 1 commit intomasterfrom
fix
Jun 2, 2025
Merged

Fix set version#71
sbrunner merged 1 commit intomasterfrom
fix

Conversation

@sbrunner
Copy link
Copy Markdown
Owner

@sbrunner sbrunner commented Jun 2, 2025

No description provided.

@sbrunner sbrunner marked this pull request as ready for review June 2, 2025 07:58
@sbrunner sbrunner requested a review from Copilot June 2, 2025 07:58
Copy link
Copy Markdown

Copilot AI left a comment

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 aims to fix how the version for the pkg_set dependency is set by updating both its test cases and the underlying version replacement logic.

  • Added a new test case for pkg_set with range specifiers in tests/test_tweak_dependency_version.py.
  • Updated the test configuration in tests/test_data/test_pyproject.toml to include pkg_set with both fixed and range specifiers.
  • Modified the _replace_dependencies function in python_versions_hook/init.py to remove the forced equality operator so that flexible version specifiers can be used.

Reviewed Changes

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

File Description
tests/test_tweak_dependency_version.py Added test case to assert handling of range specifiers for pkg_set dependency.
tests/test_data/test_pyproject.toml Updated pkg_set entries to support both fixed and range version requirements.
python_versions_hook/init.py Modified dependency replacement logic to directly use the version string as provided.

@sbrunner sbrunner merged commit 1020df5 into master Jun 2, 2025
6 checks passed
@sbrunner sbrunner deleted the fix branch June 2, 2025 07:59
@geo-ghci-int geo-ghci-int bot added this to the 1.1.2 milestone Jun 2, 2025
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.

2 participants