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

"prequ add" #25

Open
frwickst opened this issue Mar 21, 2018 · 1 comment
Open

"prequ add" #25

frwickst opened this issue Mar 21, 2018 · 1 comment

Comments

@frwickst
Copy link

frwickst commented Mar 21, 2018

Add a package to setup.cfg.

Would work like yarn in the sense that when prequ add is being ran the package is added to setup.cfg/requirements files and be installed. By default the packages should be added under the requirements section of the settings, but there should be a flag that can be set for selecting a specific requirements label.

Example:

$ cat setup.cfg
[prequ]
requirements =
    Django

$ prequ add pytest-django

$ cat setup.cfg
[prequ]
requirements =
    Django
    pytest-django

Arguments:
-l --label : Specifies the requirement file label.
Example: prequ add -l dev pytest-django would add pytest-django under requirements-dev

-a --only-add : Only adds the package to setup.cfg and updates the requirements files

Edit: Added arguments and better explanation of how the adding should work :)

@suutari-ai
Copy link
Collaborator

Thanks!

I think it should also update the generated txt file and install the new package (with its requirements) too.

There should also be a flag for selecting the "label", e.g. "dev" or "test".

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