Commit Graph

548 Commits

Author SHA1 Message Date
Florian Bruhin 959c388984 tox: Use newest PyQt for pyinstaller
See #6611
2021-10-21 16:51:55 +02:00
Florian Bruhin 2f592f7ce6 Merge remote-tracking branch 'origin/pr/5457' into dev 2021-03-24 14:12:36 +01:00
Florian Bruhin 7b24ac9df7 tox: Add a bleeding environment
See #6298
2021-03-17 14:18:21 +01:00
Florian Bruhin f84b74823c tox: Force PyQt 5.15.3 for PyInstaller
See #6269
2021-03-12 13:31:52 +01:00
Florian Bruhin ab01b3970f ci: Add Python 3.10
Needs a couple of follow-up commits for workarounds, which hopefully
aren't needed anymore at a later point.

Fixes #6068
2021-01-26 20:32:57 +01:00
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin 4a9dea0aef tox: Don't run mypy over tests/
With https://github.com/python/mypy/pull/9614, mypy now tries to collect
all files in tests/, but it fails due to:

    tests/end2end/conftest.py: error: Duplicate module named 'conftest' (also at 'tests/end2end/features/conftest.py')
    tests/end2end/conftest.py: error: Are you missing an __init__.py?  [misc]

We should probably add __init__.py files to tests/ at some point...

See #6059 and #5249
2021-01-25 11:12:37 +01:00
Florian Bruhin 23198a1592 check-manifest: Ignore generated cheatsheet images 2020-12-30 12:53:01 +01:00
Florian Bruhin 214dd63441 tox: Use Python 3.8 for pylint
See https://github.com/PyCQA/pylint/issues/3760
2020-12-19 22:01:36 +01:00
Florian Bruhin 9774208b63 tox: Actually support -e py 2020-12-03 11:27:28 +01:00
Florian Bruhin 7ded49d326 tox: Allow posargs for misc_checks.py 2020-12-03 11:08:34 +01:00
Florian Bruhin 64c1c03d5b ci: Add Qt 5.15.0
We test Qt 5.15.2, but that's based on a newer Chromium version:

Qt 5.14.x -> Chromium 77
Qt 5.15.0 -> Chromium 80
Qt 5.15.2 -> Chromium 83

Some behavior changes between Chromium versions (see e.g. #5915), so it
makes sense to test both.

Picking 5.15.0 rather than .1 due to renderer process crashes in
5.15.1 (#5721). Doesn't matter much on the CI as we don't use WebRTC,
but if someone wants to downgrade with mkvenv.py for some reason, .0
will be more useful than .1.
2020-12-03 10:15:14 +01:00
Florian Bruhin 298e559714 tox: Remove pip-version and venv plugins
Since the virtualenv v20.0.0 rewrite, those are hopefully not needed
anymore.

Closes #5373
2020-11-20 16:20:51 +01:00
Florian Bruhin cc2d73b061 old qt: Drop CI 2020-11-04 11:30:54 +01:00
Florian Bruhin 0a5c2114c1 scripts: Add 'all' to misc_checks 2020-11-02 16:29:02 +01:00
Florian Bruhin 685a66280a Initial drop of Python 3.5
See #4800
2020-10-26 15:50:54 +01:00
Florian Bruhin 51428a03dc Add tox environment for build-release 2020-09-16 21:12:36 +02:00
Florian Bruhin defd18d963 Use Python 3.9 on CI 2020-08-11 13:18:35 +02:00
Florian Bruhin 41bcada133 Merge branch 'master' into pr/5457 2020-07-31 14:35:59 +02:00
Florian Bruhin dd5c9c7893 Revert "tox: Combine setenv lines"
This reverts commit 1b13ee9429.

This worked locally, but apparently not on CI. Not worth the trouble.
2020-07-30 19:53:40 +02:00
Florian Bruhin 1b13ee9429 tox: Combine setenv lines 2020-07-30 16:27:48 +02:00
Florian Bruhin 76eed0aa9c tox: Simplify pyinstaller envs 2020-07-30 16:23:05 +02:00
Florian Bruhin 1d061a0b97 tox: Update default envs 2020-07-27 15:48:59 +02:00
Florian Bruhin 1daa863218 Add yamllint 2020-07-23 11:21:04 +02:00
Florian Bruhin 1aeefe1968 ci: Disable mypy coloring again
Looks like mypy uses curses to get colors, so there's really nothing we can do
here on GitHub Actions.
2020-07-13 22:34:51 +02:00
Florian Bruhin f82c8cb5fe ci: Improve mypy output
- Set MYPY_FORCE_TERMINAL_WIDTH to get 180-column output (rather than 80), so
  that error messages fit on one line.
- Set MYPY_FORCE_COLOR to get colored output
- Adjust problemmatcher regex accordingly
2020-07-13 22:16:42 +02:00
Ash 2f6a48c74b Run tests inside dbus-run-session.
We need a dbus server, and this is the easiest way to make sure we have
one.
2020-07-08 19:02:05 -07:00
Florian Bruhin 2130af688a ci: Use PY_COLORS to force colored output
This should also color tox output, and it doesn't conflict with PYTEST_ADDOPTS
being used for coverage options.
2020-07-08 17:20:43 +02:00
Florian Bruhin ad645bba52 Add PYINSTALLER_DEBUG 2020-07-06 12:04:01 +02:00
Florian Bruhin a4de4ef6a4 ci: Remove remaining Travis/AppVeyor specific code
Also reenables some tests which have been problematic on Travis/AppVeyor but
maybe work fine nowadays.
2020-07-03 18:55:46 +02:00
Florian Bruhin 7f1ced0e43 ci: Set up nightly Python 2020-07-03 15:04:31 +02:00
Florian Bruhin 8d1a8540c5 ci: Force pytest colors for CI
For some reason, pytest on GitHub doesn't display any colors.
2020-07-02 22:21:07 +02:00
Florian Bruhin 35d0797b82 ci: Run shellcheck via tox 2020-07-02 22:21:07 +02:00
Florian Bruhin 75b4a069cb ci: Run eslint via tox
With GitHub Actions, we can now easily install tox *and* eslint in the same
environment.
2020-07-02 22:21:07 +02:00
Florian Bruhin 491fc4a35a tox: Use "passenv = TERM" to get colors
TERM being missing was the reason that eslint doesn't output colors unless
--color was given.

For some reason, forcing color via --color breaks GitHub Action's problem
matchers, while this approach works just fine.
2020-07-02 22:21:07 +02:00
Florian Bruhin 76e8debbc0 ci: Switch from TRAVIS to CI env vars 2020-06-24 19:36:30 +02:00
Florian Bruhin 0e2db8eadc Add "tox -e mypy-diff"
Not done by default with "tox -e mypy" because it disables mypy's caching,
causing its runtime to go from <1s to ~15s:
https://github.com/python/mypy/issues/9041

See #1456
2020-06-24 15:01:16 +02:00
Florian Bruhin f971cc041f ci: Switch to Qt 5.15 2020-06-01 13:54:58 +02:00
Florian Bruhin 2afda2ed1a mypy: Switch back to upstream stubs
See #5368
2020-05-09 16:45:30 +02:00
Florian Bruhin 14fd4860e4 build_release: Separate 32/64-bit pyinstaller envs on Windows
For some reason, pip fails now when trying to "update" the existing source
clone...
2020-04-27 16:29:00 +02:00
Florian Bruhin 58a14ba3b0 Remove deprecated features
- tox -e mkvenv and friends
- config.bind(key, None)
- :yank markdown
2020-04-27 16:13:59 +02:00
Florian Bruhin 3c30e30721 tox: Use Qt 5.14 for PyInstaller
Fixes #4918
2020-01-15 15:31:01 +01:00
Florian Bruhin a5d1dfd4b1 tox: Remove old workaround 2020-01-10 17:06:20 +01:00
Florian Bruhin 30fdde8a45 Replace tox -e mkvenv by a mkvenv.py script
This was mainly needed because PyQt 5.14.1 is a manylinux2014 wheel and needs
an updated pip, see #5013
2020-01-10 17:06:20 +01:00
Florian Bruhin fe3d3acfa7 tox: Add tox-pip-version
This is needed to upgrade pip so it can install PyQt 5.14.1 manylinux2014
wheels.
2020-01-09 22:09:03 +01:00
Florian Bruhin a4ae33b4e7 travis/tox: Use Qt 5.14 2020-01-09 22:09:03 +01:00
Florian Bruhin 3fe89ce84f tox: Add Qt 5.14
Also use Qt 5.14 for linters/etc. as it seems to work fine there.
2019-12-20 11:24:25 +01:00
Florian Bruhin ede2dcf4c2 Run mypy over tests as well
Rationale: https://twitter.com/codewithanthony/status/1188958327318794241
2019-10-29 12:10:32 +01:00
Florian Bruhin 039375a7c9 Fix broken tox.ini 2019-10-21 09:42:27 +02:00
Florian Bruhin a33770d50e Fix test_webview.py without QtWebKit 2019-10-20 22:19:31 +02:00