From dc21601f5f3d17a790f5695568da9ad93cb74370 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Tue, 7 Nov 2023 17:55:43 +0800 Subject: [PATCH] =?UTF-8?q?0.1.23=20=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PyPI/setup.cfg | 2 +- PyPI/src/guan.egg-info/PKG-INFO | 2 +- PyPI/src/guan/__init__.py | 4 ---- PyPI/src/guan/data_processing.py | 6 +++++- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index 79344fe..42aa687 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.22 +version = 0.1.23 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 5580b16..5056a0f 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.22 +Version: 0.1.23 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/PyPI/src/guan/__init__.py b/PyPI/src/guan/__init__.py index 12b0bda..6aff95f 100644 --- a/PyPI/src/guan/__init__.py +++ b/PyPI/src/guan/__init__.py @@ -13,7 +13,3 @@ from .plot_figures import * from .read_and_write import * from .file_processing import * from .data_processing import * - -import guan -guan.notification_of_upgrade() -global_variable_of_first_guan_package_calling = True \ No newline at end of file diff --git a/PyPI/src/guan/data_processing.py b/PyPI/src/guan/data_processing.py index b750e01..788bb44 100644 --- a/PyPI/src/guan/data_processing.py +++ b/PyPI/src/guan/data_processing.py @@ -384,6 +384,7 @@ def get_mac_address(): return mac_address # Guan软件包的使用统计(不涉及到用户的个人数据) +global_variable_of_first_guan_package_calling = True def statistics_of_guan_package(): global global_variable_of_first_guan_package_calling if global_variable_of_first_guan_package_calling == True: @@ -444,4 +445,7 @@ def notification_of_upgrade(timeout=2): if latest_version != current_version: print('提示:您当前使用的版本是 guan-'+current_version+',目前已经有最新版本 guan-'+latest_version+'。您可以通过以下命令对软件包进行升级:pip install --upgrade guan') except: - pass \ No newline at end of file + pass + +import guan +guan.notification_of_upgrade() \ No newline at end of file