diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index 883b410..e315e8c 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.60 +version = 0.1.61 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan.egg-info/PKG-INFO b/PyPI/src/guan.egg-info/PKG-INFO index c205acb..33e5e83 100644 --- a/PyPI/src/guan.egg-info/PKG-INFO +++ b/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: guan -Version: 0.1.60 +Version: 0.1.61 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/PyPI/src/guan/basic_functions.py b/PyPI/src/guan/basic_functions.py index 0a864c0..e87ff86 100644 --- a/PyPI/src/guan/basic_functions.py +++ b/PyPI/src/guan/basic_functions.py @@ -6,11 +6,11 @@ import guan def test(): import guan current_version = guan.get_current_version('guan') - print(f'Congratulations on successfully installing Guan package! The installed version is guan-{current_version}.') - print('\nChecking for the latest version of Guan package.') + print(f'\nCongratulations on successfully installing Guan package! The installed version is guan-{current_version}.') + print('\nChecking for the latest version of Guan package.\n') guan.notification_of_upgrade(timeout=5) - print('Check completed.') - print('\nTest completed.') + print('\nCheck completed.') + print('\nTest completed.\n') # 泡利矩阵 @guan.function_decorator diff --git a/PyPI/src/guan/others.py b/PyPI/src/guan/others.py index a0254f9..a911061 100644 --- a/PyPI/src/guan/others.py +++ b/PyPI/src/guan/others.py @@ -27,7 +27,6 @@ def convert_wordpress_xml_to_markdown(xml_file='./a.xml', convert_content=1, rep tree = ET.parse(xml_file) root = tree.getroot() for item in root.findall('.//item'): - print(item) title = item.find('title').text content = item.find('.//content:encoded', namespaces={'content': 'http://purl.org/rss/1.0/modules/content/'}).text if convert_content == 1: @@ -1108,7 +1107,7 @@ def notification_of_upgrade(timeout=2): current_version = get_current_version('guan') if latest_version != None and current_version != None: if latest_version != current_version: - print('提示:您当前使用的版本是 guan-'+current_version+',目前已经有最新版本 guan-'+latest_version+'。您可以通过以下命令对软件包进行升级:pip install --upgrade guan -i https://pypi.python.org/simple 或 pip install --upgrade guan') + print('升级提示:您当前使用的版本是 guan-'+current_version+',目前已经有最新版本 guan-'+latest_version+'。您可以通过以下命令对软件包进行升级:pip install --upgrade guan -i https://pypi.python.org/simple 或 pip install --upgrade guan') except: pass import random