Commit Graph

41443 Commits

Author SHA1 Message Date
Kovid Goyal 4e5fda27a8 Switch macOS build to use new bypy freezer 2020-10-03 09:05:36 +05:30
Kovid Goyal b5af89b594 Dont remove lib2to3 as it is used by some thirdparty deps 2020-10-03 09:05:36 +05:30
Kovid Goyal bbb050b77c Modernize infra for loading plugins
Enable the new meta plugin finder and resource loading infrastructure from
python 3.7
2020-10-03 09:05:36 +05:30
Kovid Goyal 2938e2c203 New bypy freezing framework for Linux builds 2020-10-03 09:05:36 +05:30
Kovid Goyal f42b0b9f59 Add --compression-level to installer build commands 2020-10-03 09:05:36 +05:30
Kovid Goyal eb824ef094 Remove CALIBRE_DEVELOP_FROM from site.py
It will be implemented in the bypy frozen loader instead
2020-10-03 09:05:36 +05:30
Kovid Goyal 0c2b5e5b32 Add tests for ResourceReader implementation 2020-10-03 09:05:36 +05:30
Kovid Goyal ccdfbe96d5 No need to manipulate sys.path when importing calibre extensions in frozen builds 2020-10-03 09:05:36 +05:30
Kovid Goyal 29bfafa676 When finding tests also check for pyc
Needed in frozen builds
2020-10-03 09:05:36 +05:30
Kovid Goyal 2a0bdcfcbb Use the importlib resource infrastructure to run tests from directories
That way the tests will work even in frozen builds
2020-10-03 09:05:36 +05:30
Kovid Goyal cc9a40868e Linux: Move the calibre extensions out of site-packages
This means path based imports of them will continue to work
even after freeze into single dir
2020-10-03 09:05:36 +05:30
Kovid Goyal 6608e3e365 Edit book: Reports tool: Fix a regression that broke sorting. Fixes #1898167 [Sorting does not work](https://bugs.launchpad.net/calibre/+bug/1898167)
In Python 3 we apparently cannot return bytes types from models
2020-10-02 23:26:54 +05:30
Kovid Goyal 3e272bd3bc ... 2020-10-02 22:51:53 +05:30
Kovid Goyal 833c0db683 HTMLZ Output: Fix an error when converting a document that has SVG images 2020-10-02 19:21:24 +05:30
Kovid Goyal 5c7b4b340a Fix compiler warning 2020-10-02 11:55:38 +05:30
Kovid Goyal 3d41252817 Use RAII for file handle as well 2020-10-02 11:44:31 +05:30
Kovid Goyal dfab2e1a72 version 5.1.0 v5.1.0 2020-10-02 09:12:34 +05:30
Kovid Goyal b180fea7d6 Speedup windows_get_fileid
Also make it more robust by avoiding registry/time lookups. Fixes #1898110 [Cannot load Calibre 64 bit](https://bugs.launchpad.net/calibre/+bug/1898110)
2020-10-02 08:08:51 +05:30
Kovid Goyal b94819be9e Fix #1898105 [Private bug](https://bugs.launchpad.net/calibre/+bug/1898105) 2020-10-02 07:15:46 +05:30
Kovid Goyal be18bbfb04 pep8 2020-10-01 18:43:41 +05:30
Kovid Goyal c44316fc27 Incorrect use oh typographical quotes 2020-10-01 16:42:04 +05:30
Kovid Goyal e590347369 Only run push to Transifex on my repo 2020-10-01 16:37:48 +05:30
Kovid Goyal 868a2c8967 Fix modals not getting keyboard focus in updated WebEngine 2020-10-01 15:12:35 +05:30
Kovid Goyal bea311405a Viewer: Allow skipping the confirmation when using the remove highlight button in the popup bar. Fixes #1897415 [[Feature Request] Delete text highlight without confirmation box](https://bugs.launchpad.net/calibre/+bug/1897415) 2020-10-01 15:02:53 +05:30
Kovid Goyal 5e524df4dc ... 2020-10-01 14:01:01 +05:30
Kovid Goyal 13afd5537b Viewer lookup panel: Add a checkbox to disable automatic update of lookup when the selected text changes. Fixes #1897435 [Auto request getting sent for Lookup/Search selected word](https://bugs.launchpad.net/calibre/+bug/1897435) 2020-10-01 09:55:24 +05:30
Kovid Goyal c13f159d8c Ensure Yes button on confirm dialog boxes is focused
Fixes #1897469 [Sort style rules focus](https://bugs.launchpad.net/calibre/+bug/1897469)
2020-10-01 08:58:34 +05:30
Kovid Goyal c13750458c Temporary workaround for zipimport threading bug affecting metadata downloads on windows 2020-10-01 08:37:45 +05:30
Kovid Goyal 01c090592a Switch the bulk metadata edit dialog to also use the more advanced regex engine
Matches the rest of calibre
2020-09-29 16:50:24 +05:30
Kovid Goyal 2847d36e36 ToC Editor: Fix bulk rename of entries not working
Fixes #1897618 [Can't edit names in index of books](https://bugs.launchpad.net/calibre/+bug/1897618)
2020-09-29 06:23:34 +05:30
Kovid Goyal 3693494ab1 Fix #1897596 [News fetch breaks on TypeError in 5.0.1/Python 3 for legacy feeds created in prior Python 2-based versions](https://bugs.launchpad.net/calibre/+bug/1897596) 2020-09-28 21:40:51 +05:30
Kovid Goyal c27a4f141f Linux: Fix right clicking on system tray icon not working
Fixes #1897571 [Weird dbus error with the systray menu on Linux](https://bugs.launchpad.net/calibre/+bug/1897571)
2020-09-28 19:52:39 +05:30
Kovid Goyal 8586cb8d9a Merge branch 'master' of https://github.com/cbhaley/calibre into master
Fixes #1897432 [[Enhancement] Delete entries in the Manage Saved searches screen using the Delete key](https://bugs.launchpad.net/calibre/+bug/1897432)
Fixes #1897356 [Exclusion searches for user categories are unreliable in Calibre 4.23](https://bugs.launchpad.net/calibre/+bug/1897356)
2020-09-28 16:30:39 +05:30
Charles Haley 4291fb7f32 Enhancement #1897432: Delete entries in the Manage Saved searches screen using the Delete key 2020-09-28 10:59:22 +01:00
Charles Haley 86e4b2cc6a Fix for #1897356: Exclusion searches for user categories are unreliable in Calibre 4.23 2020-09-28 10:38:52 +01:00
Kovid Goyal ec59a9b624 PDF Output: Dont fail if the input document has an html file identified as the cover 2020-09-28 08:45:06 +05:30
Kovid Goyal 51a0dfa54f Remove obsolete disclaimer 2020-09-28 08:09:47 +05:30
Kovid Goyal b2a7264130 Catalog generation: Fix a regression that broke generating catalogs if books with no comments are present. Fixes #1897467 [failure to create catalog in epub format with R 5.0 and 5.01](https://bugs.launchpad.net/calibre/+bug/1897467) 2020-09-27 22:40:13 +05:30
Kovid Goyal 639fc2dd51 Add a bug reference for import not being thread safe 2020-09-27 14:01:20 +05:30
Kovid Goyal 9eb68319cd Windows: Fix error on first run of calibre after install/upgrade
Apparently python's zipimport on windows is not thread safe. And the
register default programs code was running ina  thread at the same time
as the calibre gui was initializing causing imports to fail.

Workaround it by ensuring that no imports happen in the register default
programs thread.

Fixes #1897314 [Execution problem from the installer](https://bugs.launchpad.net/calibre/+bug/1897314)
2020-09-27 13:38:29 +05:30
Kovid Goyal 912cd9813b String changes 2020-09-27 12:00:30 +05:30
Kovid Goyal a1d1b216f9 Remove 3.x entries from Changelog
Moved to Changelog.old
2020-09-27 10:33:54 +05:30
Kovid Goyal ede119b66c Dont have the separators in the parse error message translated 2020-09-27 10:24:36 +05:30
Kovid Goyal 0699bbfee6 Cleanup search template documentation 2020-09-27 10:15:58 +05:30
Charles Haley dac576f52b Change the separator to make it easier to read and to write: #@#:[tdnb]: 2020-09-27 10:05:14 +05:30
Charles Haley 96414d7160 Some tests for the search template stuff 2020-09-27 10:05:13 +05:30
Charles Haley c3867b3473 Use the template cache to speed up evaluation when searching using templates. 2020-09-27 10:05:13 +05:30
Charles Haley ae189e0eee Enhancement: allow using templares in search strings 2020-09-27 10:05:13 +05:30
Kovid Goyal 13e4f17a50 Viewer: Fix copy to clipboard button in toolbar not working
Viewer: Fix copy to clipboard not copying text as HTML to clipboard in
addition to plain text

Fixes #1897297 [Copy in the viewer doesn't work properly](https://bugs.launchpad.net/calibre/+bug/1897297)
2020-09-27 09:48:44 +05:30
Kovid Goyal f11c874fb9 Remove the create highlight button from the viewer toolbar
See #1897373 (Viewer: "Highlight text in the book" toolbar button does nothing)
2020-09-27 08:29:20 +05:30