python3-psutil: Consolidate in a single file
PATCH 1/2 python3-psutil: Consolidate in a single file
Consolidate inc and bb files into a single bb file.
Signed-off-by Leon Anavi <[email protected]>
--- .../recipes-devtools/python/python-psutil.inc | 22 ---------------- .../python/python3-psutil_5.7.0.bb | 25 +++++++++++++++++-- 2 files changed, 23 insertions(+), 24 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python-psutil.inc
meta-python/recipes-devtools/python/python-psutil.inc deleted +0 -22
@@ -1,22 +0,0 @@ -SUMMARY = "A cross-platform process and system utilities module for Python" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=e35fd9f271d19d5f742f20a9d1f8bb8b" - -SRC_URI[md5sum] = "ed7b0f11ed214bcabbe76b7cf52f3ae3" -SRC_URI[sha256sum] = "685ec16ca14d079455892f25bd124df26ff9137664af445563c1bd36629b5e0e" - -PACKAGES =+ "${PN}-tests" - -FILES_${PN}-tests += " \ - ${PYTHON_SITEPACKAGES_DIR}/psutil/test* \ - ${PYTHON_SITEPACKAGES_DIR}/psutil/__pycache__/test* \ -" - - -RDEPENDS_${PN} += " \ - ${PYTHON_PN}-shell \ - ${PYTHON_PN}-threading \ - ${PYTHON_PN}-xml \ -" - -BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python3-psutil_5.7.0.bb +23 -2
@@ -1,4 +1,25 @@ +SUMMARY = "A cross-platform process and system utilities module for Python" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e35fd9f271d19d5f742f20a9d1f8bb8b" + +SRC_URI[md5sum] = "ed7b0f11ed214bcabbe76b7cf52f3ae3" +SRC_URI[sha256sum] = "685ec16ca14d079455892f25bd124df26ff9137664af445563c1bd36629b5e0e" + inherit pypi setuptools3 -require python-psutil.inc -RDEPENDS_${PN} += "${PYTHON_PN}-netclient" +PACKAGES =+ "${PN}-tests" + +FILES_${PN}-tests += " \ + ${PYTHON_SITEPACKAGES_DIR}/psutil/test* \ + ${PYTHON_SITEPACKAGES_DIR}/psutil/__pycache__/test* \ +" + + +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-shell \ + ${PYTHON_PN}-threading \ + ${PYTHON_PN}-xml \ + ${PYTHON_PN}-netclient \ +" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
PATCH 2/2 python3-protobuf: Consolidate in a single file
Consolidate inc and bb files into a single bb file.
Signed-off-by Leon Anavi <[email protected]>
--- .../python/python-protobuf.inc | 32 ----------------- .../python/python3-protobuf_3.11.3.bb | 34 +++++++++++++++++-- 2 files changed, 32 insertions(+), 34 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python-protobuf.inc
meta-python/recipes-devtools/python/python-protobuf.inc deleted +0 -32
@@ -1,32 +0,0 @@ -DESCRIPTION = "Protocol Buffers" -HOMEPAGE = "https://developers.google.com/protocol-buffers/" -SECTION = "devel/python" - -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=19e8f490f9526b1de84f8d949cfcfd4e" - -inherit pypi - -SRC_URI[md5sum] = "eeda7dea65fc94e560fc9a8180eb1872" -SRC_URI[sha256sum] = "c77c974d1dadf246d789f6dad1c24426137c9091e930dbf50e0a29c1fcf00b1f" - -# http://errors.yoctoproject.org/Errors/Details/184715/ -# Can't find required file: ../src/google/protobuf/descriptor.proto -CLEANBROKEN = "1" - -UPSTREAM_CHECK_REGEX = "protobuf/(?P<pver>\d+(\.\d+)+)/" - -RDEPENDS_${PN} += " \ - ${PYTHON_PN}-datetime \ - ${PYTHON_PN}-json \ - ${PYTHON_PN}-logging \ - ${PYTHON_PN}-netclient \ - ${PYTHON_PN}-numbers \ - ${PYTHON_PN}-pkgutil \ - ${PYTHON_PN}-six \ - ${PYTHON_PN}-unittest \ -" - -# For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools) -BBCLASSEXTEND = "native nativesdk" -
meta-python/recipes-devtools/python/python3-protobuf_3.11.3.bb +32 -2
@@ -1,7 +1,37 @@ -inherit setuptools3 -require python-protobuf.inc +DESCRIPTION = "Protocol Buffers" +HOMEPAGE = "https://developers.google.com/protocol-buffers/" +SECTION = "devel/python" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=19e8f490f9526b1de84f8d949cfcfd4e" + +inherit pypi setuptools3 + +SRC_URI[md5sum] = "eeda7dea65fc94e560fc9a8180eb1872" +SRC_URI[sha256sum] = "c77c974d1dadf246d789f6dad1c24426137c9091e930dbf50e0a29c1fcf00b1f" + +# http://errors.yoctoproject.org/Errors/Details/184715/ +# Can't find required file: ../src/google/protobuf/descriptor.proto +CLEANBROKEN = "1" + +UPSTREAM_CHECK_REGEX = "protobuf/(?P<pver>\d+(\.\d+)+)/" DEPENDS += "protobuf" + +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-json \ + ${PYTHON_PN}-logging \ + ${PYTHON_PN}-netclient \ + ${PYTHON_PN}-numbers \ + ${PYTHON_PN}-pkgutil \ + ${PYTHON_PN}-six \ + ${PYTHON_PN}-unittest \ +" + +# For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools) +BBCLASSEXTEND = "native nativesdk" + DISTUTILS_BUILD_ARGS += "--cpp_implementation" DISTUTILS_INSTALL_ARGS += "--cpp_implementation"
Signature · 1 line
2.17.1
Re: [oe] [meta-python][PATCH 2/2] python3-protobuf: Consolidate in a single file
Quoted 3 lines · Leon Anavi
Consolidate inc and bb files into a single bb file.
Signed-off-by Leon Anavi <[email protected]>
Acked-by Trevor Gamblin <[email protected]>
Quoted 90 lines
--- .../python/python-protobuf.inc | 32 ----------------- .../python/python3-protobuf_3.11.3.bb | 34 +++++++++++++++++-- 2 files changed, 32 insertions(+), 34 deletions(-)delete mode 100644 meta-python/recipes-devtools/python/python-protobuf.inc
meta-python/recipes-devtools/python/python-protobuf.inc deleted +0
-32@@ -1,32 +0,0 @@ -DESCRIPTION = "Protocol Buffers" -HOMEPAGE = "https://developers.google.com/protocol-buffers/" -SECTION = "devel/python" - -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=19e8f490f9526b1de84f8d949cfcfd4e" - -inherit pypi - -SRC_URI[md5sum] = "eeda7dea65fc94e560fc9a8180eb1872" -SRC_URI[sha256sum] = "c77c974d1dadf246d789f6dad1c24426137c9091e930dbf50e0a29c1fcf00b1f" - -# http://errors.yoctoproject.org/Errors/Details/184715/ -# Can't find required file: ../src/google/protobuf/descriptor.proto -CLEANBROKEN = "1" - -UPSTREAM_CHECK_REGEX = "protobuf/(?P<pver>\d+(\.\d+)+)/" - -RDEPENDS_${PN} += " \ - ${PYTHON_PN}-datetime \ - ${PYTHON_PN}-json \ - ${PYTHON_PN}-logging \ - ${PYTHON_PN}-netclient \ - ${PYTHON_PN}-numbers \ - ${PYTHON_PN}-pkgutil \ - ${PYTHON_PN}-six \ - ${PYTHON_PN}-unittest \ -" - -# For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools) -BBCLASSEXTEND = "native nativesdk" -meta-python/recipes-devtools/python/python3-protobuf_3.11.3.bb +32
-2@@ -1,7 +1,37 @@ -inherit setuptools3 -require python-protobuf.inc +DESCRIPTION = "Protocol Buffers" +HOMEPAGE = "https://developers.google.com/protocol-buffers/" +SECTION = "devel/python" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=19e8f490f9526b1de84f8d949cfcfd4e" + +inherit pypi setuptools3 + +SRC_URI[md5sum] = "eeda7dea65fc94e560fc9a8180eb1872" +SRC_URI[sha256sum] = "c77c974d1dadf246d789f6dad1c24426137c9091e930dbf50e0a29c1fcf00b1f" + +# http://errors.yoctoproject.org/Errors/Details/184715/ +# Can't find required file: ../src/google/protobuf/descriptor.proto +CLEANBROKEN = "1" + +UPSTREAM_CHECK_REGEX = "protobuf/(?P<pver>\d+(\.\d+)+)/" DEPENDS += "protobuf" + +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-json \ + ${PYTHON_PN}-logging \ + ${PYTHON_PN}-netclient \ + ${PYTHON_PN}-numbers \ + ${PYTHON_PN}-pkgutil \ + ${PYTHON_PN}-six \ + ${PYTHON_PN}-unittest \ +" + +# For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools) +BBCLASSEXTEND = "native nativesdk" + DISTUTILS_BUILD_ARGS += "--cpp_implementation" DISTUTILS_INSTALL_ARGS += "--cpp_implementation"
Quoted 3 lines · Leon Anavi
Consolidate inc and bb files into a single bb file.
Signed-off-by Leon Anavi <[email protected]>
Acked-by Trevor Gamblin <[email protected]>
Quoted 68 lines
--- .../recipes-devtools/python/python-psutil.inc | 22 ---------------- .../python/python3-psutil_5.7.0.bb | 25 +++++++++++++++++-- 2 files changed, 23 insertions(+), 24 deletions(-)delete mode 100644 meta-python/recipes-devtools/python/python-psutil.inc
meta-python/recipes-devtools/python/python-psutil.inc deleted +0
-22@@ -1,22 +0,0 @@ -SUMMARY = "A cross-platform process and system utilities module for Python" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=e35fd9f271d19d5f742f20a9d1f8bb8b" - -SRC_URI[md5sum] = "ed7b0f11ed214bcabbe76b7cf52f3ae3" -SRC_URI[sha256sum] = "685ec16ca14d079455892f25bd124df26ff9137664af445563c1bd36629b5e0e" - -PACKAGES =+ "${PN}-tests" - -FILES_${PN}-tests += " \ - ${PYTHON_SITEPACKAGES_DIR}/psutil/test* \ - ${PYTHON_SITEPACKAGES_DIR}/psutil/__pycache__/test* \ -" - - -RDEPENDS_${PN} += " \ - ${PYTHON_PN}-shell \ - ${PYTHON_PN}-threading \ - ${PYTHON_PN}-xml \ -" - -BBCLASSEXTEND = "native nativesdk"meta-python/recipes-devtools/python/python3-psutil_5.7.0.bb +23
-2@@ -1,4 +1,25 @@ +SUMMARY = "A cross-platform process and system utilities module for Python" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e35fd9f271d19d5f742f20a9d1f8bb8b" + +SRC_URI[md5sum] = "ed7b0f11ed214bcabbe76b7cf52f3ae3" +SRC_URI[sha256sum] = "685ec16ca14d079455892f25bd124df26ff9137664af445563c1bd36629b5e0e" + inherit pypi setuptools3 -require python-psutil.inc -RDEPENDS_${PN} += "${PYTHON_PN}-netclient" +PACKAGES =+ "${PN}-tests" + +FILES_${PN}-tests += " \ + ${PYTHON_SITEPACKAGES_DIR}/psutil/test* \ + ${PYTHON_SITEPACKAGES_DIR}/psutil/__pycache__/test* \ +" + + +RDEPENDS_${PN} += " \ + ${PYTHON_PN}-shell \ + ${PYTHON_PN}-threading \ + ${PYTHON_PN}-xml \ + ${PYTHON_PN}-netclient \ +" + +BBCLASSEXTEND = "native nativesdk"