From 88b7e2b1209767643fa7dcdb601b43e82237330c Mon Sep 17 00:00:00 2001 From: VarMonke Date: Sat, 30 Apr 2022 20:41:44 +0530 Subject: [PATCH] fix setup --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8cc0fff..a73330f 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,12 @@ import re +from pathlib import Path from setuptools import setup with open('requirements.txt') as f: requirements = f.read().splitlines() -with open('github/__init__.py') as f: +path = Path('github/__init__.py') +with open(path) as f: version = re.search(r'\d[.]\d[.]\d', f.read()).group(1) packages = [