Skip to content

Adapt .python-version requirements to connect accepted ones #662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 29, 2025
Merged

Conversation

amol-
Copy link
Contributor

@amol- amol- commented Apr 28, 2025

Intent

Connect requires a version constraint operator to always be specified, so version requirements like "3.8" are not valid, they need to e "~=3.8" to reproduce the intended behaviour.

fixes #659

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change

Approach

Versions loaded from .python-version are validated against what connect supports and adapted when necessary

Automated Tests

Added a dedicated test for version adapting

Checklist

  • I have updated CHANGELOG.md to cover notable changes.
  • I have updated all related GitHub issues to reflect their current state.

Copy link

github-actions bot commented Apr 28, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
4917 3699 75% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/pyproject.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 5777198 by action🐍

@amol- amol- marked this pull request as ready for review April 28, 2025 15:55
@amol- amol- requested a review from Lytol April 28, 2025 16:07
Copy link

@marcosnav marcosnav left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Contributor

@Lytol Lytol left a comment

Choose a reason for hiding this comment

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

🤌 Wonderful

@amol- amol- merged commit 4299657 into main Apr 29, 2025
11 of 13 checks passed
@amol- amol- deleted the fix-659 branch April 29, 2025 13: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
3 participants