Skip to content

Commit

Permalink
Split tests into different builds on Travis. Drop Python 3.4 support (#…
Browse files Browse the repository at this point in the history
…125)

* Split tests into different builds on Travis
* Remove Python 3.4 support from setup.py
  • Loading branch information
izeigerman committed Dec 9, 2019
1 parent b8e4fac commit 2da37ba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
20 changes: 5 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ dist: xenial

language: python
python:
- 3.4
- 3.5
- 3.6
- 3.7
Expand All @@ -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"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* [FAQ](#faq)

## Installation
Supported Python version is >= **3.4**.
Supported Python version is >= **3.5**.
```
pip install m2cgen
```
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2da37ba

Please sign in to comment.