remove makefile and add test-requirements
This commit is contained in:
parent
be9d715150
commit
91dfe343ed
4 changed files with 9 additions and 13 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
include LICENSE
|
include LICENSE
|
||||||
include requirements.txt
|
include requirements.txt
|
||||||
|
include test-requirements.txt
|
||||||
include README.md
|
include README.md
|
||||||
|
|
|
||||||
13
Makefile
13
Makefile
|
|
@ -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
|
|
||||||
5
setup.py
5
setup.py
|
|
@ -11,6 +11,7 @@ requirements =[
|
||||||
"websocket-client >= 0.32.0, < 1"
|
"websocket-client >= 0.32.0, < 1"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def read(*parts):
|
def read(*parts):
|
||||||
path = os.path.join(os.path.dirname(__file__), *parts)
|
path = os.path.join(os.path.dirname(__file__), *parts)
|
||||||
with codecs.open(path, encoding='utf-8') as fobj:
|
with codecs.open(path, encoding='utf-8') as fobj:
|
||||||
|
|
@ -25,12 +26,16 @@ def find_version(*file_paths):
|
||||||
return version_match.group(1)
|
return version_match.group(1)
|
||||||
raise RuntimeError('Unable to find version string.')
|
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(
|
setup(
|
||||||
name="python-dockercloud",
|
name="python-dockercloud",
|
||||||
version=find_version('dockercloud', '__init__.py'),
|
version=find_version('dockercloud', '__init__.py'),
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
|
tests_require=test_requirements,
|
||||||
provides=['docker'],
|
provides=['docker'],
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
author="Docker, Inc.",
|
author="Docker, Inc.",
|
||||||
|
|
|
||||||
3
test-requirements.txt
Normal file
3
test-requirements.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
mock==1.0.1
|
||||||
|
coverage==4.0.3
|
||||||
|
nose==1.3.7
|
||||||
Loading…
Add table
Add a link
Reference in a new issue