* [ptxdist] [PATCH 02/10] python3-importlib-metadata: new package
2020-07-02 13:05 [ptxdist] [PATCH 01/10] python3-attrs: new package Philipp Zabel
@ 2020-07-02 13:05 ` Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 03/10] python3-more-itertools: " Philipp Zabel
` (8 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Philipp Zabel @ 2020-07-02 13:05 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/python3-importlib-metadata.in | 9 +++++
rules/python3-importlib-metadata.make | 54 +++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
create mode 100644 rules/python3-importlib-metadata.in
create mode 100644 rules/python3-importlib-metadata.make
diff --git a/rules/python3-importlib-metadata.in b/rules/python3-importlib-metadata.in
new file mode 100644
index 000000000000..3e0291f40b6b
--- /dev/null
+++ b/rules/python3-importlib-metadata.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_IMPORTLIB_METADATA
+ tristate
+ select PYTHON3
+ select PYTHON3_ZIPP if RUNTIME
+ prompt "importlib-metadata"
+ help
+ A library to access the metadata for a Python package.
diff --git a/rules/python3-importlib-metadata.make b/rules/python3-importlib-metadata.make
new file mode 100644
index 000000000000..94d0d91f4fb8
--- /dev/null
+++ b/rules/python3-importlib-metadata.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_IMPORTLIB_METADATA) += python3-importlib-metadata
+
+#
+# Paths and names
+#
+PYTHON3_IMPORTLIB_METADATA_VERSION := 1.7.0
+PYTHON3_IMPORTLIB_METADATA_MD5 := 4505ea85600cca1e693a4f8f5dd27ba8
+PYTHON3_IMPORTLIB_METADATA := importlib_metadata-$(PYTHON3_IMPORTLIB_METADATA_VERSION)
+PYTHON3_IMPORTLIB_METADATA_SUFFIX := tar.gz
+PYTHON3_IMPORTLIB_METADATA_URL := https://pypi.python.org/packages/e2/ae/0b037584024c1557e537d25482c306cf6327b5a09b6c4b893579292c1c38/$(PYTHON3_IMPORTLIB_METADATA).$(PYTHON3_IMPORTLIB_METADATA_SUFFIX)
+PYTHON3_IMPORTLIB_METADATA_SOURCE := $(SRCDIR)/$(PYTHON3_IMPORTLIB_METADATA).$(PYTHON3_IMPORTLIB_METADATA_SUFFIX)
+PYTHON3_IMPORTLIB_METADATA_DIR := $(BUILDDIR)/$(PYTHON3_IMPORTLIB_METADATA)
+PYTHON3_IMPORTLIB_METADATA_LICENSE := Apache-2.0
+PYTHON3_IMPORTLIB_METADATA_LICENSE_FILES := \
+ file://LICENSE;md5=e88ae122f3925d8bde8319060f2ddb8e
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_IMPORTLIB_METADATA_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-importlib-metadata.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-importlib-metadata)
+ @$(call install_fixup, python3-importlib-metadata, PRIORITY, optional)
+ @$(call install_fixup, python3-importlib-metadata, SECTION, base)
+ @$(call install_fixup, python3-importlib-metadata, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, python3-importlib-metadata, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-importlib-metadata, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+ @$(call install_finish, python3-importlib-metadata)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ptxdist] [PATCH 03/10] python3-more-itertools: new package
2020-07-02 13:05 [ptxdist] [PATCH 01/10] python3-attrs: new package Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 02/10] python3-importlib-metadata: " Philipp Zabel
@ 2020-07-02 13:05 ` Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 04/10] python3-packaging: " Philipp Zabel
` (7 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Philipp Zabel @ 2020-07-02 13:05 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/python3-more-itertools.in | 8 +++++
rules/python3-more-itertools.make | 54 +++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
create mode 100644 rules/python3-more-itertools.in
create mode 100644 rules/python3-more-itertools.make
diff --git a/rules/python3-more-itertools.in b/rules/python3-more-itertools.in
new file mode 100644
index 000000000000..9dde19117b51
--- /dev/null
+++ b/rules/python3-more-itertools.in
@@ -0,0 +1,8 @@
+## SECTION=python3
+
+config PYTHON3_MORE_ITERTOOLS
+ tristate
+ select PYTHON3
+ prompt "more-itertools"
+ help
+ More routines for operating on iterables, beyond itertools
diff --git a/rules/python3-more-itertools.make b/rules/python3-more-itertools.make
new file mode 100644
index 000000000000..46d0bb72b395
--- /dev/null
+++ b/rules/python3-more-itertools.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_MORE_ITERTOOLS) += python3-more-itertools
+
+#
+# Paths and names
+#
+PYTHON3_MORE_ITERTOOLS_VERSION := 8.4.0
+PYTHON3_MORE_ITERTOOLS_MD5 := 0912041c05148ed079984cff69af2e99
+PYTHON3_MORE_ITERTOOLS := more-itertools-$(PYTHON3_MORE_ITERTOOLS_VERSION)
+PYTHON3_MORE_ITERTOOLS_SUFFIX := tar.gz
+PYTHON3_MORE_ITERTOOLS_URL := https://pypi.python.org/packages/67/4a/16cb3acf64709eb0164e49ba463a42dc45366995848c4f0cf770f57b8120/$(PYTHON3_MORE_ITERTOOLS).$(PYTHON3_MORE_ITERTOOLS_SUFFIX)
+PYTHON3_MORE_ITERTOOLS_SOURCE := $(SRCDIR)/$(PYTHON3_MORE_ITERTOOLS).$(PYTHON3_MORE_ITERTOOLS_SUFFIX)
+PYTHON3_MORE_ITERTOOLS_DIR := $(BUILDDIR)/$(PYTHON3_MORE_ITERTOOLS)
+PYTHON3_MORE_ITERTOOLS_LICENSE := MIT
+PYTHON3_MORE_ITERTOOLS_LICENSE_FILES := \
+ file://LICENSE;md5=3396ea30f9d21389d7857719816f83b5
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_MORE_ITERTOOLS_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-more-itertools.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-more-itertools)
+ @$(call install_fixup, python3-more-itertools, PRIORITY, optional)
+ @$(call install_fixup, python3-more-itertools, SECTION, base)
+ @$(call install_fixup, python3-more-itertools, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, python3-more-itertools, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-more-itertools, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+ @$(call install_finish, python3-more-itertools)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ptxdist] [PATCH 04/10] python3-packaging: new package
2020-07-02 13:05 [ptxdist] [PATCH 01/10] python3-attrs: new package Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 02/10] python3-importlib-metadata: " Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 03/10] python3-more-itertools: " Philipp Zabel
@ 2020-07-02 13:05 ` Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 05/10] python3-pluggy: " Philipp Zabel
` (6 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Philipp Zabel @ 2020-07-02 13:05 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/python3-packaging.in | 10 +++++++
rules/python3-packaging.make | 54 ++++++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+)
create mode 100644 rules/python3-packaging.in
create mode 100644 rules/python3-packaging.make
diff --git a/rules/python3-packaging.in b/rules/python3-packaging.in
new file mode 100644
index 000000000000..3a3b9a3ad265
--- /dev/null
+++ b/rules/python3-packaging.in
@@ -0,0 +1,10 @@
+## SECTION=python3
+
+config PYTHON3_PACKAGING
+ tristate
+ select PYTHON3
+ select PYTHON3_PYPARSING if RUNTIME
+ select PYTHON3_SIX if RUNTIME
+ prompt "packaging"
+ help
+ Core utilities for Python packages.
diff --git a/rules/python3-packaging.make b/rules/python3-packaging.make
new file mode 100644
index 000000000000..57091d5f010c
--- /dev/null
+++ b/rules/python3-packaging.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PACKAGING) += python3-packaging
+
+#
+# Paths and names
+#
+PYTHON3_PACKAGING_VERSION := 20.4
+PYTHON3_PACKAGING_MD5 := 3208229da731c5d8e29d4d8941e75005
+PYTHON3_PACKAGING := packaging-$(PYTHON3_PACKAGING_VERSION)
+PYTHON3_PACKAGING_SUFFIX := tar.gz
+PYTHON3_PACKAGING_URL := https://pypi.python.org/packages/55/fd/fc1aca9cf51ed2f2c11748fa797370027babd82f87829c7a8e6dbe720145/$(PYTHON3_PACKAGING).$(PYTHON3_PACKAGING_SUFFIX)
+PYTHON3_PACKAGING_SOURCE := $(SRCDIR)/$(PYTHON3_PACKAGING).$(PYTHON3_PACKAGING_SUFFIX)
+PYTHON3_PACKAGING_DIR := $(BUILDDIR)/$(PYTHON3_PACKAGING)
+PYTHON3_PACKAGING_LICENSE := BSD-2-Clause OR Apache-2.0
+PYTHON3_PACKAGING_LICENSE_FILES := \
+ file://LICENSE;md5=faadaedca9251a90b205c9167578ce91
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PACKAGING_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-packaging.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-packaging)
+ @$(call install_fixup, python3-packaging, PRIORITY, optional)
+ @$(call install_fixup, python3-packaging, SECTION, base)
+ @$(call install_fixup, python3-packaging, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, python3-packaging, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-packaging, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+ @$(call install_finish, python3-packaging)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ptxdist] [PATCH 05/10] python3-pluggy: new package
2020-07-02 13:05 [ptxdist] [PATCH 01/10] python3-attrs: new package Philipp Zabel
` (2 preceding siblings ...)
2020-07-02 13:05 ` [ptxdist] [PATCH 04/10] python3-packaging: " Philipp Zabel
@ 2020-07-02 13:05 ` Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 06/10] python3-py: " Philipp Zabel
` (5 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Philipp Zabel @ 2020-07-02 13:05 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/python3-pluggy.in | 9 +++++++
rules/python3-pluggy.make | 54 +++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
create mode 100644 rules/python3-pluggy.in
create mode 100644 rules/python3-pluggy.make
diff --git a/rules/python3-pluggy.in b/rules/python3-pluggy.in
new file mode 100644
index 000000000000..0b76f20232df
--- /dev/null
+++ b/rules/python3-pluggy.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_PLUGGY
+ tristate
+ select PYTHON3
+ select PYTHON3_IMPORTLIB_METADATA if RUNTIME
+ prompt "pluggy"
+ help
+ A minimalist production ready plugin system
diff --git a/rules/python3-pluggy.make b/rules/python3-pluggy.make
new file mode 100644
index 000000000000..7414f00d28ab
--- /dev/null
+++ b/rules/python3-pluggy.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PLUGGY) += python3-pluggy
+
+#
+# Paths and names
+#
+PYTHON3_PLUGGY_VERSION := 0.13.1
+PYTHON3_PLUGGY_MD5 := 7f610e28b8b34487336b585a3dfb803d
+PYTHON3_PLUGGY := pluggy-$(PYTHON3_PLUGGY_VERSION)
+PYTHON3_PLUGGY_SUFFIX := tar.gz
+PYTHON3_PLUGGY_URL := https://pypi.python.org/packages/f8/04/7a8542bed4b16a65c2714bf76cf5a0b026157da7f75e87cc88774aa10b14/$(PYTHON3_PLUGGY).$(PYTHON3_PLUGGY_SUFFIX)
+PYTHON3_PLUGGY_SOURCE := $(SRCDIR)/$(PYTHON3_PLUGGY).$(PYTHON3_PLUGGY_SUFFIX)
+PYTHON3_PLUGGY_DIR := $(BUILDDIR)/$(PYTHON3_PLUGGY)
+PYTHON3_PLUGGY_LICENSE := MIT
+PYTHON3_PLUGGY_LICENSE_FILES := \
+ file://LICENSE;md5=1c8206d16fd5cc02fa9b0bb98955e5c2
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PLUGGY_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-pluggy.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-pluggy)
+ @$(call install_fixup, python3-pluggy, PRIORITY, optional)
+ @$(call install_fixup, python3-pluggy, SECTION, base)
+ @$(call install_fixup, python3-pluggy, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, python3-pluggy, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-pluggy, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+ @$(call install_finish, python3-pluggy)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ptxdist] [PATCH 06/10] python3-py: new package
2020-07-02 13:05 [ptxdist] [PATCH 01/10] python3-attrs: new package Philipp Zabel
` (3 preceding siblings ...)
2020-07-02 13:05 ` [ptxdist] [PATCH 05/10] python3-pluggy: " Philipp Zabel
@ 2020-07-02 13:05 ` Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 07/10] python3-pyparsing: " Philipp Zabel
` (4 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Philipp Zabel @ 2020-07-02 13:05 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/python3-py.in | 8 +++++++
rules/python3-py.make | 54 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
create mode 100644 rules/python3-py.in
create mode 100644 rules/python3-py.make
diff --git a/rules/python3-py.in b/rules/python3-py.in
new file mode 100644
index 000000000000..2adfa171499b
--- /dev/null
+++ b/rules/python3-py.in
@@ -0,0 +1,8 @@
+## SECTION=python3
+
+config PYTHON3_PY
+ tristate
+ select PYTHON3
+ prompt "py"
+ help
+ library with cross-python path, ini-parsing, io, code, log facilities
diff --git a/rules/python3-py.make b/rules/python3-py.make
new file mode 100644
index 000000000000..15ab62db98c1
--- /dev/null
+++ b/rules/python3-py.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PY) += python3-py
+
+#
+# Paths and names
+#
+PYTHON3_PY_VERSION := 1.9.0
+PYTHON3_PY_MD5 := b80db4e61eef724f49feb4d20b649e62
+PYTHON3_PY := py-$(PYTHON3_PY_VERSION)
+PYTHON3_PY_SUFFIX := tar.gz
+PYTHON3_PY_URL := https://pypi.python.org/packages/97/a6/ab9183fe08f69a53d06ac0ee8432bc0ffbb3989c575cc69b73a0229a9a99/$(PYTHON3_PY).$(PYTHON3_PY_SUFFIX)
+PYTHON3_PY_SOURCE := $(SRCDIR)/$(PYTHON3_PY).$(PYTHON3_PY_SUFFIX)
+PYTHON3_PY_DIR := $(BUILDDIR)/$(PYTHON3_PY)
+PYTHON3_PY_LICENSE := MIT
+PYTHON3_PY_LICENSE_FILES := \
+ file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PY_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-py.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-py)
+ @$(call install_fixup, python3-py, PRIORITY, optional)
+ @$(call install_fixup, python3-py, SECTION, base)
+ @$(call install_fixup, python3-py, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, python3-py, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-py, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+ @$(call install_finish, python3-py)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ptxdist] [PATCH 07/10] python3-pyparsing: new package
2020-07-02 13:05 [ptxdist] [PATCH 01/10] python3-attrs: new package Philipp Zabel
` (4 preceding siblings ...)
2020-07-02 13:05 ` [ptxdist] [PATCH 06/10] python3-py: " Philipp Zabel
@ 2020-07-02 13:05 ` Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 08/10] python3-wcwidth: " Philipp Zabel
` (3 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Philipp Zabel @ 2020-07-02 13:05 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/python3-pyparsing.in | 8 ++++++
rules/python3-pyparsing.make | 54 ++++++++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
create mode 100644 rules/python3-pyparsing.in
create mode 100644 rules/python3-pyparsing.make
diff --git a/rules/python3-pyparsing.in b/rules/python3-pyparsing.in
new file mode 100644
index 000000000000..5e59a09018dc
--- /dev/null
+++ b/rules/python3-pyparsing.in
@@ -0,0 +1,8 @@
+## SECTION=python3
+
+config PYTHON3_PYPARSING
+ tristate
+ select PYTHON3
+ prompt "pyparsing"
+ help
+ Python parsing module
diff --git a/rules/python3-pyparsing.make b/rules/python3-pyparsing.make
new file mode 100644
index 000000000000..82bb27279c72
--- /dev/null
+++ b/rules/python3-pyparsing.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PYPARSING) += python3-pyparsing
+
+#
+# Paths and names
+#
+PYTHON3_PYPARSING_VERSION := 2.4.7
+PYTHON3_PYPARSING_MD5 := f0953e47a0112f7a65aec2305ffdf7b4
+PYTHON3_PYPARSING := pyparsing-$(PYTHON3_PYPARSING_VERSION)
+PYTHON3_PYPARSING_SUFFIX := tar.gz
+PYTHON3_PYPARSING_URL := https://pypi.python.org/packages/c1/47/dfc9c342c9842bbe0036c7f763d2d6686bcf5eb1808ba3e170afdb282210/$(PYTHON3_PYPARSING).$(PYTHON3_PYPARSING_SUFFIX)
+PYTHON3_PYPARSING_SOURCE := $(SRCDIR)/$(PYTHON3_PYPARSING).$(PYTHON3_PYPARSING_SUFFIX)
+PYTHON3_PYPARSING_DIR := $(BUILDDIR)/$(PYTHON3_PYPARSING)
+PYTHON3_PYPARSING_LICENSE := MIT
+PYTHON3_PYPARSING_LICENSE_FILES := \
+ file://LICENSE;md5=657a566233888513e1f07ba13e2f47f1
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PYPARSING_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-pyparsing.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-pyparsing)
+ @$(call install_fixup, python3-pyparsing, PRIORITY, optional)
+ @$(call install_fixup, python3-pyparsing, SECTION, base)
+ @$(call install_fixup, python3-pyparsing, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, python3-pyparsing, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-pyparsing, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+ @$(call install_finish, python3-pyparsing)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ptxdist] [PATCH 08/10] python3-wcwidth: new package
2020-07-02 13:05 [ptxdist] [PATCH 01/10] python3-attrs: new package Philipp Zabel
` (5 preceding siblings ...)
2020-07-02 13:05 ` [ptxdist] [PATCH 07/10] python3-pyparsing: " Philipp Zabel
@ 2020-07-02 13:05 ` Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 09/10] python3-zipp: " Philipp Zabel
` (2 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Philipp Zabel @ 2020-07-02 13:05 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/python3-wcwidth.in | 8 ++++++
rules/python3-wcwidth.make | 54 ++++++++++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
create mode 100644 rules/python3-wcwidth.in
create mode 100644 rules/python3-wcwidth.make
diff --git a/rules/python3-wcwidth.in b/rules/python3-wcwidth.in
new file mode 100644
index 000000000000..0d3ea64ce51d
--- /dev/null
+++ b/rules/python3-wcwidth.in
@@ -0,0 +1,8 @@
+## SECTION=python3
+
+config PYTHON3_WCWIDTH
+ tristate
+ select PYTHON3
+ prompt "wcwidth"
+ help
+ Measures the displayed width of unicode strings in a terminal
diff --git a/rules/python3-wcwidth.make b/rules/python3-wcwidth.make
new file mode 100644
index 000000000000..96ec49741ebe
--- /dev/null
+++ b/rules/python3-wcwidth.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_WCWIDTH) += python3-wcwidth
+
+#
+# Paths and names
+#
+PYTHON3_WCWIDTH_VERSION := 0.2.5
+PYTHON3_WCWIDTH_MD5 := a07a75f99d316e14838ac760c831ea37
+PYTHON3_WCWIDTH := wcwidth-$(PYTHON3_WCWIDTH_VERSION)
+PYTHON3_WCWIDTH_SUFFIX := tar.gz
+PYTHON3_WCWIDTH_URL := https://pypi.python.org/packages/89/38/459b727c381504f361832b9e5ace19966de1a235d73cdbdea91c771a1155/$(PYTHON3_WCWIDTH).$(PYTHON3_WCWIDTH_SUFFIX)
+PYTHON3_WCWIDTH_SOURCE := $(SRCDIR)/$(PYTHON3_WCWIDTH).$(PYTHON3_WCWIDTH_SUFFIX)
+PYTHON3_WCWIDTH_DIR := $(BUILDDIR)/$(PYTHON3_WCWIDTH)
+PYTHON3_WCWIDTH_LICENSE := MIT
+PYTHON3_WCWIDTH_LICENSE_FILES := \
+ file://LICENSE;md5=b15979c39a2543892fca8cd86b4b52cb
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_WCWIDTH_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-wcwidth.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-wcwidth)
+ @$(call install_fixup, python3-wcwidth, PRIORITY, optional)
+ @$(call install_fixup, python3-wcwidth, SECTION, base)
+ @$(call install_fixup, python3-wcwidth, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, python3-wcwidth, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-wcwidth, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+ @$(call install_finish, python3-wcwidth)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ptxdist] [PATCH 09/10] python3-zipp: new package
2020-07-02 13:05 [ptxdist] [PATCH 01/10] python3-attrs: new package Philipp Zabel
` (6 preceding siblings ...)
2020-07-02 13:05 ` [ptxdist] [PATCH 08/10] python3-wcwidth: " Philipp Zabel
@ 2020-07-02 13:05 ` Philipp Zabel
2020-07-02 13:05 ` [ptxdist] [PATCH 10/10] python3-pytest: " Philipp Zabel
2020-07-03 9:19 ` [ptxdist] [PATCH 01/10] python3-attrs: " Michael Olbrich
9 siblings, 0 replies; 15+ messages in thread
From: Philipp Zabel @ 2020-07-02 13:05 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/python3-zipp.in | 8 ++++++
rules/python3-zipp.make | 54 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
create mode 100644 rules/python3-zipp.in
create mode 100644 rules/python3-zipp.make
diff --git a/rules/python3-zipp.in b/rules/python3-zipp.in
new file mode 100644
index 000000000000..7c71f9be26af
--- /dev/null
+++ b/rules/python3-zipp.in
@@ -0,0 +1,8 @@
+## SECTION=python3
+
+config PYTHON3_ZIPP
+ tristate
+ select PYTHON3
+ prompt "zipp"
+ help
+ A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
diff --git a/rules/python3-zipp.make b/rules/python3-zipp.make
new file mode 100644
index 000000000000..1b54415de1fd
--- /dev/null
+++ b/rules/python3-zipp.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_ZIPP) += python3-zipp
+
+#
+# Paths and names
+#
+PYTHON3_ZIPP_VERSION := 3.1.0
+PYTHON3_ZIPP_MD5 := 199da7385f080ec45da6c1942e2b5996
+PYTHON3_ZIPP := zipp-$(PYTHON3_ZIPP_VERSION)
+PYTHON3_ZIPP_SUFFIX := tar.gz
+PYTHON3_ZIPP_URL := https://pypi.python.org/packages/ce/8c/2c5f7dc1b418f659d36c04dec9446612fc7b45c8095cc7369dd772513055/$(PYTHON3_ZIPP).$(PYTHON3_ZIPP_SUFFIX)
+PYTHON3_ZIPP_SOURCE := $(SRCDIR)/$(PYTHON3_ZIPP).$(PYTHON3_ZIPP_SUFFIX)
+PYTHON3_ZIPP_DIR := $(BUILDDIR)/$(PYTHON3_ZIPP)
+PYTHON3_ZIPP_LICENSE := MIT
+PYTHON3_ZIPP_LICENSE_FILES := \
+ file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_ZIPP_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-zipp.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-zipp)
+ @$(call install_fixup, python3-zipp, PRIORITY, optional)
+ @$(call install_fixup, python3-zipp, SECTION, base)
+ @$(call install_fixup, python3-zipp, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, python3-zipp, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-zipp, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+ @$(call install_finish, python3-zipp)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ptxdist] [PATCH 10/10] python3-pytest: new package
2020-07-02 13:05 [ptxdist] [PATCH 01/10] python3-attrs: new package Philipp Zabel
` (7 preceding siblings ...)
2020-07-02 13:05 ` [ptxdist] [PATCH 09/10] python3-zipp: " Philipp Zabel
@ 2020-07-02 13:05 ` Philipp Zabel
2020-07-03 9:22 ` Michael Olbrich
2020-07-03 9:19 ` [ptxdist] [PATCH 01/10] python3-attrs: " Michael Olbrich
9 siblings, 1 reply; 15+ messages in thread
From: Philipp Zabel @ 2020-07-02 13:05 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/python3-pytest.in | 15 +++++++++
rules/python3-pytest.make | 68 +++++++++++++++++++++++++++++++++++++++
2 files changed, 83 insertions(+)
create mode 100644 rules/python3-pytest.in
create mode 100644 rules/python3-pytest.make
diff --git a/rules/python3-pytest.in b/rules/python3-pytest.in
new file mode 100644
index 000000000000..e92a6eeba7de
--- /dev/null
+++ b/rules/python3-pytest.in
@@ -0,0 +1,15 @@
+## SECTION=python3
+
+config PYTHON3_PYTEST
+ tristate
+ select PYTHON3
+ select PYTHON3_ATTRS if RUNTIME
+ select PYTHON3_MORE_ITERTOOLS if RUNTIME
+ select PYTHON3_PACKAGING if RUNTIME
+ select PYTHON3_PLUGGY if RUNTIME
+ select PYTHON3_PY if RUNTIME
+ select PYTHON3_SETUPTOOLS if RUNTIME # for pkg_resources
+ select PYTHON3_WCWIDTH if RUNTIME
+ prompt "pytest"
+ help
+ pytest: simple powerful testing with Python
diff --git a/rules/python3-pytest.make b/rules/python3-pytest.make
new file mode 100644
index 000000000000..f37a45933eda
--- /dev/null
+++ b/rules/python3-pytest.make
@@ -0,0 +1,68 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PYTEST) += python3-pytest
+
+#
+# Paths and names
+#
+PYTHON3_PYTEST_VERSION := 5.4.3
+PYTHON3_PYTEST_MD5 := 4b6b06b2818516c7c400d4cafe3b9257
+PYTHON3_PYTEST := pytest-$(PYTHON3_PYTEST_VERSION)
+PYTHON3_PYTEST_SUFFIX := tar.gz
+PYTHON3_PYTEST_URL := https://pypi.python.org/packages/8f/c4/e4a645f8a3d6c6993cb3934ee593e705947dfafad4ca5148b9a0fde7359c/$(PYTHON3_PYTEST).$(PYTHON3_PYTEST_SUFFIX)
+
+PYTHON3_PYTEST_SOURCE := $(SRCDIR)/$(PYTHON3_PYTEST).$(PYTHON3_PYTEST_SUFFIX)
+PYTHON3_PYTEST_DIR := $(BUILDDIR)/$(PYTHON3_PYTEST)
+PYTHON3_PYTEST_LICENSE := MIT
+PYTHON3_PYTEST_LICENSE_FILES := \
+ file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PYTEST_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-pytest.install:
+ @$(call targetinfo)
+ @$(call world/install, PYTHON3_PYTEST)
+ @sed -i 's;#!/.*;#!/usr/bin/python$(PYTHON3_MAJORMINOR);' \
+ $(PYTHON3_PYTEST_PKGDIR)/usr/bin/*
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-pytest.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-pytest)
+ @$(call install_fixup, python3-pytest, PRIORITY, optional)
+ @$(call install_fixup, python3-pytest, SECTION, base)
+ @$(call install_fixup, python3-pytest, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, python3-pytest, DESCRIPTION, missing)
+
+ @$(call install_glob, python3-pytest, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/,, *.py)
+ @$(call install_copy, python3-pytest, 0, 0, 0755, -, /usr/bin/pytest)
+ @$(call install_copy, python3-pytest, 0, 0, 0755, -, /usr/bin/py.test)
+
+ @$(call install_finish, python3-pytest)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [ptxdist] [PATCH 10/10] python3-pytest: new package
2020-07-02 13:05 ` [ptxdist] [PATCH 10/10] python3-pytest: " Philipp Zabel
@ 2020-07-03 9:22 ` Michael Olbrich
2020-07-03 9:54 ` Philipp Zabel
0 siblings, 1 reply; 15+ messages in thread
From: Michael Olbrich @ 2020-07-03 9:22 UTC (permalink / raw)
To: ptxdist
On Thu, Jul 02, 2020 at 03:05:18PM +0200, Philipp Zabel wrote:
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
> rules/python3-pytest.in | 15 +++++++++
> rules/python3-pytest.make | 68 +++++++++++++++++++++++++++++++++++++++
> 2 files changed, 83 insertions(+)
> create mode 100644 rules/python3-pytest.in
> create mode 100644 rules/python3-pytest.make
>
> diff --git a/rules/python3-pytest.in b/rules/python3-pytest.in
> new file mode 100644
> index 000000000000..e92a6eeba7de
> --- /dev/null
> +++ b/rules/python3-pytest.in
> @@ -0,0 +1,15 @@
> +## SECTION=python3
> +
> +config PYTHON3_PYTEST
> + tristate
> + select PYTHON3
> + select PYTHON3_ATTRS if RUNTIME
> + select PYTHON3_MORE_ITERTOOLS if RUNTIME
> + select PYTHON3_PACKAGING if RUNTIME
> + select PYTHON3_PLUGGY if RUNTIME
> + select PYTHON3_PY if RUNTIME
> + select PYTHON3_SETUPTOOLS if RUNTIME # for pkg_resources
> + select PYTHON3_WCWIDTH if RUNTIME
> + prompt "pytest"
> + help
> + pytest: simple powerful testing with Python
> diff --git a/rules/python3-pytest.make b/rules/python3-pytest.make
> new file mode 100644
> index 000000000000..f37a45933eda
> --- /dev/null
> +++ b/rules/python3-pytest.make
> @@ -0,0 +1,68 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_PYTEST) += python3-pytest
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_PYTEST_VERSION := 5.4.3
> +PYTHON3_PYTEST_MD5 := 4b6b06b2818516c7c400d4cafe3b9257
> +PYTHON3_PYTEST := pytest-$(PYTHON3_PYTEST_VERSION)
> +PYTHON3_PYTEST_SUFFIX := tar.gz
> +PYTHON3_PYTEST_URL := https://pypi.python.org/packages/8f/c4/e4a645f8a3d6c6993cb3934ee593e705947dfafad4ca5148b9a0fde7359c/$(PYTHON3_PYTEST).$(PYTHON3_PYTEST_SUFFIX)
> +
> +PYTHON3_PYTEST_SOURCE := $(SRCDIR)/$(PYTHON3_PYTEST).$(PYTHON3_PYTEST_SUFFIX)
> +PYTHON3_PYTEST_DIR := $(BUILDDIR)/$(PYTHON3_PYTEST)
> +PYTHON3_PYTEST_LICENSE := MIT
> +PYTHON3_PYTEST_LICENSE_FILES := \
> + file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_PYTEST_CONF_TOOL := python3
> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-pytest.install:
> + @$(call targetinfo)
> + @$(call world/install, PYTHON3_PYTEST)
> + @sed -i 's;#!/.*;#!/usr/bin/python$(PYTHON3_MAJORMINOR);' \
> + $(PYTHON3_PYTEST_PKGDIR)/usr/bin/*
This probably replaces the py.test with a copy of pytest.
> + @$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-pytest.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, python3-pytest)
> + @$(call install_fixup, python3-pytest, PRIORITY, optional)
> + @$(call install_fixup, python3-pytest, SECTION, base)
> + @$(call install_fixup, python3-pytest, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
> + @$(call install_fixup, python3-pytest, DESCRIPTION, missing)
> +
> + @$(call install_glob, python3-pytest, 0, 0, -, \
> + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/,, *.py)
> + @$(call install_copy, python3-pytest, 0, 0, 0755, -, /usr/bin/pytest)
> + @$(call install_copy, python3-pytest, 0, 0, 0755, -, /usr/bin/py.test)
At least on Debian, this is a symlink to pytest.
Michael
> +
> + @$(call install_finish, python3-pytest)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 2.20.1
>
>
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [ptxdist] [PATCH 10/10] python3-pytest: new package
2020-07-03 9:22 ` Michael Olbrich
@ 2020-07-03 9:54 ` Philipp Zabel
2020-07-03 11:06 ` Michael Olbrich
0 siblings, 1 reply; 15+ messages in thread
From: Philipp Zabel @ 2020-07-03 9:54 UTC (permalink / raw)
To: ptxdist
On Fri, 2020-07-03 at 11:22 +0200, Michael Olbrich wrote:
> On Thu, Jul 02, 2020 at 03:05:18PM +0200, Philipp Zabel wrote:
> > Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> > ---
> > rules/python3-pytest.in | 15 +++++++++
> > rules/python3-pytest.make | 68 +++++++++++++++++++++++++++++++++++++++
> > 2 files changed, 83 insertions(+)
> > create mode 100644 rules/python3-pytest.in
> > create mode 100644 rules/python3-pytest.make
> >
> > diff --git a/rules/python3-pytest.in b/rules/python3-pytest.in
> > new file mode 100644
> > index 000000000000..e92a6eeba7de
> > --- /dev/null
> > +++ b/rules/python3-pytest.in
> > @@ -0,0 +1,15 @@
> > +## SECTION=python3
> > +
> > +config PYTHON3_PYTEST
> > + tristate
> > + select PYTHON3
> > + select PYTHON3_ATTRS if RUNTIME
> > + select PYTHON3_MORE_ITERTOOLS if RUNTIME
> > + select PYTHON3_PACKAGING if RUNTIME
> > + select PYTHON3_PLUGGY if RUNTIME
> > + select PYTHON3_PY if RUNTIME
> > + select PYTHON3_SETUPTOOLS if RUNTIME # for pkg_resources
> > + select PYTHON3_WCWIDTH if RUNTIME
> > + prompt "pytest"
> > + help
> > + pytest: simple powerful testing with Python
> > diff --git a/rules/python3-pytest.make b/rules/python3-pytest.make
> > new file mode 100644
> > index 000000000000..f37a45933eda
> > --- /dev/null
> > +++ b/rules/python3-pytest.make
> > @@ -0,0 +1,68 @@
> > +# -*-makefile-*-
> > +#
> > +# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
> > +#
> > +# For further information about the PTXdist project and license conditions
> > +# see the README file.
> > +#
> > +
> > +#
> > +# We provide this package
> > +#
> > +PACKAGES-$(PTXCONF_PYTHON3_PYTEST) += python3-pytest
> > +
> > +#
> > +# Paths and names
> > +#
> > +PYTHON3_PYTEST_VERSION := 5.4.3
> > +PYTHON3_PYTEST_MD5 := 4b6b06b2818516c7c400d4cafe3b9257
> > +PYTHON3_PYTEST := pytest-$(PYTHON3_PYTEST_VERSION)
> > +PYTHON3_PYTEST_SUFFIX := tar.gz
> > +PYTHON3_PYTEST_URL := https://pypi.python.org/packages/8f/c4/e4a645f8a3d6c6993cb3934ee593e705947dfafad4ca5148b9a0fde7359c/$(PYTHON3_PYTEST).$(PYTHON3_PYTEST_SUFFIX)
> > +
> > +PYTHON3_PYTEST_SOURCE := $(SRCDIR)/$(PYTHON3_PYTEST).$(PYTHON3_PYTEST_SUFFIX)
> > +PYTHON3_PYTEST_DIR := $(BUILDDIR)/$(PYTHON3_PYTEST)
> > +PYTHON3_PYTEST_LICENSE := MIT
> > +PYTHON3_PYTEST_LICENSE_FILES := \
> > + file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b
> > +
> > +# ----------------------------------------------------------------------------
> > +# Prepare
> > +# ----------------------------------------------------------------------------
> > +
> > +PYTHON3_PYTEST_CONF_TOOL := python3
> > +
> > +# ----------------------------------------------------------------------------
> > +# Install
> > +# ----------------------------------------------------------------------------
> > +
> > +$(STATEDIR)/python3-pytest.install:
> > + @$(call targetinfo)
> > + @$(call world/install, PYTHON3_PYTEST)
> > + @sed -i 's;#!/.*;#!/usr/bin/python$(PYTHON3_MAJORMINOR);' \
> > + $(PYTHON3_PYTEST_PKGDIR)/usr/bin/*
>
> This probably replaces the py.test with a copy of pytest.
The two files different files even without this:
packages/pytest-5.4.3/usr/bin/py.test:
----------8<----------
#!/path/to/sysroot-host/bin/python3.7
# EASY-INSTALL-ENTRY-SCRIPT: 'pytest==5.4.3','console_scripts','py.test'
__requires__ = 'pytest==5.4.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('pytest==5.4.3', 'console_scripts', 'py.test')()
)
---------->8----------
packages/pytest-5.4.3/usr/bin/pytest:
----------8<----------
#!/path/to/sysroot-host/bin/python3.7
# EASY-INSTALL-ENTRY-SCRIPT: 'pytest==5.4.3','console_scripts','pytest'
__requires__ = 'pytest==5.4.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('pytest==5.4.3', 'console_scripts', 'pytest')()
)
---------->8----------
> > + @$(call touch)
> > +
> > +# ----------------------------------------------------------------------------
> > +# Target-Install
> > +# ----------------------------------------------------------------------------
> > +
> > +$(STATEDIR)/python3-pytest.targetinstall:
> > + @$(call targetinfo)
> > +
> > + @$(call install_init, python3-pytest)
> > + @$(call install_fixup, python3-pytest, PRIORITY, optional)
> > + @$(call install_fixup, python3-pytest, SECTION, base)
> > + @$(call install_fixup, python3-pytest, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
> > + @$(call install_fixup, python3-pytest, DESCRIPTION, missing)
> > +
> > + @$(call install_glob, python3-pytest, 0, 0, -, \
> > + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/,, *.py)
> > + @$(call install_copy, python3-pytest, 0, 0, 0755, -, /usr/bin/pytest)
> > + @$(call install_copy, python3-pytest, 0, 0, 0755, -, /usr/bin/py.test)
>
> At least on Debian, this is a symlink to pytest.
Ok, should I do the same?
regards
Philipp
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [ptxdist] [PATCH 10/10] python3-pytest: new package
2020-07-03 9:54 ` Philipp Zabel
@ 2020-07-03 11:06 ` Michael Olbrich
0 siblings, 0 replies; 15+ messages in thread
From: Michael Olbrich @ 2020-07-03 11:06 UTC (permalink / raw)
To: ptxdist
On Fri, Jul 03, 2020 at 11:54:33AM +0200, Philipp Zabel wrote:
> On Fri, 2020-07-03 at 11:22 +0200, Michael Olbrich wrote:
> > On Thu, Jul 02, 2020 at 03:05:18PM +0200, Philipp Zabel wrote:
> > > Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> > > ---
> > > rules/python3-pytest.in | 15 +++++++++
> > > rules/python3-pytest.make | 68 +++++++++++++++++++++++++++++++++++++++
> > > 2 files changed, 83 insertions(+)
> > > create mode 100644 rules/python3-pytest.in
> > > create mode 100644 rules/python3-pytest.make
> > >
> > > diff --git a/rules/python3-pytest.in b/rules/python3-pytest.in
> > > new file mode 100644
> > > index 000000000000..e92a6eeba7de
> > > --- /dev/null
> > > +++ b/rules/python3-pytest.in
> > > @@ -0,0 +1,15 @@
> > > +## SECTION=python3
> > > +
> > > +config PYTHON3_PYTEST
> > > + tristate
> > > + select PYTHON3
> > > + select PYTHON3_ATTRS if RUNTIME
> > > + select PYTHON3_MORE_ITERTOOLS if RUNTIME
> > > + select PYTHON3_PACKAGING if RUNTIME
> > > + select PYTHON3_PLUGGY if RUNTIME
> > > + select PYTHON3_PY if RUNTIME
> > > + select PYTHON3_SETUPTOOLS if RUNTIME # for pkg_resources
> > > + select PYTHON3_WCWIDTH if RUNTIME
> > > + prompt "pytest"
> > > + help
> > > + pytest: simple powerful testing with Python
> > > diff --git a/rules/python3-pytest.make b/rules/python3-pytest.make
> > > new file mode 100644
> > > index 000000000000..f37a45933eda
> > > --- /dev/null
> > > +++ b/rules/python3-pytest.make
> > > @@ -0,0 +1,68 @@
> > > +# -*-makefile-*-
> > > +#
> > > +# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
> > > +#
> > > +# For further information about the PTXdist project and license conditions
> > > +# see the README file.
> > > +#
> > > +
> > > +#
> > > +# We provide this package
> > > +#
> > > +PACKAGES-$(PTXCONF_PYTHON3_PYTEST) += python3-pytest
> > > +
> > > +#
> > > +# Paths and names
> > > +#
> > > +PYTHON3_PYTEST_VERSION := 5.4.3
> > > +PYTHON3_PYTEST_MD5 := 4b6b06b2818516c7c400d4cafe3b9257
> > > +PYTHON3_PYTEST := pytest-$(PYTHON3_PYTEST_VERSION)
> > > +PYTHON3_PYTEST_SUFFIX := tar.gz
> > > +PYTHON3_PYTEST_URL := https://pypi.python.org/packages/8f/c4/e4a645f8a3d6c6993cb3934ee593e705947dfafad4ca5148b9a0fde7359c/$(PYTHON3_PYTEST).$(PYTHON3_PYTEST_SUFFIX)
> > > +
> > > +PYTHON3_PYTEST_SOURCE := $(SRCDIR)/$(PYTHON3_PYTEST).$(PYTHON3_PYTEST_SUFFIX)
> > > +PYTHON3_PYTEST_DIR := $(BUILDDIR)/$(PYTHON3_PYTEST)
> > > +PYTHON3_PYTEST_LICENSE := MIT
> > > +PYTHON3_PYTEST_LICENSE_FILES := \
> > > + file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b
> > > +
> > > +# ----------------------------------------------------------------------------
> > > +# Prepare
> > > +# ----------------------------------------------------------------------------
> > > +
> > > +PYTHON3_PYTEST_CONF_TOOL := python3
> > > +
> > > +# ----------------------------------------------------------------------------
> > > +# Install
> > > +# ----------------------------------------------------------------------------
> > > +
> > > +$(STATEDIR)/python3-pytest.install:
> > > + @$(call targetinfo)
> > > + @$(call world/install, PYTHON3_PYTEST)
> > > + @sed -i 's;#!/.*;#!/usr/bin/python$(PYTHON3_MAJORMINOR);' \
> > > + $(PYTHON3_PYTEST_PKGDIR)/usr/bin/*
> >
> > This probably replaces the py.test with a copy of pytest.
>
> The two files different files even without this:
>
> packages/pytest-5.4.3/usr/bin/py.test:
>
> ----------8<----------
> #!/path/to/sysroot-host/bin/python3.7
> # EASY-INSTALL-ENTRY-SCRIPT: 'pytest==5.4.3','console_scripts','py.test'
> __requires__ = 'pytest==5.4.3'
> import re
> import sys
> from pkg_resources import load_entry_point
>
> if __name__ == '__main__':
> sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
> sys.exit(
> load_entry_point('pytest==5.4.3', 'console_scripts', 'py.test')()
> )
> ---------->8----------
>
> packages/pytest-5.4.3/usr/bin/pytest:
>
> ----------8<----------
> #!/path/to/sysroot-host/bin/python3.7
> # EASY-INSTALL-ENTRY-SCRIPT: 'pytest==5.4.3','console_scripts','pytest'
> __requires__ = 'pytest==5.4.3'
> import re
> import sys
> from pkg_resources import load_entry_point
>
> if __name__ == '__main__':
> sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
> sys.exit(
> load_entry_point('pytest==5.4.3', 'console_scripts', 'pytest')()
> )
> ---------->8----------
>
> > > + @$(call touch)
> > > +
> > > +# ----------------------------------------------------------------------------
> > > +# Target-Install
> > > +# ----------------------------------------------------------------------------
> > > +
> > > +$(STATEDIR)/python3-pytest.targetinstall:
> > > + @$(call targetinfo)
> > > +
> > > + @$(call install_init, python3-pytest)
> > > + @$(call install_fixup, python3-pytest, PRIORITY, optional)
> > > + @$(call install_fixup, python3-pytest, SECTION, base)
> > > + @$(call install_fixup, python3-pytest, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
> > > + @$(call install_fixup, python3-pytest, DESCRIPTION, missing)
> > > +
> > > + @$(call install_glob, python3-pytest, 0, 0, -, \
> > > + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/,, *.py)
> > > + @$(call install_copy, python3-pytest, 0, 0, 0755, -, /usr/bin/pytest)
> > > + @$(call install_copy, python3-pytest, 0, 0, 0755, -, /usr/bin/py.test)
> >
> > At least on Debian, this is a symlink to pytest.
>
> Ok, should I do the same?
Yes please. I'm pretty sure the two scripts are doing exactly the same
thing.
Michael
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [ptxdist] [PATCH 01/10] python3-attrs: new package
2020-07-02 13:05 [ptxdist] [PATCH 01/10] python3-attrs: new package Philipp Zabel
` (8 preceding siblings ...)
2020-07-02 13:05 ` [ptxdist] [PATCH 10/10] python3-pytest: " Philipp Zabel
@ 2020-07-03 9:19 ` Michael Olbrich
2020-07-03 9:54 ` Philipp Zabel
9 siblings, 1 reply; 15+ messages in thread
From: Michael Olbrich @ 2020-07-03 9:19 UTC (permalink / raw)
To: ptxdist
On Thu, Jul 02, 2020 at 03:05:09PM +0200, Philipp Zabel wrote:
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
> rules/python3-attrs.in | 8 ++++++
> rules/python3-attrs.make | 54 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 62 insertions(+)
> create mode 100644 rules/python3-attrs.in
> create mode 100644 rules/python3-attrs.make
>
> diff --git a/rules/python3-attrs.in b/rules/python3-attrs.in
> new file mode 100644
> index 000000000000..98ff9134a306
> --- /dev/null
> +++ b/rules/python3-attrs.in
> @@ -0,0 +1,8 @@
> +## SECTION=python3
> +
> +config PYTHON3_ATTRS
> + tristate
> + select PYTHON3
> + prompt "attrs"
> + help
> + attrs: Classes Without Boilerplate
> diff --git a/rules/python3-attrs.make b/rules/python3-attrs.make
> new file mode 100644
> index 000000000000..3683cda801fa
> --- /dev/null
> +++ b/rules/python3-attrs.make
> @@ -0,0 +1,54 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_ATTRS) += python3-attrs
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_ATTRS_VERSION := 19.3.0
> +PYTHON3_ATTRS_MD5 := 5b2db50fcc31be34d32798183c9bd062
> +PYTHON3_ATTRS := attrs-$(PYTHON3_ATTRS_VERSION)
> +PYTHON3_ATTRS_SUFFIX := tar.gz
> +PYTHON3_ATTRS_URL := https://pypi.python.org/packages/98/c3/2c227e66b5e896e15ccdae2e00bbc69aa46e9a8ce8869cc5fa96310bf612/$(PYTHON3_ATTRS).$(PYTHON3_ATTRS_SUFFIX)
So where did you get this URL from? When I look for the package on pypi I
get:
https://files.pythonhosted.org/packages/98/c3/...
And we need to change the URL with each new versions. That's not so good.
This should work as well:
https://pypi.python.org/packages/source/a/attrs/$(PYTHON3_ATTRS).$(PYTHON3_ATTRS_SUFFIX)
Please update all packages like this.
Michael
> +PYTHON3_ATTRS_SOURCE := $(SRCDIR)/$(PYTHON3_ATTRS).$(PYTHON3_ATTRS_SUFFIX)
> +PYTHON3_ATTRS_DIR := $(BUILDDIR)/$(PYTHON3_ATTRS)
> +PYTHON3_ATTRS_LICENSE := MIT
> +PYTHON3_ATTRS_LICENSE_FILES := \
> + file://LICENSE;md5=d4ab25949a73fe7d4fdee93bcbdbf8ff
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_ATTRS_CONF_TOOL := python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-attrs.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, python3-attrs)
> + @$(call install_fixup, python3-attrs, PRIORITY, optional)
> + @$(call install_fixup, python3-attrs, SECTION, base)
> + @$(call install_fixup, python3-attrs, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
> + @$(call install_fixup, python3-attrs, DESCRIPTION, missing)
> +
> + @$(call install_glob, python3-attrs, 0, 0, -, \
> + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
> +
> + @$(call install_finish, python3-attrs)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 2.20.1
>
>
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [ptxdist] [PATCH 01/10] python3-attrs: new package
2020-07-03 9:19 ` [ptxdist] [PATCH 01/10] python3-attrs: " Michael Olbrich
@ 2020-07-03 9:54 ` Philipp Zabel
0 siblings, 0 replies; 15+ messages in thread
From: Philipp Zabel @ 2020-07-03 9:54 UTC (permalink / raw)
To: ptxdist
On Fri, 2020-07-03 at 11:19 +0200, Michael Olbrich wrote:
> On Thu, Jul 02, 2020 at 03:05:09PM +0200, Philipp Zabel wrote:
> > Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> > ---
> > rules/python3-attrs.in | 8 ++++++
> > rules/python3-attrs.make | 54 ++++++++++++++++++++++++++++++++++++++++
> > 2 files changed, 62 insertions(+)
> > create mode 100644 rules/python3-attrs.in
> > create mode 100644 rules/python3-attrs.make
> >
> > diff --git a/rules/python3-attrs.in b/rules/python3-attrs.in
> > new file mode 100644
> > index 000000000000..98ff9134a306
> > --- /dev/null
> > +++ b/rules/python3-attrs.in
> > @@ -0,0 +1,8 @@
> > +## SECTION=python3
> > +
> > +config PYTHON3_ATTRS
> > + tristate
> > + select PYTHON3
> > + prompt "attrs"
> > + help
> > + attrs: Classes Without Boilerplate
> > diff --git a/rules/python3-attrs.make b/rules/python3-attrs.make
> > new file mode 100644
> > index 000000000000..3683cda801fa
> > --- /dev/null
> > +++ b/rules/python3-attrs.make
> > @@ -0,0 +1,54 @@
> > +# -*-makefile-*-
> > +#
> > +# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
> > +#
> > +# For further information about the PTXdist project and license conditions
> > +# see the README file.
> > +#
> > +
> > +#
> > +# We provide this package
> > +#
> > +PACKAGES-$(PTXCONF_PYTHON3_ATTRS) += python3-attrs
> > +
> > +#
> > +# Paths and names
> > +#
> > +PYTHON3_ATTRS_VERSION := 19.3.0
> > +PYTHON3_ATTRS_MD5 := 5b2db50fcc31be34d32798183c9bd062
> > +PYTHON3_ATTRS := attrs-$(PYTHON3_ATTRS_VERSION)
> > +PYTHON3_ATTRS_SUFFIX := tar.gz
> > +PYTHON3_ATTRS_URL := https://pypi.python.org/packages/98/c3/2c227e66b5e896e15ccdae2e00bbc69aa46e9a8ce8869cc5fa96310bf612/$(PYTHON3_ATTRS).$(PYTHON3_ATTRS_SUFFIX)
>
> So where did you get this URL from? When I look for the package on pypi I
> get:
> https://files.pythonhosted.org/packages/98/c3/...
I've collected the addresses form pypi.org and then only replaced the
hashes in my template, which had the pypi.python.org domain.
> And we need to change the URL with each new versions. That's not so good.
> This should work as well:
>
> https://pypi.python.org/packages/source/a/attrs/$(PYTHON3_ATTRS).$(PYTHON3_ATTRS_SUFFIX)
>
> Please update all packages like this.
Will do, thank you!
regards
Philipp
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 15+ messages in thread