-
Notifications
You must be signed in to change notification settings - Fork 27
Foundation for detecting python version requirements from pyproject.toml #643
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
Conversation
158f81a to
5b9035d
Compare
☂️ Python Coverage
Overall Coverage
New Files
Modified FilesNo covered modified files...
|
|
The failure seems to be already happening on main: https://github.com/posit-dev/rsconnect-python/actions/runs/13663461265/job/38199851576 So marking this as ready for review |
sagerb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. I only had a little nit about some comments in the test file to better describe what you're doing. I was able to certainly extract what was going on within the code, but for maintenance concerns, I would recommend adding some simple comments as indicated. But I will leave that in your hands to decide!
5ae6d17 to
5ed8e3c
Compare
Intent
Prepare foundations for supporting detection of python version requirements when generating manifest.json.
This implements detect of which metadata file is available and parsing of the requirement from
pyproject.toml.Further changes will provide support for
setup.cfgand.python-version, those will then be used to set the proper requirement field in themanifest.json.Type of Change
Approach
The support for adding python version constraint to
manifest.jsonis being built in small incremental steps that won't change user facing behaviour until the final PR that will enable the new behaviour.Automated Tests
A new test suite in
test_pyproject.pywas added.Directions for Reviewers
There isn't a directly corresponding issue in the
rsconnect-pythonrepository as the issue governing this work is in Connect itself.