Added option to get resolved packages in a requirements.txt file #135 - #156
Added option to get resolved packages in a requirements.txt file #135#156arijitde92 wants to merge 0 commit into
Conversation
TG1999
left a comment
There was a problem hiding this comment.
@arijitde92 thanks ++, please add tests to test the functionality that you have added
Hi @TG1999 , I have added a test in test_cli.py and it is passing. Please have a look and let me know if anything else is required. Thanks |
|
@arijitde92 Thanks. I like the idea of writing back requirements. We need to find a better name and help text for the CLI options as well as the module name though: neither --res nor "Write the resolved packages into a TEXT file. " are obvious. |
Hi @pombredanne @TG1999, it would be really great if you can suggest some names and help text for the CLI options and module names. Since |
|
@arijitde92 I think @pombredanne separate question can |
|
Hi @TG1999 , @pombredanne , I changed the name to Is this okay? |
|
@arijitde92 please rebase and resolve conflicts |
Added a new click option in resolve_cli.py to provide a file name into which the resolved packages will be written. Also added a function in utils.py that writes of the resolved packages into the file.
I wrote the click option parameters as shown below-
@click.option( "--res", "resolved_output", type=FileOptionType(mode="w", encoding="utf-8", lazy=True), required=False, metavar="FILE", help="Write the resolved packages into a TEXT file. ", )Please let me know if anything needs to be changed.
Thanks.