-
-
Notifications
You must be signed in to change notification settings - Fork 619
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
Create dev_requirements.txt from extras_require section of setup.cfg file using pip-compile #1464
Comments
After digging a bit more, I found my answer in another issue: #625 (comment) Thanks for maintaining this cool package! |
I just want to add that personally I prefer a separate file because it usually describes some env, not the package itself. So it doesn't really belong in the package metadata, nor is useful to the final consumers... But yeah, this question is considered controversial in the packaging community and the opinions are polarized. |
Yes, I see your point. Nevertheless: is there also an option to pass multiple envs/sections using Let's say I have:
How can I add both sections? |
|
You are my heroes of the day. Thanks a lot for your help and this wonderful package! |
I think having multiple options should be enough: |
What's the problem this feature will solve?
NOTE: This is pasted and adapted from my question on stackoverflow because I am not sure if this feature already exists: https://stackoverflow.com/questions/68712892/how-to-create-dev-requirements-txt-from-extras-require-section-of-setup-cfg
I use pip-tools to manage my dependencies and environments which perfectly generates a
requirements.txt
file for my package that consists of asetup.py
that looks like this:and a
setup.cfg
like this:Running
$ pip-compile --index-url https://foo@[email protected]/api/v4/projects/236/packages/pypi/simple --no-header --allow-unsafe
yields my package requirements:But this only includes all the packages from the
install_requires
section of mysetup.cfg
file and not the requirements fromextras_require
. It should work with adev_requirements.in
file as described here but I would rather only use one configuration file.Describe the solution you'd like
Create a separate
dev_requirements.txt
from thisextras_require
section of mysetup.cfg
file usingpip-compile
without having to create adev_requirements.in
file.Alternative Solutions
I am also open for other solutions to achieve my goal.
Additional context
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: