[tox] envlist = py27,py3,flake8,check-manifest,yamllint [testenv] deps = pytest boto3 moto py27: cubicweb<3.27 git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings commands = {envpython} -m pytest {posargs:test} [testenv:check-manifest] skip_install = true skipsdist = true deps = check-manifest commands = {envpython} -m check_manifest [testenv:flake8] skip_install = true whitelist_externals = flake8 deps = flake8 commands = flake8 [flake8] exclude = cubicweb_s3storage/migration/*,test/data/*,.tox/* [testenv:pypi-publish] basepython = python3 skip_install = true whitelist_externals = rm deps = twine passenv = TWINE_USERNAME TWINE_PASSWORD commands = rm -rf build dist .egg .egg-info python3 setup.py sdist bdist_wheel twine check dist/* twine upload --skip-existing dist/* [testenv:deb-publish] passenv = JENKINS_USER JENKINS_TOKEN basepython = python3 skip_install = true whitelist_externals = rm sh hg deps = httpie commands = hg clean --all --dirs --files rm -rf build dist .egg .egg-info python3 setup.py sdist sh -c "PACKAGE_NAME=$(python3 setup.py --name) && VERSION=$(python3 setup.py --version) && cd dist && tar xf $PACKAGE_NAME-$VERSION.tar.gz && cd $PACKAGE_NAME-$VERSION && cp -a {toxinidir}/debian . && mk-origtargz --rename ../$PACKAGE_NAME-$VERSION.tar.gz && dpkg-buildpackage -us -uc --no-check-builddeps --build=source " sh -c "cd dist && dcmd zip latest.zip *.changes" http -f POST https://{env:JENKINS_USER}:{env:JENKINS_TOKEN}@jenkins.intra.logilab.fr/job/pkg-from-dsc/buildWithParameters DIST=buster source.zip@dist/latest.zip REPO=buster PUBLISH=true [testenv:yamllint] skip_install = true deps = yamllint commands = yamllint .