Cleanup and new recipes
cover Cleanup and new recipes
This patch series contains some miscellaneous cleanup and new python recipes that I'm using for my own project but are more generally applicable.
Martin Kelly (17):
recipes-devtools: remove +x bit
python-msgpack: add native,nativesdk support
python3-can: add native,nativesdk recipes
python-pint: add nativesdk support
python3-aenum: add recipe for 2.2.3
python3-can: add missing RDEPENDS
python3-simpleeval: add recipe for 0.9.10
python3-typeguard: add recipe for 2.7.1
python3-iso3166: add recipe for 1.0.1
python3-geojson: add recipe for 2.5.0
python3-haversine: add recipe for 2.2.0
python3-polyline: add recipe for 1.4.0
python3-mpmath: add recipe for 1.10
python3-sympy: add recipe for 1.5.1
python3-uritemplate: add recipe for 3.0.1
python3-lockfile: add recipe for 0.12.2
python3-cachecontrol: add recipe for 0.12.6
.../python/python-msgpack.inc | 2 ++ .../recipes-devtools/python/python-pint.inc | 2 +- .../python/python3-aenum_2.2.3.bb | 11 +++++++ .../python/python3-cachecontrol_0.12.6.bb | 29 +++++++++++++++++++ .../python/python3-can_3.3.2.bb | 4 +++ .../python/python3-geojson_2.5.0.bb | 13 +++++++++ .../python/python3-haversine_2.2.0.bb | 12 ++++++++ .../python/python3-iso3166_1.0.1.bb | 13 +++++++++ .../python/python3-lockfile_0.12.2.bb | 17 +++++++++++ .../python/python3-mpmath_1.1.0.bb | 16 ++++++++++ .../python/python3-polyline_1.4.0.bb | 13 +++++++++ .../python/python3-pytz_2019.3.bb | 0 .../python/python3-regex_2020.1.8.bb | 0 .../python/python3-simpleeval_0.9.10.bb | 11 +++++++ .../python/python3-sympy_1.5.1.bb | 16 ++++++++++ .../python/python3-typeguard_2.7.1.bb | 18 ++++++++++++ .../python/python3-uritemplate_3.0.1.bb | 14 +++++++++ 17 files changed, 190 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-aenum_2.2.3.bb create mode 100644 meta-python/recipes-devtools/python/python3-cachecontrol_0.12.6.bb create mode 100644 meta-python/recipes-devtools/python/python3-geojson_2.5.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-haversine_2.2.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-lockfile_0.12.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-mpmath_1.1.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-polyline_1.4.0.bb mode change 100755 => 100644 meta-python/recipes-devtools/python/python3-pytz_2019.3.bb mode change 100755 => 100644 meta-python/recipes-devtools/python/python3-regex_2020.1.8.bb create mode 100644 meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb create mode 100644 meta-python/recipes-devtools/python/python3-sympy_1.5.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-typeguard_2.7.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-uritemplate_3.0.1.bb
--
2.25.1
PATCH 1/17 recipes-devtools: remove +x bit
The executable bit was erroneously set on these recipes.
--- meta-python/recipes-devtools/python/python3-pytz_2019.3.bb | 0 meta-python/recipes-devtools/python/python3-regex_2020.1.8.bb | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 meta-python/recipes-devtools/python/python3-pytz_2019.3.bb mode change 100755 => 100644 meta-python/recipes-devtools/python/python3-regex_2020.1.8.bb
meta-python/recipes-devtools/python/python3-pytz_2019.3.bb +0 -0
meta-python/recipes-devtools/python/python3-regex_2020.1.8.bb +0 -0
Signature · 1 line
2.25.1
PATCH 2/17 python-msgpack: add native,nativesdk support
In reply to Martin KellyThis builds fine with native and nativesdk, so let's add it to the package.
--- meta-python/recipes-devtools/python/python-msgpack.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-msgpack.inc +2 -0
@@ -11,3 +11,5 @@ SRC_URI[sha256sum] = "ea3c2f859346fcd55fc46e96885301d9c2f7a36d453f5d8f2967840efa RDEPENDS_${PN}_class-target += "\ ${PYTHON_PN}-io \ " + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 3/17 python3-can: add native,nativesdk recipes
In reply to Martin KellyThis builds fine for native and nativesdk, so add recipes for it.
--- meta-python/recipes-devtools/python/python3-can_3.3.2.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-can_3.3.2.bb +2 -0
@@ -20,3 +20,5 @@ RDEPENDS_${PN}_class-target += "\ ${PYTHON_PN}-sqlite3 \ ${PYTHON_PN}-wrapt \ " + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 4/17 python-pint: add nativesdk support
In reply to Martin KellyThis builds just fine with nativesdk, so let's enable it.
--- meta-python/recipes-devtools/python/python-pint.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-pint.inc +1 -1
@@ -12,4 +12,4 @@ inherit pypi SRC_URI[md5sum] = "d0681cb7cfaca9fc68ce7edab0d08d88" SRC_URI[sha256sum] = "32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2" -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 5/17 python3-aenum: add recipe for 2.2.3
In reply to Martin KellyThis is a dependency for python3-can.
--- .../recipes-devtools/python/python3-aenum_2.2.3.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-aenum_2.2.3.bb
meta-python/recipes-devtools/python/python3-aenum_2.2.3.bb new file +11 -0
@@ -0,0 +1,11 @@ +SUMMARY = "Advanced Enumerations library" +HOMEPAGE = "https://pypi.org/project/aenum/" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://aenum/LICENSE;md5=c6a85477543f8b8591b9c1f82abebbe9" + +SRC_URI[md5sum] = "026786dbb37c15c2c8dc91fbf5828e97" +SRC_URI[sha256sum] = "a4334cabf47c167d44ab5a6198837b80deec5d5bad1b5cf70c966c3a330260e8" + +inherit pypi setuptools3 + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 6/17 python3-can: add missing RDEPENDS
In reply to Martin Kellypython3-can has runtime dependencies on aenum and fcntl, but these were missing, so add them.
--- meta-python/recipes-devtools/python/python3-can_3.3.2.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-can_3.3.2.bb +2 -0
@@ -11,9 +11,11 @@ PYPI_PACKAGE="python-can" inherit pypi setuptools3 RDEPENDS_${PN}_class-target += "\ + ${PYTHON_PN}-aenum \ ${PYTHON_PN}-ctypes \ ${PYTHON_PN}-codecs \ ${PYTHON_PN}-compression \ + ${PYTHON_PN}-fcntl \ ${PYTHON_PN}-logging \ ${PYTHON_PN}-misc \ ${PYTHON_PN}-netserver \
Signature · 1 line
2.25.1
PATCH 7/17 python3-simpleeval: add recipe for 0.9.10
In reply to Martin Kelly--- .../python/python3-simpleeval_0.9.10.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb
meta-python/recipes-devtools/python/python3-simpleeval_0.9.10.bb new file +11 -0
@@ -0,0 +1,11 @@ +SUMMARY = "A simple, safe single expression evaluator library" +HOMEPAGE = "https://pypi.org/project/simpleeval/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENCE;md5=dc9277482effe59b734b004cbcc1fee7" + +SRC_URI[md5sum] = "f175fc12d408487ca26fa3905e0a6691" +SRC_URI[sha256sum] = "692055488c2864637f6c2edb5fa48175978a2a07318009e7cf03c9790ca17bea" + +inherit pypi setuptools3 + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 8/17 python3-typeguard: add recipe for 2.7.1
In reply to Martin Kelly--- .../python/python3-typeguard_2.7.1.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-typeguard_2.7.1.bb
meta-python/recipes-devtools/python/python3-typeguard_2.7.1.bb new file +18 -0
@@ -0,0 +1,18 @@ +SUMMARY = "Run-time type checker for Python" +HOMEPAGE = "https://pypi.org/project/typeguard/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f0e423eea5c91e7aa21bdb70184b3e53" + +SRC_URI[md5sum] = "ef743359de59f8fe17e7c5e3af70e2c5" +SRC_URI[sha256sum] = "2d545c71e9439c21bcd7c28f5f55b3606e6106f7031ab58375656a1aed483ef2" + +inherit pypi setuptools3 + +DEPENDS += "\ + python3-distutils-extra-native \ + python3-setuptools-scm-native \ +" + +RDEPENDS_${PN} += "python3-typing" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 9/17 python3-iso3166: add recipe for 1.0.1
In reply to Martin Kelly--- .../python/python3-iso3166_1.0.1.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb
meta-python/recipes-devtools/python/python3-iso3166_1.0.1.bb new file +13 -0
@@ -0,0 +1,13 @@ +SUMMARY = "Self-contained ISO 3166-1 country definitions" +HOMEPAGE = "https://pypi.org/project/iso3166/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5e2f4edc7e7408a82e4a1d05f229b695" + +SRC_URI[md5sum] = "53c313c7ae8721e40ddd5e7a01bbcb7e" +SRC_URI[sha256sum] = "b1e58dbcf50fbb2c9c418ec7a6057f0cdb30b8f822ac852f72e71ba769dae8c5" + +inherit pypi setuptools3 + +RDEPENDS_${PN} += "python3-numbers" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 10/17 python3-geojson: add recipe for 2.5.0
In reply to Martin Kelly--- .../python/python3-geojson_2.5.0.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-geojson_2.5.0.bb
meta-python/recipes-devtools/python/python3-geojson_2.5.0.bb new file +13 -0
@@ -0,0 +1,13 @@ +SUMMARY = "Python bindings and utilities for GeoJSON" +HOMEPAGE = "https://pypi.org/project/geojson/" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=f48972abe5cddee79e301574742ed745" + +SRC_URI[md5sum] = "14753ed28678828b1de73f68b04e2324" +SRC_URI[sha256sum] = "6e4bb7ace4226a45d9c8c8b1348b3fc43540658359f93c3f7e03efa9f15f658a" + +inherit pypi setuptools3 + +RDEPENDS_${PN} += "python3-simplejson python3-math" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 11/17 python3-haversine: add recipe for 2.2.0
In reply to Martin Kelly--- .../python/python3-haversine_2.2.0.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-haversine_2.2.0.bb
meta-python/recipes-devtools/python/python3-haversine_2.2.0.bb new file +12 -0
@@ -0,0 +1,12 @@ +SUMMARY = "Calculate the distance between 2 points on Earth" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +SRC_URI[md5sum] = "6b1badeb63aac6214c978d07a4ecd171" +SRC_URI[sha256sum] = "b710aaf32c442a6d04aa89678be55e3f6c11f9752fc01c216e89b13120b36269" + +inherit pypi setuptools3 + +RDEPENDS_${PN} += "python3-numpy" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 12/17 python3-polyline: add recipe for 1.4.0
In reply to Martin Kelly--- .../python/python3-polyline_1.4.0.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-polyline_1.4.0.bb
meta-python/recipes-devtools/python/python3-polyline_1.4.0.bb new file +13 -0
@@ -0,0 +1,13 @@ +SUMMARY = "A Python implementation of Google's Encoded Polyline Algorithm Format" +HOMEPAGE = "https://pypi.org/project/polyline/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=0fbd13500cabd06dd751ba6b2be304c6" + +SRC_URI[md5sum] = "b97c57378605c4a856c437569f95a0cb" +SRC_URI[sha256sum] = "7c7f89d09a09c7b6161bdbfb4fd304b186fc7a2060fa4f31cb3f61c646a5c074" + +inherit pypi setuptools3 + +RDEPENDS_${PN} += "python3-six" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 13/17 python3-mpmath: add recipe for 1.10
In reply to Martin KellyThis is a dependency for python3-sympy.
This recipe is adapted from one in meta-jupyter, which is also MIT-licensed.
--- .../python/python3-mpmath_1.1.0.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-mpmath_1.1.0.bb
meta-python/recipes-devtools/python/python3-mpmath_1.1.0.bb new file +16 -0
@@ -0,0 +1,16 @@ +# This recipe is adapted from one in meta-jupyter: +# https://github.com/Xilinx/meta-jupyter/blob/master/recipes-python/python3-mpmath_0.19.bb + +SUMMARY = "Python library for arbitrary-precision floating-point arithmetic" +HOMEPAGE = "https://pypi.org/project/mpmath/" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=efe9feb00df0b763941f2b1bbac7c402" + +SRC_URI[md5sum] = "acb1cdddf38e16084628065b174ddbfe" +SRC_URI[sha256sum] = "fc17abe05fbab3382b61a123c398508183406fa132e0223874578e20946499f6" + +inherit pypi setuptools3 + +RDEPENDS_${PN} += "python3-image" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 14/17 python3-sympy: add recipe for 1.5.1
In reply to Martin KellyThis recipe is adapted from one in meta-jupyter, which is also MIT-licensed.
--- .../python/python3-sympy_1.5.1.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-sympy_1.5.1.bb
meta-python/recipes-devtools/python/python3-sympy_1.5.1.bb new file +16 -0
@@ -0,0 +1,16 @@ +# This recipe is adapted from one in meta-jupyter: +# https://github.com/Xilinx/meta-jupyter/blob/master/recipes-python/python3-sympy_1.1.bb + +SUMMARY = "Computer algebra system (CAS) in Python" +HOMEPAGE = "https://pypi.org/project/sympy/" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=611b41534dbf5aa01d7c827bf667ef66" + +SRC_URI[md5sum] = "b11b310c3e1642bf66e51038cb3c0021" +SRC_URI[sha256sum] = "d77901d748287d15281f5ffe5b0fef62dd38f357c2b827c44ff07f35695f4e7e" + +inherit pypi setuptools3 + +RDEPENDS_${PN} += "python3-mpmath" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 15/17 python3-uritemplate: add recipe for 3.0.1
In reply to Martin KellyThis recipe originally comes from meta-openstack, but it's dependency-less, so it may as well live here and get wider use. meta-openstack is MIT-licensed, so the recipe is compatible.
Also bump the version to 3.0.1, from the 3.0.0 currently in meta-openstack.
--- .../python/python3-uritemplate_3.0.1.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-uritemplate_3.0.1.bb
meta-python/recipes-devtools/python/python3-uritemplate_3.0.1.bb new file +14 -0
@@ -0,0 +1,14 @@ +# This recipe is originally from meta-openstack: +# https://git.yoctoproject.org/cgit/cgit.cgi/meta-cloud-services/tree/meta-openstack/recipes-devtools/python/python3-uritemplate_3.0.0.bb?h=master + +SUMMARY = "Simple python library to deal with URI Templates." +AUTHOR = "Ian Cordasco" +LICENSE = "Apache-2.0 | BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=0f6d769bdcfacac3c1a1ffa568937fe0" + +SRC_URI[md5sum] = "869fb44fbd56713490db7272eb36c8ae" +SRC_URI[sha256sum] = "5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae" + +inherit pypi setuptools3 + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 16/17 python3-lockfile: add recipe for 0.12.2
In reply to Martin Kelly--- .../python/python3-lockfile_0.12.2.bb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-lockfile_0.12.2.bb
meta-python/recipes-devtools/python/python3-lockfile_0.12.2.bb new file +17 -0
@@ -0,0 +1,17 @@ +# This recipe is originally from meta-openstack: +# https://git.yoctoproject.org/cgit/cgit.cgi/meta-cloud-services/tree/meta-openstack/recipes-devtools/python/python-lockfile_0.12.2.bb + +SUMMARY = "Platform-independent file locking module" +HOMEPAGE = "https://pypi.org/project/lockfile/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=2340dffbbfea534b58f1349984eeef72" + +SRC_URI[md5sum] = "a6a1a82957a23afdf44cfdd039b65ff9" +SRC_URI[sha256sum] = "6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799" + +inherit pypi setuptools3 + +DEPENDS += "python3-distutils-extra-native python3-pbr-native" +RDEPENDS_${PN} += "python3-sqlite3" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 17/17 python3-cachecontrol: add recipe for 0.12.6
In reply to Martin KellyThis recipe originally comes from meta-openstack, but it's dependency-less, so it may as well live here and get wider use.
meta-openstack is MIT-licensed, so the recipe is compatible.
--- .../python/python3-cachecontrol_0.12.6.bb | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-cachecontrol_0.12.6.bb
meta-python/recipes-devtools/python/python3-cachecontrol_0.12.6.bb new file +29 -0
@@ -0,0 +1,29 @@ +SUMMARY = "httplib2 caching for requests" +HOMEPAGE = "https://pypi.org/project/CacheControl/" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=6dc7e1b428eda03d850209fdbd6c71f1" + +# On PyPi, this is "CacheControl", rather than "cachecontrol", so we need to +# override PYPI_PACKAGE so fetch succeeds. +PYPI_PACKAGE = "CacheControl" + +SRC_URI[md5sum] = "5890b797f9b48b2b4cd1448cca89e396" +SRC_URI[sha256sum] = "be9aa45477a134aee56c8fac518627e1154df063e85f67d4f83ce0ccc23688e8" + +inherit pypi setuptools3 + +RDEPENDS_${PN} += "\ + python3-crypt \ + python3-datetime \ + python3-email \ + python3-lockfile \ + python3-json \ + python3-logging \ + python3-msgpack \ + python3-netclient \ + python3-pickle \ + python3-requests \ + python3-urllib3 \ +" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1