diff options
author | Jean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.com> | 2019-10-03 16:07:29 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-10-04 19:11:55 -0700 |
commit | a0c79bfccb7a1007b07b26b19df945baed0c7063 (patch) | |
tree | 5d4603b136b4cbacd12ea0114ef39346ee9ec7a9 | |
parent | fdd9aea01261e65ead32b56efec901ed8b6a99b9 (diff) | |
download | meta-openembedded-a0c79bfccb7a1007b07b26b19df945baed0c7063.tar.gz |
python-toml: add recipes for python2 and python3
This package is a Python library for parsing and creating TOML [1].
Another python TOML parser library named pytoml already exists in
meta-oe/recipes-devtools/python/python*-pytoml_*.bb but this library is
deprecated and it is explicitly explained to consider using the toml
package instead [2].
1: https://github.com/toml-lang/toml
2: https://github.com/avakar/pytoml/commit/cd2a62e1444cda2c517b02d36b97151acf379b88
Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 files changed, 22 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-toml.inc b/meta-python/recipes-devtools/python/python-toml.inc new file mode 100644 index 000000000..a3b3dfc86 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-toml.inc | |||
@@ -0,0 +1,10 @@ | |||
1 | SUMMARY = "Python Library for Tom's Obvious, Minimal Language" | ||
2 | HOMEPAGE = "https://github.com/uiri/toml" | ||
3 | LICENSE = "MIT" | ||
4 | SECTION = "devel/python" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=6d6012eea477117abf51c31262a152f8" | ||
6 | |||
7 | SRC_URI[md5sum] = "63fffbe2d632865ec29cd69bfdf36682" | ||
8 | SRC_URI[sha256sum] = "229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c" | ||
9 | |||
10 | inherit pypi | ||
diff --git a/meta-python/recipes-devtools/python/python-toml_0.10.0.bb b/meta-python/recipes-devtools/python/python-toml_0.10.0.bb new file mode 100644 index 000000000..3c4acce67 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-toml_0.10.0.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | inherit setuptools | ||
2 | require python-toml.inc | ||
3 | |||
4 | RDEPENDS_${PN} += " \ | ||
5 | ${PYTHON_PN}-datetime \ | ||
6 | " | ||
diff --git a/meta-python/recipes-devtools/python/python3-toml_0.10.0.bb b/meta-python/recipes-devtools/python/python3-toml_0.10.0.bb new file mode 100644 index 000000000..cebb41a53 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-toml_0.10.0.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | inherit setuptools3 | ||
2 | require python-toml.inc | ||
3 | |||
4 | RDEPENDS_${PN} += " \ | ||
5 | ${PYTHON_PN}-misc \ | ||
6 | " | ||