From 5013deff7733fd1f18bf5df69bcb9e107d5598a4 Mon Sep 17 00:00:00 2001 From: VarMonke Date: Sat, 30 Apr 2022 22:51:58 +0530 Subject: [PATCH] update version --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index a73330f..05e60c2 100644 --- a/setup.py +++ b/setup.py @@ -5,9 +5,8 @@ from setuptools import setup with open('requirements.txt') as f: requirements = f.read().splitlines() -path = Path('github/__init__.py') -with open(path) as f: - version = re.search(r'\d[.]\d[.]\d', f.read()).group(1) +path = Path(__file__).parent / "github/__init__.py" +version = re.search(r'\d[.]\d[.]\d',path.read_text()).group() packages = [ 'github',