From 2da37bae48794eceb51ab7607a339554c0dc60e4 Mon Sep 17 00:00:00 2001 From: Iaroslav Zeigerman Date: Mon, 9 Dec 2019 07:55:11 -0800 Subject: [PATCH] Split tests into different builds on Travis. Drop Python 3.4 support (#125) * Split tests into different builds on Travis * Remove Python 3.4 support from setup.py --- .travis.yml | 20 +++++--------------- README.md | 2 +- setup.py | 3 +-- 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index e5e22034..05aef225 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ dist: xenial language: python python: - - 3.4 - 3.5 - 3.6 - 3.7 @@ -16,18 +15,9 @@ before_install: install: - pip install -r requirements-test.txt -script: - - flake8 . +env: + - RUN_CMD="flake8 . && pytest -v tests/ --cov=m2cgen/ --ignore=tests/e2e/ && coveralls" + - RUN_CMD="python setup.py install && rm -rfd m2cgen/ && pytest -v -m 'c or python or java or go or javascript' tests/e2e/" + - RUN_CMD="python setup.py install && rm -rfd m2cgen/ && pytest -v -m 'c_sharp or visual_basic' tests/e2e/" - # Since we develop a library, we want to make sure that it properly runs - # after installation. We already ran into an issue when some files were - # forgotten to be included in package_data and it was not caught by tests. - - # So first we run unit tests against raw source code and report coverage. - - pytest -v tests/ --cov=m2cgen/ --ignore=tests/e2e/ - - coveralls - - # Then we install it as a library, remove source code and run e2e tests. - - python setup.py install - - rm -rfd m2cgen/ - - pytest -v tests/e2e/ +script: "eval $RUN_CMD" diff --git a/README.md b/README.md index eb09467b..f5fa28da 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ * [FAQ](#faq) ## Installation -Supported Python version is >= **3.4**. +Supported Python version is >= **3.5**. ``` pip install m2cgen ``` diff --git a/setup.py b/setup.py index 33a21d22..a542c4c4 100644 --- a/setup.py +++ b/setup.py @@ -25,14 +25,13 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", ], keywords="sklearn ml code-generation", - python_requires=">=3.4", + python_requires=">=3.5", install_requires=[ "numpy", "scipy",