Skip to content

Commit

Permalink
Use twine environment variables if set (#3353)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwb authored May 21, 2024
1 parent ff985ae commit d50be7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reflex/custom_components/custom_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d50be7e

Please sign in to comment.