This commit is contained in:
2021-11-05 10:33:55 +02:00
parent f11c7d65fa
commit 32ebfb7dee
4 changed files with 13 additions and 12 deletions

View File

@@ -1,12 +1,14 @@
from distutils.core import setup
import os
def version_reader(path):
for line in open(path,"rt").read(1024).split("\n"):
if line.startswith("VERSION"):
return line.split("=")[1].strip().replace('"',"")
version = version_reader(os.path.join("tsmark","__init__.py"))
def version_reader(path):
for line in open(path, "rt").read(1024).split("\n"):
if line.startswith("VERSION"):
return line.split("=")[1].strip().replace('"', "")
version = version_reader(os.path.join("tsmark", "__init__.py"))
setup(
name="tsmark",
packages=["tsmark"],
@@ -20,7 +22,5 @@ setup(
"tsmark=tsmark:main",
],
},
install_requires = [
'opencv-python==4.5.3.56'
]
install_requires=["opencv-python==4.5.3.56"],
)