[meta-python,2/2] python3-twine: Upgrade 3.4.1 -> 3.7.1

Message ID 20220120114027.1857045-2-leon.anavi@konsulko.com
State New
Headers show
Series [meta-python,1/2] python3-simpleeval: Upgrade 0.9.10 -> 0.9.12 | expand

Commit Message

Leon Anavi Jan. 20, 2022, 11:40 a.m. UTC
Upgrade to release 3.7.1:

- Fix broken link to packaging tutorial
- Add support for core metadata version 2.2, defined in PEP 643.
- Add support for Python 3.10
- Show more helpful messages for invalid passwords
- Allow the --skip-existing option to work with GCP Artifact
  Registry
- Add a helpful error message when an upload fails due to missing
  a trailing slash in the URL
- Generalize --verbose suggestion when an upload fails

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../python/python3-twine_3.4.1.bb             | 14 -----------
 .../python/python3-twine_3.7.1.bb             | 23 +++++++++++++++++++
 2 files changed, 23 insertions(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-twine_3.4.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-twine_3.7.1.bb

Patch

diff --git a/meta-python/recipes-devtools/python/python3-twine_3.4.1.bb b/meta-python/recipes-devtools/python/python3-twine_3.4.1.bb
deleted file mode 100644
index 111366dba..000000000
--- a/meta-python/recipes-devtools/python/python3-twine_3.4.1.bb
+++ /dev/null
@@ -1,14 +0,0 @@ 
-DESCRIPTION = "Utilities for interacting with PyPI"
-HOMEPAGE = "https://twine.readthedocs.io/"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=a3d1106b253a8d50dd82a4202a045b4c"
-
-SRC_URI[sha256sum] = "a56c985264b991dc8a8f4234eb80c5af87fa8080d0c224ad8f2cd05a2c22e83b"
-
-inherit pypi setuptools3
-
-DEPENDS += "\
-    ${PYTHON_PN}-setuptools-scm-native \
-"
-
-BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-devtools/python/python3-twine_3.7.1.bb b/meta-python/recipes-devtools/python/python3-twine_3.7.1.bb
new file mode 100644
index 000000000..bcc881e44
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-twine_3.7.1.bb
@@ -0,0 +1,23 @@ 
+DESCRIPTION = "Utilities for interacting with PyPI"
+HOMEPAGE = "https://twine.readthedocs.io/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=a3d1106b253a8d50dd82a4202a045b4c"
+
+SRC_URI[sha256sum] = "28460a3db6b4532bde6a5db6755cf2dce6c5020bada8a641bb2c5c7a9b1f35b8"
+
+inherit pypi setuptools3
+
+DEPENDS += "\
+	${PYTHON_PN}-setuptools-scm-native \
+"
+
+RDEPENDS:${PN} += " \
+	${PYTHON_PN}-importlib-metadata \
+"
+
+do_compile:prepend() {
+	echo "from setuptools import setup" > ${S}/setup.py
+	echo "setup()" >> ${S}/setup.py
+}
+
+BBCLASSEXTEND = "native"