0.1.61
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user