From 88d8c4fcd2690d3140ff5a8efc88e4c0ec132f3e Mon Sep 17 00:00:00 2001 From: Yashwant Date: Wed, 3 Jul 2019 20:37:12 +0530 Subject: [PATCH 1/4] Resolve Some python-test --- src/mlpack/bindings/python/setup.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/bindings/python/setup.py.in b/src/mlpack/bindings/python/setup.py.in index 2263a7041d..b04f60c2f0 100644 --- a/src/mlpack/bindings/python/setup.py.in +++ b/src/mlpack/bindings/python/setup.py.in @@ -108,5 +108,5 @@ setup(name='mlpack', cmdclass={ 'build_ext': build_ext }, ext_modules = modules, setup_requires=['cython', 'pytest-runner'], - tests_require=['pytest'], + tests_require=['pytest', 'more-itertools>=4.0.0,<6.0.0;python_version<="2.7"'], zip_safe = False) From f55e1df4acc6b46bfd86663bc227b13da2fc3678 Mon Sep 17 00:00:00 2001 From: Yashwant Date: Wed, 3 Jul 2019 22:04:58 +0530 Subject: [PATCH 2/4] Add more functionality --- src/mlpack/bindings/python/setup.py.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mlpack/bindings/python/setup.py.in b/src/mlpack/bindings/python/setup.py.in index b04f60c2f0..c88069332c 100644 --- a/src/mlpack/bindings/python/setup.py.in +++ b/src/mlpack/bindings/python/setup.py.in @@ -108,5 +108,7 @@ setup(name='mlpack', cmdclass={ 'build_ext': build_ext }, ext_modules = modules, setup_requires=['cython', 'pytest-runner'], - tests_require=['pytest', 'more-itertools>=4.0.0,<6.0.0;python_version<="2.7"'], + tests_require=['pytest>4.6;python_version>"2.7"', 'pytest<=4.6;python_version<="2.7"', + 'more-itertools>=4.0.0,<6.0.0;python_version<="2.7"', + 'more-itertools>=4.0.0;python_version>"2.7"'], zip_safe = False) From 49cddef1021d85b6f82837dec30eef315eec78e0 Mon Sep 17 00:00:00 2001 From: Yashwant Singh Parihar Date: Fri, 5 Jul 2019 08:47:19 +0530 Subject: [PATCH 3/4] Udpate versions for py-test --- src/mlpack/bindings/python/setup.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/bindings/python/setup.py.in b/src/mlpack/bindings/python/setup.py.in index c88069332c..119894c3ac 100644 --- a/src/mlpack/bindings/python/setup.py.in +++ b/src/mlpack/bindings/python/setup.py.in @@ -108,7 +108,7 @@ setup(name='mlpack', cmdclass={ 'build_ext': build_ext }, ext_modules = modules, setup_requires=['cython', 'pytest-runner'], - tests_require=['pytest>4.6;python_version>"2.7"', 'pytest<=4.6;python_version<="2.7"', + tests_require=['pytest>3;python_version>"3.4"', 'pytest>3,<=4.6;python_version<="3.4"' 'more-itertools>=4.0.0,<6.0.0;python_version<="2.7"', 'more-itertools>=4.0.0;python_version>"2.7"'], zip_safe = False) From 99a7007505792702cfd16a9b1c272b024c8273b3 Mon Sep 17 00:00:00 2001 From: Yashwant Singh Parihar Date: Fri, 5 Jul 2019 09:18:22 +0530 Subject: [PATCH 4/4] Sorry for the comma --- src/mlpack/bindings/python/setup.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/bindings/python/setup.py.in b/src/mlpack/bindings/python/setup.py.in index 119894c3ac..475afd85f1 100644 --- a/src/mlpack/bindings/python/setup.py.in +++ b/src/mlpack/bindings/python/setup.py.in @@ -108,7 +108,7 @@ setup(name='mlpack', cmdclass={ 'build_ext': build_ext }, ext_modules = modules, setup_requires=['cython', 'pytest-runner'], - tests_require=['pytest>3;python_version>"3.4"', 'pytest>3,<=4.6;python_version<="3.4"' + tests_require=['pytest>3;python_version>"3.4"', 'pytest>3,<=4.6;python_version<="3.4"', 'more-itertools>=4.0.0,<6.0.0;python_version<="2.7"', 'more-itertools>=4.0.0;python_version>"2.7"'], zip_safe = False)