From 7d3ade5aa89d89466db392767e5e23911c56b98c Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Mon, 16 Jul 2018 15:09:48 +0200 Subject: [PATCH] move build dependencies to dedicated files --- .travis.yml | 4 +--- build-requirements-2.6.txt | 8 ++++++++ build-requirements-3.2.txt | 5 +++++ build-requirements.txt | 2 ++ 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 build-requirements-2.6.txt create mode 100644 build-requirements-3.2.txt diff --git a/.travis.yml b/.travis.yml index 9246698e3..d1e9816ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,10 +42,8 @@ before_install: - chmod +x ./cc-test-reporter install: - - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then travis_retry pip install unittest2 'isort<4.3' 'inflect<0.3.1' 'coveralls<1.3.0' 'pyopenssl<18'; fi - - if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then travis_retry pip install 'requests<2.11' 'coverage<4' 'coveralls<1'; else travis_retry pip install 'coverage' 'coveralls'; fi + - if [[ -e build-requirements-${TRAVIS_PYTHON_VERSION}.txt ]]; then travis_retry pip install -r build-requirements-${TRAVIS_PYTHON_VERSION}.txt; else travis_retry pip install -r build-requirements.txt; fi - travis_retry pip install -r requirements.txt - - travis_retry pip install -r build-requirements.txt - | if [[ $TRAVIS_PYTHON_VERSION == '2.6' || $TRAVIS_PYTHON_VERSION == '2.7' ]]; then travis_retry pip install --global-option=build_ext --global-option="-I/usr/include/x86_64-linux-gnu" m2crypto; diff --git a/build-requirements-2.6.txt b/build-requirements-2.6.txt new file mode 100644 index 000000000..2d8a56b48 --- /dev/null +++ b/build-requirements-2.6.txt @@ -0,0 +1,8 @@ +isort<4.3 +inflect<0.3.1 +pyopenssl<18 +unittest2 +coverage +coveralls<1.3.0 +pylint +diff_cover diff --git a/build-requirements-3.2.txt b/build-requirements-3.2.txt new file mode 100644 index 000000000..9f86adb7f --- /dev/null +++ b/build-requirements-3.2.txt @@ -0,0 +1,5 @@ +requests<2.11 +coverage<4 +coveralls<1 +pylint +diff_cover diff --git a/build-requirements.txt b/build-requirements.txt index 3daf0efe4..cb5403651 100644 --- a/build-requirements.txt +++ b/build-requirements.txt @@ -1,2 +1,4 @@ +coverage +coveralls pylint diff_cover