From 6ea453478adb97c3e61c5adaa799dc2d6f337633 Mon Sep 17 00:00:00 2001 From: Anze Date: Mon, 4 Nov 2019 21:17:07 +0100 Subject: [PATCH] Include requirements in setup.py --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index 9a5bc63..9e0ea86 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,10 @@ +import os from setuptools import setup, find_packages +requirements_txt = os.path.dirname(os.path.realpath(__file__)) + '/requirements.txt' +with open(requirements_txt, "rt") as f: + install_requires = f.read().splitlines()[1:] + setup(name='grafoleancollector', version='@@VERSION@@', url='https://gitlab.com/grafolean/grafolean-collector', @@ -9,4 +14,5 @@ description='Common utilities for creating (controlled) collectors for Grafolean', packages=find_packages(exclude=['tests']), long_description=open('README.md').read(), + install_requires=install_requires, zip_safe=False) \ No newline at end of file