Commit Graph

37751 Commits

Author SHA1 Message Date
Kovid Goyal 3e68346e4e Remove code to reset temp folder permissions on windows
Being unable to chdir ot the temp folder is going to break a lot of
things, so that workaround would not really help anyway.

Also port ptempfile to use unicode_literals
2019-04-14 13:29:36 +05:30
Kovid Goyal ed42a7c1b6 py3: Fix legacy_coverage test 2019-04-14 12:20:43 +05:30
Kovid Goyal 1529fb2f8b Do not use detect_types in legacy sqlite code
This code is unused anywhere except tests. detect_types did not work
with python3 so make the type co-ercion explicit. fixes a whole lot of
failing tests on py3
2019-04-14 12:06:47 +05:30
Kovid Goyal 4c7e194a92 ... 2019-04-14 09:25:07 +05:30
Kovid Goyal 2bdf7f7508 Fix for weird type error passing sys.maxsize to xrange 2019-04-13 22:04:56 +05:30
Kovid Goyal 33bb570277 ... 2019-04-13 19:45:27 +05:30
Kovid Goyal 55f9f88d91 Fix regression that broke the Get books dialog 2019-04-13 15:40:37 +05:30
Kovid Goyal b68dbb2bf5 Fix regression that broke the unhandled exception handler 2019-04-13 15:34:12 +05:30
Kovid Goyal 880b3acc1d py3: Port builtins.py 2019-04-13 15:27:03 +05:30
Kovid Goyal c8509ffcf2 Test importing bs4 in the build tests as well 2019-04-13 10:11:02 +05:30
Kovid Goyal e0d33736f3 Bump version for beta 2019-04-13 10:07:58 +05:30
Kovid Goyal b177f0a109 Nicer fix for lru_cache() that does not require meta_path trickery 2019-04-13 10:01:46 +05:30
Kovid Goyal b968cbdb5d Ensure meta_path is setup for soupsieve build test 2019-04-13 09:54:14 +05:30
Kovid Goyal 79f5a6c18b Add lru_cache() to polyglot
I decided to vendor the implementation from
https://raw.githubusercontent.com/jaraco/backports.functools_lru_cache/master/backports/functools_lru_cache.py

as it depends on setuptools_scm installing which is failing on the macOS
build machine with SSL errors that I cant be bothered to track down. Not
to mention that installing a an extra dependency just for a single
function is absurd.
2019-04-13 09:42:27 +05:30
Kovid Goyal 13961abd16 Also check python files using python 3 flake8 2019-04-13 09:17:31 +05:30
Kovid Goyal 623f6623b5 Fix error message when bulk converting and conversion of some books fails 2019-04-12 22:45:52 +05:30
Kovid Goyal a8da128259 Add a build test for soupsieve 2019-04-12 13:57:16 +05:30
Kovid Goyal 1c132c22a3 ... 2019-04-12 10:42:42 +05:30
Kovid Goyal 0a07da5515 Content server: Fix using a bookmark to load the book list not working is server is password protected. Fixes #1819025 [Error message in Chrome when trying to log in to a bookmarked page in the content server](https://bugs.launchpad.net/calibre/+bug/1819025) 2019-04-12 10:33:43 +05:30
Kovid Goyal 7308f4073f Tag Mapper: Allow Title-casing of tags. Fixes #1823097 [Feature Request: Tag Mapper Option - Title Case](https://bugs.launchpad.net/calibre/+bug/1823097) 2019-04-12 09:09:02 +05:30
Kovid Goyal 6dd0f72bae ... 2019-04-12 08:57:39 +05:30
Kovid Goyal 50b55e4d3e Confirm cancel on library restore dialog
Fixes #1823204 [Enhancement: avoid losing hours of work](https://bugs.launchpad.net/calibre/+bug/1823204)
2019-04-12 08:55:51 +05:30
Kovid Goyal 6db83eab73 Bump version for beta 2019-04-12 08:42:15 +05:30
Kovid Goyal 109e0d9b1c forgot to migrate test for new br behavior 2019-04-12 08:41:57 +05:30
Kovid Goyal bde983bdeb When transforming comments HTML dont use closing br tags as older versions of WebKit cannot handle them 2019-04-12 08:38:50 +05:30
Kovid Goyal 982500475d Merge branch 'master' of https://github.com/davidfor/calibre 2019-04-11 18:08:28 +05:30
David 7330bfdebb Fix typo in BS4 changes for fetching annotations
I have only tested the Kobo version, but the Kindle is the same at this
point.
2019-04-11 22:22:10 +10:00
Kovid Goyal 795bd06ee9 ... 2019-04-11 15:16:29 +05:30
Kovid Goyal efa6ae353a py3: Fix colored output for console logger not working 2019-04-11 15:10:05 +05:30
Kovid Goyal cf0ae84e80 py3: port logging.py 2019-04-11 14:52:45 +05:30
Kovid Goyal b972584f4b py3: port LIT Input 2019-04-11 14:44:32 +05:30
Kovid Goyal 94d5b27128 py3: misc fixes for conversion pipeline 2019-04-11 12:12:29 +05:30
Kovid Goyal c569f857bb py3: Port LIT Output 2019-04-11 12:11:52 +05:30
Kovid Goyal 73f58e6868 Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-04-11 11:36:05 +05:30
Eli Schwartz df072f7cae py3: encode string before writing ebook mimetypes to the container
Fixes saving books in the editor.
2019-04-11 01:49:53 -04:00
Kovid Goyal 11537ddd46 py3: Misc AZW3 input fixes 2019-04-11 10:29:37 +05:30
Kovid Goyal 2c3c25da02 py3: Fix incorrect conversion of bytes args in palmdoc module 2019-04-11 10:17:53 +05:30
Kovid Goyal 6e87989022 Ensure 0 version updates are not reported 2019-04-11 09:03:17 +05:30
Kovid Goyal 0e1a89c338 Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-04-11 08:58:25 +05:30
Eli Schwartz 92052e79d4 py3: miscellaneous strings need to be marked as bytes 2019-04-10 13:30:36 -04:00
Eli Schwartz 8c6698abf7 py3: decode uuid4().hex using python3-compatible syntax
Also skip the additional uuid import, as it is already imported at the
top of the file.
2019-04-10 13:30:35 -04:00
Kovid Goyal 75d3542287 py3: misc fixes 2019-04-10 22:37:22 +05:30
Kovid Goyal 601c5ca255 py3: misc fixes to get the editor to start 2019-04-10 22:29:49 +05:30
Kovid Goyal 683212da39 Merge branch 'haiku_support' of https://github.com/extrowerk/calibre 2019-04-10 22:22:28 +05:30
Zoltán Mizsei eb1a8d72fe Haiku doesn't support pthread_set_name_np yet 2019-04-10 18:11:27 +02:00
Kovid Goyal 12fefdd7b1 py3: Port uses of compiled_coffeescript to load JS 2019-04-10 21:18:41 +05:30
Kovid Goyal edfff91424 py3: fix for sort_func returning None as None cannot be ordered in py3 2019-04-10 21:02:08 +05:30
Kovid Goyal eced0f25b3 py3: misc fixes 2019-04-10 20:56:52 +05:30
Kovid Goyal 1a602a7873 py3: Port urlunquote
Also take the opportunity to make unquote correct on python 2 by moving
urlunquote to the polyglot module
2019-04-10 20:53:01 +05:30
Kovid Goyal 50dd4952cb Fix removal of invalid directories in import test 2019-04-10 20:48:09 +05:30