Florian Bruhin
f3d570dd5b
venv: Only copy needed files on Windows.
2015-01-23 18:32:33 +01:00
Florian Bruhin
6ceb0a41ff
venv: Save cache to standard cache location.
...
Saving the cache inside the repository means the buildbot will clear it
automatically.
2015-01-23 17:47:56 +01:00
Florian Bruhin
409c04b6d4
Correct speeling error for .venv-cache.
2015-01-23 15:13:26 +01:00
Florian Bruhin
ca590c5df7
Fix lint
2015-01-23 15:10:44 +01:00
Florian Bruhin
e3ca06bc53
Add .venv_cache to .gitignore.
2015-01-23 15:09:48 +01:00
Florian Bruhin
0587cc8b1d
Really fix pylint and unicodedata.category.
2015-01-23 15:06:51 +01:00
Florian Bruhin
e38f9747e7
init_venv: Add option to cache finished virtualenv.
...
This will hopefully speed up the tests (especially on Windows) since
dependencies don't get downloaded and built on every test.
2015-01-23 15:02:03 +01:00
Florian Bruhin
d7c7e91f2b
pylint: Ignore no-member for unicodedata.category.
...
This seems to be broken for pylint since #463 on Windows, so we just ignore the
warning there.
2015-01-23 14:40:40 +01:00
Florian Bruhin
981a3ef96b
Always use 'python' binary in virtualenv.
...
This should fix venv on OS X. See #463 .
2015-01-23 14:37:56 +01:00
Florian Bruhin
eb428f2aeb
Regenerate authors
2015-01-23 14:32:58 +01:00
Florian Bruhin
7580473a43
Install pip by hand in virtualenv on Debian.
...
It seems Debian/Ubuntu don't have the ensurepip module, so Python's venv will
fail unless started with --without-pip and us installing pip by hand via
get-pip.py :(
Related bugs:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772730
https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1290847
See #463 .
2015-01-23 14:30:14 +01:00
Florian Bruhin
2201ca600b
Fix long lines in init_venv.py.
...
See #463 .
2015-01-23 14:14:30 +01:00
Florian Bruhin
d1df0b843e
Merge branch 'venv'
...
Closes #451 .
2015-01-23 13:55:10 +01:00
Florian Bruhin
d1d43b29dc
Remove virtualenv dependency in INSTALL.asciidoc.
2015-01-23 13:54:18 +01:00
Florian Bruhin
6f1facac60
Also get rid of system_site_packages on Windows.
...
We can't symlink, so we copy the files instead.
2015-01-23 13:47:27 +01:00
Florian Bruhin
b2646cb5c0
Check if venv already exists.
...
According to the documentation, Python should do that already:
If the target directory already exists an error will be raised, unless the
--clear or --upgrade option was provided.
However that doesn't seem to be the case: http://bugs.python.org/issue23202
We do this by hand to make sure the user doesn't accidentally overwrite
something.
See #463 .
2015-01-23 13:23:33 +01:00
Florian Bruhin
b8c54b5f02
Don't use system_site_packages on non-Windows.
...
See #463 .
2015-01-23 13:17:39 +01:00
Florian Bruhin
907440d12c
Simplify option handling in create_venv().
...
See #463 .
2015-01-23 13:17:18 +01:00
Florian Bruhin
2264b55e92
Simplify create_venv().
...
See #463 .
2015-01-23 13:16:53 +01:00
Florian Bruhin
816fcf3a6c
Fix whitespace at EOL.
...
See #463 .
2015-01-23 13:15:50 +01:00
Florian Bruhin
f76ce3c152
Regenerate authors
...
See #463 .
2015-01-23 13:15:32 +01:00
Patric Schmitz
2404c75012
Use venv API for building the venv instead of calling pyvenv
2015-01-23 13:15:27 +01:00
Patric Schmitz
7813d9a93d
Add hidden --force option for backwards compatibility with existing scripts
2015-01-23 13:15:23 +01:00
Patric Schmitz
4eefc53ed0
Change init_venv to use python 3.x venv
...
--force was replaced in favor of --clear and --upgrade which
correspond to the respective pyvenv options. The pyvenv help is
not explicit on the behavior if --clear is not given but the path
exists. https://docs.python.org/3/library/venv.html states pyvenv
would fail in that case, but it does not with Python 3.4.2, which
I don't consider a problem however.
Added a newline here and there for better readability.
2015-01-23 13:15:18 +01:00
Florian Bruhin
f6d0907736
init_venv: Pass --upgrade to pip install.
...
On Windows, --system-site-packages is enabled, so pip didn't upgrade pylint
from the system-wide version as it was already installed.
2015-01-22 13:37:58 +01:00
Florian Bruhin
2a72d290a7
Revert "init_venv: Pass --no-clean to pip on Windows."
...
This reverts commit 28fe84944c
.
It didn't really help and it's deprecated (and un-deprecated?!) in the recent
pip.
2015-01-22 10:44:03 +01:00
Florian Bruhin
b387b4c7a9
Merge branch 'master' of ssh://git/qutebrowser
2015-01-22 10:41:58 +01:00
Florian Bruhin
5c92144f6b
Fix spawn --userscript with multiple args.
...
This is a regression introduced in 4485e4ee1b
.
We didn't unpack the argument list properly before passing it to
run_userscripts.
Fixes #476 .
See #448 .
2015-01-22 07:10:32 +01:00
Florian Bruhin
011e398f77
Merge branch 'thorsten-fix-check-libraries'
2015-01-22 07:01:54 +01:00
Florian Bruhin
011cd08fc8
Update AUTHORS
2015-01-22 07:01:46 +01:00
Thorsten Wißmann
5d5e26eb7b
Fix some check_libraries() for arch
...
By now, the python-jinja and python-pygments packages are available in
community.
2015-01-22 07:01:35 +01:00
Florian Bruhin
5a0a0302df
Merge branch 'new-pylint'
2015-01-22 07:00:01 +01:00
Florian Bruhin
3b6a504d7b
crashdialog: Move contact info to top.
...
See #447 .
2015-01-22 06:58:37 +01:00
Florian Bruhin
aa3017dd58
crashdialog: Reword contact info text.
...
See #447 .
2015-01-22 06:56:45 +01:00
Florian Bruhin
50557a9b3e
crashdialog: Remove Github from contact types.
...
See #447 .
2015-01-22 06:56:23 +01:00
Florian Bruhin
fb2e84be2a
Merge branch 'uggedal-voidlinux'
2015-01-21 07:16:53 +01:00
Florian Bruhin
8da4e2b6f4
Update AUTHORS
2015-01-21 07:16:29 +01:00
Florian Bruhin
407edef2bc
Merge branch 'voidlinux' of https://github.com/uggedal/qutebrowser into uggedal-voidlinux
2015-01-21 07:16:16 +01:00
Florian Bruhin
6c2471bf9c
Merge branch 'peterlvilim-show-default-value'
2015-01-21 07:14:55 +01:00
Florian Bruhin
4f20d6123c
Update AUTHORS
2015-01-21 07:14:48 +01:00
Florian Bruhin
d540a1ee22
Merge branch 'show-default-value' of https://github.com/peterlvilim/qutebrowser into peterlvilim-show-default-value
2015-01-21 07:07:25 +01:00
Florian Bruhin
6d3f871119
Add workaround for unknown pylint no-member bug.
2015-01-21 00:01:05 +01:00
Florian Bruhin
958e67ab9e
Add workaround for pylint performance bug.
...
See https://bitbucket.org/logilab/pylint/issue/395/horrible-performance-related-to-inspect
2015-01-21 00:00:52 +01:00
Florian Bruhin
2e45c2c063
Stop pinning pylint/astroid to 1.3.1/1.2.1.
2015-01-21 00:00:51 +01:00
Florian Bruhin
532ec30d00
Fix executing of virtualenv pylint on Windows.
...
6a7e454789
broke executing pylint on Windows,
because there was a pylint Python script in vev\Scripts, and subprocess tried
to execute that instead of the .exe.
2015-01-20 23:06:03 +01:00
Florian Bruhin
f4479a8140
Fix adding epilogue in src2asciidoc.py.
2015-01-20 00:02:16 +01:00
Florian Bruhin
6a7e454789
Add proper virtualenv support to run_checks.py
2015-01-19 23:50:01 +01:00
Peter Vilim
c30978be2f
Add quotes for empty default value
2015-01-19 13:17:17 -06:00
Florian Bruhin
18443a6880
run_checks: Support print_version for check_pep257.
2015-01-19 00:53:05 +01:00
Florian Bruhin
aa6750ac1b
run_checks: Add a comment for check_pep257.
2015-01-19 00:51:33 +01:00