Damien Elmes
6411d3768a
fix qtwebengineprocess failing to load on darwin-aarch64
2021-10-16 18:07:39 +10:00
Damien Elmes
bbcd403dd5
work around pyqt6.2.0's incorrect architecture label
2021-10-16 18:07:39 +10:00
Damien Elmes
efe02960c7
roll back regex due to unsigned wheel
2021-10-16 18:07:39 +10:00
Damien Elmes
27a4e7e957
remove unneeded namespace code from install_pyqt5/6.py
2021-10-16 18:07:29 +10:00
Damien Elmes
beaf9153f6
drop rules_pip
...
Our vendored Python includes a recent pip, so we no longer need rules_pip's
dependencies for our PyQt scripts.
2021-10-16 16:54:35 +10:00
Damien Elmes
f949ef63b5
update Python deps
2021-10-16 09:29:11 +10:00
Damien Elmes
484de62e72
download wheels using rules_python
2021-10-15 16:02:26 +10:00
Damien Elmes
32cf761e7b
expose pyqt6 packages - not yet used
2021-10-15 10:47:53 +10:00
Damien Elmes
a074903975
strip extras from requirements.txt
...
The extra was preventing use as a pip constraints file.
2021-10-04 15:05:48 +10:00
Damien Elmes
00c68b44e0
update Python deps
2021-10-02 23:52:23 +10:00
Damien Elmes
521a158406
update to latest mypy
...
mypy's move to external types-* packages is a PITA, as it requires them
to be installed in site-packages, and provides no way to specify a custom
site-packages folder, necessitating extra scripts to mock the
site-packages path, and copy+rename the stub packages into a separate
folder.
2021-06-16 16:04:59 +10:00
Damien Elmes
12b8b36e80
bump Python deps
...
closes #1216
2021-06-02 15:26:04 +10:00
Damien Elmes
78b431cbf1
work around Windows issue on latest Black
...
Thanks Rumo!
552a53495e
2021-05-13 20:15:51 +10:00
Damien Elmes
552a53495e
roll back black for now due to Windows breakage
2021-05-07 18:50:25 +10:00
Damien Elmes
0bfd03d781
update Python deps
2021-05-07 18:13:17 +10:00
Damien Elmes
c6a0c57bff
Revert "add formatting experiment for posterity"
...
This reverts commit 03ad39d1a4 .
2021-04-14 19:12:14 +10:00
Damien Elmes
03ad39d1a4
add formatting experiment for posterity
2021-04-14 19:12:05 +10:00
Damien Elmes
2a43d42323
run black/isort on Python scripts
2021-04-14 18:22:02 +10:00
Damien Elmes
e35b2f68ac
add an updated script to run mypy as a daemon
...
Sadly doesn't work on Windows
2021-04-14 18:10:38 +10:00
Damien Elmes
6b863188be
bump Python deps
2021-04-14 16:12:53 +10:00
Damien Elmes
bd7f3a4985
expose binaries from pip
2021-04-13 21:21:30 +10:00
Damien Elmes
926fc2e492
add missing copyright headers to *.py
2021-04-13 18:45:35 +10:00
Damien Elmes
15f549fdf9
update Python deps
2021-03-27 14:52:21 +10:00
Damien Elmes
9c1fe88912
fix mypy treating Qt objects as inheriting from Any
...
Before this change, mypy would fail to catch mistakes like
mw.does_not_exist(). Also fix a couple of bugs this has uncovered.
2021-03-19 19:45:21 +10:00
Damien Elmes
c87fc86f7d
winrt packaging bug has been fixed
2021-02-03 13:34:44 +10:00
Damien Elmes
708f60ee1b
update to latest mypy_protobuf
...
The handling of enum types has improved - we no longer need to import
separate types at typechecking time.
2021-02-03 13:31:52 +10:00
Damien Elmes
0697e197cb
update mypy and other Python deps
...
latest mypy_protobuf can no longer be run directly, so we need
to run a wrapper instead
2021-02-01 15:50:04 +10:00
Damien Elmes
b87b32f2ea
update piptools; automatically insert winrt footer
2021-01-04 13:19:17 +10:00
Damien Elmes
e3b2ed6077
catch references to missing terms in ftl check
...
https://github.com/ankitects/anki/pull/889
- We can't use compare_locales's getChecker(), as it seems to
be focused on checking translations rather than the original
templates.
- Also fix return code not being passed on in check_files()
- Temporarily pin pip-tools, as its output format has changed
2021-01-04 13:19:17 +10:00
Damien Elmes
5a79515f2a
support overriding pyqt via env var
...
Documentation to come later.
2020-12-30 13:36:57 +10:00
Damien Elmes
e7f82d926a
winrt 1.0.20239.1 isn't available for python 3.9
2020-12-23 20:31:13 +10:00
Damien Elmes
a0bfd2a1d8
update waitress to handle broken hostnames
...
Fixes https://github.com/Pylons/waitress/issues/312
2020-12-21 14:42:00 +10:00
Damien Elmes
80352765d6
document winrt pin reason
2020-12-21 13:57:51 +10:00
Damien Elmes
4afaad6065
update setuptools; remove header
...
So users don't need to manually exclude the header from the git commit
2020-12-21 13:44:29 +10:00
Damien Elmes
4111f9cea5
add winrt for TTS work
...
https://github.com/ankitects/anki/pull/855
Also update psutil version
2020-12-20 10:54:57 +10:00
Damien Elmes
b13f6d4931
document ANKI_PROFILE_CODE and add bazel command to run snakeviz
2020-12-17 12:03:24 +10:00
Damien Elmes
ba36f5f80f
add snakeviz
2020-12-17 10:57:51 +10:00
Damien Elmes
d4c19f0980
update python deps
2020-12-17 10:57:44 +10:00
Damien Elmes
1819607b88
bump py deps
2020-12-09 15:54:35 +10:00
Damien Elmes
de1efacf7c
update qt to 5.12.2
2020-12-01 10:56:13 +10:00
Damien Elmes
829cdaebdd
add script to extract FTL strings
2020-11-19 11:26:09 +10:00
Damien Elmes
b444eea75d
dump pypi licenses of runtime deps
2020-11-12 20:03:41 +10:00
Damien Elmes
c1e154e3ad
update Python deps
2020-11-12 20:03:41 +10:00
Damien Elmes
dc9026e9d7
orjson was missing from dep list; drop 32 bit compat
2020-11-12 20:03:41 +10:00
Damien Elmes
e4ba941cf1
move aqt_data into source folder; implement wheel building
2020-11-04 12:14:03 +10:00
Damien Elmes
439ae181d7
README updates
2020-11-03 09:03:00 +10:00
Damien Elmes
e32dbb4fa5
pin Python deps
2020-11-02 21:05:37 +10:00
Damien Elmes
efc69f59eb
pyqt5 -> pip/pyqt5
2020-11-02 19:22:23 +10:00
Damien Elmes
ce3b08ac58
initial Bazel conversion
...
Running and testing should be working on the three platforms, but
there's still a fair bit that needs to be done:
- Wheel building + testing in a venv still needs to be implemented.
- Python requirements still need to be compiled with piptool and pinned;
need to compile on all platforms then merge
- Cargo deps in cargo/ and rslib/ need to be cleaned up, and ideally
unified into one place
- Currently using rustls to work around openssl compilation issues
on Linux, but this will break corporate proxies with custom SSL
authorities; need to conditionally use openssl or use
https://github.com/seanmonstar/reqwest/pull/1058
- Makefiles and docs still need cleaning up
- It may make sense to reparent ts/* to the top level, as we don't
nest the other modules under a specific language.
- rspy and pylib must always be updated in lock-step, so merging
rspy into pylib as a private module would simplify things.
- Merging desktop-ftl and mobile-ftl into the core ftl would make
managing and updating translations easier.
- Obsolete scripts need removing.
- And probably more.
2020-11-01 14:26:58 +10:00