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