From 258ec3707c9c78098717b78ef91043c373c549e7 Mon Sep 17 00:00:00 2001 From: AHReccese Date: Sat, 3 Feb 2024 12:55:37 +0330 Subject: [PATCH] ensure env variables are popped out --- reserver/reserver_obj.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reserver/reserver_obj.py b/reserver/reserver_obj.py index 3af3b24..b8d52b8 100644 --- a/reserver/reserver_obj.py +++ b/reserver/reserver_obj.py @@ -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)