Skip to content

Commit

Permalink
Read requirements from requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose committed Apr 17, 2018
1 parent 2b00719 commit bf889fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
requests==2.9.1
Jinja2==2.10
Flask==0.12.2
flask-restplus==0.10.1
marshmallow==2.15.0
pyyaml==3.12
uwsgi==2.0.16
14 changes: 5 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from setuptools import setup, find_packages


with open('requirements.txt') as req:
requirements = req.read().splitlines()


with open('README.md') as f:
try:
import pypandoc
Expand All @@ -18,15 +22,7 @@
description='Project that redirects Prometheus Alert Manager '
'notifications to Microsoft Teams',
long_description=readme,
install_requires=[
"requests == 2.9.1",
"Jinja2 == 2.10",
"Flask==0.12.2",
"flask-restplus==0.10.1",
"marshmallow==2.15.0",
"pyyaml==3.12",
"uwsgi==2.0.16",
],
install_requires=requirements,
setup_requires=[
'flake8',
'pypandoc'
Expand Down

0 comments on commit bf889fe

Please sign in to comment.