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
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
Kovid Goyal
79d7658ea3
Check fosshub queue status since the API has now been fixed
2018-10-03 20:30:05 +05:30
Kovid Goyal
e4795fcf88
oops
2018-10-03 08:39:47 +05:30
Kovid Goyal
826119e797
Use new fosshub upload API
2018-10-03 08:39:11 +05:30
Flaviu Tamas
8b9e401f32
Use builtin zlib in py3
2018-10-02 17:01:01 -04:00
Kovid Goyal
01a9fb6687
Fix #1794915 [setup.py build does not work due to UnicodeEncodeError]( https://bugs.launchpad.net/calibre/+bug/1794915 )
2018-09-28 09:47:35 +05:30
Kovid Goyal
4d4ffcff7c
Revert "Remove use of prints in the setup package since nowadays most systems are UTF-8 based anyway"
...
This reverts commit f4b3585549 .
2018-09-28 09:44:41 +05:30
Flaviu Tamas
1270f32157
Only build monotonic on py2
2018-09-14 13:49:33 -04:00
Flaviu Tamas
46b521dfbf
Build hunspell in py3
...
The verbose old-style intialization is used because GCC 4.8 & MSVC don't
support the nicer `.foo = bar` style of initialization.
2018-09-12 22:41:57 -04:00
Kovid Goyal
be00d40d02
plugins_mirror cannot depend on polyglot
2018-09-10 21:04:25 +05:30
Kovid Goyal
3c10a86c65
setup.py build now runs under python3
2018-09-10 21:02:10 +05:30
Kovid Goyal
e125996ee6
Remove basestring from the setup package
2018-09-10 20:58:01 +05:30
Kovid Goyal
f39f3951f4
dict fixes in the setup package
2018-09-10 20:54:35 +05:30
Kovid Goyal
5bdb5b7c6c
Import fixes for the setup package
2018-09-10 20:44:16 +05:30
Kovid Goyal
cc9a11fba0
Port os.getcwdu to python 3
2018-09-10 20:20:26 +05:30
Kovid Goyal
5234e43f0e
Port future_builtins to polyglot
2018-09-10 20:12:01 +05:30
Kovid Goyal
f4b3585549
Remove use of prints in the setup package since nowadays most systems are UTF-8 based anyway
2018-09-10 19:55:49 +05:30
Kovid Goyal
a9e07efecd
The setup package now imports under python 3
2018-09-10 19:47:53 +05:30
Kovid Goyal
5c6ba41cca
oops
2018-09-10 19:42:20 +05:30
Kovid Goyal
778b3cf74e
Remove unused code
2018-09-10 19:37:42 +05:30
Kovid Goyal
1a928fc497
Remove unused code
2018-09-10 18:41:52 +05:30
Kovid Goyal
b9767b2b92
Move more databases to msgpack instead of pickle
2018-09-10 18:35:19 +05:30
Kovid Goyal
8b3ea8fb83
Replace more use of pickle for databases
2018-09-10 18:26:46 +05:30
Kovid Goyal
d8e24e4a19
Use msgpack instead of pickle for a couple more databases
2018-09-10 17:36:57 +05:30
Kovid Goyal
1d54c2f874
Use msgpack instead of pickle for ISO 639 and 3166 databases
2018-09-10 17:14:03 +05:30
Kovid Goyal
ce377076b9
Some py3 fixes for the setup module
2018-09-10 16:04:47 +05:30
Flaviu Tamas
01fbf09c0b
Undo redundant imports & new-style raises
...
New-style rasies need to be redone in a py2-friendly way, and the
redudant imports are redudnant and can safely be removed
2018-09-10 12:11:29 +05:30
Flaviu Tamas
655ab21b0b
Fix from __future__ import order
2018-09-10 12:11:29 +05:30
Flaviu Tamas
0889ee85ec
Fix syntax errors
...
Command used:
futurize --no-diffs -f libfuturize.fixes.fix_print_with_import -f lib2to3.fixes.fix_throw -f lib2to3.fixes.fix_numliterals -f lib2to3.fixes.fix_except -f lib2to3.fixes.fix_exec -f lib2to3.fixes.fix_raise -f lib2to3.fixes.fix_tuple_params -f lib2to3.fixes.fix_ne -j20 -w -n setup recipes src manual setup.py recipes/*.recipe
And manual adjustments of print((...)) -> print(...)
2018-09-10 12:11:28 +05:30
Kovid Goyal
9350caab4e
Fix invocation of setup.py in git hooks
2018-07-27 17:36:25 +05:30
Kovid Goyal
626d5aa1ce
Infrastructure for author name mapping
2018-07-17 15:32:58 +05:30
Joel Goguen
1c25ba0042
Exclude execute from umask
...
If the umask is set up to exlude execute, the installer will set up
calibre to be unreadable by any user other than the installing user.
When installing as `root`, a starting umask of `0o077` results in the
installer choosing a new umask of `0o033`, which means the calibre
install directory (and child directories) are installed with permissions
`0o744`, so only the installing user can actually use the resulting
calibre install.
To test, start with a system umask of `0o077` and run the installer
script as root:
```
% sudo sh ./setup/linux-installer.sh
Using python executable: /usr/bin/python3
WARNING: Your current umask disallows reading of files by some users, this can cause system breakage when running the installer because of bugs in common system utilities.
Should the installer (f)ix the umask, (i)gnore it or (a)bort [f/i/a Default is abort]: f
umask changed to: 022
Installing to /opt/calibre
Downloading tarball signature securely...
Using previously downloaded calibre-3.26.1-x86_64.txz
Extracting files to /opt/calibre ...
Extracting application files...
Creating symlinks...
Symlinking /opt/calibre/ebook-edit to /usr/bin/ebook-edit
Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug
Symlinking /opt/calibre/web2disk to /usr/bin/web2disk
Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel
Symlinking /opt/calibre/calibredb to /usr/bin/calibredb
Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf
Symlinking /opt/calibre/calibre to /usr/bin/calibre
Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert
Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server
Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer
Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp
Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta
Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device
Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata
Symlinking /opt/calibre/ebook-polish to /usr/bin/ebook-polish
Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer
Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize
Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs
Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre
Setting up command-line completion...
Installing zsh completion to: /usr/share/zsh/site-functions/_calibre
Installing bash completion to: /usr/share/bash-completion/completions/calibre
Setting up desktop integration...
Creating un-installer: /usr/bin/calibre-uninstall
Run "calibre" to start calibre
```
And the resulting directory:
```
% ls -ld /opt/calibre
drwxr-xr-x. 5 root root 4.0K Jun 22 10:53 /opt/calibre/
```
Also verify the Python version, starting with no `/opt/calibre` and a system umask of `0o077`:
```
% sudo python3 ./setup/linux-installer.py
WARNING: Your current umask disallows reading of files by some users, this can cause system breakage when running the installer because of bugs in common system utilities.
Should the installer (f)ix the umask, (i)gnore it or (a)bort [f/i/a Default is abort]: f
umask changed to: 022
Installing to /opt/calibre
Downloading tarball signature securely...
Using previously downloaded calibre-3.26.1-x86_64.txz
Extracting files to /opt/calibre ...
Extracting application files...
Creating symlinks...
Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize
Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp
Symlinking /opt/calibre/calibredb to /usr/bin/calibredb
Symlinking /opt/calibre/calibre to /usr/bin/calibre
Symlinking /opt/calibre/ebook-polish to /usr/bin/ebook-polish
Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta
Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server
Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre
Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata
Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs
Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel
Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert
Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer
Symlinking /opt/calibre/web2disk to /usr/bin/web2disk
Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug
Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device
Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer
Symlinking /opt/calibre/ebook-edit to /usr/bin/ebook-edit
Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf
Setting up command-line completion...
Installing zsh completion to: /usr/share/zsh/site-functions/_calibre
Installing bash completion to: /usr/share/bash-completion/completions/calibre
Setting up desktop integration...
Creating un-installer: /usr/bin/calibre-uninstall
Run "calibre" to start calibre
% ls -ld /opt/calibre
drwxr-xr-x. 5 root root 4.0K Jun 22 10:55 /opt/calibre/
```
After each, verify calibre starts as a non-root user.
2018-06-22 10:49:26 -07:00
Kovid Goyal
4df998fdd2
Ignore 404s on private bugs
2018-06-18 13:24:33 +05:30
Kovid Goyal
e8fdd7a83c
Migrate git hooks to py3
2018-06-12 18:01:55 +05:30
Kovid Goyal
cd7e8891bd
Fix python invocation in git hooks
2018-06-10 07:33:54 +05:30
Kovid Goyal
73029303d6
Dont use a set literal in the installer since there are apparently people still running linux installations with python 2.6
2018-06-09 07:05:03 +05:30
Kovid Goyal
499578beaa
Try to get unicode_names compiling on ancient compilers
2018-05-01 11:31:21 +05:30
Kovid Goyal
eaffdbb884
...
2018-05-01 11:18:40 +05:30
Kovid Goyal
5d95d13935
Edit Book: Fix names for some control characters not being displayed in the status bar
...
Uses the unicode names database I created for kitty. Much more
comprehensive than the one in ICU.
2018-05-01 10:23:50 +05:30
Kovid Goyal
f04b5eea20
Remove use of command -v from linux-installer.sh
2018-04-30 08:29:59 +05:30
Kovid Goyal
7a150c065e
Add a shebang for linux-installer.sh
2018-04-29 15:11:46 +05:30
Kovid Goyal
54c81eec15
Simplify passing arguments to linux-installer.py
2018-04-29 14:57:59 +05:30
Kovid Goyal
db936049cd
Add a shell script wrapper for the linux installer
...
Needed because Ubuntu 18.04 has decided, in its infinite wisdom to
have no default python executable, which makes it impossible to run
polyglot python scripts.
2018-04-28 10:05:18 +05:30
Kovid Goyal
9679a1c4f3
pep8
2018-04-28 08:52:46 +05:30
Kovid Goyal
2373a38005
Linux installer: Fix umask question not working with the recommended install command because stdin is a pipe
2018-04-14 15:44:02 +05:30
Kovid Goyal
baee2d2546
Content server: When updating interface data do not transmit translations if they have not been changed. Saves ~30-60KB bandwidth when using non-English interface language.
2018-03-24 10:50:24 +05:30
Kovid Goyal
73cd57bebb
DRYer
2018-03-10 09:07:38 +05:30
Kovid Goyal
53e5d1a748
Fix #1754698 [SIP_DIR no longer works to specify pyqt_sip_dir]( https://bugs.launchpad.net/calibre/+bug/1754698 )
2018-03-10 09:04:54 +05:30
Kovid Goyal
2beeb537b4
Ensure no spaces around fosshub API key
2018-03-09 16:41:00 +05:30
Kovid Goyal
5697f8f282
More robust timeout retry handling
2018-02-02 15:43:55 +05:30
Kovid Goyal
3dfd846b7b
Retry after sleeping on URL fetch timeout in plugins mirror script
2018-02-02 13:14:04 +05:30
Kovid Goyal
594c52a7af
Double plugin mirror download timeout
2018-02-01 13:06:34 +05:30
Kovid Goyal
3f9c5a8719
Move the search query parser tests into their own module and integrate with the calibre testing system
2018-01-18 10:03:30 +05:30
Kovid Goyal
5ac2ae511f
Also check for the C1 control chars
2018-01-05 12:35:51 +05:30
Kovid Goyal
0053ee6456
Add a check for ASCII control codes in translation files
2018-01-05 12:31:57 +05:30
Conrad Meyer
712edec636
Compatibility improvements for FreeBSD systems
...
Don't exclude libmtp on FreeBSD systems.
Don't exclude libusb on FreeBSD systems. Our libusb has a different include
path structure and libname than Linux, but compiles fine once those are
corrected.
Correct path to py-sip on FreeBSD. We install it to a different directory
than build_environment.py was looking in.
2017-12-26 13:01:13 -08:00
Kovid Goyal
631ca6393e
Linux installer: A nicer error message if the user tries to run the installer on an ARM machine
2017-12-04 12:32:36 +05:30
Kovid Goyal
b6312f1f12
Move various win API calls into native code
...
Faster, more robust. Should fix #1728196
2017-10-28 13:07:38 +05:30
Kovid Goyal
09d25c21e8
Update website translations on publish
2017-08-24 10:35:08 +05:30
Kovid Goyal
31e693cd09
Reduce the threshold for website translations to be included
2017-08-24 00:18:46 +05:30
Kovid Goyal
b6ef1092ce
Also write lang names to website locales zip file
2017-08-23 10:57:21 +05:30
Kovid Goyal
d554fbeb81
Compile the website translations
2017-08-23 09:46:27 +05:30
Kovid Goyal
f6b8381018
Ensure build is run before publish proceeds
2017-08-04 08:57:08 +05:30
Kovid Goyal
dfe2f5e04f
Dont use installed calibre when running sphinx-build
2017-07-04 21:51:42 +05:30
Kovid Goyal
9ccbf1ef8f
...
2017-07-04 17:54:22 +05:30
Kovid Goyal
81460e6cfc
More robust parallel use of sphinx-build2
2017-07-04 17:52:49 +05:30
Kovid Goyal
a0ac9cfddb
Use calibre available languages not manual languages when generating man pages
2017-07-04 13:19:20 +05:30
Kovid Goyal
556c32b6b8
Add man pages to the source tarball
2017-07-04 13:06:33 +05:30
Kovid Goyal
fa191ab55a
Create a setup.py command: man_pages to generate man pages in all languages
2017-07-04 12:28:59 +05:30
Kovid Goyal
9f4bf26b9d
Dont mute curl on the unix ci server
2017-07-02 10:17:46 +05:30
Kovid Goyal
9768d16334
Forgot that on macOS qmake generates .dylib files
2017-06-26 16:20:53 +05:30
Kovid Goyal
2291b2d2a0
Build the headless QPA backend on macOS as well
2017-06-26 14:56:58 +05:30
Kovid Goyal
7de2e366cf
A spot of refactoring
2017-06-22 09:00:49 +05:30
Kovid Goyal
cad405d413
Make the Support calibre button in the User manual translateable
2017-06-21 00:08:23 +05:30
Kovid Goyal
af6d043375
Switch to using msgfmt to check for format errors in translated strings
...
It catches more than pofilter with fewer false positives.
2017-06-18 10:26:24 +05:30
Kovid Goyal
08308ee14d
Fix python brace format check not being done by pofilter
2017-06-17 18:39:41 +05:30
Kovid Goyal
d305656bb4
Remove the vendored unrar code
2017-06-17 13:56:37 +05:30
Kovid Goyal
346b3b4368
Extarct strings from the calibre website for translation
2017-06-12 11:48:23 +05:30
Kovid Goyal
f863d3b46a
Try using node+rapydscript on appveyor as well
2017-06-10 11:22:17 +05:30
Kovid Goyal
858b21dadf
See if installing uglify-js manually fixes Travis builds
2017-06-09 20:31:32 +05:30
Kovid Goyal
2c80dc2aed
Remove orphaned compiled forms when switching branches
2017-06-09 00:21:10 +05:30
Kovid Goyal
9564c94ad1
Remove the copy of dukpy. Make it an external dependency.
2017-06-07 15:07:19 +05:30
Kovid Goyal
aee8af31f3
Hide all symbols in the compiled python extensions on unix
...
They were already hidden on windows. Avoids the possibility of symbol
collisions and also means ld has to do less work when loading them
extensions.
2017-06-07 12:19:24 +05:30
Kovid Goyal
0ece679a1b
No longer bundle python-regex
2017-05-27 10:39:25 +05:30
Kovid Goyal
802b1ab1e9
Enable CI for win 32bit as well
2017-05-24 21:38:04 +05:30
Kovid Goyal
c9839063d4
Remove obsolete reference to vs2015
2017-05-21 13:52:50 +05:30
Kovid Goyal
71c1232fa4
Ensure multitail building does not assume tty
2017-05-21 13:39:32 +05:30
Kovid Goyal
50ae40a73f
DRYer
2017-05-21 13:39:32 +05:30
Kovid Goyal
0ac375742e
Ensure index-generated.html is built correctly before publishing betas
2017-05-21 13:39:31 +05:30
Kovid Goyal
547b0ce83c
Port CI script changes from master
2017-05-21 13:39:30 +05:30
Kovid Goyal
8246e539bc
Retry sw download on appveyor
2017-05-21 13:39:30 +05:30
Kovid Goyal
fbefbc57cc
Remove workaround for QTBUG-42281
2017-05-21 13:39:30 +05:30
Kovid Goyal
c7d4af9ab7
Update publish_betas command
2017-05-21 13:39:29 +05:30
Kovid Goyal
a7e7b0d381
pep8
2017-05-21 13:39:29 +05:30
Kovid Goyal
e8371dc78a
...
2017-05-21 13:39:26 +05:30
Kovid Goyal
0fdf23de8b
Simplify windows exclusive file implementation by using msvcrt.locking as a fcntl substitute
2017-05-21 13:39:26 +05:30
Kovid Goyal
02aa7f1be0
Remove library.cli completely
2017-05-21 13:39:23 +05:30
Kovid Goyal
933c7d221d
pep8 and condition on PLATFORM
2017-05-21 13:39:10 +05:30
Kovid Goyal
00ef575a03
No longer need to restrict running kernel as we use chroot
2017-05-21 13:39:10 +05:30
Kovid Goyal
9445fae589
build-calibre dir layout changed slightly
2017-05-21 13:39:10 +05:30
Kovid Goyal
063c43e871
Call shutdown after linux build as well
2017-05-21 13:39:10 +05:30
Kovid Goyal
e21f0a3acc
Dont error if file exists when building installer
2017-05-21 13:39:10 +05:30
Kovid Goyal
e49df95bac
Add a kernel version check to the publish command
...
The new build process uses docker which requires installed and running
kernel versions to match
2017-05-21 13:39:09 +05:30
Kovid Goyal
74153a0d22
Sign installers explicitly
2017-05-21 13:39:09 +05:30
Kovid Goyal
dda2541a30
Remove unused code
2017-05-21 13:39:09 +05:30
Kovid Goyal
4488703e1e
Start work on setting up CO testing on windows with AppVeyor
2017-05-21 13:39:09 +05:30
Kovid Goyal
37cd0c56e5
Use the new auto-build infrastructure for creating calibre installers
2017-05-21 13:39:09 +05:30
Kovid Goyal
7bce30a9db
Change windows build environment detection to work with the new automatic build system
2017-05-21 13:39:08 +05:30
Kovid Goyal
4c3d3ecae8
Run the tests before publishing
2017-05-21 13:39:08 +05:30
Kovid Goyal
523bf9f4eb
...
2017-05-21 13:39:08 +05:30
Kovid Goyal
c203b2fcd4
Remove extraneous fluff from the dist directory
2017-05-21 13:39:08 +05:30
Kovid Goyal
ed1caccac7
Fix bundled Universal CRT not working on computers where the Universal CRT was not already installed
2017-05-21 13:39:08 +05:30
Kovid Goyal
107c454cb2
Simplify code to set dll directory
2017-05-21 13:39:08 +05:30
Kovid Goyal
ac019c2460
Dont create installers in build notes
2017-05-21 13:39:08 +05:30
Kovid Goyal
c929839f14
...
2017-05-21 13:39:08 +05:30
Kovid Goyal
6c353bd330
...
2017-05-21 13:39:08 +05:30
Kovid Goyal
d337aee373
Disable app-local deployment of the universal CRT
...
It does not work for some hard to fathom reason.
2017-05-21 13:39:07 +05:30
Kovid Goyal
963b0eeea6
Nicer error message when loading the Universal CRT fails
2017-05-21 13:39:07 +05:30
Kovid Goyal
897a1a137e
Do not have the launcher executables depend on the CRT
2017-05-21 13:39:07 +05:30
Kovid Goyal
f8560f79fc
Add proper manifests to all calibre executables
...
Marked as compatible with all versions of windows upto 10
2017-05-21 13:39:07 +05:30
Kovid Goyal
ef7c1a3c69
Fix detection of mt.exe
2017-05-21 13:39:07 +05:30
Kovid Goyal
2f7f2ace66
Change the VM names
2017-05-21 13:39:07 +05:30
Kovid Goyal
9b5a3ba5a5
Build 32bit calibre
2017-05-21 13:39:07 +05:30
Kovid Goyal
1dd2c65384
Build libimobiledevice
2017-05-21 13:39:07 +05:30
Kovid Goyal
9bd640e7ae
Replace the old windows build notes
2017-05-21 13:39:07 +05:30
Kovid Goyal
645f1d138f
Option to not build installers
2017-05-21 13:39:06 +05:30
Kovid Goyal
3565840a07
Update path to WiX
2017-05-21 13:39:06 +05:30
Kovid Goyal
e3d0d6e23a
Add CRT to the frozen build
2017-05-21 13:39:06 +05:30
Kovid Goyal
ab3e048a95
Use only win32 functions in the launcher, no CRT functions
...
Reduces the size of the executables a little
2017-05-21 13:39:06 +05:30
Kovid Goyal
9a49104dac
Refactor application layout on windows
...
Now only the calibre executables are present in the top level directory
(which is added to PATH). No third party executables and no dlls.
This became necessary because the VS 2015 CRT is not manifest based, so
it would have to be placed in the top level dir in the old layout. Now
it can be put into the DLLs dir.
2017-05-21 13:39:06 +05:30
Kovid Goyal
77a0558cf2
Initial stab at replacing use of MemoryModule
2017-05-21 13:39:06 +05:30
Kovid Goyal
6206f7687d
Update timestamp server URLs
2017-05-12 09:56:25 +05:30
Kovid Goyal
9cf545b61a
...
2017-05-10 00:38:03 +05:30
Kovid Goyal
fa5f23bf86
oops
2017-05-10 00:29:18 +05:30
Kovid Goyal
d45ed9a1f5
Cleanup the ci script
2017-05-10 00:13:19 +05:30
Kovid Goyal
1af6e5fc9b
oops
2017-05-09 23:50:02 +05:30
Kovid Goyal
6c42d36b18
Move all env vars into ci script
2017-05-09 23:49:04 +05:30
Kovid Goyal
09ddb332d9
...
2017-05-09 23:35:23 +05:30
Kovid Goyal
66cec4cabf
Refactor travis script into a standalong python script
2017-05-09 23:26:39 +05:30
Kovid Goyal
9c5815d9c0
Retry downloads on travis
...
Should hopefully work around the flakiness on the travis OS X machines
where curl aborts in the middle of downloads when under load
2017-05-09 22:53:09 +05:30
Kovid Goyal
4bab1eeaa1
Fix #1687540 [calibre does not build reproducibly]( https://bugs.launchpad.net/calibre/+bug/1687540 )
2017-05-02 11:10:35 +05:30
Kovid Goyal
caac92bbd8
A larger pool of random UAs
2017-02-28 21:20:21 +05:30
Kovid Goyal
3e2276db36
Do not check umask for isolated installs
2017-02-27 01:32:34 +05:30
Kovid Goyal
abbf258cfa
Linux installer: Check that the umask is suitable before running the installer.
...
This prevents system breakage because of bugs in xdg-mime when the user
has set their umask to prevent reading of files by other users on the
system. See https://www.mobileread.com/forums/showthread.php?t=277803
2017-02-27 01:30:29 +05:30
Kovid Goyal
b4abd1f1b3
pep8
2017-02-27 01:23:28 +05:30
Kovid Goyal
f9329fe5b6
...
2017-02-18 10:09:29 +05:30
Kovid Goyal
d425d50a90
pep8 and change ticket closing message slighlty
2017-02-16 11:35:37 +05:30
Kovid Goyal
cc48842398
Fix a regression in the previous release that broke the file dialogs on windows vista
2017-02-11 08:13:37 +05:30
Kovid Goyal
4da1d75a42
...
2017-02-10 10:36:12 +05:30
Kovid Goyal
1f2293fc11
Use vim rather than gvim
2017-02-09 23:41:06 +05:30
Kovid Goyal
66e3d8740e
pep8
2017-02-06 22:12:59 +05:30
Yuri Chornoivan
b4e9164c56
Fix minor typos
2017-02-04 22:40:08 +02:00
Kovid Goyal
cf248c225a
Allow setting APP_UID in file dialog helper process
2017-02-01 18:12:22 +05:30
Kovid Goyal
511bb93d4a
Initial work on supporting haiku
2017-02-01 13:22:09 +05:30
Zoltán Mizsei
f7b9885660
Revert "More brackets (Maybe they are unneeded)"
...
This reverts commit 7f83c236aa .
2017-02-01 07:30:32 +01:00
Zoltán Mizsei
7f83c236aa
More brackets (Maybe they are unneeded)
2017-02-01 07:21:30 +01:00
Zoltán Mizsei
ca33868c67
Missing brackets
2017-02-01 07:19:16 +01:00
Zoltán Mizsei
11e2e05c06
Source based dev env supported on Haiku
2017-01-26 13:10:23 +01:00
Zoltán Mizsei
67b1a7bb72
Unrar needs every defines. Maybe there is a cleaner way...
2017-01-26 12:57:27 +01:00
Zoltán Mizsei
62dd2ae370
Haiku is x86 at this moment
2017-01-26 12:05:07 +01:00
Zoltán Mizsei
7c90ef80d0
Haiku is unix from now, hail to Haiku!
2017-01-26 11:59:50 +01:00
Zoltán Mizsei
dd649edea9
Disable headless on Haiku for now
2017-01-26 11:52:45 +01:00
Zoltán Mizsei
0a34a1d9f4
Extensions: Haiku support
2017-01-26 08:45:29 +01:00
Zoltán Mizsei
2e2236684d
Setup build env
2017-01-26 08:41:58 +01:00
Zoltán Mizsei
2e5cb8f727
Linker flags for the build script
2017-01-26 08:31:32 +01:00
Zoltán Mizsei
7dc4fc5d74
Add Haiku to the known OS list
2017-01-26 08:24:49 +01:00
Kovid Goyal
24300a6a7d
More Qt 5.8 fixes
2017-01-26 09:55:53 +05:30
Kovid Goyal
2693a2c614
Move load(qt_plugin) into the < 5.8 block
2017-01-25 20:38:26 +05:30
Kovid Goyal
86f5bb8c6d
Merge branch 'qt5.8' of https://github.com/jelly/calibre
2017-01-24 07:12:46 +05:30
Jelle van der Waa
c1e3603feb
Fix build with Qt >= 5.8.0
...
platformsupport-private was modularized in Qt 5.8.
Use the appropriate theme_support-private module
2017-01-23 22:25:21 +01:00
Eric Hamiter
894e00a796
Fix typo for upto => up to globally
2017-01-14 18:19:27 -06:00
Kovid Goyal
60f4031e1b
Do not run the dictionaries test multiple times
2017-01-14 11:03:46 +05:30
Kovid Goyal
2d185e8f9f
Add the dictionary tests to the global test suite
2017-01-14 10:25:12 +05:30
Kovid Goyal
8e6fbc1448
Load plugin index over https from mobileread now that mobileread supports https
2017-01-08 20:37:19 +05:30
Kovid Goyal
e4521c7270
...
2017-01-08 17:07:24 +05:30
Kovid Goyal
1782fbae51
Pushto -> Pashto
2016-12-22 14:13:02 +05:30
Kovid Goyal
91d3802377
Use curl to download mathjax as well so that it works in Travis on OS X
2016-12-09 10:41:39 +05:30
Kovid Goyal
1ff4f01b39
Use find_tests() for library.test_cli as well
2016-12-05 19:00:00 +05:30
James Broadhead
a6093e8cac
rm c.library.test
...
Per comment on https://github.com/kovidgoyal/calibre/pull/592 , this test
module is unnecessary.
2016-12-05 11:28:01 +00:00
James Broadhead
8522ac55af
Run calibre.library tests
...
- follow convention, add a find_tests, tests method to
calibre.library.test. Add calibre.library to the list in setup/test.py
- sort some imports
- add .cache to .gitignore
2016-12-05 08:42:53 +00:00
Kovid Goyal
f8c1dd46bb
Fix detection of plugin data for the amazon multiple countries plugin
2016-11-06 17:14:44 +05:30
Kovid Goyal
ca43551cd9
Windows: Fix file extension not being added automatically when missing in save dialogs. Fixes #1637353 ['SAVE AS' COVER IMAGE -Does Not Save File]( https://bugs.launchpad.net/calibre/+bug/1637353 )
2016-11-05 13:11:14 +05:30
Kovid Goyal
e333001d31
Apply the PEP8 blank line standards to the entire codebase
2016-10-11 11:39:08 +05:30
Kovid Goyal
0009565f8a
Linux: Fix calibre not working when used with some old VNC server implementations
2016-09-27 18:20:22 +05:30
Kovid Goyal
70f7e0438b
Portable Installer: Auto-create the directory specified ont he command line if it does not exist
2016-09-01 16:15:13 +05:30
Kovid Goyal
eb91bf77e2
Include the Mac Extras Qt module
2016-09-01 10:04:23 +05:30
Kovid Goyal
3ca5a472e6
Use common icon for notifier and main app bundles
2016-09-01 09:54:31 +05:30
Kovid Goyal
26bc7e0acf
A favicon for the download server
2016-08-31 11:32:41 +05:30
Kovid Goyal
94e908b3c0
...
2016-08-26 06:35:17 +05:30
Kovid Goyal
c36c60b708
Fix #1615322 [Failure when cleaning build]( https://bugs.launchpad.net/calibre/+bug/1615322 )
2016-08-21 10:06:28 +05:30
Kovid Goyal
b1bd22b20e
Fix dupes being generated when uploading to fosshub
2016-08-17 13:23:15 +05:30
Kovid Goyal
00d2e7a03b
...
2016-08-17 10:14:57 +05:30
Kovid Goyal
8c1ef52e28
...
2016-08-17 10:13:59 +05:30
Kovid Goyal
78c650cb0e
...
2016-08-17 10:11:29 +05:30
Kovid Goyal
d5d0b79af3
...
2016-08-17 10:11:10 +05:30
Kovid Goyal
9d0607a896
...
2016-08-17 10:05:16 +05:30
Kovid Goyal
1ead1415e3
New fosshub upload API
2016-08-17 10:00:55 +05:30
Kovid Goyal
101d22f0b4
Do not upload to fosshub since it is currently down
2016-08-12 09:37:04 +05:30
Kovid Goyal
567040ee1e
Perform PEP8 compliance checks on the entire codebase
...
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30
Guido Falsi
adb5e6f0c4
Make new extensions data code differentiate BSD from Linux.
2016-07-22 21:50:58 +02:00
Kovid Goyal
116f6a75f0
Windows: Fix file selection dialogs blurry on HiDPI monitors
2016-07-21 20:12:28 +05:30
Kovid Goyal
e9317c7490
...
2016-07-20 16:47:06 +05:30
Kovid Goyal
d5896390c2
Another oops
2016-07-20 16:30:52 +05:30
Kovid Goyal
8e9bf3ddc9
Another oops
2016-07-20 16:21:55 +05:30
Kovid Goyal
37649fc9ed
oops
2016-07-20 16:13:33 +05:30
Kovid Goyal
3466aaff4c
Define the extensions as pure data
2016-07-20 15:59:02 +05:30
Kovid Goyal
f910c1201a
...
2016-07-20 12:23:26 +05:30