-
Notifications
You must be signed in to change notification settings - Fork 422
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
Inject additional packages from text file #1252
Conversation
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.
Thank you for working on this! I'm a bit unsure regarding the naming, though, since "Requirements File" is a reserved term.
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.
Also flagging that in the original PR by @dukecat0 the decision was made to make the requirements file and passing a requirement directly mutually exclusive.
I personally don't see a technical reason to stick to that, so not a blocker for me.
I think that's how pip works, but like you say, I don't see a good technical reason for it. I don't even think it's necessary to match the pip functionality. If you want to match the pip functionality, then |
I agree that "Requirements File" is a reserved term and shouldn't be over-used. However, we're using a strict sub-set of the "Requirements File" syntax, won't accept changes that are incompatible and have ambitions to support the full syntax eventually. edit: To summarise, I think it's better to describe it as "partial pip-requirements-file support" rather than "not a pip-requirements file". |
On the subject of full pip-requirements file support. I wonder if the better long-term implementation would be to change the way that But I think that needs more investigation (e.g. checking how it works with |
This sounds like a good plan to me. |
@jamesmyatt Gentle ping on this. |
5aaf87a
to
99b386e
Compare
Thanks for the reminder. I think the outstanding actions are:
Anything else? |
I don't think so. |
5ca3a40
to
f7a1303
Compare
for more information, see https://pre-commit.ci
isort is one of the dependencies of pylint, so you may need to change the test case. |
I'd suggest to just drop |
Ah yes. I wonder why it works sometimes then. |
I think this is actually done now |
Waiting for @Gitznik's review before merging. |
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.
LGTM aside from the news fragment 👍
Simplify news fragment
Fix new fragement
Be more explicit about the syntax for the "inject -r" files.
Fix markdown link
Great job! |
changelog.d/
(if the patch affects the end users)Summary of changes
Fixes #934. Provides for injecting dependencies from a text (requirements) file.
Replaces #1037, which it's partially based on. Thanks, @dukecat0!
I don't think it's necessary to match the pip functionality when the "runpip" command also exists. Instead it replaces the workaround with xargs:
It could be extended to support the full pip-requirements syntax in the future, if necessary, but I'd prefer "good" rather than "perfect".
Test plan
Tested by running unit tests