mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-02-12 13:50:28 +08:00
Merge branch 'master' of https://gitee.com/EillesWan/Musicreater
This commit is contained in:
commit
799b9b664d
30
clean_update.py
Normal file
30
clean_update.py
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
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
|
||||||
|
try:
|
||||||
|
shutil.rmtree("build")
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
shutil.rmtree("dist")
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
shutil.rmtree(egg_info)
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
shutil.rmtree("logs")
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
print("Cleaned up!")
|
@ -1,2 +1,3 @@
|
|||||||
python setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
python -m twine upload dist/*
|
python -m twine upload dist/*
|
||||||
|
python clean_update.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user