Skip to content

Conversation

@gaborbernat
Copy link
Member

@gaborbernat gaborbernat commented Sep 1, 2020

Resolves #1667.

Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
@gaborbernat gaborbernat merged commit 8a25fa6 into tox-dev:master Sep 1, 2020
@gaborbernat gaborbernat deleted the env branch September 1, 2020 15:48
@gaborbernat
Copy link
Member Author

Released via https://pypi.org/project/tox/3.20.0/


Support for comments. Lines starting with ``#`` are ignored.

Support for environment files. Lines starting with the ``file|`` contain path to a environment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaborbernat any specific reason you implemented it with a prefix vs a substitution? If I were to design this, I'd probably go for {dotenv:file_path} there... I'm not judging, it just seems untypical for tox's UX.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't want to worry about conflicts with conditional factors 🤷‍♂️

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it's not really substitution at all happening here, but different load mechanism. Substitution implies we just string replace that expression with content of the file, but actually here we never do that. Conceptually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support environment files within setenv

2 participants