mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] python3-iniherit: new package
@ 2019-11-19 15:03 Lars Pedersen
  2019-11-25  7:01 ` Michael Olbrich
  2019-12-04 10:44 ` [ptxdist] [PATCH v2] " Lars Pedersen
  0 siblings, 2 replies; 4+ messages in thread
From: Lars Pedersen @ 2019-11-19 15:03 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
 rules/python3-iniherit.in   |  9 +++++++
 rules/python3-iniherit.make | 52 +++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 rules/python3-iniherit.in
 create mode 100644 rules/python3-iniherit.make

diff --git a/rules/python3-iniherit.in b/rules/python3-iniherit.in
new file mode 100644
index 000000000..ce9fc2483
--- /dev/null
+++ b/rules/python3-iniherit.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_INIHERIT
+	tristate
+	prompt "python3-iniherit"
+		select PYTHON3
+		select HOST_PYTHON3_SETUPTOOLS
+	help
+	  Adds INI-file inheritance to ConfigParser
diff --git a/rules/python3-iniherit.make b/rules/python3-iniherit.make
new file mode 100644
index 000000000..03f07984a
--- /dev/null
+++ b/rules/python3-iniherit.make
@@ -0,0 +1,52 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_INIHERIT) += python3-iniherit
+
+#
+# Paths and names
+#
+PYTHON3_INIHERIT_VERSION	:= 0.3.9
+PYTHON3_INIHERIT_MD5		:= 0e501d38a1ad7c9bde7bff9387d4a582
+PYTHON3_INIHERIT		:= iniherit-$(PYTHON3_INIHERIT_VERSION)
+PYTHON3_INIHERIT_SUFFIX		:= tar.gz
+PYTHON3_INIHERIT_URL		:= https://files.pythonhosted.org/packages/source/i/iniherit/$(PYTHON3_INIHERIT).$(PYTHON3_INIHERIT_SUFFIX)
+PYTHON3_INIHERIT_SOURCE		:= $(SRCDIR)/$(PYTHON3_INIHERIT).$(PYTHON3_INIHERIT_SUFFIX)
+PYTHON3_INIHERIT_DIR		:= $(BUILDDIR)/$(PYTHON3_INIHERIT)
+PYTHON3_INIHERIT_LICENSE	:= MIT AND public_domain
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_INIHERIT_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-iniherit.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-iniherit)
+	@$(call install_fixup, python3-iniherit,PRIORITY,optional)
+	@$(call install_fixup, python3-iniherit,SECTION,base)
+	@$(call install_fixup, python3-iniherit,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, python3-iniherit,DESCRIPTION,missing)
+
+	@$(call install_glob,python3-iniherit, 0, 0, -, \
+		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+	@$(call install_finish, python3-iniherit)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.23.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH] python3-iniherit: new package
  2019-11-19 15:03 [ptxdist] [PATCH] python3-iniherit: new package Lars Pedersen
@ 2019-11-25  7:01 ` Michael Olbrich
  2019-12-04 10:44 ` [ptxdist] [PATCH v2] " Lars Pedersen
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2019-11-25  7:01 UTC (permalink / raw)
  To: ptxdist

On Tue, Nov 19, 2019 at 04:03:33PM +0100, Lars Pedersen wrote:
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> ---
>  rules/python3-iniherit.in   |  9 +++++++
>  rules/python3-iniherit.make | 52 +++++++++++++++++++++++++++++++++++++
>  2 files changed, 61 insertions(+)
>  create mode 100644 rules/python3-iniherit.in
>  create mode 100644 rules/python3-iniherit.make
> 
> diff --git a/rules/python3-iniherit.in b/rules/python3-iniherit.in
> new file mode 100644
> index 000000000..ce9fc2483
> --- /dev/null
> +++ b/rules/python3-iniherit.in
> @@ -0,0 +1,9 @@
> +## SECTION=python3
> +
> +config PYTHON3_INIHERIT
> +	tristate
> +	prompt "python3-iniherit"
> +		select PYTHON3
> +		select HOST_PYTHON3_SETUPTOOLS

Not needed.

> +	help
> +	  Adds INI-file inheritance to ConfigParser
> diff --git a/rules/python3-iniherit.make b/rules/python3-iniherit.make
> new file mode 100644
> index 000000000..03f07984a
> --- /dev/null
> +++ b/rules/python3-iniherit.make
> @@ -0,0 +1,52 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2019 by Lars Pedersen <lapeddk@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_INIHERIT) += python3-iniherit
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_INIHERIT_VERSION	:= 0.3.9
> +PYTHON3_INIHERIT_MD5		:= 0e501d38a1ad7c9bde7bff9387d4a582
> +PYTHON3_INIHERIT		:= iniherit-$(PYTHON3_INIHERIT_VERSION)
> +PYTHON3_INIHERIT_SUFFIX		:= tar.gz
> +PYTHON3_INIHERIT_URL		:= https://files.pythonhosted.org/packages/source/i/iniherit/$(PYTHON3_INIHERIT).$(PYTHON3_INIHERIT_SUFFIX)
> +PYTHON3_INIHERIT_SOURCE		:= $(SRCDIR)/$(PYTHON3_INIHERIT).$(PYTHON3_INIHERIT_SUFFIX)
> +PYTHON3_INIHERIT_DIR		:= $(BUILDDIR)/$(PYTHON3_INIHERIT)
> +PYTHON3_INIHERIT_LICENSE	:= MIT AND public_domain

Add the license file.

Michael

> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_INIHERIT_CONF_TOOL	:= python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-iniherit.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, python3-iniherit)
> +	@$(call install_fixup, python3-iniherit,PRIORITY,optional)
> +	@$(call install_fixup, python3-iniherit,SECTION,base)
> +	@$(call install_fixup, python3-iniherit,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> +	@$(call install_fixup, python3-iniherit,DESCRIPTION,missing)
> +
> +	@$(call install_glob,python3-iniherit, 0, 0, -, \
> +		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)

I've not tested this yet, but installing everything in site-packages often
includes stuff that is not needed for the target. Please check for all the
other as well.

Micahel

> +
> +	@$(call install_finish, python3-iniherit)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.23.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@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

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

* [ptxdist] [PATCH v2] python3-iniherit: new package
  2019-11-19 15:03 [ptxdist] [PATCH] python3-iniherit: new package Lars Pedersen
  2019-11-25  7:01 ` Michael Olbrich
@ 2019-12-04 10:44 ` Lars Pedersen
  2019-12-05 10:44   ` [ptxdist] [PATCH v3] " Lars Pedersen
  1 sibling, 1 reply; 4+ messages in thread
From: Lars Pedersen @ 2019-12-04 10:44 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
v2:
 - Removed dependency on host-python3-setuptools
 - Fixed glob to only install pyc files
 - Added license files field

 rules/python3-iniherit.in   |  8 ++++++
 rules/python3-iniherit.make | 54 +++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 rules/python3-iniherit.in
 create mode 100644 rules/python3-iniherit.make

diff --git a/rules/python3-iniherit.in b/rules/python3-iniherit.in
new file mode 100644
index 000000000..69c4fa95d
--- /dev/null
+++ b/rules/python3-iniherit.in
@@ -0,0 +1,8 @@
+## SECTION=python3
+
+config PYTHON3_INIHERIT
+	tristate
+	prompt "python3-iniherit"
+		select PYTHON3
+	help
+	  Adds INI-file inheritance to ConfigParser
diff --git a/rules/python3-iniherit.make b/rules/python3-iniherit.make
new file mode 100644
index 000000000..c60c17b8d
--- /dev/null
+++ b/rules/python3-iniherit.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_INIHERIT) += python3-iniherit
+
+#
+# Paths and names
+#
+PYTHON3_INIHERIT_VERSION	:= 0.3.9
+PYTHON3_INIHERIT_MD5		:= 0e501d38a1ad7c9bde7bff9387d4a582
+PYTHON3_INIHERIT		:= iniherit-$(PYTHON3_INIHERIT_VERSION)
+PYTHON3_INIHERIT_SUFFIX		:= tar.gz
+PYTHON3_INIHERIT_URL		:= https://files.pythonhosted.org/packages/source/i/iniherit/$(PYTHON3_INIHERIT).$(PYTHON3_INIHERIT_SUFFIX)
+PYTHON3_INIHERIT_SOURCE		:= $(SRCDIR)/$(PYTHON3_INIHERIT).$(PYTHON3_INIHERIT_SUFFIX)
+PYTHON3_INIHERIT_DIR		:= $(BUILDDIR)/$(PYTHON3_INIHERIT)
+PYTHON3_INIHERIT_LICENSE	:= MIT
+PYTHON3_INIHERIT_LICENSE_FILES	:= \
+	file://LICENSE.txt;md5=ccfdd023b4e59440af77d101a05dc5ed
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_INIHERIT_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-iniherit.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-iniherit)
+	@$(call install_fixup, python3-iniherit,PRIORITY,optional)
+	@$(call install_fixup, python3-iniherit,SECTION,base)
+	@$(call install_fixup, python3-iniherit,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, python3-iniherit,DESCRIPTION,missing)
+
+	@$(call install_glob,python3-iniherit, 0, 0, -, \
+		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,*.pyc,)
+
+	@$(call install_finish, python3-iniherit)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.23.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH v3] python3-iniherit: new package
  2019-12-04 10:44 ` [ptxdist] [PATCH v2] " Lars Pedersen
@ 2019-12-05 10:44   ` Lars Pedersen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Pedersen @ 2019-12-05 10:44 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
v2:
 - Removed dependency on host-python3-setuptools
 - Fixed glob to only install pyc files
 - Added license files field
v3:
 - Fixed in file tab indentation

 rules/python3-iniherit.in   |  8 ++++++
 rules/python3-iniherit.make | 54 +++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 rules/python3-iniherit.in
 create mode 100644 rules/python3-iniherit.make

diff --git a/rules/python3-iniherit.in b/rules/python3-iniherit.in
new file mode 100644
index 000000000..dc128aa2f
--- /dev/null
+++ b/rules/python3-iniherit.in
@@ -0,0 +1,8 @@
+## SECTION=python3
+
+config PYTHON3_INIHERIT
+	tristate
+	prompt "python3-iniherit"
+	select PYTHON3
+	help
+	  Adds INI-file inheritance to ConfigParser
diff --git a/rules/python3-iniherit.make b/rules/python3-iniherit.make
new file mode 100644
index 000000000..c60c17b8d
--- /dev/null
+++ b/rules/python3-iniherit.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_INIHERIT) += python3-iniherit
+
+#
+# Paths and names
+#
+PYTHON3_INIHERIT_VERSION	:= 0.3.9
+PYTHON3_INIHERIT_MD5		:= 0e501d38a1ad7c9bde7bff9387d4a582
+PYTHON3_INIHERIT		:= iniherit-$(PYTHON3_INIHERIT_VERSION)
+PYTHON3_INIHERIT_SUFFIX		:= tar.gz
+PYTHON3_INIHERIT_URL		:= https://files.pythonhosted.org/packages/source/i/iniherit/$(PYTHON3_INIHERIT).$(PYTHON3_INIHERIT_SUFFIX)
+PYTHON3_INIHERIT_SOURCE		:= $(SRCDIR)/$(PYTHON3_INIHERIT).$(PYTHON3_INIHERIT_SUFFIX)
+PYTHON3_INIHERIT_DIR		:= $(BUILDDIR)/$(PYTHON3_INIHERIT)
+PYTHON3_INIHERIT_LICENSE	:= MIT
+PYTHON3_INIHERIT_LICENSE_FILES	:= \
+	file://LICENSE.txt;md5=ccfdd023b4e59440af77d101a05dc5ed
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_INIHERIT_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-iniherit.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-iniherit)
+	@$(call install_fixup, python3-iniherit,PRIORITY,optional)
+	@$(call install_fixup, python3-iniherit,SECTION,base)
+	@$(call install_fixup, python3-iniherit,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, python3-iniherit,DESCRIPTION,missing)
+
+	@$(call install_glob,python3-iniherit, 0, 0, -, \
+		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,*.pyc,)
+
+	@$(call install_finish, python3-iniherit)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.23.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2019-12-05 10:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-19 15:03 [ptxdist] [PATCH] python3-iniherit: new package Lars Pedersen
2019-11-25  7:01 ` Michael Olbrich
2019-12-04 10:44 ` [ptxdist] [PATCH v2] " Lars Pedersen
2019-12-05 10:44   ` [ptxdist] [PATCH v3] " Lars Pedersen

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