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

Requirements files derived from setuptools install_requires extras_requires #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rpanderson
Copy link
Owner

Demonstration of how to use aliases to derive requirements files as alluded to in #1.

  • requirements/default.txt contains ., referring to install_requires in setup.cfg.
  • requirements/<some_extra>.txt contains .[<some_extra>], referring to install_requires and the relevant values in extras_require in setup.cfg.

Development requirements can then be installed using, e.g.:

$ pip install -r requirements/development.txt

Although I'm not sure how that's any different to:

$ pip install -e .[development]

Notes

  • Extras can be combined, e.g. .[development,docs]
  • Unlike explicitly created requirements files, all of the extras include the base requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant