Florian Bruhin
4103e7eba2
Revert "update_3rdparty: add docstring to main()"
...
This reverts commit 90e88ce0d0
.
2016-02-01 20:09:17 +01:00
Florian Bruhin
7be296333a
Merge branch 'pdfjs' of https://github.com/Kingdread/qutebrowser into Kingdread-pdfjs
2016-02-01 20:07:56 +01:00
Florian Bruhin
7a268a41f6
pylint: Don't require docstring for main() funcs.
2016-02-01 20:06:49 +01:00
Daniel Schadt
90e88ce0d0
update_3rdparty: add docstring to main()
2016-02-01 18:14:24 +01:00
Daniel Schadt
63f0171d30
update_3rdparty: add option for pdfjs version
...
This way we can instruct update_3rdparty to download a specific version
of pdfjs, e.g. to make debugging easier or to match the version of a
system package.
Syntax:
update_3rdparty.py -p 1.2.109
or
update_3rdparty.py --pdfjs=1.2.109
If the command line argument is not given, the script will automatically
download the latest release.
2016-02-01 17:46:16 +01:00
Florian Bruhin
0e6c6d3750
Revert "ci_install: Pin virtualenv to 14.0.3 on Windows."
...
This reverts commit ec214f4897
.
Fixed upstream in virtualenv 14.0.5.
2016-02-01 08:43:42 +01:00
Florian Bruhin
ec214f4897
ci_install: Pin virtualenv to 14.0.3 on Windows.
...
WORKAROUND for https://github.com/pypa/virtualenv/issues/858
2016-02-01 07:29:41 +01:00
Florian Bruhin
e9662b71f0
Move pytest arguments to pytest.ini.
...
Closes #1260 .
2016-01-24 21:10:22 +01:00
Florian Bruhin
95fe54f010
Avoid running coverage when it's unneeded.
...
Unfortunately running coverage means our tests need more than a minute longer
to run.
We still run it in the following scenarios:
- Full 'tox' run
- On Travis CI on Linux
- On the buildbot on Archlinux
But not anymore in the following scenarios:
- When running 'tox -e py35' (or py34)
- On Travis CI on OS X
- On AppVeyor
- On the buildbot except on Archlinux
2016-01-24 20:17:28 +01:00
Florian Bruhin
85299d293f
Add pkg_resources._vendor.packaging to freeze.py.
...
Workaround for https://bitbucket.org/anthony_tuininga/cx_freeze/issues/175/
Also see https://github.com/pyinstaller/pyinstaller/issues/1773
This hopefully fixes AppVeyor builds.
2016-01-24 00:30:26 +01:00
Florian Bruhin
7fa0dc68bf
flake8: Add flake8-pep3101 plugin.
...
Checks for old string formatting.
https://pypi.python.org/pypi/flake8-pep3101/
2016-01-22 19:40:10 +01:00
Florian Bruhin
d5d4e42c64
ci_install: Update Python3 for flake8 env.
2016-01-22 17:33:57 +01:00
Florian Bruhin
af0067526b
ci_install: Show Python version.
2016-01-22 17:33:57 +01:00
Florian Bruhin
70cd18fc98
100% coverage for mainwindow/statusbar/prompt.py.
2016-01-11 07:14:51 +01:00
Florian Bruhin
5ddc94bc8d
Whitelist prompt.py for 100% coverage check.
...
It has 100% due to integration tests, but no unit tests yet.
2016-01-10 23:22:44 +01:00
Florian Bruhin
5b68092277
Download pdfjs in build_release.py.
...
freeze.py now optionally includes pdfjs if it's present. This means we don't
need to download it every time to run frozen tests, but we can include it in
build_release.py when building a windows package.
2016-01-05 07:27:58 +01:00
Florian Bruhin
e05bc20885
Revert "Call update_3rdparty before freezing"
...
This reverts commit 384a9ad923
.
2016-01-05 07:22:26 +01:00
Florian Bruhin
a97ba9aa09
Merge branch 'pdfjs' of https://github.com/Kingdread/qutebrowser into Kingdread-pdfjs
2016-01-05 07:21:26 +01:00
Florian Bruhin
814e6f5959
Fix lint.
2016-01-05 07:16:39 +01:00
Florian Bruhin
eefc94fb4d
Fix build_release.py with inexistent dist-dir.
2016-01-05 07:14:11 +01:00
Florian Bruhin
8ab0b5b4ac
Use build_release.py to build sdist on Linux.
...
See #1091 .
2016-01-05 06:54:37 +01:00
Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Daniel Schadt
be0eb0b1cd
Add pdfjs.is_available to vulture whitelist
...
vulture reports it as a false-positive, it's used in the tests but not
picked up by vulture.
2015-12-20 20:08:24 +01:00
Daniel Schadt
49ed04715e
Remove unused tempfile import
2015-12-20 19:24:41 +01:00
Daniel Schadt
a072cf0175
Fix update_3rdparty on windows
...
You cannot open a file twice on windows, so the call to
urllib.request.urlretrieve was invalid, since we already opened the
temporary file. urlretrieve without a filename will automatically create
and return a temp-file, so we're fine.
2015-12-20 19:24:41 +01:00
Daniel Schadt
384a9ad923
Call update_3rdparty before freezing
2015-12-20 19:24:41 +01:00
Daniel Schadt
c3f2cb02c8
pdfjs: adjust path in scripts/dev/misc_checks.py
2015-12-20 19:24:41 +01:00
Daniel Schadt
d7d577b1fa
Fix pep8/pylint
2015-12-20 19:24:41 +01:00
Daniel Schadt
0095b72e03
Update pdfjs path in freeze.py
2015-12-20 19:24:41 +01:00
Daniel Schadt
ef85d1af4c
Move pdfjs and use original files
...
* No modified pdfjs installation needed
-> Groundwork for using a system-wide installation
* Script update_3rdparty.py to download and upack the latest pdfjs
release
2015-12-20 19:24:41 +01:00
Daniel Schadt
60b9d7e6c3
Fix lints
2015-12-20 19:24:41 +01:00
Daniel Schadt
1882fb6006
Add pdf.js in frozen distribution
2015-12-20 19:24:41 +01:00
Florian Bruhin
eff0e4c7cc
pylint: Enable useless-suppression globally.
...
We deactivate it locally where needed, i.e. where we are sure it's some
platform-specific thing.
2015-12-01 23:01:09 +01:00
Florian Bruhin
109984c96e
pylint: Check attr-defined-outside-init for tests.
2015-12-01 22:41:16 +01:00
Florian Bruhin
788a096150
pylint: Ignore import-error globally for tests.
2015-12-01 22:03:59 +01:00
Florian Bruhin
150a83d8f4
pylint: Remove unneeded supressions.
2015-12-01 22:03:58 +01:00
Florian Bruhin
81f522336f
Do PYTHONPATH shenanigans in run_pylint_on_tests.
...
If we do it in tox.ini, there are two drawbacks:
- We have more stuff in PYTHONPATH even if we don't when actually using
qutebrowser.
- The separator is platform specific, so we can't easily do this in a portable
way in tox.ini.
2015-12-01 08:07:42 +01:00
Florian Bruhin
9cce8fe825
Adjust vulture whitelist for pylint changes.
2015-12-01 07:48:33 +01:00
Florian Bruhin
6f9b02741a
Switch from map() to list comprehensions.
2015-12-01 07:16:32 +01:00
Florian Bruhin
101f81844c
pylint: Adjust custom checkers for astroid 1.4.
...
Otherwise we'd run into https://bitbucket.org/logilab/pylint/issues/711
2015-12-01 07:10:39 +01:00
Florian Bruhin
a9de97968d
Make pylint shut up about ua_fetch.py.
2015-11-30 07:12:18 +01:00
Florian Bruhin
2ba55a0e77
Split generate_settings in src2asciidoc.
2015-11-30 07:11:03 +01:00
Florian Bruhin
f577da9a6b
Disable App Nap on OS X on Travis. Fixes #1143 .
2015-11-27 17:50:19 +01:00
Florian Bruhin
0d60ec43ed
Regenerate docs.
2015-11-23 13:26:32 +01:00
Florian Bruhin
16e1a65448
Merge branch 'download-page' of https://github.com/Kingdread/qutebrowser into Kingdread-download-page
2015-11-23 13:16:16 +01:00
Florian Bruhin
049102c644
Regenerate authors.
2015-11-23 11:24:40 +01:00
Daniel Schadt
fe1c8ee4e8
Also add cherrypy.wsgiserver.wsgiserver3 to freeze
2015-11-20 15:27:17 +01:00
Daniel Schadt
cb40b1020c
Add cherrypy.wsgiserver to frozen tests
2015-11-20 14:00:17 +01:00
Florian Bruhin
271cb47f87
Merge branch 'netrc' of https://github.com/Konubinix/qutebrowser into Konubinix-netrc
2015-11-18 20:38:57 +01:00
Daniel Schadt
3438a45b19
Merge branch 'master' into download-page
2015-11-18 19:27:26 +01:00