From 134057001620ff3d17d937aec5a68dd403ebff22 Mon Sep 17 00:00:00 2001 From: sc-bin <3335447573@qq.com> Date: Tue, 14 May 2024 15:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9pypi=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E7=89=88=E6=9C=AC=E5=8F=B7=E4=B8=BAversion=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=86=85=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 5 +++-- version | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 version diff --git a/setup.py b/setup.py index f18c5db..8196c9a 100755 --- a/setup.py +++ b/setup.py @@ -12,10 +12,11 @@ pinctrl_files = glob.glob('libgpio/pinctrl*.c') softpwm_files = glob.glob('libgpio/*.c') - +with open('version', 'r') as file: + version_str = file.read().strip() setup( name="gpioc", - version="1.0.1", + version=version_str, author="sc-bin", author_email="3335447573@qq.com", description="A module to control GPIO", diff --git a/version b/version new file mode 100644 index 0000000..2f45361 --- /dev/null +++ b/version @@ -0,0 +1 @@ +0.2 \ No newline at end of file