Commit graph

2679 commits

Author SHA1 Message Date
Glutanimate
af508cec71 When possible, install add-on before add-ons are loaded
Removes the need to restart Anki if it is not running when
user launches .ankiaddon file
2020-01-04 04:34:16 +01:00
Glutanimate
e4c3a23007 Fix type hints and remove obsolete argument 2020-01-04 04:31:33 +01:00
Glutanimate
6a37cd05bb Make sure to pass pending imports on to installAddon
also: refactor add-on check
2020-01-04 04:30:33 +01:00
Damien Elmes
1fa01bca67 don't reference missing readme in setup.py 2020-01-04 12:21:58 +10:00
Damien Elmes
3a4730ac91 remove unused scripts.inc 2020-01-04 12:21:58 +10:00
Damien Elmes
39f2ca54e8 quieten wheel build 2020-01-04 12:21:58 +10:00
Damien Elmes
c88694333b update readme, remove submodule readmes 2020-01-04 12:21:58 +10:00
Damien Elmes
53ac8c0f0f split up build steps in top level makefile 2020-01-04 12:21:58 +10:00
Damien Elmes
351699268a move top level scripts into makefile 2020-01-04 12:21:58 +10:00
Damien Elmes
d8d2a36fe2 Merge pull request #410 from glutanimate/ankiaddon-filetype-handling
Make .ankiaddon files installable via the CLI, registering Anki as their default file type handler
2020-01-04 12:19:39 +10:00
Aristotelis
09c4c0000a Merge branch 'master' into ankiaddon-filetype-handling 2020-01-04 02:49:36 +01:00
Glutanimate
e1e848c6ed Merge branch 'ankiaddon-filetype-handling' of https://github.com/Glutanimate/anki into ankiaddon-filetype-handling 2020-01-04 02:36:28 +01:00
Glutanimate
be89378ee2 Adjust type annotations, format string, and remove tooltip on cancel
Other areas of Anki don't confirm cancelling actions with tooltips,
so after further consideration, the tooltip felt out of the place and
might have actually confused users into thinking some action was
being performed.
2020-01-04 01:30:20 +01:00
Damien Elmes
73c38c0933 check contributors automatically 2020-01-04 08:04:22 +10:00
Damien Elmes
ad3769f3c2 add default value to ServerData 2020-01-04 07:53:20 +10:00
Damien Elmes
c870f37e39 use 'python3' to create the venv, for systems still defaulting to v2 2020-01-04 07:53:20 +10:00
Damien Elmes
12a24e06c1 split out rename-with-buildhash 2020-01-04 07:53:20 +10:00
Damien Elmes
bb380c5447 Merge pull request #409 from glutanimate/update-contributors-file
Add myself to CONTRIBUTORS
2020-01-04 07:50:35 +10:00
Aristotelis
e6a3e7360b Merge pull request #1 from amboss-mededu/add-amboss-contrib
Add AMBOSS as a contributor
2020-01-03 18:45:20 +01:00
Yann Salimi
f70f7dd518 Add AMBOSS as a contributor 2020-01-03 18:37:50 +01:00
Glutanimate
b61610142e Fix mypy and black checks 2020-01-03 18:23:28 +01:00
Glutanimate
6cad2b2983 Add .ankiaddon mime-type on Linux and register Anki as its handler 2020-01-03 17:58:11 +01:00
Glutanimate
8b2588f079 Extend CLI with the ability to install .ankiaddon packages
Allows Anki to register a mime-type handler for .ankiaddon files

Other small collateral changes:

+ fix positioning issues with some prompts and progress dialog
+ add prompt titles where they were missing
+ add type annotations for AddonManager installation methods
+ explicitly import os in main (used to be imported via aqt.qt)
2020-01-03 17:57:33 +01:00
Glutanimate
74b0899ef1 Extend showInfo with the ability to add custom buttons
Grants more flexibility in user prompt design
2020-01-03 17:48:17 +01:00
Glutanimate
6bf7736e84 Refactor add-on installation error handling
Allows extending the installation pathways more easily.
In preparation of .ankiaddon file type handling.
2020-01-03 16:32:20 +01:00
Glutanimate
fa773154db Add myself to CONTRIBUTORS 2020-01-03 13:46:03 +01:00
Damien Elmes
e766fe16db Merge pull request #408 from ErezVolk/add-tags-on-update
Add an option to add a set of tags to notes updated on import
2020-01-03 17:01:00 +10:00
Erez Volk
a711ca3831 Merge remote-tracking branch 'upstream/master' into add-tags-on-update 2020-01-03 08:42:13 +02:00
Damien Elmes
d4c34af282 CI fixes 2020-01-03 16:37:43 +10:00
Erez Volk
0e77bfc010 Enable Tag Modified iff importMode is Update 2020-01-03 08:32:44 +02:00
Erez Volk
bf6672d7e8 Merge remote-tracking branch 'upstream/master' into add-tags-on-update 2020-01-03 08:13:04 +02:00
Damien Elmes
2648f4d200 BSD wants -i '', GNU wants -i'' 2020-01-03 16:02:06 +10:00
Damien Elmes
8839696ac3 add build hash to generated wheels
ensures devel builds always get reinstalled, since they don't match
the declared version in the wheel
2020-01-03 15:47:15 +10:00
Damien Elmes
515e081d8b formatting fix 2020-01-03 15:21:36 +10:00
Damien Elmes
a113887d56 add buildhash to rspy and aqt, and check all three modules match 2020-01-03 15:15:18 +10:00
Damien Elmes
5eee63ca6d use proper version number in build outputs 2020-01-03 14:36:14 +10:00
Damien Elmes
7efccd69f8 output into dist/ 2020-01-03 14:32:26 +10:00
Damien Elmes
5c91987218 drop 'extra' from default cloze note type
Too many users get confused about where they should be placing the
cloze deletions.
2020-01-03 13:40:50 +10:00
Damien Elmes
152637caae fix invalid escape warning 2020-01-03 13:38:23 +10:00
Damien Elmes
a71f607936 make sure isort preserves ordering if anki installed into python env 2020-01-03 13:34:51 +10:00
Damien Elmes
293893f701 clarify the work for hire case 2020-01-03 10:44:22 +10:00
Damien Elmes
c0438373dd move license info into one place 2020-01-03 09:41:30 +10:00
Damien Elmes
ec42767ce9 add contributors file 2020-01-03 09:31:02 +10:00
Damien Elmes
3dc53deece speed up two tests
the regular test run is now faster than the old parallel one was
2020-01-03 09:05:04 +10:00
Damien Elmes
b3b95713e6 report slowest test 2020-01-03 09:03:39 +10:00
Damien Elmes
df2cc2fb02 switch from nose2 to pytest
pytest will show what differs in simple assert statements

concurrent mode is supported with a plugin, but like nose2, concurrent
mode hides the cause of import errors, so I've left it off for now.
2020-01-03 08:52:10 +10:00
Damien Elmes
648e51b60d don't reformat buildhash 2020-01-03 08:25:12 +10:00
Damien Elmes
86bb676007 integrate i18n into new structure 2020-01-03 08:24:59 +10:00
Damien Elmes
6d0c9cd289 add translations from crowdin 2020-01-03 07:59:33 +10:00
Damien Elmes
e1621ed66a merge i18n into qt/ 2020-01-03 07:59:00 +10:00