Guillaume Ayoub
3d4cb04904
Add an image cache that can be shared between documents
...
Fix #969 .
2020-06-22 16:32:12 +02:00
Guillaume Ayoub
c56b96b3c1
Add an option to optimize embedded images size
2020-06-22 16:05:14 +02:00
Bart Broere
9e90c91535
Try fixing a bug encountered when using weasyprint in Pyinstaller context
2020-03-25 18:43:05 +01:00
Guillaume Ayoub
ab47de3a27
Remove useless assert
...
Related to #1083 .
2020-03-22 11:18:27 +01:00
Felix Schwarz
dd48b5004c
HTML: prevent FutureWarning from xml.etree.ElementTree.Element
...
__bool__()/__nonzero__() is deprecated and raises a FutureWarning. This warning
is usually not visible with CPython. However it is highly irritating with
pypy3 (v7.1.1).
2020-03-22 08:31:25 +01:00
Guillaume Ayoub
620b17a9b3
Coverage
2020-01-09 23:33:07 +01:00
Guillaume Ayoub
b40ad461be
Remove repeated copyright assignments in files
...
Everything is replaced by a more explicit message in the COPYRIGHT file.
Inspired by rust-lang/rust#43498 and rust-lang/rust#57108 .
2020-01-02 14:10:09 +01:00
Guillaume Ayoub
647af0b228
Minor fixes
2020-01-02 13:27:11 +01:00
Guillaume Ayoub
47ec97bcaf
Remove useless explicit object inheritance
2020-01-02 12:06:58 +01:00
Guillaume Ayoub
5f28f83f36
Fix and clean some tests
2020-01-02 00:43:06 +01:00
Guillaume Ayoub
bb4b2d45e6
Update documentation for counters
2019-12-27 15:26:15 +01:00
Guillaume Ayoub
73244891f4
Add base code for @counter-style rules
2019-12-24 14:39:40 +01:00
Guillaume Ayoub
9831a1ba40
Remove and fix some TODOs
2019-07-11 16:48:53 +02:00
Guillaume Ayoub
b7a9fe7dcc
Update copyright
2019-03-04 11:04:06 +01:00
Guillaume Ayoub
0cc5478252
Fix imports for isort
2019-03-01 11:38:03 +01:00
Guillaume Ayoub
bdd45475b6
Clean a lot of things in API documentation
2019-02-22 11:34:46 +01:00
Guillaume Ayoub
03f01e37ee
Update and add some docstrings
2019-02-21 17:34:56 +01:00
Guillaume Ayoub
de98470e02
Use pathlib for version
2019-02-06 18:23:41 +01:00
Guillaume Ayoub
48d4266b6d
Fix API documentation of HTML and CSS classes
2019-01-23 00:12:01 +01:00
Guillaume Ayoub
3513e95b41
Use a separate logger for generation progress
2019-01-03 23:02:44 +01:00
Richard Eames
d27964b962
Close version file after reading using context manager
...
fix #746
2018-12-04 15:16:28 -07:00
Guillaume Ayoub
56904baa79
Use the same copyright line everywhere
2018-09-20 18:46:27 +02:00
Guillaume Ayoub
0fe79762fa
Use setup.cfg instead of setup.py for package metadata
2018-08-23 18:20:36 +02:00
Guillaume Ayoub
1dbe26af01
Allow pathlib.Path objects for HTML, CSS and Attachment instances
...
Fix #622 .
2018-08-21 16:17:00 +02:00
Guillaume Ayoub
dc8ce2fa74
Raise an error when using Python 2
...
Also remove non-ascii characters from __init__.py to actually get the error
when importing the module.
Fix #564 .
2018-01-28 00:02:13 +01:00
Guillaume Ayoub
16e8186568
Drop Python 2 support
2018-01-14 01:48:17 +01:00
Guillaume Ayoub
5bb4815844
Version 0.42
2017-12-26 15:44:49 +01:00
Guillaume Ayoub
3fb6747f61
Explicitely test that page_rules is None to create a new empty list
...
Fix #520 .
2017-10-06 16:20:23 +02:00
Guillaume Ayoub
bcb198d717
Version 0.41
2017-10-05 11:43:43 +02:00
Guillaume Ayoub
0c27e94468
Add a font_config parameter to various render methods
...
Fix #506 .
2017-10-01 15:17:32 +02:00
Guillaume Ayoub
4990ad9465
Fix _select_sources again
2017-09-06 18:24:56 +02:00
Guillaume Ayoub
ae0a1987d7
Fix _select_source cleanup
2017-09-06 16:55:21 +02:00
Pacu2
6440e2572d
Improve readibility
2017-08-25 11:01:37 +02:00
Guillaume Ayoub
fbcd088c51
Version 0.40.
2017-08-17 11:20:36 +02:00
Guillaume Ayoub
fcd6bf7070
Clean and document the logging levels
...
Related to #488 .
2017-07-25 13:59:56 +02:00
Guillaume Ayoub
f856edb3b4
Log the document generation steps
...
Related to #488 .
2017-07-25 13:58:18 +02:00
Guillaume Ayoub
a0dba07b67
Don't store base_url in ElementWrappers
2017-07-07 11:14:07 +02:00
Guillaume Ayoub
ba26fa34a9
Use ElementTree's elements as much as possible
2017-07-03 15:19:05 +02:00
Guillaume Ayoub
07190e2fd9
Don't test 'tree' as a possible HTML source
2017-06-30 22:58:33 +02:00
Guillaume Ayoub
0f6647194b
Get rid of lxml
2017-06-30 22:48:47 +02:00
Guillaume Ayoub
f349f8b276
Make HTML inherit from cssselect2.ElementWrapper
2017-06-30 20:12:53 +02:00
Guillaume Ayoub
4a5fa84f9f
Use cssselect2 instead of cssselect
2017-06-30 17:54:02 +02:00
Guillaume Ayoub
baa698f473
Version 0.39
2017-06-24 14:17:13 +02:00
Guillaume Ayoub
5b65283a22
Version 0.38
2017-06-16 11:35:42 +02:00
Guillaume Ayoub
3151b5518a
Version 0.37.
2017-06-15 08:21:40 +02:00
Guillaume Ayoub
3677929a5b
Add a documentation paragraph about the font_config attribute
2017-05-03 09:22:19 +02:00
Guillaume Ayoub
b53d9d3b1f
Cut long lines, remove an old note
2017-04-29 10:41:53 +02:00
Hugh Secker-Walker
9376c95071
Fix typos and awkward grammar on Tutorial and API pages.
2017-04-28 14:36:14 -04:00
Simon Sapin
0aa62e249e
Switch to tinycss2
2017-03-26 18:44:21 +02:00
Guillaume Ayoub
c1accaa58e
Use warnings instead of logs to advertise about old libraries
2017-03-25 15:57:06 +01:00