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

Preserve optional dependencies in output of pigar check #198

Open
gsingh93 opened this issue Mar 6, 2024 · 0 comments
Open

Preserve optional dependencies in output of pigar check #198

gsingh93 opened this issue Mar 6, 2024 · 0 comments

Comments

@gsingh93
Copy link

gsingh93 commented Mar 6, 2024

Is your feature request related to a problem? Please describe.
I use pigar check --format-requirements to update my requirements.txt. This works fine for most projects, but sometimes I have a package with optional dependencies, and pigar doesn't include this in the output. For example, if the requirements.txt is:

coverage[toml]==7.4.2

Running pigar check --format requirements correct updates the package version, but it drops the optional toml dependency.

coverage==7.4.3

Describe the solution you'd like
Preserve any optional dependencies. In the example above, the output should be:

coverage[toml]==7.4.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants