All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH v2 1/2] meta-python: Add hexdump package
@ 2021-01-22  5:45 Andrew Jeffery
  2021-01-22  5:45 ` [meta-python][PATCH v2 2/2] meta-python: Add jstyleson Andrew Jeffery
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andrew Jeffery @ 2021-01-22  5:45 UTC (permalink / raw)
  To: openembedded-devel; +Cc: raj.khem

The hexdump package appears to be abandoned, but it's used as the
dependency of another project I'm packaging.

Change-Id: Id90d770fb48fa502f3abeb541b7febef42799b21
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
 .../packagegroups/packagegroup-meta-python.bb |  1 +
 .../python/python3-hexdump_3.3.bb             | 27 +++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-hexdump_3.3.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index bf46896f1c9b..41f376b39b55 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -416,6 +416,7 @@ RDEPENDS_packagegroup-meta-python3 = "\
     python3-cerberus \
     python3-cvxopt \
     python3-jsonpath-rw \
+    python3-hexdump \
 "
 
 RDEPENDS_packagegroup-meta-python3-extended = "\
diff --git a/meta-python/recipes-devtools/python/python3-hexdump_3.3.bb b/meta-python/recipes-devtools/python/python3-hexdump_3.3.bb
new file mode 100644
index 000000000000..cb04e17dfdfb
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-hexdump_3.3.bb
@@ -0,0 +1,27 @@
+SUMMARY = "view/edit your binary with any text editor"
+
+# The homepage listed on pypi is [1] but the repository has been removed.
+# Instead, set the homepage to pypi.
+#
+# [1] https://bitbucket.org/techtonik/hexdump/
+HOMEPAGE = "https://pypi.org/project/hexdump/"
+
+LICENSE = "PD"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"
+
+PYPI_PACKAGE_EXT = "zip"
+
+inherit pypi distutils3
+
+SRC_URI[sha256sum] = "d781a43b0c16ace3f9366aade73e8ad3a7bd5137d58f0b45ab2d3f54876f20db"
+
+S = "${WORKDIR}"
+
+BBCLASSEXTEND = "native nativesdk"
+
+do_cleanup_hexfile() {
+    rm ${D}${datadir}/data/hexfile.bin
+    rmdir ${D}${datadir}/data ${D}${datadir}
+}
+
+addtask cleanup_hexfile before do_package after do_install
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-python][PATCH v2 2/2] meta-python: Add jstyleson
  2021-01-22  5:45 [meta-python][PATCH v2 1/2] meta-python: Add hexdump package Andrew Jeffery
@ 2021-01-22  5:45 ` Andrew Jeffery
  2021-01-22 15:04   ` [oe] " Klaus Heinrich Kiwi
  2021-01-25 12:42   ` Trevor Gamblin
  2021-01-22 14:58 ` [oe] [meta-python][PATCH v2 1/2] meta-python: Add hexdump package Klaus Heinrich Kiwi
  2021-01-25 12:41 ` Trevor Gamblin
  2 siblings, 2 replies; 6+ messages in thread
From: Andrew Jeffery @ 2021-01-22  5:45 UTC (permalink / raw)
  To: openembedded-devel; +Cc: raj.khem

jstyleson is a library to parse JSON with js-style comments.

The license isn't shipped in the pypi package, so it was extracted from
the github repo at [1].

[1] https://github.com/linjackson78/jstyleson/blob/8c47cc9e665b3b1744cccfaa7a650de5f3c575dd/LICENSE

Change-Id: I1e22ef42e823d172fd52f40e84bd5194c131310a
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
 .../packagegroups/packagegroup-meta-python.bb     |  1 +
 .../python/python3-jstyleson/LICENSE              |  8 ++++++++
 .../python/python3-jstyleson_0.0.2.bb             | 15 +++++++++++++++
 3 files changed, 24 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-jstyleson/LICENSE
 create mode 100644 meta-python/recipes-devtools/python/python3-jstyleson_0.0.2.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index 41f376b39b55..5f81fd35b75f 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -417,6 +417,7 @@ RDEPENDS_packagegroup-meta-python3 = "\
     python3-cvxopt \
     python3-jsonpath-rw \
     python3-hexdump \
+    python3-jstyleson \
 "
 
 RDEPENDS_packagegroup-meta-python3-extended = "\
diff --git a/meta-python/recipes-devtools/python/python3-jstyleson/LICENSE b/meta-python/recipes-devtools/python/python3-jstyleson/LICENSE
new file mode 100644
index 000000000000..807babd62b64
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-jstyleson/LICENSE
@@ -0,0 +1,8 @@
+The MIT License (MIT)
+Copyright (c) 2016 linjackson
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/meta-python/recipes-devtools/python/python3-jstyleson_0.0.2.bb b/meta-python/recipes-devtools/python/python3-jstyleson_0.0.2.bb
new file mode 100644
index 000000000000..e70ce33efcd2
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-jstyleson_0.0.2.bb
@@ -0,0 +1,15 @@
+SUMMARY = "Library to parse JSON with js-style comments."
+HOMEPAGE = "https://github.com/linjackson78/jstyleson"
+
+SRC_URI += " file://LICENSE "
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=d97b96c7337934ee448ffd4392f32079"
+
+PYPI_PACKAGE_EXT = "tar.gz"
+
+inherit pypi setuptools3
+
+SRC_URI[sha256sum] = "680003f3b15a2959e4e6a351f3b858e3c07dd3e073a0d54954e34d8ea5e1308e"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-python][PATCH v2 1/2] meta-python: Add hexdump package
  2021-01-22  5:45 [meta-python][PATCH v2 1/2] meta-python: Add hexdump package Andrew Jeffery
  2021-01-22  5:45 ` [meta-python][PATCH v2 2/2] meta-python: Add jstyleson Andrew Jeffery
@ 2021-01-22 14:58 ` Klaus Heinrich Kiwi
  2021-01-25 12:41 ` Trevor Gamblin
  2 siblings, 0 replies; 6+ messages in thread
From: Klaus Heinrich Kiwi @ 2021-01-22 14:58 UTC (permalink / raw)
  To: Andrew Jeffery, openembedded-devel; +Cc: raj.khem

On 1/22/2021 2:45 AM, Andrew Jeffery wrote:
> The hexdump package appears to be abandoned, but it's used as the
> dependency of another project I'm packaging.

Tested this as python3-hexdump-native on an openbmc build, everything looks good

> 
> Change-Id: Id90d770fb48fa502f3abeb541b7febef42799b21
> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>


  -Klaus

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-python][PATCH v2 2/2] meta-python: Add jstyleson
  2021-01-22  5:45 ` [meta-python][PATCH v2 2/2] meta-python: Add jstyleson Andrew Jeffery
@ 2021-01-22 15:04   ` Klaus Heinrich Kiwi
  2021-01-25 12:42   ` Trevor Gamblin
  1 sibling, 0 replies; 6+ messages in thread
From: Klaus Heinrich Kiwi @ 2021-01-22 15:04 UTC (permalink / raw)
  To: Andrew Jeffery, openembedded-devel; +Cc: raj.khem

On 1/22/2021 2:45 AM, Andrew Jeffery wrote:
> jstyleson is a library to parse JSON with js-style comments.
> 
> The license isn't shipped in the pypi package, so it was extracted from
> the github repo at [1].
> 
> [1] https://github.com/linjackson78/jstyleson/blob/8c47cc9e665b3b1744cccfaa7a650de5f3c575dd/LICENSE

Tested as python3-jstyleson-native as part of an OpenBMC build..


> Change-Id: I1e22ef42e823d172fd52f40e84bd5194c131310a
> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>

- Klaus


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-python][PATCH v2 1/2] meta-python: Add hexdump package
  2021-01-22  5:45 [meta-python][PATCH v2 1/2] meta-python: Add hexdump package Andrew Jeffery
  2021-01-22  5:45 ` [meta-python][PATCH v2 2/2] meta-python: Add jstyleson Andrew Jeffery
  2021-01-22 14:58 ` [oe] [meta-python][PATCH v2 1/2] meta-python: Add hexdump package Klaus Heinrich Kiwi
@ 2021-01-25 12:41 ` Trevor Gamblin
  2 siblings, 0 replies; 6+ messages in thread
From: Trevor Gamblin @ 2021-01-25 12:41 UTC (permalink / raw)
  To: Andrew Jeffery, openembedded-devel; +Cc: raj.khem

[-- Attachment #1: Type: text/plain, Size: 2441 bytes --]


On 2021-01-22 12:45 a.m., Andrew Jeffery wrote:
> [Please note this e-mail is from an EXTERNAL e-mail address]
>
> The hexdump package appears to be abandoned, but it's used as the
> dependency of another project I'm packaging.
>
> Change-Id: Id90d770fb48fa502f3abeb541b7febef42799b21
> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
>   .../packagegroups/packagegroup-meta-python.bb |  1 +
>   .../python/python3-hexdump_3.3.bb             | 27 +++++++++++++++++++
>   2 files changed, 28 insertions(+)
>   create mode 100644 meta-python/recipes-devtools/python/python3-hexdump_3.3.bb
>
> diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> index bf46896f1c9b..41f376b39b55 100644
> --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> @@ -416,6 +416,7 @@ RDEPENDS_packagegroup-meta-python3 = "\
>       python3-cerberus \
>       python3-cvxopt \
>       python3-jsonpath-rw \
> +    python3-hexdump \
>   "
>
>   RDEPENDS_packagegroup-meta-python3-extended = "\
> diff --git a/meta-python/recipes-devtools/python/python3-hexdump_3.3.bb b/meta-python/recipes-devtools/python/python3-hexdump_3.3.bb
> new file mode 100644
> index 000000000000..cb04e17dfdfb
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-hexdump_3.3.bb
> @@ -0,0 +1,27 @@
> +SUMMARY = "view/edit your binary with any text editor"
> +
> +# The homepage listed on pypi is [1] but the repository has been removed.
> +# Instead, set the homepage to pypi.
> +#
> +# [1] https://bitbucket.org/techtonik/hexdump/
> +HOMEPAGE = "https://pypi.org/project/hexdump/"
> +
> +LICENSE = "PD"
> +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"
> +
> +PYPI_PACKAGE_EXT = "zip"
> +
> +inherit pypi distutils3
> +
> +SRC_URI[sha256sum] = "d781a43b0c16ace3f9366aade73e8ad3a7bd5137d58f0b45ab2d3f54876f20db"
> +
> +S = "${WORKDIR}"
> +
> +BBCLASSEXTEND = "native nativesdk"
> +
> +do_cleanup_hexfile() {
> +    rm ${D}${datadir}/data/hexfile.bin
> +    rmdir ${D}${datadir}/data ${D}${datadir}
> +}
> +
> +addtask cleanup_hexfile before do_package after do_install
> --
> 2.27.0
>
>
> 
>

[-- Attachment #2: Type: text/html, Size: 3482 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-python][PATCH v2 2/2] meta-python: Add jstyleson
  2021-01-22  5:45 ` [meta-python][PATCH v2 2/2] meta-python: Add jstyleson Andrew Jeffery
  2021-01-22 15:04   ` [oe] " Klaus Heinrich Kiwi
@ 2021-01-25 12:42   ` Trevor Gamblin
  1 sibling, 0 replies; 6+ messages in thread
From: Trevor Gamblin @ 2021-01-25 12:42 UTC (permalink / raw)
  To: Andrew Jeffery, openembedded-devel; +Cc: raj.khem

[-- Attachment #1: Type: text/plain, Size: 3850 bytes --]


On 2021-01-22 12:45 a.m., Andrew Jeffery wrote:
> [Please note this e-mail is from an EXTERNAL e-mail address]
>
> jstyleson is a library to parse JSON with js-style comments.
>
> The license isn't shipped in the pypi package, so it was extracted from
> the github repo at [1].
>
> [1] https://github.com/linjackson78/jstyleson/blob/8c47cc9e665b3b1744cccfaa7a650de5f3c575dd/LICENSE
>
> Change-Id: I1e22ef42e823d172fd52f40e84bd5194c131310a
> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
>   .../packagegroups/packagegroup-meta-python.bb     |  1 +
>   .../python/python3-jstyleson/LICENSE              |  8 ++++++++
>   .../python/python3-jstyleson_0.0.2.bb             | 15 +++++++++++++++
>   3 files changed, 24 insertions(+)
>   create mode 100644 meta-python/recipes-devtools/python/python3-jstyleson/LICENSE
>   create mode 100644 meta-python/recipes-devtools/python/python3-jstyleson_0.0.2.bb
>
> diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> index 41f376b39b55..5f81fd35b75f 100644
> --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> @@ -417,6 +417,7 @@ RDEPENDS_packagegroup-meta-python3 = "\
>       python3-cvxopt \
>       python3-jsonpath-rw \
>       python3-hexdump \
> +    python3-jstyleson \
>   "
>
>   RDEPENDS_packagegroup-meta-python3-extended = "\
> diff --git a/meta-python/recipes-devtools/python/python3-jstyleson/LICENSE b/meta-python/recipes-devtools/python/python3-jstyleson/LICENSE
> new file mode 100644
> index 000000000000..807babd62b64
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-jstyleson/LICENSE
> @@ -0,0 +1,8 @@
> +The MIT License (MIT)
> +Copyright (c) 2016 linjackson
> +
> +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
> +
> +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
> +
> +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> \ No newline at end of file
> diff --git a/meta-python/recipes-devtools/python/python3-jstyleson_0.0.2.bb b/meta-python/recipes-devtools/python/python3-jstyleson_0.0.2.bb
> new file mode 100644
> index 000000000000..e70ce33efcd2
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-jstyleson_0.0.2.bb
> @@ -0,0 +1,15 @@
> +SUMMARY = "Library to parse JSON with js-style comments."
> +HOMEPAGE = "https://github.com/linjackson78/jstyleson"
> +
> +SRC_URI += " file://LICENSE "
> +
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=d97b96c7337934ee448ffd4392f32079"
> +
> +PYPI_PACKAGE_EXT = "tar.gz"
> +
> +inherit pypi setuptools3
> +
> +SRC_URI[sha256sum] = "680003f3b15a2959e4e6a351f3b858e3c07dd3e073a0d54954e34d8ea5e1308e"
> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.27.0
>
>
> 
>

[-- Attachment #2: Type: text/html, Size: 4992 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-25 12:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22  5:45 [meta-python][PATCH v2 1/2] meta-python: Add hexdump package Andrew Jeffery
2021-01-22  5:45 ` [meta-python][PATCH v2 2/2] meta-python: Add jstyleson Andrew Jeffery
2021-01-22 15:04   ` [oe] " Klaus Heinrich Kiwi
2021-01-25 12:42   ` Trevor Gamblin
2021-01-22 14:58 ` [oe] [meta-python][PATCH v2 1/2] meta-python: Add hexdump package Klaus Heinrich Kiwi
2021-01-25 12:41 ` Trevor Gamblin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.