Cleanup requirements, .travis.yml and tox.ini.
This commit is contained in:
parent
a76c3d1f51
commit
e57047289a
12
.travis.yml
12
.travis.yml
@ -1,19 +1,17 @@
|
|||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "pypy"
|
- "pypy"
|
||||||
|
- "2.6"
|
||||||
- "2.7"
|
- "2.7"
|
||||||
- "3.2"
|
- "3.2"
|
||||||
- "3.3"
|
- "3.3"
|
||||||
- "2.6"
|
|
||||||
# command to install dependencies
|
# command to install dependencies
|
||||||
install:
|
install:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements-dev.txt
|
||||||
- pip install coveralls
|
- pip install coveralls
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install argparse importlib unittest2 astor; fi
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi # needs for running tests
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install astor; fi
|
- pip install --allow-all-external -e .
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install astor; fi
|
# command to run tests
|
||||||
- python setup.py -q install
|
|
||||||
# # command to run tests
|
|
||||||
script: make travis
|
script: make travis
|
||||||
after_success: coveralls
|
after_success: coveralls
|
||||||
notifications:
|
notifications:
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
-r requirements.txt
|
# test tools
|
||||||
tox
|
|
||||||
nose
|
nose
|
||||||
|
tox
|
||||||
|
|
||||||
|
# code quality
|
||||||
|
flake8
|
||||||
|
coverage
|
||||||
|
|
||||||
|
# documentation
|
||||||
Pygments>=1.6
|
Pygments>=1.6
|
||||||
Sphinx
|
Sphinx
|
||||||
coverage
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
# Check site / dev for more deps!
|
|
||||||
flake8
|
|
||||||
rply>=0.7.0
|
|
37
tox.ini
37
tox.ini
@ -1,39 +1,18 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27,pypy,py32,py33,py26,flake8
|
envlist = py26,py27,pypy,py32,py33,flake8
|
||||||
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands = nosetests
|
commands =
|
||||||
|
pip install --allow-all-external -e .
|
||||||
|
nosetests
|
||||||
deps =
|
deps =
|
||||||
nose
|
-rrequirements-dev.txt
|
||||||
setuptools
|
|
||||||
rply
|
|
||||||
|
|
||||||
[testenv:pypy]
|
|
||||||
commands = nosetests
|
|
||||||
deps =
|
|
||||||
astor
|
|
||||||
nose
|
|
||||||
setuptools
|
|
||||||
rply
|
|
||||||
|
|
||||||
[testenv:py27]
|
|
||||||
commands = nosetests
|
|
||||||
deps =
|
|
||||||
astor
|
|
||||||
nose
|
|
||||||
setuptools
|
|
||||||
rply
|
|
||||||
|
|
||||||
[testenv:py26]
|
[testenv:py26]
|
||||||
deps =
|
deps =
|
||||||
astor
|
{[testenv]deps}
|
||||||
nose
|
|
||||||
setuptools
|
|
||||||
unittest2
|
unittest2
|
||||||
importlib
|
|
||||||
rply
|
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
deps =
|
|
||||||
flake8
|
|
||||||
rply
|
|
||||||
commands = flake8 hy bin tests
|
commands = flake8 hy bin tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user