From 2dbf47642c4eea56d4c69eee2944aa671bb8740d Mon Sep 17 00:00:00 2001 From: jingle1267 Date: Fri, 22 Nov 2024 18:01:52 +0800 Subject: [PATCH] feat: update publish version. Modify delete file unexist bug. --- example/Demo.py | 2 +- md2xmind/Md2Xmind.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/Demo.py b/example/Demo.py index 7dc700d..5048093 100644 --- a/example/Demo.py +++ b/example/Demo.py @@ -14,7 +14,7 @@ def main(): # print('example main') file_path = os.path.abspath(os.path.join(os.getcwd(), 'test2.md')) - md2xmind.start_trans_file(file_path, 'test2', 'test22') + md2xmind.start_trans_file(file_path, 'test3', 'test3') with open(file_path, 'r', encoding='utf-8') as f: md_content = f.read() diff --git a/md2xmind/Md2Xmind.py b/md2xmind/Md2Xmind.py index 8941502..cb3b6bb 100644 --- a/md2xmind/Md2Xmind.py +++ b/md2xmind/Md2Xmind.py @@ -66,7 +66,7 @@ def main(md_content, target_file_name, topic_name): # zipf.write('manifest.xml', 'manifest.xml') # 删除临时的 manifest.json 文件 - os.remove('manifest.json') + os.remove('manifest.xml') # # # 创建 manifest.xml 文件 # with open('manifest.json', 'w', encoding='utf-8') as f: diff --git a/setup.py b/setup.py index 137d61e..a98b555 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ EMAIL = 'jingle1267@163.com' AUTHOR = 'jingle1267' REQUIRES_PYTHON = '>=3.6.0' -VERSION = '1.2.2' +VERSION = '1.2.3' # What packages are required for this module to be executed? REQUIRED = [