Commit Graph

2044 Commits

Author SHA1 Message Date
Florian Bruhin 0e9f5e7e4f scripts: Upgrade to Qt 6
Using qutebrowser.qt where we import from qutebrowser already anyways
2023-06-30 19:29:28 +02:00
Florian Bruhin 67e3826e9a Update vulture 2023-06-30 19:29:28 +02:00
Florian Bruhin b5d5c7f4d3 More qt 6 tooling 2023-06-30 19:29:28 +02:00
Florian Bruhin ffc06e58d6 qt6: Switch most tooling/linting to Qt 6
Only mypy missing now...
2023-06-30 19:29:28 +02:00
Florian Bruhin 0ac074575d qt 6: Update mkvenv.py for Qt 6 by default 2023-06-30 19:29:28 +02:00
Florian Bruhin 8e024ee654
Merge pull request #7761 from pylbrecht/remove-vim-modelines
Remove vim modelines in favor of .editorconfig
2023-06-30 15:51:19 +02:00
Florian Bruhin 4cf2eea580 qt6 mypy: Fix lint 2023-06-30 11:59:45 +02:00
Philipp Albrecht 6f727664a9 Add misc check to prevent vim modelines
We deprecated vim modelines. The introduced misc check will keep old pull requests from
re-introducing vim modelines.
2023-06-30 11:03:19 +02:00
Philipp Albrecht d9e8b638bf Remove vim modelines
We're deprecating vim modelines in favor of `.editorconfig`.

Removing vim modelines could be done using two one-liners. Most of the vim modelines
were followed by an empty line, so this one-liner took care of these ones:

```sh
rg '^# vim: .+\n\n' -l | xargs sed -i '/^# vim: /,+1d'
```

Then some of the vim modelines were followed by a pylint configuration line, so running
this one-liner afterwards took care of that:

```sh
rg '^# vim:' -l | xargs sed -i '/^# vim: /d'
```
2023-06-30 11:03:06 +02:00
Philipp Albrecht 08ea751fe1 Remove modeline pylint checker
We're deprecating vim modelines in favor of `.editorconfig`.
2023-06-30 10:59:06 +02:00
Florian Bruhin 904cab911d mypy: Install more typeshed types 2023-06-30 00:49:30 +02:00
Florian Bruhin a6d4227578 qt6 mypy: Fix lint 2023-06-30 00:29:16 +02:00
Florian Bruhin 772c39cea2 scripts: Add a help to docker generate script 2023-06-29 10:30:55 +02:00
Florian Bruhin 93c7fdd60c Initial Python 3.7 drop 2023-06-26 14:39:54 +02:00
Florian Bruhin b9855b9104 Fix keyring changelog URL 2023-06-26 14:03:00 +02:00
toofar 937cfa41ad Pin for 3.8 and changelog URL for jaraco.functools 2023-06-26 18:01:15 +12:00
Florian Bruhin a7e6242fd6 Update changelog URLs 2023-06-19 17:35:10 +02:00
Florian Bruhin e97bcff9dc scripts: Allow --pyqt-version in mkvenv with --pyqt-type wheels
To adjust which version to use for the smoketest
2023-06-15 16:30:24 +02:00
Florian Bruhin 665cbfc45a scripts: Check if PyQt wheels directory exists 2023-06-15 15:41:59 +02:00
Florian Bruhin 1cf9d68aba qt: Fix lint 2023-06-13 15:21:28 +02:00
Florian Bruhin 63b4b95fd3 Fix vulture 2023-06-08 14:57:10 +02:00
Florian Bruhin c247634066 ci: Fix broken Docker condition 2023-05-31 12:56:33 +02:00
Florian Bruhin d7d1293569 ci: Fix pip installs for docker 2023-05-31 12:18:57 +02:00
Florian Bruhin 839c8b6fe9 ci: Keep QtWebKit on life support, part 2
Since Archlinux upgraded to Python 3.11, we need to downgrade Python
to 3.10 too, and install tox via pip instead.

This starts becoming somewhat questionable, but if this approach still
does indeed work, let's go for it.
2023-05-31 11:22:14 +02:00
toofar 8168fb983e update link_pyqt for tox 4
Although we updated the tox requirements files for tox4 in December, it
looks like the docker containers (or at least the one(s) that call this
script) are still using tox3. `.tox-config1` isn't written anymore with
tox4 (although my git-fu isn't strong enough to find the commit that
removed it).

The "Rebuild Docker CI images" run 912 was the last to have tox 3.26.0-2
and run 913 had version 4.4.12-1.

I'm not sure the new change does the same thing as whatever the old code
did. I honestly have no idea why we can't just follow the python symlink
and have to go to a config file. In what case does the python binary not
link to the system one?

In addition to this `.tox-info.json` file there is also the more
standard `pyvenv.cfg` file. I would prefer to use that over the tox
thing as generally I find tox to be a high barrier of entry for
contributors. But in that case the pyvenv one doesn't seem to be well
documented either...

Anyway, if anyone knows any cases where following the symlink of the
python in the venv isn't reliable that would be great. Because that
seems like the simpler method.
2023-05-07 13:49:19 +12:00
toofar 8b2b4fc61e Flask updates, pin for py37 and add blinker
Pin Flask and Werkzeug for py3.7
They've removed compatibility upstream.
Added example to readme file because I had to go dig for one in the
commit history.
Add blinker to changelog URLs as it's a required dependency of Flask
now.
2023-05-07 12:29:15 +12:00
Florian Bruhin 293a993b6b build_release: Also ignore GpuChannelMsg_CreateCommandBuffer for Qt 5
Looks like we have some failing smoke tests with:

[6636:16643:0329/041427.206197:ERROR:command_buffer_proxy_impl.cc(141)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
2023-03-29 10:28:30 +02:00
Florian Bruhin 41ebbc0d73 scripts: Fix indent 2023-03-23 22:17:17 +01:00
Florian Bruhin dabd8ede86 scripts: Use proper Qt version for smoke test
See https://github.com/qutebrowser/qutebrowser/issues/7202#issuecomment-1481877459
2023-03-23 22:01:48 +01:00
Florian Bruhin dbc7871b47 Update changelog URLs 2023-03-23 17:32:39 +01:00
toofar f68798a081 ci: attempt to make the qt6 docker run work
On CI were were getting "Could not import sip" because link_pyqt was
looking for PyQt5.sip.
I made that look at QUTE_QT_WRAPPER since that's being set already on
tox.ini
There are probably a few other changes around link_pyqt and the makefile
etc we need to change when we switch the default wrapper.

I overrode the default `py` tox environment with py-qt6 to override
those wrapper related variables. I probably could have done something
sneaky with curly braces to make it so we don't have to add a few more
lines to the file. But in my opinion in config file is far to obfuscated
and hard to maintain already.

I changed the docker file to call the new py-qt6 env if it's a qt6
container. I'm not 100% sure that is required though since there is also
a tox invocation in the GH action definition, maybe that overrides the
container entrypoint? Also changed the indentation in the dockerfile
template a bit to make it easier to see where the conditionals start and
end.

Speaking of which I changed the matrix definition and tox invocation to
match a later one to hopefully make it so we can invoke different tox
environments in the containers without having to rebuild the containers.
Not sure I did that right, I'll see soon.

I added the unstable-qt6 container generation line so we can use it in
the future, and to match the not-qt6 one. I'm not switching to that in
CI though because the pyqt used by that is broken at the moment
(ref https://www.riverbankcomputing.com/pipermail/pyqt/2023-March/045214.html)

Also fixed the vim modeline in generate.py so my syntax highlighting
works.
2023-03-18 17:29:25 +13:00
toofar 856fe781a1 Merge remote-tracking branch 'upstream/qt6-v2' into master-qt6 2023-03-18 16:24:58 +13:00
Florian Bruhin 1c4b5cc3d2 Make vulture happy 2023-03-17 21:28:07 +01:00
Florian Bruhin 4793070db3 Merge branch 'qt6-v2' into master-qt6 2023-03-17 20:30:13 +01:00
Florian Bruhin ab7245732e scripts: Patch relative links for correct doc generation
In doc/help/index.asciidoc, we have links like this:
    * link:../quickstart{outfilesuffix}[Quick start guide]

That is correct in e.g. the GitHub file structure, as those files are
stored in e.g. doc/quickstart.asciidoc indeed.

It's *no* longer true when we view the built files via qute://help,
however: There, this turns into a flat file structure, with those pages
being at qute://help/index.html and qute://help/quickstart.html,
respectively.

It looks like QtWebEngine < 6.5 did just ignore the
<a href="../quicktart.html"> and pointed from qute://help/index.html to
qute://help/quickstart.html anyways, weirdly.

With QtWebEngine 6.5, however, this is now interpreted as a link
pointing to qute://quickstart.html instead, which is clearly wrong.

Until we have a less messy doc generation (probably as part of #345),
let's just patch the link to be correct.

See #7624
2023-03-17 17:44:38 +01:00
toofar f069d1188b Remove pep517 changelog entry
It got split to pyproject-hooks and build. Most of our requirements
switched a while ago, pyorama was the last to do so.

ref: #7593
2023-03-05 18:32:00 +13:00
Florian Bruhin 934e87c133 Update changelog URLs 2023-02-14 18:57:33 +01:00
toofar 1e67b26df1
Merge pull request #7576 from qutebrowser/update-dependencies
Update dependencies
2023-02-07 20:16:21 +13:00
Florian Bruhin 3d3e4dc554 Update changelog URLs 2023-02-06 11:33:14 +01:00
toofar bbaffa3e34 lint: no-else-raise
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
2023-02-06 19:50:22 +13:00
toofar ff8dbc4580 lint: broad-exception-raised
Mostly pretty lazy fixes. Most of the places in the tests we were
already matching on error message, a couple of places we weren't. The
tick-tock one was the only one that wasn't being used right where it was
raised.

Some of them I just changed to RuntimeError because it was shorter than
adding the pylint directive.
2023-02-06 18:53:56 +13:00
toofar 35daf8e783 update changelog for sphinxcontrib-applehelp again 2023-02-03 07:38:50 +13:00
Florian Bruhin f4f5ca2663 Fix missing raw string prefix 2023-01-29 15:43:08 +01:00
toofar 62245cbd98 Add changelog entries for markdown-it-py for rich
Apparently commonmark is unmaintained: https://github.com/Textualize/rich/pull/2439
2023-01-23 19:36:04 +13:00
toofar 89744a9e70 Add changelog url for pyproject_hooks
This is actually the renamed pep517, but I'm not removing that as
pyorama still depends on it. Even though pyproject_hooks got added to
the pyorama requirements file, huh???
2023-01-23 19:17:28 +13:00
Florian Bruhin 391623d5ec tox: Don't use environment names ending in digits
This fails now with 'failed with env name pyinstaller-32 conflicting with base python C:\hostedtoolcache\windows\Python\3.10.9\x86\python.exe'

See https://github.com/tox-dev/tox/pull/2824
2023-01-19 09:58:06 +01:00
Florian Bruhin d2e31aa1e6 Update changelog URLs 2023-01-10 11:31:09 +01:00
Florian Bruhin 57cc93da89 scripts: Fix isort changelog URL 2022-12-19 10:37:50 +01:00
Florian Bruhin 5ea48c6e78 scripts: Ignore CreateCommandBuffer warning for release smoketest 2022-12-16 21:05:35 +01:00
Florian Bruhin 253789d8c0 Revert "bleeding tests: Downgrade broken mesa"
This reverts commit 3f5febf227.

ec144824e8
Fixes #7509
2022-12-15 14:44:35 +01:00
Florian Bruhin 78f7784331 docker: Init archlinux keyring 2022-12-15 08:20:07 +01:00
Florian Bruhin cdef889b4c docker: Make sure to upgrade archlinux-keyring first 2022-12-15 08:16:16 +01:00
Florian Bruhin b4d32e04f4 Merge branch 'master' into qt6-v2 2022-12-13 09:05:32 +01:00
Florian Bruhin 2d7f1b6595 Update changelog URLs for tox 4 2022-12-12 13:56:30 +01:00
Florian Bruhin bbdc83f638 Fix lint/ci 2022-12-12 13:37:07 +01:00
Florian Bruhin af176f749f scripts: Use pip-installed asciidoc
Fixes #7352, closes #6793
2022-12-12 11:06:28 +01:00
Florian Bruhin b63cdf19f4 scripts: Show asciidoc errors while discovering 2022-12-12 09:51:22 +01:00
Florian Bruhin 3f5febf227 bleeding tests: Downgrade broken mesa
See https://archlinux.org/packages/extra/x86_64/mesa/download/
2022-12-06 10:38:53 +01:00
Florian Bruhin 8ac1cb6867 Merge remote-tracking branch 'origin/pr/7479' 2022-11-28 11:07:33 +01:00
Florian Bruhin 02274b7641 scripts: Add trove-classifiers changelog URL 2022-11-28 10:41:47 +01:00
Florian Bruhin 938392f93d requirements: Drop flake8-copyright for now
See #7499, #7104 and https://github.com/savoirfairelinux/flake8-copyright/issues/19
2022-11-28 10:40:48 +01:00
toofar ca667d6429 Fixup dockerfile template for qt6 configurations
The merge resolution I did in 2d66466194 was a bit hasty. Hopefully
all supported configurations should work now.
2022-11-20 16:15:06 +13:00
toofar 2d66466194 Merge branch 'master' into qt6-v2
Just a few conflicts around CI and dependencies.
2022-11-20 15:48:00 +13:00
Florian Bruhin f277876ce0 dictcli: Switch from master to main
Fixes #7481
2022-11-19 16:00:15 +01:00
Kian-Meng Ang d77b0fb8a3 Fix typos
Found via `codespell -S *.js -L
technik,gir,nam,ans,wih,wil,ro,nowe,te,datas,qutie,ned,fo,clude,alph,crashers,nd,wasn,cros,ue,possition`

Co-authored-by: Marcel Schilling <marcel.schilling@uni-luebeck.de>
2022-11-19 13:03:39 +08:00
Florian Bruhin a03109dad2 ci: Fix docker build and add sanity check 2022-11-16 09:42:19 +01:00
Florian Bruhin f0489cb6a5 ci: Keep QtWebKit on live support a bit longer
See #7478, #4039
2022-11-16 09:28:38 +01:00
Florian Bruhin 0cd682afbd Revert "ci: Drop QtWebKit"
This reverts commit 00ee3fad34.
2022-11-16 09:10:42 +01:00
Florian Bruhin d4397b6b63 Update changelog URL 2022-11-16 09:10:16 +01:00
Florian Bruhin 00ee3fad34 ci: Drop QtWebKit
See #7478, #4039
2022-11-14 21:24:03 +01:00
toofar 756e23f57b remove glob2 from changelog urls
Got dropped from pytest-bdd: https://github.com/pytest-dev/pytest-bdd/pull/570
2022-11-07 18:10:52 +13:00
Florian Bruhin 80cf0c5bdd Revert to recompile_requirements.py with set-output
Newlines don't work anymore, see #7459

Partially reverts 0ff0eaa, see #7439
2022-11-03 14:58:27 +01:00
Florian Bruhin 0ff0eaa703 ci: Get rid of set-output
Fixes #7439
2022-11-03 11:53:28 +01:00
Florian Bruhin bc225557a5 Adjust warnings and changelog URLs for new pytest 2022-10-31 08:19:25 +01:00
Florian Bruhin c610579885 scripts: Remove changelog URL for types-cryptography 2022-10-24 09:29:44 +02:00
Florian Bruhin fa62360357 Remove unneeded str
Only needed in Python 3.5 times
2022-09-30 20:23:38 +02:00
Florian Bruhin 03e510acff Update pylint ignores 2022-09-19 11:21:11 +02:00
Florian Bruhin 3f542636af Update changelog URLs 2022-09-19 11:16:03 +02:00
Florian Bruhin ee4d6e0396 sql: Add *all* primary sqlite result codes
For three reasons:

- There are only 31 of them, and we don't really expect any more to
  turn up (last happened in 2013, and we have a test for it happening)
- It makes for nicer debug output
- It always felt strange to only have a small subset in the enum
2022-08-26 19:11:15 +02:00
Florian Bruhin bb19aea7c9 Add missing copyright blurbs 2022-08-23 18:31:42 +02:00
Florian Bruhin 0a6448bcb3 Fix changelog URLs 2022-08-23 18:31:42 +02:00
Florian Bruhin a516ad98fd tox: Simplify tox syntax
We can use negative factors now, and Qt 6.2/6.3 can be simplified too.

See https://tox.wiki/en/latest/config.html#complex-factor-conditions
2022-08-23 18:31:42 +02:00
Florian Bruhin 03e383a18f build-release: Add suffixes for Qt 6 2022-08-23 18:31:42 +02:00
Florian Bruhin 8c8f05d538 build-release: Make whitelist more fine-grained 2022-08-23 18:31:42 +02:00
Florian Bruhin b4b5c1d755 build-release: Reenable partial macOS symlinking
See #7252
2022-08-23 18:31:42 +02:00
Florian Bruhin 7f4f072629 build-release: Ignore sandboxing disabled message
See #7278
2022-08-23 18:31:42 +02:00
Florian Bruhin c8378d0872 Switch to PyInstaller master branch
Closes #7258
2022-08-23 18:31:42 +02:00
Florian Bruhin a6becca540 scripts: Add check for direct PyQt imports 2022-08-23 18:31:42 +02:00
Florian Bruhin 7623875a18 mkvenv: Work around QT_DEBUG_PLUGINS crash
Fixes https://github.com/qutebrowser/qutebrowser/issues/7257
2022-08-23 18:31:42 +02:00
Florian Bruhin e956e7b8c7 build-release: Ignore new macOS warnings temporarily
See #7255 and #7256
2022-08-23 18:31:42 +02:00
Florian Bruhin 2baa590043 build-release: Increase macOS template size once again
See #7252
2022-08-23 18:31:42 +02:00
Florian Bruhin 6ff6ce23e5 pyinstaller: Disable symlink patching for now
See #7252
2022-08-23 18:31:42 +02:00
Florian Bruhin 42ab19b63b macOS: Use patched PyInstaller
See #7258
2022-08-23 18:31:42 +02:00
Florian Bruhin c64a43d44d scripts: Adjust supported architectures for PyQt6
32-bit Windows support got dropped, macOS arm64 (M1) support added.
2022-08-23 18:31:42 +02:00
Florian Bruhin 66b210ea7d scripts: Add _is_qt6_version to mkvenv 2022-08-23 18:31:42 +02:00
Florian Bruhin 0dbad34b39 Revert "Patch PyQt6 QUrl flag behavior for Python 3.11"
This reverts commit 14c1593de2abd9f24a223805a4740d8d9fd93622.
Fixed in Python 3.11b2: https://github.com/python/cpython/pull/93302
2022-08-23 18:31:42 +02:00
Florian Bruhin 38f6de4b0c mkvenv: Apply workaround with --pyqt-version 5 2022-08-23 18:31:42 +02:00
Florian Bruhin 769ef6859f Adjust some fixme comments 2022-08-23 18:31:42 +02:00
Florian Bruhin 4de0e90fd0 Patch PyQt6 QUrl flag behavior for Python 3.11
See https://www.riverbankcomputing.com/pipermail/pyqt/2022-May/044668.html
and https://github.com/python/cpython/issues/93250

TODO: Revert again?
2022-08-23 18:31:41 +02:00
Florian Bruhin f4cb011432 mkvenv: Remove sip packages from binary args
e.g. not available for Python 3.11 yet
2022-08-23 18:31:41 +02:00
Florian Bruhin 0cf7453fc3 ci: Prepare Qt 6 dockerfiles 2022-08-23 18:31:41 +02:00
Florian Bruhin c0ffd6d327 scripts: Pass through Qt 6 to PyInstaller 2022-08-23 18:31:41 +02:00
Florian Bruhin a5a824f234 scripts: Initial Qt 6 support for build_release.py 2022-08-23 18:31:41 +02:00
Florian Bruhin ec8eebf996 lint: Fix remaining pylint issues 2022-08-23 18:31:41 +02:00
Florian Bruhin d3c1a50598 lint: Fix rewrite scripts 2022-08-23 18:31:41 +02:00
Florian Bruhin 52f2b430e9 lint: Fix flake8 docstring issues 2022-08-23 18:31:41 +02:00
Florian Bruhin e658ce6acf lint: Remove unused imports
Via autoflake and git add -p
2022-08-23 18:31:41 +02:00
Florian Bruhin 5aa9cb7401 Fix misc checks 2022-08-23 18:31:41 +02:00
Florian Bruhin 39ea85645b Fix vulture 2022-08-23 18:31:41 +02:00
Florian Bruhin b44abce26e scripts: Add --pyqt-snapshot to mkvenv.py 2022-08-23 18:31:41 +02:00
Florian Bruhin 9212ba94d6 scripts: Allow linking/installing pyqt-5 or pyqt-6 2022-08-23 18:31:41 +02:00
Florian Bruhin ff1e165be1 mkvenv: Fix comparison
TODO: pick to master?
2022-08-23 18:31:41 +02:00
Florian Bruhin ef486aa263 Remove unneeded old log ignores 2022-08-23 18:31:41 +02:00
Florian Bruhin c151183e9d Update mkvenv.py for Qt 6 2022-08-23 18:31:41 +02:00
Florian Bruhin c5a51eb0bc Drop Qt < 5.15
Fixes #7091

TODO: Add changelog
2022-08-23 18:31:41 +02:00
Florian Bruhin 71d1be9812 testbrowser: Support PyQt6 2022-08-23 18:31:41 +02:00
Florian Bruhin ded275dd93 scripts: Add rewrite_find_flags.py 2022-08-23 18:31:40 +02:00
Florian Bruhin d8a66ca825 scripts: Detect PyQt location 2022-08-23 18:31:40 +02:00
Florian Bruhin 73b73f49c2 scripts: Use builtin ast parser 2022-08-23 18:31:40 +02:00
Florian Bruhin d30afc3b0d scripts: Add rewrite_find_enums.py from issue 2022-08-23 18:31:40 +02:00
Florian Bruhin a11f1d34d3 Add rewrite_enums.py 2022-08-23 18:09:11 +02:00
Florian Bruhin 6cac151ad9 Add basic qt wrapper stuff 2022-08-23 18:09:11 +02:00
Florian Bruhin 3dd969e731 Merge remote-tracking branch 'origin/pr/7293' 2022-08-23 17:58:09 +02:00
Florian Bruhin 0dda1d41be ci: Fix regex for macOS log
The smoke test runs without debug logging, so the format is different.
2022-08-22 14:19:55 +02:00
Florian Bruhin e8cc163d84 scripts: Ignore new macOS 11 warning
Not sure where it's coming from, but it happened after swiching CI to macOS 11, and nobody has complained about it.
2022-08-22 13:59:23 +02:00
Florian Bruhin b8cc8588f5 Update changelog URLs 2022-08-22 10:47:21 +02:00
Florian Bruhin 1c984ec080 Update changelog URLs 2022-08-08 09:20:06 +02:00
Florian Bruhin 5e370a80c0 Re-add missing changelog URLs 2022-08-06 11:28:11 +02:00
Florian Bruhin ea077cece9 flake8: Reenable flake8-copyright and flake8-future-import
Partial revert of faf04f3791
2022-08-03 15:21:26 +02:00
Florian Bruhin ea22d74b9b Update changelog URLs 2022-08-03 15:15:26 +02:00
Florian Bruhin faf04f3791 flake8: Remove broken plugins
https://github.com/PyCQA/flake8/issues/325
https://github.com/savoirfairelinux/flake8-copyright/pull/9
https://github.com/xZise/flake8-future-import/issues/25
https://github.com/aleGpereira/flake8-mock/issues/10
2022-08-01 13:35:45 +02:00
Florian Bruhin 57be330ff6 Update changelog URLs 2022-07-11 10:25:32 +02:00
Florian Bruhin dc7dad5de8 ci: Add actionlint 2022-07-11 10:23:27 +02:00
kt programs 389eac1bb3 macOS: fix hide_decoration making window nonresizable
Use PyObjC to call `setWindowMask:` with resizable flag on the
underlying NSWindow.

Fixes #4067
2022-07-05 17:14:05 +08:00
Florian Bruhin e78ddee519 Update changelog URLs 2022-07-04 11:56:27 +02:00
Florian Bruhin 52d98ad9aa build-release: Fix f-string, take 2 2022-06-22 16:02:57 +02:00
Florian Bruhin 208e56f0e9 build-release: Fix handling of Windows .zip suffix 2022-06-22 15:56:17 +02:00
Florian Bruhin 4e5b1d287d build-release: Fix f-string 2022-06-22 15:35:26 +02:00
Florian Bruhin f13af68cac build-release: Fix wrong path on Windows 2022-06-17 15:41:25 +02:00
Florian Bruhin 3b81525826 Fix lint 2022-06-16 21:06:38 +02:00
Florian Bruhin 660e776a15 build-release: Sign macOS .app properly
Based on https://github.com/pyinstaller/pyinstaller/issues/6612
Might help with #6771.
2022-06-16 21:03:20 +02:00
Florian Bruhin 611a6d5cb2 build-release: Modernize
pathlib, type annotations, modern syntax, dataclasses
2022-06-16 19:47:27 +02:00
Florian Bruhin 46de10722c build-release: Move macOS Info.plist back to PyInstaller .spec
The patching was originally introduced back in 2017 in #3055, when
PyInstaller only supported very basic Info.plist operations.

This changed in 2018 (!) however, with PyInstaller 3.4:
https://pyinstaller.org/en/stable/CHANGES-3.html#id8
https://github.com/pyinstaller/pyinstaller/pull/3532

Thus, let's move this back to PyInstaller. This produces exactly the
same Info.plist as before.

Fixes #7251
2022-06-16 17:52:35 +02:00
Florian Bruhin 9e2c5d493b build-release: Accept --skip-packaging on macOS 2022-06-16 16:23:07 +02:00
Florian Bruhin 23cc4d186c build-release: Add pre-dmg smoke test for macOS
Fixes #7254
2022-06-16 15:15:55 +02:00
Florian Bruhin 583354d524 Merge remote-tracking branch 'origin/pr/6670' into dev 2022-06-13 15:47:31 +02:00
Florian Bruhin dc673b89a0 Update changelog URLs 2022-06-13 10:29:35 +02:00
Emanuele Torre 51ab91c1aa asciidoc2html.py: also install qute://{install,stacktrace}.html
Closes #6900
2022-06-10 20:20:53 +02:00
Florian Bruhin 6c4e281028 pylint: Fix new unnecessary-lambda-assignment 2022-06-08 12:25:12 +02:00
Florian Bruhin 5aa89662e3 Update changelog URLs 2022-06-08 11:56:39 +02:00
Florian Bruhin 047a44c4c1 requirements: Remove icdiff
The native pytest output often seems better
2022-05-12 08:38:05 +02:00
Florian Bruhin 9154f02cae Merge remote-tracking branch 'origin/pr/7138' 2022-04-28 12:04:30 +02:00
Florian Bruhin 7a523a6618 Update babel changelog URL 2022-04-25 19:02:11 +02:00
code-review-doctor 357e644b68 Fix issue probably-meant-fstring found at https://codereview.doctor 2022-04-24 01:09:57 +01:00
Jimmy d37945fd0b add ply changelog
Although this is just the version published to pypi. I don't know what
version sip is using. The version published on pypi is apparently stable
and mature and any further changes on github are simplifications that
the author doesn't particularly want to support.

I don't know if we actually hit the parsing code in our workflows but it
is published as a dependancy.

The latest version talks about removing optional stuff from the API a
bunch. But sip just uses `from ply import lex, yacc` so hopefully that
is a stable part of the API. Even if sip is using the newer one.
2022-04-18 18:19:58 +12:00
Florian Bruhin 96425c93bf Merge remote-tracking branch 'origin/pr/7103' 2022-04-05 12:14:53 +02:00
Florian Bruhin f6a365172a Use legacy PDF.js build for macOS/Windows releases
Fixes #7108
2022-04-05 11:33:19 +02:00
Florian Bruhin ab7a2ee558 Switch to Python 3.7 subprocess API
Follow-up for #6905
2022-04-04 16:58:31 +02:00
Florian Bruhin 0d3af197d9 Revert "pylint: Disable unnecessary-ellipsis for tests"
This reverts commit 2b76b61640.
2022-04-04 11:27:16 +02:00
Florian Bruhin 65fd458833 Update changelog URLs 2022-04-04 11:12:13 +02:00
Florian Bruhin b29c13c0a5 scripts: Handle root requirements.txt properly
Regressed in ac2cb6bb30
2022-04-04 10:51:35 +02:00
Florian Bruhin da280df809 Clean up some remaining Python version references 2022-04-04 10:51:34 +02:00
Jimmy e9ed6456fd Load icons via importlib.resources
The PyQt resources system is gone in 6.2 and deprecated before that. This
should be the last usage of it.

Switches icons to be read with `utils.resources.read_file_binary()` in
`notification.py` (fallback desktop notification icon) and `app.py` (icon for
the desktop window).

importlib only loads resources under a package, so the icons are moved under
the `qutebrowser/` directory.

Closes: #6062
2022-04-04 18:03:54 +12:00
Jimmy cd4429db25 Remove 3.6 pins from requirements files.
Then regenerate the relevant files.
Also drop dataclasses from requirements files.
TODO: should we drop the dataclasses-types requirement for mypy too?
2022-04-04 12:08:19 +12:00
Florian Bruhin f7bf9d0c33 Mark qute-pass as executable and add checker
Regressed in #7068
2022-04-02 12:45:40 +02:00
Florian Bruhin 0c38f6b78f scripts: Improve ordering 2022-03-30 12:22:47 +02:00
Florian Bruhin f4ddea2fef Add docstring 2022-03-30 12:01:57 +02:00
Florian Bruhin ac2cb6bb30 scripts: Show requirement name in table output 2022-03-30 11:55:57 +02:00
Florian Bruhin 7f847e44e9 scripts: Update pyroma changelog URL 2022-03-30 10:11:25 +02:00
Florian Bruhin b6800acf48 scripts: Add changelog URL for dill 2022-03-29 18:12:02 +02:00
Florian Bruhin 2b76b61640 pylint: Disable unnecessary-ellipsis for tests
See https://github.com/PyCQA/pylint/issues/6036 and https://github.com/PyCQA/pylint/issues/6037
2022-03-29 17:57:03 +02:00
Florian Bruhin f45dcb1aba pylint: Work around used-before-assignment issues
See https://github.com/PyCQA/pylint/issues/6035
2022-03-29 17:22:56 +02:00
Florian Bruhin db720b1454 Let mypy check for blanket ignores 2022-03-14 10:04:36 +01:00
Florian Bruhin 4c0eea93d6 Fix inconsistent doc generation 2022-03-07 12:02:23 +01:00
Jimmy 273973bcb5 update changelogs
mostly due to itsdangerous dropping jwcrypto

a bit of python3.6 churn this week

github3.py link was out of date
2022-02-21 22:15:14 +13:00
Florian Bruhin a22f60e385 scripts: Remove EasyProcess changelog URL 2022-02-14 16:18:18 +01:00
Florian Bruhin 10267f70e3 scripts: Move changelog URLs to JSON 2022-01-10 10:01:29 +01:00
Florian Bruhin d491da13cc scripts: Update cheroot changelog URL 2022-01-10 09:55:24 +01:00
Florian Bruhin f4714a9300 Use flake8-pytest-style 2022-01-04 10:30:24 +01:00
Florian Bruhin 11880a96f5 scripts: Update changelog URLs 2022-01-03 09:47:06 +01:00
Florian Bruhin e78c6699a0 scripts: More version parsing in recompile_requirements
Required for misc_checks.py
2021-12-20 15:08:02 +01:00
Florian Bruhin 6b66221dea scripts: Handle lines with == in marker correctly 2021-12-20 11:36:26 +01:00
Florian Bruhin 1ba9ab9ce4 Update changelog URLs 2021-12-13 15:07:41 +01:00
Florian Bruhin 5e6bae3983 Merge branch 'packaging-update'
# Conflicts:
#	misc/requirements/requirements-dev.txt
2021-12-03 15:58:48 +01:00
Florian Bruhin 2378ba7886 scripts: Use 'build' to build sdist
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
2021-12-03 15:52:03 +01:00
Florian Bruhin 733868ff87 scripts: Run 'twine check' 2021-12-03 15:42:14 +01:00
Florian Bruhin 42fac2a5c1 Update changelog URLs 2021-12-03 15:34:22 +01:00
Florian Bruhin a580079206 scripts: Handle packaging dependencies via tox 2021-12-03 15:28:04 +01:00
Florian Bruhin 04c71c4d44 pylint: Avoid conflicting message IDs 2021-12-03 14:11:18 +01:00
Florian Bruhin bbb44f6e50 Add some missing docstring params 2021-12-03 13:50:57 +01:00
Florian Bruhin f30df9c959 pylint: Remove open encoding checker
Now built into pylint
2021-12-03 12:04:59 +01:00
Florian Bruhin e4a667e06e pylint: Disable use-implicit-booleaness-not-comparison in tests 2021-12-03 12:04:59 +01:00
Florian Bruhin 2f69664c2a pylint: Disable wrong-import-order for tests 2021-12-02 17:38:29 +01:00
Florian Bruhin ed2342a430 pylint: Handle consider-using-with 2021-12-02 17:30:47 +01:00
Florian Bruhin 39b7f7dba0 Update charset_normalizer changelog URL 2021-11-30 07:48:28 +01:00
Florian Bruhin b655f56101 scripts: Adjust for new typing_extensions name 2021-11-17 10:25:12 +01:00
Florian Bruhin b04f7ec2f7 scripts: Better lxml changelog URL 2021-11-08 08:27:34 +01:00
Florian Bruhin ca114a0766 scripts: Fix changelog URLs for real 2021-10-21 18:26:57 +02:00
Florian Bruhin e6e7e95013 scripts: Use new Qt path in build_release 2021-10-21 18:18:36 +02:00
Florian Bruhin 51972fa4e2 Revert "scripts: Remove macOS symlinking"
This reverts commit a0bfb7c824.

It *is* required, just used the wrong path...

gg
2021-10-21 18:18:03 +02:00