Commit Graph

37803 Commits

Author SHA1 Message Date
Kovid Goyal 23f22906b3 py3: Fix failure in Unhandled exception handler 2019-04-17 19:44:28 +05:30
Kovid Goyal 116ef1cc4d Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-04-17 18:25:36 +05:30
Eli Schwartz 5402785205 py3: more fixes to the mobi format 2019-04-17 03:14:22 -04:00
Kovid Goyal a5aec9233f py3: Fix console_print 2019-04-17 11:22:30 +05:30
Kovid Goyal 1a3d09a61b Content server: Add an option to control which book list mode is used by default for new users (Preferences->Sharing over the net->Choose book list mode) 2019-04-17 11:22:27 +05:30
Kovid Goyal 1cae595984 Add ifaddr and zeroconf to sources
Needed on python >= 3
2019-04-17 10:14:42 +05:30
Kovid Goyal 8029bef98b Content server: Fix links to external resources in book details and the viewer not working 2019-04-17 09:45:48 +05:30
Kovid Goyal 03e862aa70 py3: Fix passing stdout/stderr to RotatingLog not working 2019-04-17 09:27:57 +05:30
Kovid Goyal 3a9dd02e04 Fix server auto reload not working because of non-inherited file objects 2019-04-17 08:50:27 +05:30
Kovid Goyal 953eb7029d Make server auto-reload work win run-local 2019-04-17 08:49:39 +05:30
Kovid Goyal 14a8056a3c py3: Fix logging not flushing
Because we use sys.stdout.buffer, automatic line-wrapping does not work.
So instead issue a manual flush after every log call.
2019-04-17 08:49:09 +05:30
Kovid Goyal d2bcc94034 py3: Use native string for singleinstance address format 2019-04-17 08:32:56 +05:30
Kovid Goyal 5623d8c7f4 py3: Fix a couple of env var checks 2019-04-17 08:20:12 +05:30
Kovid Goyal dd328bdb8c Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-04-17 08:04:26 +05:30
Eli Schwartz 7fbf985870 py3: make SNB output work
variables initialized as implicit bytes '' on python2, should be b''
python2 used integer division, make this explicit on python3
2019-04-16 18:49:27 -04:00
Eli Schwartz 6583e1e2fb don't print exceptions directly, use traceback.print_exc() instead
This makes debugging actually useful, by seeing what failed.
2019-04-16 18:32:54 -04:00
Eli Schwartz 660b4233aa py3: remove unneeded use of cmp
No need to carry around a polyglot implementation of cmp here, when
sort(key=) works too.

Fixes unnoticed error due to .sort(function) being implied as cmp= on
python2, and not being permitted a positional argument on python3.
2019-04-16 18:31:08 -04:00
Kovid Goyal e020bbd946 Amazon metadata plugin: Add a option to use the mobi-asin to find books
Fixes #1823520 [[Enhancement] use mobi-asin id in amazon meta data search](https://bugs.launchpad.net/calibre/+bug/1823520)
2019-04-16 20:45:56 +05:30
Kovid Goyal f51263ff23 py3: Make clean_ascii_chars() polyglot 2019-04-16 20:43:03 +05:30
Kovid Goyal 5435126c7f Add sources for deps 2019-04-16 17:54:36 +05:30
Kovid Goyal dbd33868c3 ... 2019-04-16 09:34:34 +05:30
Kovid Goyal 4e2556ee63 py3: misc fixes
Connecting to a folder device and converting LRF files now work
2019-04-16 09:31:42 +05:30
Kovid Goyal 4f1a6c16c6 py3: Fix positions for non-BMP chars in the matcher
All tests now pass on python3
2019-04-15 20:12:18 +05:30
Kovid Goyal c8355e17b2 py3: Port check_isbn() 2019-04-15 20:06:02 +05:30
Kovid Goyal 204ab15119 py3: port parser tests 2019-04-15 19:57:59 +05:30
Kovid Goyal 03df438219 py3: Port bytes() 2019-04-15 19:48:42 +05:30
Kovid Goyal a07ad9633f py3: Port basic AZW3 output 2019-04-15 15:08:13 +05:30
Kovid Goyal 2a2a08b660 DRYer 2019-04-15 14:46:10 +05:30
Kovid Goyal 976a3f9b4a py3: All tests in srv module now pass 2019-04-15 14:34:16 +05:30
Kovid Goyal 0f4e37dfca typo 2019-04-15 14:34:01 +05:30
Kovid Goyal 4f6ae4b4bd Update Il Post 2019-04-15 14:04:21 +05:30
Kovid Goyal 51ae5ee86f py3: port websocket tests 2019-04-15 14:00:12 +05:30
Kovid Goyal 440d174284 py3: misc fixes 2019-04-15 12:11:09 +05:30
Kovid Goyal 3d795076c6 py3: Full fix for svg2painterpath (I hope) 2019-04-15 12:10:13 +05:30
Kovid Goyal e5b32b2c2f py3: More misc fixes only 4 failing tests left in the srv module 2019-04-15 11:23:38 +05:30
Kovid Goyal 15c4080567 py3: Port SSL test 2019-04-15 11:04:14 +05:30
Kovid Goyal 96746583a2 Limit the amount of time to wait for BonJour to shutdown 2019-04-15 10:26:57 +05:30
Kovid Goyal 7548a52e3d py3: Port Zeroconf/mdns
Requires zeroconf and ifaddr dependencies on python3
2019-04-15 09:43:44 +05:30
Kovid Goyal ef3d0cfe6c Bump version for beta 2019-04-15 08:59:08 +05:30
Kovid Goyal d0d609c715 Also ignore unserializable settings when migrating pickle files 2019-04-15 08:58:31 +05:30
Kovid Goyal 7f4ca92b5a Port ancient LRF viewer settings not serializable to JSON
Also just ignore non-serializable settings, making them None
when migrating .py files. Such settings are very rare and likely
in unused/rarely used corners of calibre so better to hav those fail
than the entire migration process.
2019-04-15 08:53:43 +05:30
Kovid Goyal 10a2cd77d0 Merge branch 'documentation' of https://github.com/eli-schwartz/calibre 2019-04-14 20:51:27 +05:30
Eli Schwartz 9853451a74 Update comment to be accurate about the current state of calibre
See https://github.com/Sigil-Ebook/Sigil/commit/781a5e32879b26030164fbdd60c36886c1820a0b#commitcomment-33165094
2019-04-14 10:59:36 -04:00
Kovid Goyal c95e064e53 py3: Port more content server tests 2019-04-14 20:00:27 +05:30
Kovid Goyal 333dab88c2 py3: misc fixes for the server
20 out of 34 tests for the server now pass
2019-04-14 19:22:50 +05:30
Kovid Goyal 2e8f88394b py3: Fix share_open
In py3 it can just be builtin open thanks to PEP 446
2019-04-14 18:34:07 +05:30
Kovid Goyal 5500e03a12 py3: Start work on porting the server 2019-04-14 15:27:06 +05:30
Kovid Goyal 1f86d92f7a py3: Port thumbnail cache
All db tests now pass on python3
2019-04-14 15:14:24 +05:30
Kovid Goyal cb117bf118 py3: Fix sorting on comments and identifiers fields 2019-04-14 14:52:57 +05:30
Kovid Goyal c6d993cfdd py3: Fix sorting on marked field 2019-04-14 14:41:59 +05:30