Skip to content

Commit

Permalink
ensure env variables are popped out
Browse files Browse the repository at this point in the history
  • Loading branch information
AHReccese committed Feb 3, 2024
1 parent b9ff69f commit 258ec37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reserver/reserver_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ def upload_to_pypi(self, package_name):
error = "Given package name is too similar to an existing project in PyPI."
break

# todo remove env variable
if "TWINE_USERNAME" in environ:
environ.pop("TWINE_USERNAME")
if "TWINE_PASSWORD" in environ:
environ.pop("TWINE_PASSWORD")

remove(generated_setup_file_path)
rmtree(generated_package_folder)
rmtree(generated_egginfo_file_path)
Expand Down

0 comments on commit 258ec37

Please sign in to comment.