* [Buildroot] [PATCH v2 1/3] package/python-aenum: new package
@ 2020-01-15 8:09 yegorslists at googlemail.com
2020-01-15 8:09 ` [Buildroot] [PATCH v2 2/3] package/python-can: add missing dependency yegorslists at googlemail.com
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: yegorslists at googlemail.com @ 2020-01-15 8:09 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
Changes v1 -> v2:
- add followup patches fixing python-can package
package/Config.in | 1 +
package/python-aenum/Config.in | 7 +++++++
package/python-aenum/python-aenum.hash | 2 ++
package/python-aenum/python-aenum.mk | 14 ++++++++++++++
4 files changed, 24 insertions(+)
create mode 100644 package/python-aenum/Config.in
create mode 100644 package/python-aenum/python-aenum.hash
create mode 100644 package/python-aenum/python-aenum.mk
diff --git a/package/Config.in b/package/Config.in
index 4c94914680..4c6e46b794 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -832,6 +832,7 @@ endif
source "package/python3/Config.in"
if BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
menu "External python modules"
+ source "package/python-aenum/Config.in"
source "package/python-aioblescan/Config.in"
source "package/python-aiocoap/Config.in"
source "package/python-aioconsole/Config.in"
diff --git a/package/python-aenum/Config.in b/package/python-aenum/Config.in
new file mode 100644
index 0000000000..be3dd0fb9c
--- /dev/null
+++ b/package/python-aenum/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_AENUM
+ bool "python-aenum"
+ help
+ Advanced Enumerations (compatible with Python's stdlib Enum),
+ NamedTuples, and NamedConstants.
+
+ https://pypi.org/project/aenum
diff --git a/package/python-aenum/python-aenum.hash b/package/python-aenum/python-aenum.hash
new file mode 100644
index 0000000000..14436343ba
--- /dev/null
+++ b/package/python-aenum/python-aenum.hash
@@ -0,0 +1,2 @@
+# sha256 from https://pypi.org/pypi/aenum/json
+sha256 a4334cabf47c167d44ab5a6198837b80deec5d5bad1b5cf70c966c3a330260e8 aenum-2.2.3.tar.gz
diff --git a/package/python-aenum/python-aenum.mk b/package/python-aenum/python-aenum.mk
new file mode 100644
index 0000000000..1d5322ef41
--- /dev/null
+++ b/package/python-aenum/python-aenum.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-aenum
+#
+################################################################################
+
+PYTHON_AENUM_VERSION = 2.2.3
+PYTHON_AENUM_SOURCE = aenum-$(PYTHON_AENUM_VERSION).tar.gz
+PYTHON_AENUM_SITE = https://files.pythonhosted.org/packages/6f/6a/8ed729e0add885d7a559ebb06133029b1f8c4bd66cbf1bdee1ec969fb310
+PYTHON_AENUM_SETUP_TYPE = setuptools
+PYTHON_AENUM_LICENSE = BSD-3-Clause
+PYTHON_AENUM_LICENSE_FILES = aenum/LICENSE
+
+$(eval $(python-package))
--
2.17.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 2/3] package/python-can: add missing dependency
2020-01-15 8:09 [Buildroot] [PATCH v2 1/3] package/python-aenum: new package yegorslists at googlemail.com
@ 2020-01-15 8:09 ` yegorslists at googlemail.com
2020-01-31 7:06 ` Peter Korsgaard
2020-01-15 8:09 ` [Buildroot] [PATCH v2 3/3] support/testing: add python-can test case yegorslists at googlemail.com
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: yegorslists at googlemail.com @ 2020-01-15 8:09 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Recent python-can versions depend on aenum package.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
Changes v1 -> v2:
- no changes
package/python-can/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/python-can/Config.in b/package/python-can/Config.in
index f3ed1b77e3..73f667e73a 100644
--- a/package/python-can/Config.in
+++ b/package/python-can/Config.in
@@ -5,6 +5,7 @@ config BR2_PACKAGE_PYTHON_CAN
select BR2_PACKAGE_PYTHON3_SQLITE if BR2_PACKAGE_PYTHON3 # runtime
select BR2_PACKAGE_PYTHON_TYPING if BR2_PACKAGE_PYTHON # runtime
select BR2_PACKAGE_PYTHON_WRAPT # runtime
+ select BR2_PACKAGE_PYTHON_AENUM # runtime
select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON
select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3
help
--
2.17.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 3/3] support/testing: add python-can test case
2020-01-15 8:09 [Buildroot] [PATCH v2 1/3] package/python-aenum: new package yegorslists at googlemail.com
2020-01-15 8:09 ` [Buildroot] [PATCH v2 2/3] package/python-can: add missing dependency yegorslists at googlemail.com
@ 2020-01-15 8:09 ` yegorslists at googlemail.com
2020-01-31 7:07 ` Peter Korsgaard
2020-01-29 7:56 ` [Buildroot] [PATCH v2 1/3] package/python-aenum: new package Yegor Yefremov
2020-01-31 7:05 ` Peter Korsgaard
3 siblings, 1 reply; 7+ messages in thread
From: yegorslists at googlemail.com @ 2020-01-15 8:09 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
Changes v1 -> v2:
- no changes
.gitlab-ci.yml | 2 ++
DEVELOPERS | 1 +
.../tests/package/sample_python_can.py | 6 +++++
.../testing/tests/package/test_python_can.py | 23 +++++++++++++++++++
4 files changed, 32 insertions(+)
create mode 100644 support/testing/tests/package/sample_python_can.py
create mode 100644 support/testing/tests/package/test_python_can.py
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b953e1998c..d5a2a06b6e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -441,6 +441,8 @@ tests.package.test_python_automat.TestPythonPy3Automat: { extends: .runtime_test
tests.package.test_python_avro.TestPythonAvro: { extends: .runtime_test }
tests.package.test_python_bitstring.TestPythonPy2Bitstring: { extends: .runtime_test }
tests.package.test_python_bitstring.TestPythonPy3Bitstring: { extends: .runtime_test }
+tests.package.test_python_can.TestPythonPy2Can: { extends: .runtime_test }
+tests.package.test_python_can.TestPythonPy3Can: { extends: .runtime_test }
tests.package.test_python_cbor.TestPythonPy2Cbor: { extends: .runtime_test }
tests.package.test_python_cbor.TestPythonPy3Cbor: { extends: .runtime_test }
tests.package.test_python_click.TestPythonPy2Click: { extends: .runtime_test }
diff --git a/DEVELOPERS b/DEVELOPERS
index 510fea78de..927b87fd91 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2616,6 +2616,7 @@ F: package/ti-utils/
F: package/x11r7/xapp_xconsole/
F: package/x11r7/xapp_xinput-calibrator/
F: package/zlog/
+F: support/testing/tests/package/test_python_can.py
F: utils/scanpypi
N: Zoltan Gyarmati <zgyarmati@zgyarmati.de>
diff --git a/support/testing/tests/package/sample_python_can.py b/support/testing/tests/package/sample_python_can.py
new file mode 100644
index 0000000000..c5808be619
--- /dev/null
+++ b/support/testing/tests/package/sample_python_can.py
@@ -0,0 +1,6 @@
+import can
+
+msg = can.Message(arbitration_id=0xc0ffee,
+ data=[0, 25, 0, 1, 3, 1, 4, 1],
+ is_extended_id=True)
+assert(msg is not None)
diff --git a/support/testing/tests/package/test_python_can.py b/support/testing/tests/package/test_python_can.py
new file mode 100644
index 0000000000..d509d05dbb
--- /dev/null
+++ b/support/testing/tests/package/test_python_can.py
@@ -0,0 +1,23 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy2Can(TestPythonPackageBase):
+ __test__ = True
+ config = TestPythonPackageBase.config + \
+ """
+ BR2_PACKAGE_PYTHON=y
+ BR2_PACKAGE_PYTHON_CAN=y
+ """
+ sample_scripts = ["tests/package/sample_python_can.py"]
+ timeout = 40
+
+
+class TestPythonPy3Can(TestPythonPackageBase):
+ __test__ = True
+ config = TestPythonPackageBase.config + \
+ """
+ BR2_PACKAGE_PYTHON3=y
+ BR2_PACKAGE_PYTHON_CAN=y
+ """
+ sample_scripts = ["tests/package/sample_python_can.py"]
+ timeout = 40
--
2.17.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 1/3] package/python-aenum: new package
2020-01-15 8:09 [Buildroot] [PATCH v2 1/3] package/python-aenum: new package yegorslists at googlemail.com
2020-01-15 8:09 ` [Buildroot] [PATCH v2 2/3] package/python-can: add missing dependency yegorslists at googlemail.com
2020-01-15 8:09 ` [Buildroot] [PATCH v2 3/3] support/testing: add python-can test case yegorslists at googlemail.com
@ 2020-01-29 7:56 ` Yegor Yefremov
2020-01-31 7:05 ` Peter Korsgaard
3 siblings, 0 replies; 7+ messages in thread
From: Yegor Yefremov @ 2020-01-29 7:56 UTC (permalink / raw)
To: buildroot
Hi Peter, all,
On Wed, Jan 15, 2020 at 9:09 AM <yegorslists@googlemail.com> wrote:
>
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> Changes v1 -> v2:
> - add followup patches fixing python-can package
>
> package/Config.in | 1 +
> package/python-aenum/Config.in | 7 +++++++
> package/python-aenum/python-aenum.hash | 2 ++
> package/python-aenum/python-aenum.mk | 14 ++++++++++++++
> 4 files changed, 24 insertions(+)
> create mode 100644 package/python-aenum/Config.in
> create mode 100644 package/python-aenum/python-aenum.hash
> create mode 100644 package/python-aenum/python-aenum.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 4c94914680..4c6e46b794 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -832,6 +832,7 @@ endif
> source "package/python3/Config.in"
> if BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
> menu "External python modules"
> + source "package/python-aenum/Config.in"
> source "package/python-aioblescan/Config.in"
> source "package/python-aiocoap/Config.in"
> source "package/python-aioconsole/Config.in"
> diff --git a/package/python-aenum/Config.in b/package/python-aenum/Config.in
> new file mode 100644
> index 0000000000..be3dd0fb9c
> --- /dev/null
> +++ b/package/python-aenum/Config.in
> @@ -0,0 +1,7 @@
> +config BR2_PACKAGE_PYTHON_AENUM
> + bool "python-aenum"
> + help
> + Advanced Enumerations (compatible with Python's stdlib Enum),
> + NamedTuples, and NamedConstants.
> +
> + https://pypi.org/project/aenum
> diff --git a/package/python-aenum/python-aenum.hash b/package/python-aenum/python-aenum.hash
> new file mode 100644
> index 0000000000..14436343ba
> --- /dev/null
> +++ b/package/python-aenum/python-aenum.hash
> @@ -0,0 +1,2 @@
> +# sha256 from https://pypi.org/pypi/aenum/json
> +sha256 a4334cabf47c167d44ab5a6198837b80deec5d5bad1b5cf70c966c3a330260e8 aenum-2.2.3.tar.gz
> diff --git a/package/python-aenum/python-aenum.mk b/package/python-aenum/python-aenum.mk
> new file mode 100644
> index 0000000000..1d5322ef41
> --- /dev/null
> +++ b/package/python-aenum/python-aenum.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# python-aenum
> +#
> +################################################################################
> +
> +PYTHON_AENUM_VERSION = 2.2.3
> +PYTHON_AENUM_SOURCE = aenum-$(PYTHON_AENUM_VERSION).tar.gz
> +PYTHON_AENUM_SITE = https://files.pythonhosted.org/packages/6f/6a/8ed729e0add885d7a559ebb06133029b1f8c4bd66cbf1bdee1ec969fb310
> +PYTHON_AENUM_SETUP_TYPE = setuptools
> +PYTHON_AENUM_LICENSE = BSD-3-Clause
> +PYTHON_AENUM_LICENSE_FILES = aenum/LICENSE
> +
> +$(eval $(python-package))
> --
> 2.17.0
This patch series can be also interesting for 2019.11.x branch as this
dependency exists since python-can 3.2.0.
Yegor
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 1/3] package/python-aenum: new package
2020-01-15 8:09 [Buildroot] [PATCH v2 1/3] package/python-aenum: new package yegorslists at googlemail.com
` (2 preceding siblings ...)
2020-01-29 7:56 ` [Buildroot] [PATCH v2 1/3] package/python-aenum: new package Yegor Yefremov
@ 2020-01-31 7:05 ` Peter Korsgaard
3 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2020-01-31 7:05 UTC (permalink / raw)
To: buildroot
>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> Changes v1 -> v2:
> - add followup patches fixing python-can package
Committed after adding a hash for the license file, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 2/3] package/python-can: add missing dependency
2020-01-15 8:09 ` [Buildroot] [PATCH v2 2/3] package/python-can: add missing dependency yegorslists at googlemail.com
@ 2020-01-31 7:06 ` Peter Korsgaard
0 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2020-01-31 7:06 UTC (permalink / raw)
To: buildroot
>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> Recent python-can versions depend on aenum package.
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> Changes v1 -> v2:
> - no changes
Committed after extending the commit message with details about when
this dependency was exactly added, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 3/3] support/testing: add python-can test case
2020-01-15 8:09 ` [Buildroot] [PATCH v2 3/3] support/testing: add python-can test case yegorslists at googlemail.com
@ 2020-01-31 7:07 ` Peter Korsgaard
0 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2020-01-31 7:07 UTC (permalink / raw)
To: buildroot
>>>>> "yegorslists" == yegorslists <yegorslists@googlemail.com> writes:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> Changes v1 -> v2:
> - no changes
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-01-31 7:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15 8:09 [Buildroot] [PATCH v2 1/3] package/python-aenum: new package yegorslists at googlemail.com
2020-01-15 8:09 ` [Buildroot] [PATCH v2 2/3] package/python-can: add missing dependency yegorslists at googlemail.com
2020-01-31 7:06 ` Peter Korsgaard
2020-01-15 8:09 ` [Buildroot] [PATCH v2 3/3] support/testing: add python-can test case yegorslists at googlemail.com
2020-01-31 7:07 ` Peter Korsgaard
2020-01-29 7:56 ` [Buildroot] [PATCH v2 1/3] package/python-aenum: new package Yegor Yefremov
2020-01-31 7:05 ` Peter Korsgaard
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.