[saem-devel] [PATCH 1 of 2 sherpa] [test] add py27 test in tox config

Sylvain Thénault sylvain.thenault at logilab.fr
Fri Feb 24 15:33:43 CET 2017


applied this one


Le 22/02/2017 à 18:07, Philippe Pepiot a écrit :
> # HG changeset patch
> # User Philippe Pepiot <philippe.pepiot at logilab.fr>
> # Date 1487783189 -3600
> #      Wed Feb 22 18:06:29 2017 +0100
> # Node ID c7c57726ad9ba66c182b6f2c8f147dff3de3375f
> # Parent  79cf56fbfb1b8b81e5fafd0a7747d9b81680697a
> # Available At https://hg.logilab.org/review/cubes/sherpa
> #              hg pull https://hg.logilab.org/review/cubes/sherpa -r c7c57726ad9b
> # Tested at https://jenkins.logilab.org/job/cubicweb-sherpa/13/
> [test] add py27 test in tox config
>
> diff --git a/MANIFEST.in b/MANIFEST.in
> --- a/MANIFEST.in
> +++ b/MANIFEST.in
> @@ -5,5 +5,7 @@ include doc/Makefile doc/conf.py doc/*.r
>  include views/templates/*.jinja2
>  recursive-include data *.gif *.png *.ico *.css *.js *.otf *.ttf *.txt
>  recursive-include i18n *.po
> +include dev-requirements.txt
> +include test/*.py test/data/bootstrap_cubes
>  
>  prune docker
> diff --git a/dev-requirements.txt b/dev-requirements.txt
> new file mode 100644
> --- /dev/null
> +++ b/dev-requirements.txt
> @@ -0,0 +1,1 @@
> +pytest
> diff --git a/test/data/bootstrap_cubes b/test/data/bootstrap_cubes
> new file mode 100644
> --- /dev/null
> +++ b/test/data/bootstrap_cubes
> @@ -0,0 +1,1 @@
> +sherpa
> diff --git a/tox.ini b/tox.ini
> --- a/tox.ini
> +++ b/tox.ini
> @@ -1,6 +1,11 @@
>  [tox]
> -envlist = flake8,check-manifest
> +envlist = py27,flake8,check-manifest
>  
> +[testenv]
> +sitepackages = True
> +deps =
> +  -rdev-requirements.txt
> +commands = {envpython} -m pytest {posargs:{toxinidir}/test}
>  
>  [testenv:check-manifest]
>  skip_install = true
> _______________________________________________
> saem-devel mailing list
> saem-devel at lists.cubicweb.org
> http://lists.cubicweb.org/mailman/listinfo/saem-devel

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the saem-devel mailing list