Skip to content

Commit

Permalink
Routine Update
Browse files Browse the repository at this point in the history
Routine Update
  • Loading branch information
huangwb8 committed Nov 5, 2023
1 parent 8d9aa5f commit b3cd54f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions m2w/up.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,12 @@ async def up(
verbose=verbose,
)
if os.path.exists(path_legacy_json + "_temporary_latest"):
os.remove(path_legacy_json)
os.rename(path_legacy_json + "_temporary_latest", path_legacy_json)
shutil.copyfile(path_legacy_json + "_temporary_latest", path_legacy_json)
break
except Exception as e:
print("OOPS, the REST API mode failed!")
if os.path.exists(path_legacy_json + "_temporary_old"):
os.remove(path_legacy_json)
os.rename(
path_legacy_json + "_temporary_old", path_legacy_json
)
shutil.copyfile(path_legacy_json + "_temporary_old", path_legacy_json)
if retry < max_retries - 1:
print("Retrying...")
continue
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
+ 输入"pip install twine"来安装twine工具。 必要时可更新工具包:pip install --upgrade twine setuptools wheel
+ 使用"python setup.py sdist"命令来生成项目的源代码包。 如果要测试该包,可运行类似命令: python setup.py sdist; pip install .\dist\m2w-2.5.9.tar.gz
+ 使用"python setup.py sdist"命令来生成项目的源代码包。 如果要测试该包,可运行类似命令: python setup.py sdist; pip install .\dist\m2w-2.5.10.tar.gz
+ 使用"python setup.py bdist_wheel"命令来生成项目的长描述。
+ 先完成Github仓库的更新和加tag。最后再上传至PyPi。输入"twine upload dist/*2.5.9* --verbose"来上传项目的源代码包。
+ 先完成Github仓库的更新和加tag。最后再上传至PyPi。输入"twine upload dist/*2.5.10* --verbose"来上传项目的源代码包。
+ 在上传过程中,你需要输入你在PyPi上注册的用户名和密码。
Expand All @@ -45,7 +45,7 @@
"""

VERSION = "2.5.9"
VERSION = "2.5.10"

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
Expand Down

0 comments on commit b3cd54f

Please sign in to comment.