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

Add env var for --non-interactive flag #547

Merged
merged 2 commits into from
Nov 23, 2019
Merged

Add env var for --non-interactive flag #547

merged 2 commits into from
Nov 23, 2019

Conversation

sco1
Copy link
Contributor

@sco1 sco1 commented Nov 20, 2019

Per review comments in #489, this PR adds support for specifying the --non-interactive flag via a TWINE_NON_INTERACTIVE environment variable.

Opening this up as a draft for comments & also to ask a question on testing: Is it overkill to add testing for argparse's parsing of the env var as part of Twine?

Change --non-interactive action to utils.EnvironmentDefault to support specification as an env var
@jaraco
Copy link
Member

jaraco commented Nov 21, 2019

It's definitely overkill to add testing for argparse here. I'd just follow whatever pattern is already used for the other options with environment variables. If they're not tested, then this one doesn't need to be either... and even then, it's probably not needed. I'm happy to accept this as-is. Could you add a changelog entry though?

@sco1
Copy link
Contributor Author

sco1 commented Nov 21, 2019

Doesn't seem like they are, so will update the changelog & open up. Thanks!

Fixed double colons in recent 3.0 entries
@sco1 sco1 marked this pull request as ready for review November 22, 2019 03:05
@sco1
Copy link
Contributor Author

sco1 commented Nov 22, 2019

Updated the changelog with this PR & retroactively added in #489. Also fixed a couple of the recent entries that were rendering with double colons.

@jaraco jaraco merged commit 16d7dc6 into pypa:master Nov 23, 2019
@jaraco
Copy link
Member

jaraco commented Nov 23, 2019

Released as 3.1.0.

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

Successfully merging this pull request may close these issues.

4 participants