You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The requirements.txt format, as described in the pip documentation, includes a proposal for environment variable substitution. However, this functionality is not currently implemented in setuptools.
Describe the solution you'd like
Introduce support in setuptools for substituting environment variables when parsing dependencies from a requirements.txt file. This would enable use cases like the following:
What's the problem this feature will solve?
Setuptools supports dynamically specifying dependencies through
pyproject.toml
using the following syntax:The
requirements.txt
format, as described in the pip documentation, includes a proposal for environment variable substitution. However, this functionality is not currently implemented in setuptools.Describe the solution you'd like
Introduce support in setuptools for substituting environment variables when parsing dependencies from a
requirements.txt
file. This would enable use cases like the following:Define a private dependency in
requirements.txt
:Specify dynamic dependencies in
pyproject.toml
:Set the necessary environment variables before installation:
Run the installation:
pip install .
This feature would be especially beneficial for non-interactive sessions, such as CI/CD pipelines.
Alternative Solutions
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: