This will include:
- Travis CI integration
- Codecov integration
- run tests using pytest and tox
cookiecutter https://github.com/audreyr/cookiecutter-pypackage.git
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/user-name/repo-name.git
git push -u origin master
travis_pypi_setup.py
- Add flake8 settings
- Add codecov and pytest-cov to requirements_dev.txt
Your tox.ini
file should look like this:
[tox]
envlist = py26, py27, py33, py34, py35, flake8
[flake8]
max-line-length = 125
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 package-name
[testenv]
passenv =
CI
TRAVIS
TRAVIS_*
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/package-name
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pip install -U pip
py.test --basetemp={envtmpdir} --cov={toxinidir}/package-name --verbose
codecov