From 06d64e4fe9d66c431b9a47e8529970624248e526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Vecsei?= Date: Sat, 17 Oct 2020 12:13:02 +0200 Subject: [PATCH] Requirements added (#19) * requirements.txt added * setup is using requirements.txt --- README.md | 6 +++--- requirements.txt | 4 ++++ setup.py | 8 +++++++- 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 requirements.txt diff --git a/README.md b/README.md index 0cda346..47681ed 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ Easy to use **multi object tracking** package based on colors :art: pip install color-tracker ``` -You will need the following packages: -- OpenCV3 (`pip install opencv-python`) -- Numpy (`pip install numpy`) +``` +pip install git+https://github.com/gaborvecsei/Color-Tracker.git +``` ## Object Tracker diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..1de63bf --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +opencv-python +numpy +scipy +imageio diff --git a/setup.py b/setup.py index 270cd9b..cdcd882 100644 --- a/setup.py +++ b/setup.py @@ -16,14 +16,19 @@ from setuptools import setup, find_packages +VERSION = '0.1.1' + here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() +with open(path.join(here, 'requirements.txt')) as f: + requirements = f.read().splitlines() + setup( name='color_tracker', - version='0.0.4', + version=VERSION, description='Easy to use color tracking package for object tracking based on colors', long_description=long_description, long_description_content_type='text/markdown', @@ -40,5 +45,6 @@ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3'], keywords='color tracker vecsei gaborvecsei color_tracker', + install_requires=requirements, packages=find_packages(), )