Florian Bruhin
5c8d1656ff
Fix path to test_keyhints.py in check_coverage.py
...
utils -> misc
2016-05-18 07:34:40 +02:00
Florian Bruhin
d0af80fbd5
Merge branch 'keystring' of https://github.com/rcorre/qutebrowser into rcorre-keystring
2016-05-18 07:33:17 +02:00
Florian Bruhin
c0d044447d
Add tests for qutebrowser.utils.typing
2016-05-18 06:55:17 +02:00
Florian Bruhin
a0d0b6464f
Use typing.py-like annotations for command args
...
This means:
- An annotation like (int, str) is now typing.Union[int, str].
- utils.typing got expanded so it acts like the real typing.py, with
issubclass() working properly with typing.Union and __union_params__
being set.
- A literal string doesn't exist anymore as annotation, instead
@cmdutils.argument now has a 'choices' argument which can be used like
@cmdutils.argument('arg', choices=['val1', 'val2']).
- Argument validating/converting is now entirely handled by
argparser.type_conv instead of relying on python's argparse, i.e.
type/choices is now not passed to argparse anymore.
2016-05-18 06:55:17 +02:00
Florian Bruhin
2fc4f408cd
Fix src2asciidoc
2016-05-18 06:55:17 +02:00
Florian Bruhin
965a012db7
Name strip_whitespace.sh correctly
2016-05-18 06:54:14 +02:00
Florian Bruhin
ee579b4bc3
Add a script to strip trailing whitespace
...
Obsoletes #1498
2016-05-18 06:37:26 +02:00
Ryan Roden-Corrent
822d148713
Update key hint tests for new format.
...
Change the unit tests to expect the new tabular format.
Also generally clean up the tests -- refactor from a class to
module-level functions as there was no need for a class here.
2016-05-17 07:04:53 -04:00
Florian Bruhin
b6abada50a
Fix lint
2016-05-13 06:42:09 +02:00
Florian Bruhin
a7ece80d34
Merge branch 'pyinstaller'
2016-05-13 06:21:28 +02:00
Florian Bruhin
7901d2929a
ci: Update pip to 8.1.2
...
Since virtualenv uses the built-in pip version with VIRTUALENV_DOWNLOAD=no we
need to make sure we keep virtualenv capped, but we can use a newer pip.
2016-05-12 20:32:03 +02:00
Florian Bruhin
e70d6d49d9
travis: Separate requirement files
...
This way we can update pip independently before installing the rest, and
avoid installing codecov (and thus coverage which attempts to build C
extension) where it's not needed.
2016-05-12 20:32:03 +02:00
Florian Bruhin
d4e2b4ebb4
travis: Don't update Python for flake8 env
...
This was needed because of a bug for which the backfix seems to be
ported to Ubuntu now.
2016-05-12 20:32:03 +02:00
Florian Bruhin
56a2b6778c
travis: Install libpython3.4-dev
...
This is now needed because we use "language: generic" which doesn't come
with that package.
2016-05-12 20:32:03 +02:00
Florian Bruhin
e13320b398
travis: Use python2 for pip
...
This means we won't need to install pip via apt-get, and using a
Python 2 tox/pip is fine.
2016-05-12 20:32:03 +02:00
Florian Bruhin
3033f77f99
travis: Use (( in travis_retry
...
If we use [, the script exits when a condition is false (as we use
set -e).
2016-05-12 20:32:03 +02:00
Florian Bruhin
cdc79339fb
travis: Use requirement files for pip
...
This way we can pin tox/pip versions (which are used in the native
Travis environment) *and* get notified about updates by requires.io.
2016-05-12 20:32:03 +02:00
Florian Bruhin
6558e196b4
Simplify package installation on CI
...
Having a Python script was a good idea back when we could do almost the
same steps on every CI configuration.
This turned out to grow into a complicated script, so it's easier to
split off things for Linux/OS X into a small shell script (and keep
Python for Windows, as I really don't want to use .bat/.ps).
2016-05-12 20:32:03 +02:00
Daniel Schadt
dcb2c7f868
link_pyqt: fix crash with spaces in pypath
...
This fixes a bug where link_pyqt crashes when the path to the python
interpreter contains a space.
2016-05-08 01:08:36 +02:00
Florian Bruhin
ccd0d1621c
Regenerate authors
2016-05-07 22:10:19 +02:00
Florian Bruhin
a5cea14a0f
Update docs
2016-05-07 21:39:19 +02:00
Florian Bruhin
e06a32ff42
Revert "travis: Switch to autobuilt Docker images"
...
This reverts commit b2e52408f7
.
Turns out only [testing] is on PyQt 5.6, and even with that the testsuite
doesn't seem to load properly...
2016-04-29 23:21:41 +02:00
Florian Bruhin
b2e52408f7
travis: Switch to autobuilt Docker images
...
Since Archlinux switched to PyQt 5.6, we can now use the autobuilt image
without a handbuilt PyQt. This means we have an up-to-date image with
each build again.
2016-04-29 22:54:00 +02:00
Florian Bruhin
2a343cb3a1
Various code style improvements
2016-04-27 20:25:27 +02:00
Florian Bruhin
eeb830e040
travis: Ignore doc changes when building a PR
...
Fixes #1441
2016-04-20 22:35:02 +02:00
Florian Bruhin
d33fae455d
Remove unused import
2016-04-15 19:31:54 +02:00
Florian Bruhin
1f66d74f01
Use __file__ instead of sys.argv[0]
2016-04-15 19:12:10 +02:00
Jan Verbeek
7f9a7a282f
Make update_3rdparty.py install correctly when run from any directory
2016-04-15 11:23:52 +02:00
Florian Bruhin
642dc46ba9
flake8: Add hacking
2016-04-08 07:35:53 +02:00
Florian Bruhin
0e6bada68f
build_release: Build docs/update 3rdparty on OS X
2016-04-07 08:53:34 +02:00
Florian Bruhin
3f0429574c
Makefile-dmg: Add /Applications link to dmg
2016-04-07 08:53:34 +02:00
Florian Bruhin
3984437484
build_release: Build dmg via Makefile-dmg
2016-04-07 08:53:34 +02:00
Florian Bruhin
03be10b4fe
Makefile-dmg: Copy files from subdirs
...
We don't want a /dist/qutebrowser.app in the dmg, only a /qutebrowser.app.
2016-04-07 08:53:34 +02:00
Florian Bruhin
97cb429b57
Makefile-dmg: Set variables
2016-04-07 08:53:34 +02:00
Florian Bruhin
533b9d22e7
Add fancy-dmg Makefile
2016-04-07 08:53:34 +02:00
Florian Bruhin
362837e98c
update_3rdparty: Add fancy-dmg Makefile
2016-04-07 08:53:25 +02:00
Florian Bruhin
ae41a074e8
build_release: Add basic OS X build
2016-04-07 08:53:17 +02:00
Florian Bruhin
2aef8913ec
travis: Don't install recommended packages via apt
...
This passes --no-install-recommends both for Dockerfiles and Travis
itself.
2016-04-06 08:22:41 +02:00
Florian Bruhin
14eb63d9e9
ci/install: Fix updating of pip on Appveyor
...
Windows can't update pip when using the wrapper-executable.
2016-04-06 07:43:55 +02:00
Florian Bruhin
57cb812219
ci/install: Wait 30s before re-calling apt-get
...
See #1396 .
2016-04-06 07:14:21 +02:00
Florian Bruhin
b70975223f
travis: Use sudo -H to call pip
...
pip apparently needs this to make caching work properly?
See #1396 .
2016-04-06 07:13:03 +02:00
Florian Bruhin
812c255379
travis: Use pip install -U to install packages
2016-04-06 07:12:21 +02:00
Florian Bruhin
2ad4fa5c8a
ci/install: Upgrade pip on Travis/AppVeyor
...
See #1396
2016-04-06 07:11:57 +02:00
Florian Bruhin
fb741582ef
scripts/dev/ci/install: Retry apt-get if it fails
2016-04-05 12:43:51 +02:00
Florian Bruhin
6c1ee07c85
travis: Self-update npm in eslint env
2016-04-05 07:34:57 +02:00
Florian Bruhin
b9b2297d64
Add minimal C++ testbrowser
2016-04-05 06:56:57 +02:00
Florian Bruhin
f91935c8e8
freeze: Add pkg_resources._vendor.six
...
Another package added by pkg_resources and not picked up by cx_Freeze...
2016-04-04 21:31:27 +02:00
Florian Bruhin
910adaf097
build_release: Don't call update_3rdparty.main
...
main tries to parse sys.argv which will fail when called from
build_release when e.g. --asciidoc is given.
2016-04-04 18:32:49 +02:00
Florian Bruhin
9b25f8f91d
Add --cheatsheet to src2asciidoc.py
2016-04-01 18:18:41 +02:00
Florian Bruhin
4daf4a8e64
Fix lint
2016-04-01 08:16:28 +02:00