Skip to content

Commit

Permalink
fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
circa10a committed Jan 8, 2019
1 parent d2978c6 commit 862893d
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
from setuptools import setup, find_packages

requirements = ['docker',
'schedule',
'prometheus_client',
'requests']

requirements_dev = ['docker',
'schedule',
'prometheus_client',
'requests',
'pytest'
'pytest-cov',
'pytest-mock',
'codecov',
'flake8']


def readme():
with open('./README.md') as f:
return f.read()


def read_reqs(requirements):
try:
with open(requirements) as f:
return f.read().splitlines()
except:
with open('ouroboros-cli/requirements.txt') as f:
return f.read().splitlines()


setup(
name='ouroboros-cli',
version='0.4.2',
Expand All @@ -26,7 +32,7 @@ def read_reqs(requirements):
classifiers=['Programming Language :: Python'],
packages=find_packages(exclude=['doc', 'tests']),
scripts=['ouroboros/ouroboros'],
install_requires=read_reqs(requirements='./requirements.txt'),
tests_require=read_reqs(requirements='./requirements-dev.txt'),
install_requires=requirements,
tests_require=requirements_dev,
python_requires='>=3.0'
)

0 comments on commit 862893d

Please sign in to comment.