Commit Graph

1638 Commits

Author SHA1 Message Date
Kovid Goyal 3bece11b09 py3: Misc fixes
Fixes #953 (py3: misc fixes trying to start calibre.gui_launch)
2019-04-02 09:31:37 +05:30
Kovid Goyal ccb0391844 Change the source for recent user agent data
The old source no longer works
2019-04-01 18:08:29 +05:30
Kovid Goyal b78e24417a py3: dont use func_name 2019-04-01 17:01:28 +05:30
Kovid Goyal 67814d2186 py3: misc fixes to get bootstrapping (almost) working 2019-03-31 19:58:00 +05:30
Kovid Goyal 4a3c9ca32f py3: Fix checking of iso639 translations 2019-03-31 18:38:32 +05:30
Kovid Goyal e73dbb0f99 py3: Port calls to json.dump() 2019-03-31 18:30:59 +05:30
Kovid Goyal 8b280c03c3 py3: Port RTF metadata module 2019-03-31 13:45:46 +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 9b0ed4204d ... 2019-03-26 08:24:54 +05:30
Kovid Goyal f68c1f2672 DRYer 2019-03-26 08:24:12 +05:30
Kovid Goyal f66d6f9fcf Ensure init symbol is exported on py3 2019-03-26 08:14:46 +05:30
Kovid Goyal 6d3fcc853e Cant use polyglot in plugins_mirror 2019-03-25 17:54:42 +05:30
Kovid Goyal 5918acabad Misc fixes for the last py3 porting merge 2019-03-25 16:03:25 +05:30
Kovid Goyal 0fcad5f21f Fix various uses of iteritems missed by dict_fixes 2019-03-25 15:29:08 +05:30
Kovid Goyal 33cea777ac Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-03-25 13:32:21 +05:30
Kovid Goyal de9d97d688 Port use of BS for comments_html() 2019-03-25 09:52:45 +05:30
Eli Schwartz 4f545af415 autopep8 2019-03-24 01:18:27 -04:00
Eli Schwartz a623717d96 python3: apply various fixes from python-modernize "dict_six"
Imports were then fixed and consolidated to derive from the internal
polyglot.builtins
2019-03-24 01:18:27 -04:00
Eli Schwartz 13d236f556 python3: make recent_uas build 2019-03-24 00:54:58 -04:00
Eli Schwartz 09e97e5af1 setup: don't report full pathname when creating msgpack'ed resources
The full pathname in the log info was introduced as a side effect of
moving off of pickle.
2019-03-24 00:23:15 -04:00
Kovid Goyal 47ed2df137 Various fixes for the latest py3 commit 2019-03-21 18:33:19 +05:30
Eli Schwartz d66fdc2df7 autopep8 2019-03-21 01:27:21 -04:00
Eli Schwartz 45f68f552b python3: make coffee build
add polyglot.socketserver wrapper and fix BaseHTTPServer.HTTPServer
2019-03-21 01:27:21 -04:00
Eli Schwartz c940d9941a python3: make kakasi build
Since these are all being opened as non-binary, it makes no sense to
then immediately decode them.
2019-03-21 00:23:43 -04:00
Eli Schwartz 8aceae428e py3: make setup.py gui work
Apparently compileUi explicitly opens the file/buffer as unicode, not
bytes, and then writes a unicode header string (containing the source
file). So the previous attempt to use BytesIO was wrong in this case.

Also images.qrc is being constructed completely in the right here and
now from a bunch of unicode strings, so just use exactly that.
2019-03-20 23:56:30 -04:00
Kovid Goyal ae735b2ea3 De-vendor html2text 2019-03-20 14:42:46 +05:30
Kovid Goyal 4c9fb6becd ... 2019-03-15 15:52:12 +05:30
Kovid Goyal d1e30dfcac Get rid of some xrange 2019-03-13 15:34:10 +05:30
Kovid Goyal 2d21a8efa2 Some more fixes for the unicode type
Now replaced in all dynamically loaded code. Recipes/metadata
sources/etc. In the case of recipes, since they get compiled by calibre
we simply make the unicode/unichr names available, no need for any
changes to the actual recipes themselves.
2019-03-13 12:04:47 +05:30
Eli Schwartz cbc42bec23 python3: add unicode/unichr wrappers to polyglot 2019-03-13 06:41:38 +05:30
Kovid Goyal addf9af51a Fix generation of trnaslation template for website 2019-03-07 10:22:39 +05:30
Kovid Goyal 9695a6e1cc Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-02-26 08:39:42 +05:30
Eli Schwartz 3258c464e7 Port headless plugin to build on python2/python3
The only thing needed is to port the buildsystem to not pass strings
starting with a "b" as build flags.
2019-02-25 22:04:26 -05:00
Kovid Goyal 7d00c4b0f4 macOS: Respect the system setting for text insertion cursor blink time
This value can be changed with the following commands:

defaults write -g NSTextInsertionPointBlinkPeriodOff -float 500
defaults write -g NSTextInsertionPointBlinkPeriodOn -float 500
2019-02-25 09:16:06 +05:30
Kovid Goyal e0d5a021dd Fix #1812891 [calibre-3.38.1 tries to download mathjax during build](https://bugs.launchpad.net/calibre/+bug/1812891) again 2019-02-01 13:38:48 +05:30
Kovid Goyal a64579338c Dont download MathJax if it is already present
Fixes #1812891 [calibre-3.38.1 tries to download mathjax  during build](https://bugs.launchpad.net/calibre/+bug/1812891)
2019-01-23 08:03:00 +05:30
Eli Schwartz 18ad088bda build: preserve symlinks when installing
Without this, python's default behavior was to dereference the mathjax
symlinks and install the file contents instead.
2019-01-20 16:53:53 -05:00
Eli Schwartz 82617d3a74 build: add option to symlink to system mathjax installation 2019-01-18 08:40:44 -05:00
Eli Schwartz 6adedd8603 setup/mathjax: fallback to using packed versions of resources
Some mathjax distributions come with the unpacked versions removed as
per the upstream instructions for optimizing an installation. Only use
the unpacked versions if they exist; otherwise fallback on the packed
versions.

Also filter the .woff files to make sure they are actually .woff files,
since they may be files like fonts.dir, fonts.scale, .uuid (created by
xorg-mkfontdir, xorg-mkfontscale, fontconfig).
2019-01-18 08:40:44 -05:00
Kovid Goyal 2ae2d14d62 Rapydscript must be built after mathjax 2019-01-17 09:36:16 +05:30
Kovid Goyal d08e0a33e1 Implement clean for mathjax builder 2019-01-04 22:15:26 +05:30
Kovid Goyal 98a2f53d90 Remove mathjax from bootstrap since it is now under resources 2019-01-04 21:59:01 +05:30
Kovid Goyal c184fe37c7 Remove unused code 2019-01-04 21:54:57 +05:30
Kovid Goyal f78a7dad58 Do not use a compressed archive for mathjax
Improves performance for local clients such as PDF output and the
viewer. Since we have now removed the old unbundled mathjax, the file
count in the resources directory does not go up too much.
2019-01-04 21:53:06 +05:30
Kovid Goyal e47a2d888b Update the SWIG bindings for chmlib
Also get rid of the xhm_extra module since
we dont care about searching CHM files and get_lcid can be
implemented in pure python.
2018-12-27 14:44:43 +05:30
Kovid Goyal bf60631ce0 Avoid the need to use a patched version of MathJax
See https://github.com/mathjax/MathJax/pull/1453
2018-12-17 15:38:14 +05:30
Kovid Goyal f6ef5f3cf7 Fix crash when compressing mathjax on CI servers 2018-12-13 18:48:23 +05:30
Kovid Goyal dca2d1a51c String changes 2018-12-10 08:36:28 +05:30
Kovid Goyal 8018891656 ... 2018-10-19 10:30:54 +05:30
Kovid Goyal 17eff935eb ... 2018-10-19 10:16:01 +05:30