Skip to content

Commit 6ea4534

Browse files
author
Anze
committed
Include requirements in setup.py
1 parent 31c2a18 commit 6ea4534

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
import os
12
from setuptools import setup, find_packages
23

4+
requirements_txt = os.path.dirname(os.path.realpath(__file__)) + '/requirements.txt'
5+
with open(requirements_txt, "rt") as f:
6+
install_requires = f.read().splitlines()[1:]
7+
38
setup(name='grafoleancollector',
49
version='@@VERSION@@',
510
url='https://gitlab.com/grafolean/grafolean-collector',
@@ -9,4 +14,5 @@
914
description='Common utilities for creating (controlled) collectors for Grafolean',
1015
packages=find_packages(exclude=['tests']),
1116
long_description=open('README.md').read(),
17+
install_requires=install_requires,
1218
zip_safe=False)

0 commit comments

Comments
 (0)