From 318c4e5fb9efb15ba0d5e4b86d0f1ebce17b5209 Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Thu, 31 Mar 2022 13:10:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B9=D0=BC=D0=B8=D0=BD=D0=B3=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index ab7daa0..652db90 100755 --- a/setup.py +++ b/setup.py @@ -14,9 +14,9 @@ # 'setup.py publish' shortcut. if 'publish' in sys.argv: # Only if packages == 1 - for dir in ("./dist", f"{packages[0]}.egg-info"): - if os.path.isdir(dir): - shutil.rmtree(dir) + for directory in ("./dist", f"{packages[0]}.egg-info"): + if os.path.isdir(directory): + shutil.rmtree(directory) os.system('python3 -m build') os.system('python3 -m twine upload --repository testpypi dist/*') os.system('python3 -m twine upload --repository pypi dist/*') @@ -53,4 +53,4 @@ 'Source': about['__url__'], }, python_requires=">=3.7", -) \ No newline at end of file +)