From: Philipp Zabel <p.zabel@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2 02/10] python3-importlib-metadata: new package
Date: Fri, 3 Jul 2020 13:57:02 +0200 [thread overview]
Message-ID: <20200703115710.30041-2-p.zabel@pengutronix.de> (raw)
In-Reply-To: <20200703115710.30041-1-p.zabel@pengutronix.de>
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..088c91516256
--- /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/source/i/importlib_metadata/$(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
next prev parent reply other threads:[~2020-07-03 11:57 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-03 11:57 [ptxdist] [PATCH v2 01/10] python3-attrs: " Philipp Zabel
2020-07-03 11:57 ` Philipp Zabel [this message]
2020-07-06 6:32 ` [ptxdist] [APPLIED] python3-importlib-metadata: " Michael Olbrich
2020-07-03 11:57 ` [ptxdist] [PATCH v2 03/10] python3-more-itertools: " Philipp Zabel
2020-07-06 6:32 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-07-03 11:57 ` [ptxdist] [PATCH v2 04/10] python3-packaging: " Philipp Zabel
2020-07-06 6:32 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-07-03 11:57 ` [ptxdist] [PATCH v2 05/10] python3-pluggy: " Philipp Zabel
2020-07-06 6:32 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-07-03 11:57 ` [ptxdist] [PATCH v2 06/10] python3-py: " Philipp Zabel
2020-07-06 6:32 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-07-03 11:57 ` [ptxdist] [PATCH v2 07/10] python3-pyparsing: " Philipp Zabel
2020-07-06 6:32 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-07-03 11:57 ` [ptxdist] [PATCH v2 08/10] python3-wcwidth: " Philipp Zabel
2020-07-06 6:32 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-07-03 11:57 ` [ptxdist] [PATCH v2 09/10] python3-zipp: " Philipp Zabel
2020-07-06 6:32 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-07-03 11:57 ` [ptxdist] [PATCH v2 10/10] python3-pytest: " Philipp Zabel
2020-07-06 6:32 ` [ptxdist] [APPLIED] " Michael Olbrich
2020-07-06 6:32 ` [ptxdist] [APPLIED] python3-attrs: " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200703115710.30041-2-p.zabel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox