remove makefile and add test-requirements

This commit is contained in:
tifayuki 2016-04-19 19:03:40 +02:00
commit 91dfe343ed
4 changed files with 9 additions and 13 deletions

View file

@ -1,3 +1,4 @@
include LICENSE
include requirements.txt
include test-requirements.txt
include README.md

View file

@ -1,13 +0,0 @@
test:prepare
venv/bin/python setup.py test
clean:
rm -rf venv build dist *.egg-info
find . -name '*.pyc' -delete
prepare:clean
set -ex
virtualenv venv
venv/bin/pip install mock
venv/bin/pip install -r requirements.txt
venv/bin/python setup.py install

View file

@ -11,6 +11,7 @@ requirements =[
"websocket-client >= 0.32.0, < 1"
]
def read(*parts):
path = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(path, encoding='utf-8') as fobj:
@ -25,12 +26,16 @@ def find_version(*file_paths):
return version_match.group(1)
raise RuntimeError('Unable to find version string.')
with open('./test-requirements.txt') as test_reqs_txt:
test_requirements = [line for line in test_reqs_txt]
setup(
name="python-dockercloud",
version=find_version('dockercloud', '__init__.py'),
packages=find_packages(),
install_requires=requirements,
tests_require=test_requirements,
provides=['docker'],
include_package_data=True,
author="Docker, Inc.",

3
test-requirements.txt Normal file
View file

@ -0,0 +1,3 @@
mock==1.0.1
coverage==4.0.3
nose==1.3.7