63 Commits

Author SHA1 Message Date
Kovid Goyal
c10832387d
Cleanup previous PR 2025-01-25 17:31:21 +05:30
un-pogaz
ac6912565a always use raw-string for regex (auto-fix)
ruff 'RUF039'
2025-01-24 11:14:20 +01:00
un-pogaz
cc172a2a48 unnecessary map (auto-fix)
ruff 'C417' --unsafe-fixes
2025-01-24 11:14:18 +01:00
un-pogaz
02854d8b8c convert some legacy percent format (extra-edit) 2025-01-24 11:14:16 +01:00
un-pogaz
0560b429bf convert some legacy percent format (auto-fix)
ruff 'UP031'
2025-01-24 11:14:16 +01:00
Kovid Goyal
53b74283a4
sort imports in all python files 2024-03-30 13:02:22 +05:30
YOKOTA Hiroshi
e1ab67af07 Really choose oldest file modification time in target files 2023-10-25 08:21:26 +09:00
Kovid Goyal
fed1d1b313
Make newer() robust against missing source files 2023-02-03 16:58:13 +05:30
Kovid Goyal
16b94a79ef
DRYer 2023-01-19 11:07:42 +05:30
Kovid Goyal
35cb784452
See if using python instead of curl bypasses the windows CI failure 2022-10-20 11:15:51 +05:30
Kovid Goyal
5db39aa16e
Drop 32-bit code paths 2022-07-06 19:19:39 +05:30
Kovid Goyal
24c460faec
also upgrade code in setup folder 2022-01-08 12:15:18 +05:30
Zbigniew Jędrzejewski-Szmek
9d63b6ae56 Drop (object) from class definitions
Python2 had old-style classes (no "(object)"), and new style classes (with
"object"). Under Py3 this is a noop, so let's drop it to make the code
a bit shorter.
2021-09-30 09:23:56 +02:00
Kovid Goyal
b1c714fc34
Output GHA fold markers when building 2021-07-02 09:29:44 +05:30
Kovid Goyal
3247692512
Cache downloads by etag during repeated building 2021-06-26 07:20:10 +05:30
Kovid Goyal
dd8aa42c17
Fix some resourcewarnings in the test suite 2021-06-24 08:57:22 +05:30
Kovid Goyal
4a54f217df
Replace Syntastic 2021-04-24 21:30:03 +05:30
Kovid Goyal
13552bef07
isosx -> ismacos 2020-09-09 14:51:09 +05:30
Kovid Goyal
59dc40a22b
DRYer 2020-09-02 10:55:10 +05:30
Kovid Goyal
27f483dce4
py3 compat 2020-09-02 10:51:52 +05:30
Kovid Goyal
9cbb81edf5
typo 2020-09-02 10:51:01 +05:30
Kovid Goyal
764e8bff7e
Remove py3 conditionals 2020-08-22 18:47:56 +05:30
Kovid Goyal
9ff27782de
Remove useless __future__ imports
Not needed on python3
2020-08-22 18:47:55 +05:30
Kovid Goyal
29cd8d64ea
Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30
Kovid Goyal
1c54eb1648
Code to fetch hyphenation dictionaries 2019-11-30 10:59:45 +05:30
Eli Schwartz
d50a6ddc1b
use context managers to open files 2019-07-25 01:30:54 -04:00
Kovid Goyal
a08bdbeb4e
Dont depend on calibre in polyglot 2019-05-15 16:42:52 +05:30
Kovid Goyal
e73dbb0f99
py3: Port calls to json.dump() 2019-03-31 18:30:59 +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
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 f4b358554942b1b13d4f07481a4767c527d94c70.
2018-09-28 09:44:41 +05:30
Kovid Goyal
e125996ee6
Remove basestring from the setup package 2018-09-10 20:58:01 +05:30
Kovid Goyal
cc9a11fba0
Port os.getcwdu to python 3 2018-09-10 20:20:26 +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
ce377076b9
Some py3 fixes for the setup module 2018-09-10 16:04:47 +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
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
c7d4af9ab7
Update publish_betas command 2017-05-21 13:39:29 +05:30
Zoltán Mizsei
7dc4fc5d74 Add Haiku to the known OS list 2017-01-26 08:24:49 +01:00
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
7808cd4794 Enable out-of-tree building of extension modules 2016-07-01 15:18:53 +05:30
Kovid Goyal
91e69ce7e3 A spot of refactoring 2016-06-26 14:56:02 +05:30
Kovid Goyal
8c6ba0e2fa ... 2016-06-25 12:49:02 +05:30
Kovid Goyal
05d9209053 Also check RapydScript files when running python setup.py check
Use sha1 hashes for the check cache instead of mtimes. More reliable
and should work with the travis cache as well, if you decide to run
check on travis
2016-06-25 11:26:23 +05:30
Kovid Goyal
7937c083e4 Output running times for commands during setup 2016-06-25 09:51:22 +05:30
Kovid Goyal
4e0d95818c Allow setup to be run from outside the tree 2016-06-24 21:10:57 +05:30
Kovid Goyal
ee3fdcba3d Allow launching of calibre worker process in-tree 2016-06-22 07:17:52 +05:30
Kovid Goyal
ef09e886b3 Change all shebangs to use python2 2015-01-23 19:08:21 +05:30
Magliano Andrea
59065f7677 Update __init__.py
guess it's 43e8d66dfc5dbe9d4c2228b76643dc4f34374314 completion;
many thanks for your great project, never thought to see it running on dragonfly!
2013-11-10 19:07:11 +01:00
Kovid Goyal
d630f34d0d Port translations update code to git 2013-05-29 10:48:45 +05:30