summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2016-02-11Include pstats for frozen tests.Florian Bruhin
2016-02-11Fix lint.Florian Bruhin
2016-02-11Rewrite run_profile script.Florian Bruhin
There's now --profile-tool to select between various tools, a new --profile-file option, and it uses argparse.
2016-02-10add CONTRIBUTING to index and asciidoc2html.pyPatric Schmitz
2016-02-05ci_install: Cleanup, improve messages.Florian Bruhin
This cleans up the whole script, and outputs nicer folded messages.
2016-02-05travis: Avoid using the default GCE mirror.Florian Bruhin
We patch sources.list to use the US loudbalancer instead of the hardcoded GCE mirror which Travis uses by default - because that seems to be quite unstable.
2016-02-03Add a fake clipboard for testsFlorian Bruhin
There are a lot of problems and flakiness with using a real clipboard. Instead we now have a :debug-set-fake-clipboard command to set a text, and use logging when getting the contents. Fixes #1285.
2016-02-01Revert "update_3rdparty: add docstring to main()"Florian Bruhin
This reverts commit 90e88ce0d0de0a4177d4159d7c49887f99f620f2.
2016-02-01Merge branch 'pdfjs' of https://github.com/Kingdread/qutebrowser into ↵Florian Bruhin
Kingdread-pdfjs
2016-02-01pylint: Don't require docstring for main() funcs.Florian Bruhin
2016-02-01update_3rdparty: add docstring to main()Daniel Schadt
2016-02-01update_3rdparty: add option for pdfjs versionDaniel Schadt
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-01Revert "ci_install: Pin virtualenv to 14.0.3 on Windows."Florian Bruhin
This reverts commit ec214f4897afe68bdcded501da32c83fcd073f39. Fixed upstream in virtualenv 14.0.5.
2016-02-01ci_install: Pin virtualenv to 14.0.3 on Windows.Florian Bruhin
WORKAROUND for https://github.com/pypa/virtualenv/issues/858
2016-01-24Move pytest arguments to pytest.ini.Florian Bruhin
Closes #1260.
2016-01-24Avoid running coverage when it's unneeded.Florian Bruhin
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-24Add pkg_resources._vendor.packaging to freeze.py.Florian Bruhin
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-22flake8: Add flake8-pep3101 plugin.Florian Bruhin
Checks for old string formatting. https://pypi.python.org/pypi/flake8-pep3101/
2016-01-22ci_install: Update Python3 for flake8 env.Florian Bruhin
2016-01-22ci_install: Show Python version.Florian Bruhin
2016-01-11100% coverage for mainwindow/statusbar/prompt.py.Florian Bruhin
2016-01-10Whitelist prompt.py for 100% coverage check.Florian Bruhin
It has 100% due to integration tests, but no unit tests yet.
2016-01-05Don't hide stderr in link_pyqt.py.Florian Bruhin
We're just hiding useful debug information this way.
2016-01-05Merge branch 'Kingdread-pdfjs'Florian Bruhin
2016-01-05Fix asciidoc2html on Windows.Florian Bruhin
Windows needs the SystemRoot environment variable set to initialize the crypto API, what running Python in a subprocess does. However, we did override the whole environment instead of extending it, which means this broke on Windows when calling asciidoc: Traceback (most recent call last): File "C:\asciidoc-8.6.9\asciidoc.py", line 9, in <module> import sys, os, re, time, traceback, tempfile, subprocess, codecs, locale, unicodedata, copy File "C:\Python27\lib\tempfile.py", line 35, in <module> from random import Random as _Random File "C:\Python27\lib\random.py", line 885, in <module> _inst = Random() File "C:\Python27\lib\random.py", line 97, in __init__ self.seed(x) File "C:\Python27\lib\random.py", line 113, in seed a = long(_hexlify(_urandom(2500)), 16) WindowsError: [Error -2146893795] Provider DLL failed to initialize correctly
2016-01-05Download pdfjs in build_release.py.Florian Bruhin
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-05Revert "Call update_3rdparty before freezing"Florian Bruhin
This reverts commit 384a9ad923084dd02bea31d09cf9e12c4dee5ace.
2016-01-05Merge branch 'pdfjs' of https://github.com/Kingdread/qutebrowser into ↵Florian Bruhin
Kingdread-pdfjs
2016-01-05Fix lint.Florian Bruhin
2016-01-05Fix build_release.py with inexistent dist-dir.Florian Bruhin
2016-01-05Use build_release.py to build sdist on Linux.Florian Bruhin
See #1091.
2016-01-04www: symlink quickstart.html correctly.Florian Bruhin
Fixes #1203.
2016-01-04Adjust copyright years.Florian Bruhin
2015-12-20Add pdfjs.is_available to vulture whitelistDaniel Schadt
vulture reports it as a false-positive, it's used in the tests but not picked up by vulture.
2015-12-20Remove unused tempfile importDaniel Schadt
2015-12-20Fix update_3rdparty on windowsDaniel Schadt
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-20Call update_3rdparty before freezingDaniel Schadt
2015-12-20pdfjs: adjust path in scripts/dev/misc_checks.pyDaniel Schadt
2015-12-20Fix pep8/pylintDaniel Schadt
2015-12-20Update pdfjs path in freeze.pyDaniel Schadt
2015-12-20Move pdfjs and use original filesDaniel Schadt
* 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-20Fix lintsDaniel Schadt
2015-12-20Add pdf.js in frozen distributionDaniel Schadt
2015-12-02Refactor how use_color is set in scripts/utils.Florian Bruhin
2015-12-01pylint: Enable useless-suppression globally.Florian Bruhin
We deactivate it locally where needed, i.e. where we are sure it's some platform-specific thing.
2015-12-01pylint: Check attr-defined-outside-init for tests.Florian Bruhin
2015-12-01pylint: Ignore import-error globally for tests.Florian Bruhin
2015-12-01pylint: Remove unneeded supressions.Florian Bruhin
2015-12-01Do PYTHONPATH shenanigans in run_pylint_on_tests.Florian Bruhin
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-01Adjust vulture whitelist for pylint changes.Florian Bruhin