From 72162a080d685dcab3b2f23febcde7a544f1dd0c Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 7 Sep 2015 09:14:24 -0400 Subject: Move most requirements into requirements/*.pip, and share them where possible --- .travis.yml | 2 +- appveyor.yml | 2 +- ci/requirements.pip | 4 ---- circle.yml | 2 +- doc/contributing.rst | 2 +- requirements.pip | 19 ------------------- requirements/dev.pip | 20 ++++++++++++++++++++ requirements/tox.pip | 2 ++ requirements/wheel.pip | 3 +++ tox_wheels.ini | 7 +++---- 10 files changed, 32 insertions(+), 31 deletions(-) delete mode 100644 ci/requirements.pip delete mode 100644 requirements.pip create mode 100644 requirements/dev.pip create mode 100644 requirements/tox.pip create mode 100644 requirements/wheel.pip diff --git a/.travis.yml b/.travis.yml index fab4424..2f33ba7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ env: - TOXENV=pypy install: - - pip install -r ci/requirements.pip + - pip install -r requirements/tox.pip script: - tox diff --git a/appveyor.yml b/appveyor.yml index 90df51a..15522a7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -112,7 +112,7 @@ install: - "pip install --disable-pip-version-check --user --upgrade pip" # Install requirements. - - "%CMD_IN_ENV% pip install -r ci/requirements.pip" + - "%CMD_IN_ENV% pip install -r requirements/tox.pip -r requirements/wheel.pip" build_script: # If not a metacov job, then build wheels and .exe installers. diff --git a/ci/requirements.pip b/ci/requirements.pip deleted file mode 100644 index 74bcc57..0000000 --- a/ci/requirements.pip +++ /dev/null @@ -1,4 +0,0 @@ -# Things to install in continuous integration environments. -setuptools==18.2 -tox==2.1.1 -wheel==0.24.0 diff --git a/circle.yml b/circle.yml index bd22f53..a52959e 100644 --- a/circle.yml +++ b/circle.yml @@ -11,7 +11,7 @@ dependencies: pre: - pip install -U pip override: - - pip install -r ci/requirements.pip + - pip install -r requirements/tox.pip test: override: diff --git a/doc/contributing.rst b/doc/contributing.rst index 8690fff..dc50202 100644 --- a/doc/contributing.rst +++ b/doc/contributing.rst @@ -49,7 +49,7 @@ these steps: #. Install the requirements:: - $ pip install -r requirements.pip + $ pip install -r requirements/dev.pip #. Install a number of versions of Python. Coverage.py supports a wide range of Python versions. The more you can test with, the more easily your code diff --git a/requirements.pip b/requirements.pip deleted file mode 100644 index 74b0664..0000000 --- a/requirements.pip +++ /dev/null @@ -1,19 +0,0 @@ -# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 -# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt - -# https://requires.io/github/nedbat/coveragepy/requirements/ - -# PyPI requirements for running tests for coverage.py -nose==1.3.7 -tox==2.1.1 - -# and for linting... -greenlet==0.4.9 -mock==1.3.0 -PyContracts==1.7.6 -pyenchant==1.6.6 -pylint==1.4.4 - -# and for kitting... -requests==2.7.0 -twine==1.5.0 diff --git a/requirements/dev.pip b/requirements/dev.pip new file mode 100644 index 0000000..07920bf --- /dev/null +++ b/requirements/dev.pip @@ -0,0 +1,20 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +# Requirements for doing local development work on coverage.py. +# https://requires.io/github/nedbat/coveragepy/requirements/ + +# PyPI requirements for running tests. +nose==1.3.7 +-r tox.pip + +# for linting. +greenlet==0.4.9 +mock==1.3.0 +PyContracts==1.7.6 +pyenchant==1.6.6 +pylint==1.4.4 + +# for kitting. +requests==2.7.0 +twine==1.5.0 diff --git a/requirements/tox.pip b/requirements/tox.pip new file mode 100644 index 0000000..9080d82 --- /dev/null +++ b/requirements/tox.pip @@ -0,0 +1,2 @@ +# The version of tox used by coverage.py +tox==2.1.1 diff --git a/requirements/wheel.pip b/requirements/wheel.pip new file mode 100644 index 0000000..13c6150 --- /dev/null +++ b/requirements/wheel.pip @@ -0,0 +1,3 @@ +# Things needed to make wheels for coverage.py +setuptools==18.2 +wheel==0.24.0 diff --git a/tox_wheels.ini b/tox_wheels.ini index 8494ec5..f956183 100644 --- a/tox_wheels.ini +++ b/tox_wheels.ini @@ -6,9 +6,8 @@ envlist = py{26,27,33,34,35} toxworkdir = {toxinidir}/.tox_kits [testenv] +deps = + -rrequirements/wheel.pip + commands = python setup.py bdist_wheel {posargs} - -deps = - wheel - setuptools >= 6.0.0 -- cgit v1.2.1