Skip to contentSkip to conversation

python-configargparse: add package (version 0.15.1)

PATCH New Nicola Lunghi 1 participant 1 message Nov 29, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-configargparse: add package (version 0.15.1)

This module merges the argparse and the configparser functionality and is python3 compatible

---
 .../python/python-configargparse.inc          | 22 +++++++++++++++++++
 .../python/python-configargparse_0.15.1.bb    |  3 +++
 .../python/python3-configargparse_0.15.1.bb   |  3 +++
 3 files changed, 28 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-configargparse.inc
 create mode 100644 meta-python/recipes-devtools/python/python-configargparse_0.15.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-configargparse_0.15.1.bb
meta-python/recipes-devtools/python/python-configargparse.inc new file +22 -0
new file mode 100644
index 0000000000..17d296ff8d
@@ -0,0 +1,22 @@
+SUMMARY = "A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables."
+HOMEPAGE = "https://github.com/bw2/ConfigArgParse"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=da746463714cc35999ed9a42339f2943"
+
+SRC_URI[md5sum] = "aba15b7973b7a70bea86fd69289f8fe3"
+SRC_URI[sha256sum] = "baaf0fd2c1c108d007f402dab5481ac5f12d77d034825bf5a27f8224757bd0ac"
+
+PYPI_PACKAGE = "ConfigArgParse"
+
+inherit pypi
+
+PACKAGECONFIG ?= "yaml"
+PACKAGECONFIG[yaml] = ",,,${PYTHON_PN}-pyyaml"
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-core \
+    ${PYTHON_PN}-shell \
+"
+
+BBCLASSEXTEND = "native nativesdk"
+
meta-python/recipes-devtools/python/python-configargparse_0.15.1.bb new file +3 -0
new file mode 100644
index 0000000000..6d64b8d0b2
@@ -0,0 +1,3 @@
+inherit setuptools
+require python-configargparse.inc
+
meta-python/recipes-devtools/python/python3-configargparse_0.15.1.bb new file +3 -0
new file mode 100644
index 0000000000..698eccf666
@@ -0,0 +1,3 @@
+inherit setuptools3
+require python-configargparse.inc
+
Signature · 1 line
2.20.1