From 3eb7aaee9c25c4d778fab7216030120d23323bfd Mon Sep 17 00:00:00 2001 From: William de Vazelhes Date: Fri, 27 Apr 2018 15:49:36 +0200 Subject: [PATCH 1/2] use pytest rather than unittest --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 378cc5f5..5daa20b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ before_install: - pip install --upgrade pip - pip install wheel - pip install numpy scipy scikit-learn -script: python setup.py test +script: pytest test From f8dcf864e6cb0ba3914b4ff772baf4f1698eab05 Mon Sep 17 00:00:00 2001 From: William de Vazelhes Date: Fri, 27 Apr 2018 16:31:51 +0200 Subject: [PATCH 2/2] update README.txt --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 07a1a497..c1389b55 100644 --- a/README.rst +++ b/README.rst @@ -29,7 +29,8 @@ Run ``pip install metric-learn`` to download and install from PyPI. Run ``python setup.py install`` for default installation. -Run ``python setup.py test`` to run all tests. +Run ``pytest test`` to run all tests (you will need to have the ``pytest`` +package installed). **Usage**