From b15c89b6c886234e7b84336d68234e993bf1b6d4 Mon Sep 17 00:00:00 2001 From: bgArray <474037765@qq.com> Date: Wed, 19 Apr 2023 21:17:51 +0800 Subject: [PATCH] update 2023/4/19 pypi update & v0.4.0 update --- Musicreater/__init__.py | 2 +- clean_update.py | 15 +++++++++++++++ upload.bat | 3 ++- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 clean_update.py diff --git a/Musicreater/__init__.py b/Musicreater/__init__.py index 6473b31..9fa1c9c 100644 --- a/Musicreater/__init__.py +++ b/Musicreater/__init__.py @@ -19,7 +19,7 @@ Terms & Conditions: ../License.md from .main import * -__version__ = "0.3.2" +__version__ = "0.4.0" __all__ = [] __author__ = (("金羿", "Eilles Wan"), ("诸葛亮与八卦阵", "bgArray")) diff --git a/clean_update.py b/clean_update.py new file mode 100644 index 0000000..aa25e15 --- /dev/null +++ b/clean_update.py @@ -0,0 +1,15 @@ +import shutil +import os + + +# find the full path of .egg-info folder +egg_info = [i for i in os.listdir() if i.endswith(".egg-info")][0] +print(egg_info) + +# remove build, dist, logs, TrimLog.egg-info folders +shutil.rmtree("build") +shutil.rmtree("dist") +shutil.rmtree(egg_info) +shutil.rmtree("logs") + +print("Cleaned up!") diff --git a/upload.bat b/upload.bat index 52b1d53..75ac19a 100644 --- a/upload.bat +++ b/upload.bat @@ -1,2 +1,3 @@ python setup.py sdist bdist_wheel -python -m twine upload dist/* \ No newline at end of file +python -m twine upload dist/* +python clean_update.py