Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
Update the env when calling twine, don't override it
Browse files Browse the repository at this point in the history
Seems to not inherit the environment otherwise, wiping out `PATH` and friends.
  • Loading branch information
brettcannon authored Apr 11, 2020
1 parent 663219b commit fa0628d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release_often/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def commit(new_version):


def upload(output_dir, pypi_token):
env = {"TWINE_USERNAME": "__token__", "TWINE_PASSWORD": pypi_token}
env = os.environ.copy()
env.update({"TWINE_USERNAME": "__token__", "TWINE_PASSWORD": pypi_token})
subprocess.run(
["twine", "upload", "--non-interactive", f"{output_dir}/*"], check=True, env=env
)
Expand Down

0 comments on commit fa0628d

Please sign in to comment.