From d50be7eab1470a385e0598504507d94336115b9e Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Tue, 21 May 2024 14:43:49 -0700 Subject: [PATCH] Use twine environment variables if set (#3353) --- reflex/custom_components/custom_components.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reflex/custom_components/custom_components.py b/reflex/custom_components/custom_components.py index 7ee24ab0c7..a47de6febf 100644 --- a/reflex/custom_components/custom_components.py +++ b/reflex/custom_components/custom_components.py @@ -616,15 +616,17 @@ def publish( help="The API token to use for authentication on python package repository. If token is provided, no username/password should be provided at the same time", ), username: Optional[str] = typer.Option( - None, + os.getenv("TWINE_USERNAME"), "-u", "--username", + show_default="TWINE_USERNAME environment variable value if set", help="The username to use for authentication on python package repository. Username and password must both be provided.", ), password: Optional[str] = typer.Option( - None, + os.getenv("TWINE_PASSWORD"), "-p", "--password", + show_default="TWINE_PASSWORD environment variable value if set", help="The password to use for authentication on python package repository. Username and password must both be provided.", ), build: bool = typer.Option(