Commit graph

26 commits

Author SHA1 Message Date
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