From 3f32b79303bcf62c27ba4df50585e56891fe38ae Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 15 Jul 2022 10:50:48 +0300 Subject: [PATCH] Replace version tables with RST csv-table --- docs/installation.rst | 36 ++++++++---------------------------- docs/newer-versions.csv | 8 ++++++++ docs/older-versions.csv | 5 +++++ 3 files changed, 21 insertions(+), 28 deletions(-) create mode 100644 docs/newer-versions.csv create mode 100644 docs/older-versions.csv diff --git a/docs/installation.rst b/docs/installation.rst index b4cee7b69..f73c1f5a5 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -15,35 +15,15 @@ Python Support Pillow supports these Python versions. -+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+ -| Python |3.10 | 3.9 | 3.8 | 3.7 | 3.6 | 3.5 | 3.4 | 2.7 | -+======================+=====+=====+=====+=====+=====+=====+=====+=====+ -| Pillow >= 9.0 | Yes | Yes | Yes | Yes | | | | | -+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+ -| Pillow 8.3.2 - 8.4 | Yes | Yes | Yes | Yes | Yes | | | | -+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+ -| Pillow 8.0 - 8.3.1 | | Yes | Yes | Yes | Yes | | | | -+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+ -| Pillow 7.0 - 7.2 | | | Yes | Yes | Yes | Yes | | | -+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+ -| Pillow 6.2.1 - 6.2.2 | | | Yes | Yes | Yes | Yes | | Yes | -+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+ -| Pillow 6.0 - 6.2.0 | | | | Yes | Yes | Yes | | Yes | -+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+ -| Pillow 5.2 - 5.4 | | | | Yes | Yes | Yes | Yes | Yes | -+----------------------+-----+-----+-----+-----+-----+-----+-----+-----+ +.. csv-table:: Newer versions + :file: newer-versions.csv + :header-rows: 1 + :widths: auto -+------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+ -| Python | 3.6 | 3.5 | 3.4 | 3.3 | 3.2 | 2.7 | 2.6 | 2.5 | 2.4 | -+==================+=====+=====+=====+=====+=====+=====+=====+=====+=====+ -| Pillow 5.0 - 5.1 | Yes | Yes | Yes | | | Yes | | | | -+------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+ -| Pillow 4 | Yes | Yes | Yes | Yes | | Yes | | | | -+------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+ -| Pillow 2 - 3 | | Yes | Yes | Yes | Yes | Yes | Yes | | | -+------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+ -| Pillow < 2 | | | | | | Yes | Yes | Yes | Yes | -+------------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+ +.. csv-table:: Older versions + :file: older-versions.csv + :header-rows: 1 + :widths: auto Basic Installation ------------------ diff --git a/docs/newer-versions.csv b/docs/newer-versions.csv new file mode 100644 index 000000000..b9630add1 --- /dev/null +++ b/docs/newer-versions.csv @@ -0,0 +1,8 @@ +Python,3.10,3.9,3.8,3.7,3.6,3.5,3.4,2.7 +Pillow >= 9.0,Yes,Yes,Yes,Yes,,,, +Pillow 8.3.2 - 8.4,Yes,Yes,Yes,Yes,Yes,,, +Pillow 8.0 - 8.3.1,,Yes,Yes,Yes,Yes,,, +Pillow 7.0 - 7.2,,,Yes,Yes,Yes,Yes,, +Pillow 6.2.1 - 6.2.2,,,Yes,Yes,Yes,Yes,,Yes +Pillow 6.0 - 6.2.0,,,,Yes,Yes,Yes,,Yes +Pillow 5.2 - 5.4,,,,Yes,Yes,Yes,Yes,Yes diff --git a/docs/older-versions.csv b/docs/older-versions.csv new file mode 100644 index 000000000..f8c707588 --- /dev/null +++ b/docs/older-versions.csv @@ -0,0 +1,5 @@ +Python,3.6,3.5,3.4,3.3,3.2,2.7,2.6,2.5,2.4 +Pillow 5.0 - 5.1,Yes,Yes,Yes,,,Yes,,, +Pillow 4,Yes,Yes,Yes,Yes,,Yes,,, +Pillow 2 - 3,,Yes,Yes,Yes,Yes,Yes,Yes,, +Pillow < 2,,,,,,Yes,Yes,Yes,Yes \ No newline at end of file