Created
January 13, 2016 09:09
-
-
Save jieter/e0c2f577fe3c685edd04 to your computer and use it in GitHub Desktop.
Revisions
-
jieter created this gist
Jan 13, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,138 @@ jieter@zimri:~/tmp$ mkvirtualenv dt2-test New python executable in dt2-test/bin/python Installing setuptools, pip, wheel...done. (dt2-test)jieter@zimri:~/tmp$ git clone git@github.com:bradleyayers/django-tables2.git Cloning into 'django-tables2'... remote: Counting objects: 3633, done. remote: Compressing objects: 100% (172/172), done. remote: Total 3633 (delta 90), reused 0 (delta 0), pack-reused 3459 Receiving objects: 100% (3633/3633), 1.40 MiB | 849.00 KiB/s, done. Resolving deltas: 100% (1780/1780), done. Checking connectivity... done. (dt2-test)jieter@zimri:~/tmp$ cd django-tables2/ (dt2-test)jieter@zimri:~/tmp/django-tables2 (master)$ pip install -r requirements/django-dev.pip Collecting https://github.com/django/django/tarball/master (from -r requirements/django-dev.pip (line 2)) Downloading https://github.com/django/django/tarball/master (7.4MB) 100% |████████████████████████████████| 7.4MB 61kB/s Collecting django-haystack<2.5.0,>=2.4.1 (from -r requirements/common.pip (line 1)) Using cached django_haystack-2.4.1-py2-none-any.whl Collecting fudge (from -r requirements/common.pip (line 2)) Collecting lxml (from -r requirements/common.pip (line 3)) Collecting pylint (from -r requirements/common.pip (line 4)) Downloading pylint-1.5.3-py2.py3-none-any.whl (546kB) 100% |████████████████████████████████| 548kB 1.3MB/s Collecting pytz>0 (from -r requirements/common.pip (line 5)) Using cached pytz-2015.7-py2.py3-none-any.whl Collecting six (from -r requirements/common.pip (line 6)) Using cached six-1.10.0-py2.py3-none-any.whl Collecting pytest (from -r requirements/common.pip (line 7)) Using cached pytest-2.8.5-py2.py3-none-any.whl Collecting pytest-django (from -r requirements/common.pip (line 8)) Using cached pytest_django-2.9.1-py2.py3-none-any.whl Collecting flake8 (from -r requirements/common.pip (line 9)) Using cached flake8-2.5.1-py2.py3-none-any.whl Collecting pytest-cov (from -r requirements/common.pip (line 10)) Using cached pytest_cov-2.2.0-py2.py3-none-any.whl Collecting astroid<1.5.0,>=1.4.1 (from pylint->-r requirements/common.pip (line 4)) Using cached astroid-1.4.3-py2.py3-none-any.whl Collecting colorama (from pylint->-r requirements/common.pip (line 4)) Using cached colorama-0.3.6-py2.py3-none-any.whl Collecting py>=1.4.29 (from pytest->-r requirements/common.pip (line 7)) Using cached py-1.4.31-py2.py3-none-any.whl Collecting mccabe<0.4,>=0.2.1 (from flake8->-r requirements/common.pip (line 9)) Using cached mccabe-0.3.1-py2.py3-none-any.whl Collecting pep8!=1.6.0,!=1.6.1,!=1.6.2,>=1.5.7 (from flake8->-r requirements/common.pip (line 9)) Downloading pep8-1.7.0-py2.py3-none-any.whl (41kB) 100% |████████████████████████████████| 45kB 299kB/s Collecting pyflakes<1.1,>=0.8.1 (from flake8->-r requirements/common.pip (line 9)) Using cached pyflakes-1.0.0-py2.py3-none-any.whl Collecting coverage>=3.7.1 (from pytest-cov->-r requirements/common.pip (line 10)) Collecting lazy-object-proxy (from astroid<1.5.0,>=1.4.1->pylint->-r requirements/common.pip (line 4)) Collecting wrapt (from astroid<1.5.0,>=1.4.1->pylint->-r requirements/common.pip (line 4)) Installing collected packages: Django, django-haystack, fudge, lxml, six, lazy-object-proxy, wrapt, astroid, colorama, pylint, pytz, py, pytest, pytest-django, mccabe, pep8, pyflakes, flake8, coverage, pytest-cov Running setup.py install for Django Successfully installed Django-1.10 astroid-1.4.3 colorama-0.3.6 coverage-4.0.3 django-haystack-2.4.1 flake8-2.5.1 fudge-1.1.0 lazy-object-proxy-1.2.1 lxml-3.5.0 mccabe-0.3.1 pep8-1.7.0 py-1.4.31 pyflakes-1.0.0 pylint-1.5.3 pytest-2.8.5 pytest-cov-2.2.0 pytest-django-2.9.1 pytz-2015.7 six-1.10.0 wrapt-1.10.6 (dt2-test)jieter@zimri:~/tmp/django-tables2 (master)$ tox The program 'tox' is currently not installed. You can install it by typing: sudo apt-get install python-tox (dt2-test)jieter@zimri:~/tmp/django-tables2 (master)$ pip install tox Collecting tox Using cached tox-2.3.1-py2.py3-none-any.whl Collecting virtualenv>=1.11.2 (from tox) Using cached virtualenv-13.1.2-py2.py3-none-any.whl Requirement already satisfied (use --upgrade to upgrade): py>=1.4.17 in /home/jieter/.virtualenvs/dt2-test/lib/python2.7/site-packages (from tox) Collecting pluggy<0.4.0,>=0.3.0 (from tox) Using cached pluggy-0.3.1-py2.py3-none-any.whl Installing collected packages: virtualenv, pluggy, tox Successfully installed pluggy-0.3.1 tox-2.3.1 virtualenv-13.1.2 (dt2-test)jieter@zimri:~/tmp/django-tables2 (master)$ tox py27-1.7 create: /home/jieter/tmp/django-tables2/.tox/py27-1.7 py27-1.7 installdeps: Django>=1.7,<1.8, -r/home/jieter/tmp/django-tables2/requirements/common.pip py27-1.7 develop-inst: /home/jieter/tmp/django-tables2 py27-1.7 installed: astroid==1.4.3,colorama==0.3.6,coverage==4.1b1,Django==1.7.11,django-haystack==2.4.1,-e git+git@github.com:bradleyayers/django-tables2.git@9af001da529d7b515c56af570ed037ef9fe5c340#egg=django_tables2-master,flake8==2.5.1,fudge==1.1.0,lazy-object-proxy==1.2.1,lxml==3.5.0,mccabe==0.3.1,pep8==1.7.0,py==1.4.31,pyflakes==1.0.0,pylint==1.5.3,pytest==2.8.5,pytest-cov==2.2.0,pytest-django==2.9.1,pytz==2015.7,six==1.10.0,wheel==0.24.0,wrapt==1.10.6 py27-1.7 runtests: PYTHONHASHSEED='4091642671' py27-1.7 runtests: commands[0] | py.test --cov=django_tables2 --cov-report term-missing ======================================================== test session starts ======================================================== platform linux2 -- Python 2.7.9, pytest-2.8.5, py-1.4.31, pluggy-0.3.1 django settings: tests.app.settings (from ini file) rootdir: /home/jieter/tmp/django-tables2, inifile: tox.ini plugins: cov-2.2.0, django-2.9.1 collected 142 items tests/test_config.py ..... tests/test_core.py ............................. tests/test_models.py .................. tests/test_rows.py .. tests/test_templates.py ................ tests/test_utils.py ............ tests/test_views.py .. tests/columns/test_booleancolumn.py ...... tests/columns/test_checkboxcolumn.py . tests/columns/test_datecolumn.py .... tests/columns/test_datetimecolumn.py .... tests/columns/test_emailcolumn.py ... tests/columns/test_filecolumn.py .... tests/columns/test_general.py .................. tests/columns/test_linkcolumn.py ........... tests/columns/test_templatecolumn.py ... tests/columns/test_timecolumn.py .. tests/columns/test_urlcolumn.py .. ------------------------------------------ coverage: platform linux2, python 2.7.9-final-0 ------------------------------------------ Name Stmts Miss Cover Missing ----------------------------------------------------------------------------- django_tables2/__init__.py 6 0 100% django_tables2/columns/__init__.py 11 0 100% django_tables2/columns/base.py 192 11 94% 41, 154, 157, 235, 451, 522, 538, 549, 552, 582, 614 django_tables2/columns/booleancolumn.py 25 0 100% django_tables2/columns/checkboxcolumn.py 24 0 100% django_tables2/columns/datecolumn.py 15 0 100% django_tables2/columns/datetimecolumn.py 15 0 100% django_tables2/columns/emailcolumn.py 12 0 100% django_tables2/columns/filecolumn.py 38 0 100% django_tables2/columns/linkcolumn.py 58 3 95% 133, 141, 155 django_tables2/columns/templatecolumn.py 22 1 95% 50 django_tables2/columns/timecolumn.py 16 0 100% django_tables2/columns/urlcolumn.py 12 0 100% django_tables2/config.py 30 1 97% 54 django_tables2/models.py 1 0 100% django_tables2/rows.py 64 1 98% 156 django_tables2/tables.py 251 3 99% 102, 453, 467 django_tables2/templatetags/__init__.py 0 0 100% django_tables2/templatetags/django_tables2.py 117 5 96% 41, 96, 144, 196-197 django_tables2/utils.py 183 10 95% 156, 222-227, 249-251 django_tables2/views.py 42 4 90% 56, 74-76 ----------------------------------------------------------------------------- TOTAL 1134 39 97% ==================================================== 142 passed in 1.36 seconds ===================================================== py27-1.7 runtests: commands[1] | flake8 ./tests/test_utils.py:75:17: E712 comparison to True should be 'if cond is True:' or 'if cond:' ./tests/test_utils.py:76:18: E712 comparison to False should be 'if cond is False:' or 'if not cond:' ./tests/test_utils.py:82:17: E712 comparison to True should be 'if cond is True:' or 'if cond:' ./tests/test_utils.py:83:18: E712 comparison to False should be 'if cond is False:' or 'if not cond:' ./tests/columns/test_general.py:284:5: E731 do not assign a lambda expression, use a def ./django_tables2/tables.py:106:13: E731 do not assign a lambda expression, use a def ./django_tables2/templatetags/django_tables2.py:232:5: E731 do not assign a lambda expression, use a def ./docs/conf.py:11:1: E402 module level import not at top of file ./docs/conf.py:12:1: E402 module level import not at top of file ERROR: InvocationError: '/home/jieter/tmp/django-tables2/.tox/py27-1.7/bin/flake8'