0.1.61
This commit is contained in:
parent
cb06de0cac
commit
11d2d75577
@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
# replace with your username:
|
# replace with your username:
|
||||||
name = guan
|
name = guan
|
||||||
version = 0.1.60
|
version = 0.1.61
|
||||||
author = guanjihuan
|
author = guanjihuan
|
||||||
author_email = guanjihuan@163.com
|
author_email = guanjihuan@163.com
|
||||||
description = An open source python package
|
description = An open source python package
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.1
|
Metadata-Version: 2.1
|
||||||
Name: guan
|
Name: guan
|
||||||
Version: 0.1.60
|
Version: 0.1.61
|
||||||
Summary: An open source python package
|
Summary: An open source python package
|
||||||
Home-page: https://py.guanjihuan.com
|
Home-page: https://py.guanjihuan.com
|
||||||
Author: guanjihuan
|
Author: guanjihuan
|
||||||
|
@ -6,11 +6,11 @@ import guan
|
|||||||
def test():
|
def test():
|
||||||
import guan
|
import guan
|
||||||
current_version = guan.get_current_version('guan')
|
current_version = guan.get_current_version('guan')
|
||||||
print(f'Congratulations on successfully installing Guan package! The installed version is guan-{current_version}.')
|
print(f'\nCongratulations on successfully installing Guan package! The installed version is guan-{current_version}.')
|
||||||
print('\nChecking for the latest version of Guan package.')
|
print('\nChecking for the latest version of Guan package.\n')
|
||||||
guan.notification_of_upgrade(timeout=5)
|
guan.notification_of_upgrade(timeout=5)
|
||||||
print('Check completed.')
|
print('\nCheck completed.')
|
||||||
print('\nTest completed.')
|
print('\nTest completed.\n')
|
||||||
|
|
||||||
# 泡利矩阵
|
# 泡利矩阵
|
||||||
@guan.function_decorator
|
@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)
|
tree = ET.parse(xml_file)
|
||||||
root = tree.getroot()
|
root = tree.getroot()
|
||||||
for item in root.findall('.//item'):
|
for item in root.findall('.//item'):
|
||||||
print(item)
|
|
||||||
title = item.find('title').text
|
title = item.find('title').text
|
||||||
content = item.find('.//content:encoded', namespaces={'content': 'http://purl.org/rss/1.0/modules/content/'}).text
|
content = item.find('.//content:encoded', namespaces={'content': 'http://purl.org/rss/1.0/modules/content/'}).text
|
||||||
if convert_content == 1:
|
if convert_content == 1:
|
||||||
@ -1108,7 +1107,7 @@ def notification_of_upgrade(timeout=2):
|
|||||||
current_version = get_current_version('guan')
|
current_version = get_current_version('guan')
|
||||||
if latest_version != None and current_version != None:
|
if latest_version != None and current_version != None:
|
||||||
if latest_version != current_version:
|
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:
|
except:
|
||||||
pass
|
pass
|
||||||
import random
|
import random
|
||||||
|
Loading…
x
Reference in New Issue
Block a user