From 7b9e87d18d94eafcf6f0017629c0b2eae3c9392f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 21 2019 12:22:35 +0000 Subject: [PATCH 1/4] Clean up a little bit deprecated code Signed-off-by: Pierre-Yves Chibon --- diff --git a/setup.py b/setup.py index aea13c6..72effe0 100644 --- a/setup.py +++ b/setup.py @@ -4,10 +4,6 @@ Setup script """ -# Required to build on EL6 -__requires__ = ['SQLAlchemy >= 0.7', 'jinja2 >= 2.4'] # NOQA -import pkg_resources # NOQA - from setuptools import setup import os import re From f388ece0b77e859ec9fed3d8566c831c75ac65fd Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 21 2019 12:22:58 +0000 Subject: [PATCH 2/4] Add support for tox to run the tests Signed-off-by: Pierre-Yves Chibon --- diff --git a/.gitignore b/.gitignore index 54f68a1..ab8c4ed 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ cache/ pictures/ alembic.ini *.rpm +.tox/ # Vagrant files Vagrantfile diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..32c4712 --- /dev/null +++ b/tox.ini @@ -0,0 +1,16 @@ +[tox] +envlist = py27 +skipsdist = True + +[testenv] +usedevelop = True +deps = + -rrequirements.txt + -rtest-requirements.txt + nose + coverage +setenv = + PYTHONPATH={toxinidir} +commands = + nosetests --with-coverage --cover-erase --cover-package=nuancier {posargs} + From da9be50ff0f3d89c485897138475d3da2238ee16 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 21 2019 13:07:48 +0000 Subject: [PATCH 3/4] Add .cico.pipeline file Signed-off-by: Pierre-Yves Chibon --- diff --git a/.cico.pipeline b/.cico.pipeline new file mode 100644 index 0000000..7631029 --- /dev/null +++ b/.cico.pipeline @@ -0,0 +1 @@ +fedoraInfraTox { } From a2eeed0c6ecc7479fcebc40c4b7ab00076f04757 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 21 2019 15:20:38 +0000 Subject: [PATCH 4/4] Pass onto tox the HOME variable Signed-off-by: Pierre-Yves Chibon --- diff --git a/tox.ini b/tox.ini index 32c4712..f97f0eb 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ skipsdist = True [testenv] usedevelop = True +passenv = HOME deps = -rrequirements.txt -rtest-requirements.txt