Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/python-dtschema: new package
@ 2022-08-04  5:23 yegorslists--- via buildroot
  2022-08-04  5:23 ` [Buildroot] [PATCH 2/2] support/testing: add test for python-dtschema yegorslists
  2022-08-07 12:55 ` [Buildroot] [PATCH 1/2] package/python-dtschema: new package Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: yegorslists--- via buildroot @ 2022-08-04  5:23 UTC (permalink / raw)
  To: buildroot; +Cc: Asaf Kahlon

From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/Config.in                            |  1 +
 package/python-dtschema/Config.in            | 10 ++++++++++
 package/python-dtschema/python-dtschema.hash |  5 +++++
 package/python-dtschema/python-dtschema.mk   | 15 +++++++++++++++
 4 files changed, 31 insertions(+)
 create mode 100644 package/python-dtschema/Config.in
 create mode 100644 package/python-dtschema/python-dtschema.hash
 create mode 100644 package/python-dtschema/python-dtschema.mk

diff --git a/package/Config.in b/package/Config.in
index 61783ba400..93bd5571cb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1022,6 +1022,7 @@ menu "External python modules"
 	source "package/python-docutils/Config.in"
 	source "package/python-dominate/Config.in"
 	source "package/python-dpkt/Config.in"
+	source "package/python-dtschema/Config.in"
 	source "package/python-ecdsa/Config.in"
 	source "package/python-engineio/Config.in"
 	source "package/python-entrypoints/Config.in"
diff --git a/package/python-dtschema/Config.in b/package/python-dtschema/Config.in
new file mode 100644
index 0000000000..961d0e04b2
--- /dev/null
+++ b/package/python-dtschema/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_PYTHON_DTSCHEMA
+	bool "python-dtschema"
+	select BR2_PACKAGE_PYTHON_JSONSCHEMA # runtime
+	select BR2_PACKAGE_PYTHON_PYLIBFDT # runtime
+	select BR2_PACKAGE_PYTHON_RFC3987 # runtime
+	select BR2_PACKAGE_PYTHON_RUAMEL_YAML # runtime
+	help
+	  DeviceTree validation schema and tools.
+
+	  https://github.com/devicetree-org/dt-schema
diff --git a/package/python-dtschema/python-dtschema.hash b/package/python-dtschema/python-dtschema.hash
new file mode 100644
index 0000000000..7b183e28e3
--- /dev/null
+++ b/package/python-dtschema/python-dtschema.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/dtschema/json
+md5  ed75defac9a7297a567f278994b14d5b  dtschema-2022.8.tar.gz
+sha256  1befe7c9f74cea248a8b524cf6185ac48912a5b2aae96854d77cb94584433ca4  dtschema-2022.8.tar.gz
+# Locally computed sha256 checksums
+sha256  ca0d66263406dc684fe9db60577b234f65ffdf620d7e041c708e969447b69111  LICENSE.txt
diff --git a/package/python-dtschema/python-dtschema.mk b/package/python-dtschema/python-dtschema.mk
new file mode 100644
index 0000000000..263061dc98
--- /dev/null
+++ b/package/python-dtschema/python-dtschema.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-dtschema
+#
+################################################################################
+
+PYTHON_DTSCHEMA_VERSION = 2022.8
+PYTHON_DTSCHEMA_SOURCE = dtschema-$(PYTHON_DTSCHEMA_VERSION).tar.gz
+PYTHON_DTSCHEMA_SITE = https://files.pythonhosted.org/packages/95/be/cb576760b9578cb69da020aeb80f3c2d05ff46b4090ab350c1e05691329e
+PYTHON_DTSCHEMA_SETUP_TYPE = setuptools
+PYTHON_DTSCHEMA_LICENSE = BSD-2-Clause
+PYTHON_DTSCHEMA_LICENSE_FILES = LICENSE.txt
+PYTHON_DTSCHEMA_DEPENDENCIES = host-python-setuptools-scm
+
+$(eval $(python-package))
-- 
2.17.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH 2/2] support/testing: add test for python-dtschema
  2022-08-04  5:23 [Buildroot] [PATCH 1/2] package/python-dtschema: new package yegorslists--- via buildroot
@ 2022-08-04  5:23 ` yegorslists
  2022-08-07 12:55 ` [Buildroot] [PATCH 1/2] package/python-dtschema: new package Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: yegorslists @ 2022-08-04  5:23 UTC (permalink / raw)
  To: buildroot; +Cc: Asaf Kahlon

From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 DEVELOPERS                                           |  1 +
 .../testing/tests/package/sample_python_dtschema.py  |  1 +
 .../testing/tests/package/test_python_dtschema.py    | 12 ++++++++++++
 3 files changed, 14 insertions(+)
 create mode 100644 support/testing/tests/package/sample_python_dtschema.py
 create mode 100644 support/testing/tests/package/test_python_dtschema.py

diff --git a/DEVELOPERS b/DEVELOPERS
index 63bb80fc9d..4ca9567b46 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3131,6 +3131,7 @@ F:	package/x11r7/xapp_xinput-calibrator/
 F:	package/zlog/
 F:	support/testing/tests/package/test_libftdi1.py
 F:	support/testing/tests/package/test_python_can.py
+F:	support/testing/tests/package/test_python_dtschema.py
 F:	utils/scanpypi
 
 N:	Yunhao Tian <t123yh.xyz@gmail.com>
diff --git a/support/testing/tests/package/sample_python_dtschema.py b/support/testing/tests/package/sample_python_dtschema.py
new file mode 100644
index 0000000000..786c3d5a71
--- /dev/null
+++ b/support/testing/tests/package/sample_python_dtschema.py
@@ -0,0 +1 @@
+import dtschema
diff --git a/support/testing/tests/package/test_python_dtschema.py b/support/testing/tests/package/test_python_dtschema.py
new file mode 100644
index 0000000000..e3a4a309c1
--- /dev/null
+++ b/support/testing/tests/package/test_python_dtschema.py
@@ -0,0 +1,12 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy3Dtschema(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON3=y
+        BR2_PACKAGE_PYTHON_DTSCHEMA=y
+        """
+    sample_scripts = ["tests/package/sample_python_dtschema.py"]
+    timeout = 40
-- 
2.17.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/2] package/python-dtschema: new package
  2022-08-04  5:23 [Buildroot] [PATCH 1/2] package/python-dtschema: new package yegorslists--- via buildroot
  2022-08-04  5:23 ` [Buildroot] [PATCH 2/2] support/testing: add test for python-dtschema yegorslists
@ 2022-08-07 12:55 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-07 12:55 UTC (permalink / raw)
  To: yegorslists--- via buildroot; +Cc: Asaf Kahlon

On Thu,  4 Aug 2022 07:23:31 +0200
yegorslists--- via buildroot <buildroot@buildroot.org> wrote:

> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  package/Config.in                            |  1 +
>  package/python-dtschema/Config.in            | 10 ++++++++++
>  package/python-dtschema/python-dtschema.hash |  5 +++++
>  package/python-dtschema/python-dtschema.mk   | 15 +++++++++++++++
>  4 files changed, 31 insertions(+)
>  create mode 100644 package/python-dtschema/Config.in
>  create mode 100644 package/python-dtschema/python-dtschema.hash
>  create mode 100644 package/python-dtschema/python-dtschema.mk

Thanks, both applied. On the second patch, adding the sample test
script in DEVELOPERS file was missing (the test itself was added, but
not the sample script), so I fixed that up when applying.

Thanks again!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-08-07 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-04  5:23 [Buildroot] [PATCH 1/2] package/python-dtschema: new package yegorslists--- via buildroot
2022-08-04  5:23 ` [Buildroot] [PATCH 2/2] support/testing: add test for python-dtschema yegorslists
2022-08-07 12:55 ` [Buildroot] [PATCH 1/2] package/python-dtschema: new package Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox