Skip to content

Commit

Permalink
修改pypi使用的版本号为version文件内的
Browse files Browse the repository at this point in the history
  • Loading branch information
sc-bin committed May 14, 2024
1 parent d3a82a5 commit 1340570
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
description="A module to control GPIO",
Expand Down
1 change: 1 addition & 0 deletions version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2

0 comments on commit 1340570

Please sign in to comment.