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