Commit graph

1761 commits

Author SHA1 Message Date
Kovid Goyal
ff5e5f2743
Use proper path for macos SW 2019-09-13 09:12:38 +05:30
Kovid Goyal
7a9f6cf195
... 2019-09-13 09:12:38 +05:30
Kovid Goyal
915f9ad107
Use correct python executable name on macOS 2019-09-13 09:12:38 +05:30
Kovid Goyal
02d590180b
... 2019-09-13 09:12:37 +05:30
Kovid Goyal
c388500dfb
Work on CI 2019-09-13 09:12:37 +05:30
Kovid Goyal
a344028733
Command to export packages 2019-09-13 09:12:37 +05:30
Kovid Goyal
f52d529090
Command to build deps 2019-09-13 09:12:37 +05:30
Kovid Goyal
ac29ca24a7
Make extdev more robust against crashes of test command 2019-09-13 09:12:36 +05:30
Kovid Goyal
ab6b724835
COmmnad ot make testing extension modules easier 2019-09-13 09:12:36 +05:30
Kovid Goyal
7c108d4078
Port the installer build commands to use bypy 2019-09-13 09:12:36 +05:30
Kovid Goyal
be471a8cbe
Work on getting windows running 2019-09-13 09:12:35 +05:30
Kovid Goyal
46295bb17f
Get the hunspell wraper building correctly on all platforms 2019-09-13 09:12:35 +05:30
Kovid Goyal
22a1481bcd
De-vendor hunspell 2019-09-13 09:12:35 +05:30
Kovid Goyal
bf199d6bfa
Get podofo building on older compilers on linux 2019-09-13 09:12:33 +05:30
Kovid Goyal
0f02312390
De-dup images in the PDF 2019-09-13 09:12:26 +05:30
Kovid Goyal
227679985f
Implement imposing headers/footers onto their target pages 2019-09-13 09:12:25 +05:30
Kovid Goyal
d304e08ec1
Code to merge W arrays 2019-09-13 09:12:24 +05:30
Kovid Goyal
c4e3fda682
Code to list fonts in a PDF file 2019-09-13 09:12:22 +05:30
Kovid Goyal
7803f3de36
Rename viewer2 to viewer 2019-09-13 09:12:20 +05:30
Kovid Goyal
b5b0891421
Start work on porting the PDF output plugin to use web engine 2019-09-13 09:12:19 +05:30
Kovid Goyal
070ad5351e
Remove old viewer and coffeescript and viewer resources
Since the PDF output code is also going to be replaced, none
of this is required.
2019-09-13 09:12:17 +05:30
Kovid Goyal
6e14daac89
Infrastructure for loading viewer js 2019-09-13 09:12:12 +05:30
Kovid Goyal
59b9357c0c
Add tests for the new viewer cache 2019-09-13 09:12:11 +05:30
Kovid Goyal
561edbe1ea
Two-way syncing work again 2019-09-13 09:12:09 +05:30
Kovid Goyal
00a9d0f275
Migrate editor coffee script to rapydscript 2019-09-13 09:12:09 +05:30
Eli Schwartz
c161fbe54a
resources: bump mathjax version to 2.7.6
There is actually no real consequential change here, because the update
is a trivial bugfix that doesn't affect calibre's use, but let's do it
anyway because it is both simple and harmless.
2019-08-25 00:21:03 -04:00
Kovid Goyal
c5aeaa8c8a
Cleanup HTML metadata parsing 2019-08-12 10:10:50 +05:30
Eli Schwartz
d50a6ddc1b
use context managers to open files 2019-07-25 01:30:54 -04:00
Eli Schwartz
cba11fb969
unicode_check: do not try to check pyuic-generated files 2019-07-23 17:29:48 -04:00
Kovid Goyal
519a90abdf
Ensure we send a mimetype when upload to github 2019-07-12 09:21:01 +05:30
Bernhard M. Wiedemann
53298f87ff
Sort input file list
so that calibre/plugins/lzma_binding.so builds in a reproducible way
in spite of indeterministic filesystem readdir order
and http://bugs.python.org/issue30461

See https://reproducible-builds.org/ for why this is good.
2019-07-01 14:47:32 +02:00
Kovid Goyal
e804e48747
Start work on building calibre on windows 2019-06-19 10:06:54 +05:30
Kovid Goyal
3a688453ab
Go back to using git to fetch ephemeral translations
No significant speed difference and curl is failing on the macOS
Travis VM
2019-06-13 10:49:13 +05:30
Kovid Goyal
98ec15b970
Retry download on fail 2019-06-13 10:37:16 +05:30
Kovid Goyal
6acfcf12ef
Use a tarball based download when downloading ephemeral translations 2019-06-13 09:33:50 +05:30
Kovid Goyal
ed85704799
Undo the fudge for tanslations failing on macOS as it causes another test to fail 2019-06-11 16:14:15 +05:30
Kovid Goyal
edd44a559a
... 2019-06-11 15:15:12 +05:30
Kovid Goyal
152e823c41
Kobo driver: Add options to more precisely control the generation of cover images, to reduce size and enhance quality
Merge branch 'master' of https://github.com/NiLuJe/calibre
2019-06-11 15:14:26 +05:30
Kovid Goyal
3139dff9eb
Ignore weird failure when building website translation on Travis on macOS 2019-06-11 14:59:00 +05:30
Kovid Goyal
0f3b2e2329
Dont use win32com for adding to recent docs 2019-06-11 14:50:05 +05:30
Kovid Goyal
3f903cbdd1
CHM Input: Fix a regression that broke processing of some CHM files
Fixes #1831511 [Can't open chm file](https://bugs.launchpad.net/calibre/+bug/1831511)

Bug was introduced due to adding of unicode_literals.
Also fix CHM input on python3
2019-06-05 09:08:17 +05:30
Kovid Goyal
f2f57d2dda
Work on new calibre macOS build 2019-06-04 16:22:50 +05:30
NiLuJe
7e6347486b Port ImageMagick's OrderedDither algorithm, and use that instead of
ImageOps' quantize to dither images to the eInk palette.

It works much better for our intended purpose, and it's pretty fast.
2019-06-02 18:29:49 +02:00
Kovid Goyal
cae30d8795
Dont scan smtplib.py in the porting utils 2019-05-29 17:58:23 +05:30
Kovid Goyal
06dc7dd15b
Dont scan Zeroconf.py in the porting utils
This is being replaced by upstream zeroconf in py3
2019-05-28 12:41:48 +05:30
Kovid Goyal
6e0ec5b65c
Get an accurate count for how many files are left that need unicode porting
555 left currently, sigh.
2019-05-27 20:43:01 +05:30
Kovid Goyal
b842fe758a
Fixes for f2e0181926 2019-05-27 14:25:52 +05:30
Eli Schwartz
45ca4c7934
py3: merge multiline __future__ imports to not confuse 2to3 2019-05-27 00:41:14 -04:00
Kovid Goyal
50af7ba51f
py3: port uses of builtin functions that were changed to return iterators 2019-05-23 06:57:33 +05:30
Kovid Goyal
8366df8637
Run code quality checks on the odf package 2019-05-20 16:52:16 +05:30
Kovid Goyal
f32ea26bf1
py3: Port more files to not use str() andhave unicode literals 2019-05-20 06:56:45 +05:30
Kovid Goyal
cddb7d873c
Add a nicer way to check for unicode issues in files 2019-05-16 12:18:34 +05:30
Kovid Goyal
7a4f44b6aa
Report failure to parse files when running 2to3 2019-05-15 21:19:02 +05:30
Kovid Goyal
a08bdbeb4e
Dont depend on calibre in polyglot 2019-05-15 16:42:52 +05:30
Kovid Goyal
bd118e6139
Framework to run 2to3 over the codebase 2019-05-15 16:13:12 +05:30
Eli Schwartz
ae02c30a17
install: first install code, then binaries
Since installing code will also delete a directory tree, it should run
first. This avoids exotic cases where it deletes the binaries it just
installed.

Use case: co-installing python2/python3 using a bindir bundled with the
rest of calibre's code, in order to maintain an alternatives system
pointing symlinks in /usr/bin at the configured binaries.
2019-05-12 18:14:42 -04:00
Eli Schwartz
2a63948440
install: when using a staging root, setup XDG_DATA_DIRS magic
In order for xdg-utils programs to successfully install resources to the
staging root instead of /usr, this variable needs to be set and
additionally some arcane directories must be created that xdg-utils,
astoundingly, does not know how to just gracefully handle.

xdg-mime is simply hopeless as it does not have a --noupdate flag. When
using a staged install, copy it with shutil instead.
2019-05-12 18:14:42 -04:00
Kovid Goyal
61eef65bb6
Merge branch 'git_version' of https://github.com/eli-schwartz/calibre 2019-05-12 12:45:16 +05:30
Eli Schwartz
9dc1ccfe08
setup: add subcommand to update the version in constants.py from git
This creates an additional variable containing the version number
extracted from a git checkout via `git describe`, and diverts all
human-readable output to use that via get_version.
2019-05-12 02:32:59 -04:00
Kovid Goyal
1c22094803
Cleanup urllib imports 2019-05-02 07:25:03 +05:30
Kovid Goyal
d6402a0fdd
Use a non-deprecated technique for resuming partial downloads in the Linux installer. Fixes #1827289 [Deprecation warning in installation script.](https://bugs.launchpad.net/calibre/+bug/1827289) 2019-05-02 07:17:44 +05:30
Kovid Goyal
a2fa719545
Better naming 2019-04-29 21:29:47 +05:30
Kovid Goyal
ed2e2e060f
Ensure completion dict for ebook-convert has unicode strings 2019-04-29 20:48:52 +05:30
Kovid Goyal
f4cf168a72
plugins_mirror should not rely on getcwdu 2019-04-23 10:34:37 +05:30
Eli Schwartz
bb4438eca3
fix recent_uas due to firefox site changes 2019-04-18 10:32:32 -04:00
Kovid Goyal
5623d8c7f4
py3: Fix a couple of env var checks 2019-04-17 08:20:12 +05:30
Kovid Goyal
13961abd16
Also check python files using python 3 flake8 2019-04-13 09:17:31 +05:30
Kovid Goyal
50dd4952cb
Fix removal of invalid directories in import test 2019-04-10 20:48:09 +05:30
Kovid Goyal
57eaee584d
Fix checkout hook trying to delete chroot pyc files 2019-04-10 16:53:52 +05:30
Kovid Goyal
d6b6d4c892
Use unicode keys for the ISO lang code maps
This means the same stored maps can be used on python2 and 3
2019-04-10 14:10:06 +05:30
Kovid Goyal
86ffa4f717
Allow running calibre under both python2 and python3 from the same source checkout 2019-04-10 13:47:10 +05:30
Kovid Goyal
5818091cad
py3: Port string literals and file I/O in setup/install.py 2019-04-10 08:34:18 +05:30
Kovid Goyal
f9f3d2b2fc
py3: Have the generated launcher scripts use the correct python exe name 2019-04-10 08:26:50 +05:30
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