diff mbox series

[v2] python3-docutils: upgrade 0.20.1 -> 0.21.2

Message ID 20240606123747.2059390-1-tgamblin@baylibre.com
State Accepted, archived
Commit 38f2293304fbd884d4653f7746bc1d5a9bac12c1
Headers show
Series [v2] python3-docutils: upgrade 0.20.1 -> 0.21.2 | expand

Commit Message

Trevor Gamblin June 6, 2024, 12:37 p.m. UTC
License-Update: Change from PSF 2.x to ZPL-2.1, add CC0

A few notable things change with this upgrade:

- docutils now uses the Zope 2.1 license instead of PSF 2.1.1
- It now uses flit as the build backend
- The do_install append is no longer needed, as the rst2* endpoints
  lacking the .py extension are included
- python3-pprint is added to RDEPENDS

Changelog: https://docutils.sourceforge.io/RELEASE-NOTES.html

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
v2 makes the CC0 (public domain) license specified in COPYING.txt
explicit in the LICENSE line.

 .../python/python3-docutils_0.20.1.bb         | 20 -------------------
 .../python/python3-docutils_0.21.2.bb         | 14 +++++++++++++
 2 files changed, 14 insertions(+), 20 deletions(-)
 delete mode 100644 meta/recipes-devtools/python/python3-docutils_0.20.1.bb
 create mode 100644 meta/recipes-devtools/python/python3-docutils_0.21.2.bb
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-docutils_0.20.1.bb b/meta/recipes-devtools/python/python3-docutils_0.20.1.bb
deleted file mode 100644
index 6038732cc4..0000000000
--- a/meta/recipes-devtools/python/python3-docutils_0.20.1.bb
+++ /dev/null
@@ -1,20 +0,0 @@ 
-SUMMARY = "Docutils is a modular system for processing documentation into useful formats"
-HOMEPAGE = "http://docutils.sourceforge.net"
-SECTION = "devel/python"
-LICENSE = "PSF-2.0 & BSD-2-Clause & GPL-3.0-only"
-LIC_FILES_CHKSUM = "file://COPYING.txt;md5=08f5f8aa6a1db2500c08a2bb558e45af"
-
-SRC_URI[sha256sum] = "f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b"
-
-inherit pypi setuptools3
-
-do_install:append() {
-    for f in rst2html rst2html4 rst2html5 rst2latex rst2man \
-	           rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml \
-	           rstpep2html
-    do
-        mv ${D}${bindir}/$f.py ${D}${bindir}/$f;
-    done
-}
-
-BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-devtools/python/python3-docutils_0.21.2.bb b/meta/recipes-devtools/python/python3-docutils_0.21.2.bb
new file mode 100644
index 0000000000..ac41ef6858
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-docutils_0.21.2.bb
@@ -0,0 +1,14 @@ 
+SUMMARY = "Docutils is a modular system for processing documentation into useful formats"
+HOMEPAGE = "http://docutils.sourceforge.net"
+SECTION = "devel/python"
+LICENSE = "CC0-1.0 & ZPL-2.1 & BSD-2-Clause & GPL-3.0-only"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=382430a09a4453818aa6618f2090491b"
+
+SRC_URI[sha256sum] = "3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f"
+
+inherit pypi python_setuptools_build_meta
+
+RDEPENDS:${PN} += " \
+                   python3-pprint \
+"
+BBCLASSEXTEND = "native nativesdk"