Commit Graph

37600 Commits

Author SHA1 Message Date
Kovid Goyal dc15aff051 py3: Remove another use of cStringIO 2019-03-31 10:05:15 +05:30
Kovid Goyal c33768b35e Move the python imports test out of the build test module
The build test is designed to run with frozen calibre, where the
source files may not be available. So run it only as part of
the setup test suite.
2019-03-31 09:31:38 +05:30
Kovid Goyal 496d8beed8 py3: more cStringIO 2019-03-30 14:55:32 +05:30
Kovid Goyal dec0a11ec0 py3: replace more cStringIO 2019-03-30 14:46:04 +05:30
Kovid Goyal f149427104 py3: Port use of (un)hexlify() 2019-03-30 14:34:48 +05:30
Kovid Goyal fcd5700306 py3: port use as base64 module 2019-03-30 13:01:47 +05:30
Kovid Goyal a0afe775ba py3: Disambiguate str() 2019-03-29 20:39:43 +05:30
Kovid Goyal 6bd02c1aae py3: Disambiguate str() 2019-03-29 20:26:04 +05:30
Kovid Goyal d4c95b0df6 Remove not working recipe
Fixes #864 (Deleted bloomberg recipe, change in service)
2019-03-29 18:45:40 +05:30
Kovid Goyal e9ef5296e7 Fix #1821968 [Epub Catalog using some former value](https://bugs.launchpad.net/calibre/+bug/1821968) 2019-03-29 13:16:23 +05:30
Kovid Goyal a67857483f EPUB/MOBI Catalogs: Fix presets not being applied for some options. Fixes #1821968 [Epub Catalog using some former value](https://bugs.launchpad.net/calibre/+bug/1821968) 2019-03-29 09:00:04 +05:30
Kovid Goyal 4ffffb143d Adding books: When adding with auto-merge and auto-convert enabled, also run conversions for books into which the added files are merged. Fixes #1822018 [Does not auto-convert when adding existing book with overwrite selected](https://bugs.launchpad.net/calibre/+bug/1822018) 2019-03-28 14:38:50 +05:30
Kovid Goyal b0543d1bb5 Manage authors dialog: Add an etry to the right click menu to show books by the current author in the main book list. Fixes #1821992 [[enhancement] right click option to go to books when managing authors](https://bugs.launchpad.net/calibre/+bug/1821992)
Merge branch 'master' of https://github.com/cbhaley/calibre
2019-03-28 14:14:06 +05:30
Charles Haley 08692f4acb Enhancement #1821992: Add "show books by author in book list" to manage authors dialog. 2019-03-28 08:37:13 +00:00
Kovid Goyal a811bfa502 py3: Ensure cmp() is available where it is used 2019-03-28 12:25:26 +05:30
Kovid Goyal 0db9c42360 Use a polyglot IO class for device debug output 2019-03-28 12:20:13 +05:30
Kovid Goyal 57e11977b7 py3: get rid of __cmp__ 2019-03-28 11:24:37 +05:30
Kovid Goyal 775ffdee21 EPUB Output: Sort the entries in the manifest by spine position/media-type/filename 2019-03-28 11:00:41 +05:30
Kovid Goyal cf1a6aea96 Remove unused code 2019-03-28 09:27:18 +05:30
Kovid Goyal 080c19b966 PDF Output: Fix "stroke-dasharray" lines in SVG images in the input document not being rendered correctly. Fixes #1821923 [ebook-convert pdf plugin does not render dasharray](https://bugs.launchpad.net/calibre/+bug/1821923)
Merge branch 'master' of https://github.com/jimbojw/calibre
2019-03-27 19:54:30 +05:30
jimbojw c22c03b76a Fixing stroke-dasharray rendering bug (#1821923) 2019-03-27 09:43:10 -04:00
Kovid Goyal 9a676b0e06 py3: Replace sort(cmp=) with sort(key=) 2019-03-27 08:08:14 +05:30
Kovid Goyal fdc64f40ad sys.maxint -> sys.maxsize 2019-03-27 07:21:14 +05:30
Kovid Goyal 4fa69111ec Exclude some linux specific modules from import tests on other platforms 2019-03-27 07:11:04 +05:30
Kovid Goyal f0ab48d1a9 Misc fixes for previous py3 PR 2019-03-27 06:53:58 +05:30
Kovid Goyal 68afcf4598 Clean up python module import test 2019-03-27 06:52:35 +05:30
Kovid Goyal 55b39e16bb Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-03-27 05:55:10 +05:30
Eli Schwartz 02be4edee2 test: try to make test_import work better without assuming cwd
Allows it to run properly on Windows.
2019-03-26 16:49:02 -04:00
Eli Schwartz a75b0730a7 python3: do not use types.*Type which is an alias for str
Just compare to (str, unicode_type) directly, and handle the related
python3 reclassification.
2019-03-26 16:12:18 -04:00
Eli Schwartz 24f504f16b python3: remove more cStringIO 2019-03-26 16:12:18 -04:00
Eli Schwartz 4919373608 python3: do not decode uuid4 hex, as it is always a str() 2019-03-26 16:12:18 -04:00
Eli Schwartz 9023ea8947 python3: add Cookie wrapper to polyglot 2019-03-26 16:12:18 -04:00
Eli Schwartz 97ab4acce5 python3: reduce use of cmp when key can be used instead
cmp does not exist on python3
2019-03-26 16:12:17 -04:00
Eli Schwartz 06d8560ab2 remove unused files which import non-existing code 2019-03-26 16:12:17 -04:00
Eli Schwartz 67f3ca17dd test: add test to try importing every file
The testsuite does not currently exercise every file, but we can at
least try importing it to make sure it isn't obviously broken. This
additionally helps to iterate through python3 syntax-level
incompatibilities.
2019-03-26 16:12:17 -04:00
Eli Schwartz 564f053c02 python3: add reprlib wrapper to polyglot 2019-03-26 15:49:40 -04:00
Eli Schwartz 696afe85bd python3: convert filter iterables to list in order to access as a list 2019-03-26 15:49:40 -04:00
Eli Schwartz 2c156d3000 test: fix broken netifaces check
This will always return True on python2
[] > 1

On python3 it is instead an error, because you cannot compare a list to
an int -- instead, we want to compare the length of the returned list,
to see how many interfaces are available.
2019-03-26 15:49:40 -04:00
Eli Schwartz 2271463d27 python3: don't require bytestring for unrardll comments
unrardll explictly decodes to unicode
Note: unrar.py already uses unicode_literals
2019-03-26 15:49:40 -04:00
Eli Schwartz b6d4442b23 python3: mark bytestring as needed 2019-03-26 15:49:40 -04:00
Eli Schwartz 7196fa0773 python3: mark zlib plugin as only existing on python2
Fixes test failure due to checking whether all plugins work, and
considering this a plugin even though it is not.
2019-03-26 15:49:40 -04:00
Eli Schwartz 6d6509df57 python3: make qt image test work on python3
QByteArrays are natively bytes and ended up looking like this: u"b'xpm'"
Instead use the builtin method to get the data back, and decode it to
unicode.
2019-03-26 15:49:39 -04:00
Eli Schwartz 727e65a203 python3: add httplib/http.client polyglot wrapper 2019-03-26 15:49:39 -04:00
Eli Schwartz bfcb301fe3 python3: add httplib/http.client polyglot wrapper 2019-03-26 15:10:40 -04:00
Eli Schwartz 92c621c718 python3: remove deprecated use of contextlib.nested
Using `with Foo() as a, Bar() as b:` is introduced in python 2.7 and
deprecates the use of nested(), which is removed entirely in python3
2019-03-26 15:10:40 -04:00
Eli Schwartz d7410fe7b3 python3: add polyglot wrapper for html.entities/htmlentitydefs 2019-03-26 15:10:40 -04:00
Kovid Goyal b62022ac7d Updata NASA
Merge branch 'patch-1' of https://github.com/Datalore740/calibre
2019-03-26 21:24:09 +05:30
Datalore740 002006a148 Fixed dead RSS feeds.
All of the NASA RSS feeds have been deprecated, so I replaced them, and changed the some of the news topics entirely.
2019-03-26 08:17:57 -07:00
Kovid Goyal 0aee163cf7 ... 2019-03-26 18:03:17 +05:30
Kovid Goyal e1c7ab579d ... 2019-03-26 14:53:32 +05:30