Skip to content
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

Add an option to output the check results in the correct format for requirements.txt #157

Closed
gsingh93 opened this issue May 24, 2023 · 2 comments · Fixed by #161
Closed

Comments

@gsingh93
Copy link

Is your feature request related to a problem? Please describe.
I'd like to generate a requirements.txt file that has the latest version of all the packages in an existing requirements.txt file.

Describe the solution you'd like
Currently, check will output the results in a table like this:

 ===================================================
  DISTRIBUTION      | SPEC      | LOCAL   | LATEST
  ------------------ ----------- --------- --------
  black             | ==23.1.0  | 23.1.0  | 23.3.0

But it would be nice if it could output this instead:

black==23.3.0

so that I could copy and paste it into my requirements file. Maybe a --format flag could allow this?

While this functionality might make more sense to put under the generate command, it seems like generate will attempt to detect what dependencies your code needs and generate a requirements file based on that, while what I'm looking for is taking an existing requirements file and updating the versions in that instead.

@damnever
Copy link
Owner

Thank you. I believe this feature request is reasonable.

@damnever
Copy link
Owner

A new release is now available, give it a try: pip install pigar==2.0.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants