From 9735ee6ef008ad4d659d4ad5d0c5159cb92ad2a3 Mon Sep 17 00:00:00 2001 From: Jonathan Wight Date: Mon, 3 Apr 2017 09:01:37 -0700 Subject: [PATCH] Fix for circleci + virtualenv + pytest + tox (Similar issue here: https://github.com/tox-dev/tox/issues/373#issuecomment-256979815) --- circle.yml | 5 +++-- pytest.ini | 2 ++ tox.ini | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index c11830d..1bd64a1 100644 --- a/circle.yml +++ b/circle.yml @@ -3,11 +3,12 @@ machine: version: 8.3 pre: # from https://discuss.circleci.com/t/virtualenv-error-on-osx-build/387/2 - - sudo -H pip install --upgrade virtualenv + # Let's use a known sane python and not the system python (that we need to use sudo with) + - brew install python + - pip install --upgrade virtualenv dependencies: override: - brew install libyaml - - brew install python - brew install python3 - pip install -r requirements_test.txt compile: diff --git a/pytest.ini b/pytest.ini index 2c063f0..0f3a380 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,5 @@ [pytest] #addopts = --doctest-modules --ignore setup.py --cov=punic --cov-report html addopts = --doctest-modules --ignore setup.py +# Needed due to the way circleci sets up python virtual environments. +norecursedirs = dist build .tox venv diff --git a/tox.ini b/tox.ini index bd83dc9..e45cb89 100644 --- a/tox.ini +++ b/tox.ini @@ -15,3 +15,5 @@ deps = # TERM is also needed. #passenv = TERM LC_ALL LANG passenv = * + +usedevelop = True \ No newline at end of file