From 846107e637dc4355661ef401955c79b886052ace Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Wed, 17 Jan 2024 19:13:29 +0300 Subject: [PATCH 1/3] Update information for optional dependencies --- docs/installing.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/installing.rst b/docs/installing.rst index d32f509f..1340d339 100644 --- a/docs/installing.rst +++ b/docs/installing.rst @@ -23,8 +23,7 @@ There are no required dependency. Optional dependencies are as follow: - * ``lxml`` which can improve rendering speed (except on pypy). - * ``cairosvg``, ``tinycss``, ``cssselect`` to render png. + * ``cairosvg``, ``tinycss2``, ``cssselect2`` to render png. Git Repository @@ -45,7 +44,7 @@ Linux Distribution Packages Pygal has been packaged for: -- `Fedora `_ +- `Fedora `_ - `Gentoo `_ - `Ubuntu `_ - `Debian `_ From 39abb9cb1555af7219be0609594e80fad3e4afaa Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Wed, 17 Jan 2024 19:16:20 +0300 Subject: [PATCH 2/3] Update dependency information Match what is needed by CairoSVG --- docs/documentation/output.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/documentation/output.rst b/docs/documentation/output.rst index 6ec69472..de5e2fea 100644 --- a/docs/documentation/output.rst +++ b/docs/documentation/output.rst @@ -52,7 +52,7 @@ With cairosvg installed you can directly get the png file using ``render_to_png` ... chart.render_to_png('/tmp/chart.png') # Write the chart in the specified file -In case of rendered image turning up black, installing lxml, tinycss and cssselect should fix the issue. +In case of rendered image turning up black, installing tinycss2 and cssselect2 should fix the issue. Etree From 5f419b33f7b95b58a5d88426c186af649fee63bd Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Wed, 17 Jan 2024 19:23:01 +0300 Subject: [PATCH 3/3] Remove mention of lxml that is no longer used --- docs/documentation/output.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/documentation/output.rst b/docs/documentation/output.rst index de5e2fea..05b35840 100644 --- a/docs/documentation/output.rst +++ b/docs/documentation/output.rst @@ -59,7 +59,7 @@ Etree ----- -It is possible to get the xml etree root element of the chart (or lxml etree node if lxml is installed) by calling the ``render_tree`` method: +It is possible to get the xml etree root element of the chart by calling the ``render_tree`` method: .. code-block:: python