-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tox #67
Conversation
I cherry picked the basic setup.cfg from #59, but we can merge the final version once it is finished. |
In my computer (using conda) tox is having some troubles to install uWSGI. lto1: fatal error: bytecode stream in file ‘/home/borja/miniconda3/envs/flask/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.a’ generated with LTO version 6.0 instead of the expected 8.1
compilation terminated.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/home/borja/miniconda3/envs/flask/compiler_compat/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
*** error linking uWSGI ***
---------------------------------------- Probably, uWSGI is not needed to run nor to unit test, so, it might be possible to drag it out of the minimal installation and put them into a "requirements-prod.txt" or similar. |
At this point it seems some tests are failing:
For the moment we can leave them (investigate later). |
Tests for pep8 added. An output file is produced "flake8.log" after running |
But uwsgi is needed by the application to run in the docker container, which does use setup.cfg, so it should stay in there I think. To address your specific issue, I don't know much about conda, but it seems it's using your system's compiler, which is too old. Have you tried it with installing gcc through conda, like here? ContinuumIO/anaconda-issues#6619 (comment) |
Still missing the coverage, but for the rest is working |
I have removed the PR from the project board; we have the issue on the project board and that links to the PR, and if we merge the PR the issue gets closed too so it's a little redundant to have both. |
tox.ini
Outdated
# use en_US.UTF-8 as C.UTF-8 doesn't exist in RHEL7 | ||
setenv = | ||
VIRTUAL_ENV={envdir} | ||
LC_ALL=en_US.UTF-88 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en_US.UTF-8 typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooops, yes
Do you intend to implement the cover part or should I have a look at it (if you tell me what you mean by it)? |
I meant cover for test coverage. Valentin know better tox, but I am trying to undestand how it exaclty works with coverage. |
To run coverage: More tox env can be added later. As main inconvinience, I could not run test in parallel without renaming the tests.... If it is a problem we can roll back I keep searching how to use the regex option on stestr, however, I think this rename will save issues on the future (as it took me 4h to find out where the issue was). |
I've tested it and it seems to work. It seems to be missing tox in any of the requirements files however, that may be worth adding. |
If I did this correctly, this should be all the current commits. I've also noticed cover is not in the [tox]envlist, so it's not run by default when running |
Yes, this is in order to avoid running tests twice. |
We may still want to add |
Create tox configuration with at least the following: