-
Notifications
You must be signed in to change notification settings - Fork 54
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
feat(PyProject::detect): detect unconventional requirements.txt (#1323) #1336
feat(PyProject::detect): detect unconventional requirements.txt (#1323) #1336
Conversation
…ntional python requirements.txt files closes flox#1323
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.
Thanks, overall looks good! I left a bunch of nonblocking comments and nits, so you can decide whether or not to address those.
The other thing is we could consider installing every requirements*.txt
file like @zmitchell mentioned here #1323 (comment). Up to you if you want to make that change
…nd other misc. refactoring refactoring based on comments in flox#1336 Signed-off-by: Conor Scheidt <conorrs@protonmail.com>
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.
Changes look good! Sorry I missed this before but describe_reason
needs to be updated as well. Right now it's printing
Flox detected a Python project with the following Python provider(s):
* latest python (requirements.txt)
And describe_customization
also hardcodes requirements.txt
:
Installs the dependencies from the requirements.txt to the venv.
Also could you run |
Will do, sorry for the hassle, I'm a bit new to contribution. |
No worries we need to add a CI job that runs clippy and add it to the contributor guidelines, that's on us! |
Should we update the
Same idea with |
Yeah I think that's necessary for the behavior we want |
Signed-off-by: Conor Scheidt <me@crsche.com>
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.
Thanks!
Proposed Changes
Detect a wider set of Python requirements files using regex (
^requirements\S*\.txt
), sincepip
explicitly does not require naming the filerequirements.txt
.Closes #1323
Release Notes
Change Python requirements file matching from
requirements.txt
torequirements*.txt