mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/2] python3-tabulate: new package
@ 2021-07-05  9:40 Lars Pedersen
  2021-07-05  9:40 ` [ptxdist] [PATCH 2/2] python3-yoyo-migrations: " Lars Pedersen
  2021-07-20 11:48 ` [ptxdist] [APPLIED] python3-tabulate: " Michael Olbrich
  0 siblings, 2 replies; 4+ messages in thread
From: Lars Pedersen @ 2021-07-05  9:40 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
 rules/python3-tabulate.in   |  8 ++++++
 rules/python3-tabulate.make | 54 +++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 rules/python3-tabulate.in
 create mode 100644 rules/python3-tabulate.make

diff --git a/rules/python3-tabulate.in b/rules/python3-tabulate.in
new file mode 100644
index 000000000..cbca26140
--- /dev/null
+++ b/rules/python3-tabulate.in
@@ -0,0 +1,8 @@
+## SECTION=python3
+
+config PYTHON3_TABULATE
+	tristate
+	select PYTHON3
+	prompt "tabulate"
+	help
+	  Pretty-print tabular data in Python, a library and a command-line utility
diff --git a/rules/python3-tabulate.make b/rules/python3-tabulate.make
new file mode 100644
index 000000000..3665e1e45
--- /dev/null
+++ b/rules/python3-tabulate.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 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_TABULATE) += python3-tabulate
+
+#
+# Paths and names
+#
+PYTHON3_TABULATE_VERSION	:= 0.8.9
+PYTHON3_TABULATE_MD5		:= 71e6f214512ceda2892be47767156754
+PYTHON3_TABULATE		:= tabulate-$(PYTHON3_TABULATE_VERSION)
+PYTHON3_TABULATE_SUFFIX		:= tar.gz
+PYTHON3_TABULATE_URL		:= $(call ptx/mirror-pypi, tabulate, $(PYTHON3_TABULATE).$(PYTHON3_TABULATE_SUFFIX))
+PYTHON3_TABULATE_SOURCE		:= $(SRCDIR)/$(PYTHON3_TABULATE).$(PYTHON3_TABULATE_SUFFIX)
+PYTHON3_TABULATE_DIR		:= $(BUILDDIR)/$(PYTHON3_TABULATE)
+PYTHON3_TABULATE_LICENSE	:= MIT
+PYTHON3_TABULATE_LICENSE_FILES := \
+	file://LICENSE;md5=fad5a39bdfe452b13775adda41023ba7
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_TABULATE_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-tabulate.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-tabulate)
+	@$(call install_fixup, python3-tabulate,PRIORITY,optional)
+	@$(call install_fixup, python3-tabulate,SECTION,base)
+	@$(call install_fixup, python3-tabulate,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, python3-tabulate,DESCRIPTION,missing)
+
+	@$(call install_glob, python3-tabulate, 0, 0, -, \
+		$(PYTHON3_SITEPACKAGES),, *.py)
+
+	@$(call install_finish, python3-tabulate)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.31.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] 4+ messages in thread

* [ptxdist] [PATCH 2/2] python3-yoyo-migrations: new package
  2021-07-05  9:40 [ptxdist] [PATCH 1/2] python3-tabulate: new package Lars Pedersen
@ 2021-07-05  9:40 ` Lars Pedersen
  2021-07-20 11:48   ` [ptxdist] [APPLIED] " Michael Olbrich
  2021-07-20 11:48 ` [ptxdist] [APPLIED] python3-tabulate: " Michael Olbrich
  1 sibling, 1 reply; 4+ messages in thread
From: Lars Pedersen @ 2021-07-05  9:40 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Yoyo is a database schema migration tool using python and depends on new
package python3-tabulate

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
 rules/python3-yoyo-migrations.in   | 13 ++++++
 rules/python3-yoyo-migrations.make | 70 ++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+)
 create mode 100644 rules/python3-yoyo-migrations.in
 create mode 100644 rules/python3-yoyo-migrations.make

diff --git a/rules/python3-yoyo-migrations.in b/rules/python3-yoyo-migrations.in
new file mode 100644
index 000000000..d01286d0b
--- /dev/null
+++ b/rules/python3-yoyo-migrations.in
@@ -0,0 +1,13 @@
+## SECTION=python3
+
+config PYTHON3_YOYO_MIGRATIONS
+	tristate
+	prompt "python3-yoyo-migrations"
+	select PYTHON3
+	select PYTHON3_SETUPTOOLS
+	select PYTHON3_INIHERIT
+	select PYTHON3_TEXT_UNIDECODE
+	select PYTHON3_SQLPARSE
+	select PYTHON3_TABULATE
+	help
+	  Yoyo is a database schema migration tool using python.
diff --git a/rules/python3-yoyo-migrations.make b/rules/python3-yoyo-migrations.make
new file mode 100644
index 000000000..d6f9c3c2b
--- /dev/null
+++ b/rules/python3-yoyo-migrations.make
@@ -0,0 +1,70 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 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_YOYO_MIGRATIONS) += python3-yoyo-migrations
+
+#
+# Paths and names
+#
+PYTHON3_YOYO_MIGRATIONS_VERSION	:= 7.3.2
+PYTHON3_YOYO_MIGRATIONS_MD5	:= bf1f70e0198a8dae5eb78e864d545456
+PYTHON3_YOYO_MIGRATIONS		:= yoyo-migrations-$(PYTHON3_YOYO_MIGRATIONS_VERSION)
+PYTHON3_YOYO_MIGRATIONS_SUFFIX	:= tar.gz
+PYTHON3_YOYO_MIGRATIONS_URL	:= $(call ptx/mirror-pypi, yoyo-migrations, $(PYTHON3_YOYO_MIGRATIONS).$(PYTHON3_YOYO_MIGRATIONS_SUFFIX))
+PYTHON3_YOYO_MIGRATIONS_SOURCE	:= $(SRCDIR)/$(PYTHON3_YOYO_MIGRATIONS).$(PYTHON3_YOYO_MIGRATIONS_SUFFIX)
+PYTHON3_YOYO_MIGRATIONS_DIR	:= $(BUILDDIR)/$(PYTHON3_YOYO_MIGRATIONS)
+PYTHON3_YOYO_MIGRATIONS_LICENSE	:= Apache-2.0
+PYTHON3_YOYO_MIGRATIONS_LICENSE_FILES := \
+	file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_YOYO_MIGRATIONS_CONF_TOOL	:= python3
+PYTHON3_YOYO_MIGRATIONS_MAKE_OPT	:= install_scripts
+
+# ----------------------------------------------------------------------------
+# Install post
+# ----------------------------------------------------------------------------
+
+# Fix python shebang from an absolute path in yoyo and yoyo-migrate install_scripts
+$(STATEDIR)/python3-yoyo-migrations.install.post:
+	@$(call targetinfo)
+	@sed -i -e '1s,^.*$$,\#\!\/usr\/bin\/python3,g' "$(PTXDIST_PLATFORMDIR)/packages/$(PYTHON3_YOYO_MIGRATIONS)/usr/bin/yoyo"
+	@sed -i -e '1s,^.*$$,\#\!\/usr\/bin\/python3,g' "$(PTXDIST_PLATFORMDIR)/packages/$(PYTHON3_YOYO_MIGRATIONS)/usr/bin/yoyo-migrate"
+
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-yoyo-migrations.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-yoyo-migrations)
+	@$(call install_fixup, python3-yoyo-migrations,PRIORITY,optional)
+	@$(call install_fixup, python3-yoyo-migrations,SECTION,base)
+	@$(call install_fixup, python3-yoyo-migrations,Lars Pedersen,"<lapeddk@gmail.com>")
+	@$(call install_fixup, python3-yoyo-migrations,DESCRIPTION,missing)
+
+	@$(call install_glob,python3-yoyo-migrations, 0, 0, -, \
+		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+	@$(call install_copy, python3-yoyo-migrations, 0, 0, 0775, -, /usr/bin/yoyo)
+	@$(call install_copy, python3-yoyo-migrations, 0, 0, 0775, -, /usr/bin/yoyo-migrate)
+
+	@$(call install_finish, python3-yoyo-migrations)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.31.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] 4+ messages in thread

* Re: [ptxdist] [APPLIED] python3-tabulate: new package
  2021-07-05  9:40 [ptxdist] [PATCH 1/2] python3-tabulate: new package Lars Pedersen
  2021-07-05  9:40 ` [ptxdist] [PATCH 2/2] python3-yoyo-migrations: " Lars Pedersen
@ 2021-07-20 11:48 ` Michael Olbrich
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2021-07-20 11:48 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Thanks, applied as d6f28c84bd5a543d721a3c83fe519141fd4e0ef4.

Michael

[sent from post-receive hook]

On Tue, 20 Jul 2021 13:48:25 +0200, Lars Pedersen <lapeddk@gmail.com> wrote:
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> Message-Id: <20210705094004.56639-1-lapeddk@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/python3-tabulate.in b/rules/python3-tabulate.in
> new file mode 100644
> index 000000000000..cbca26140c07
> --- /dev/null
> +++ b/rules/python3-tabulate.in
> @@ -0,0 +1,8 @@
> +## SECTION=python3
> +
> +config PYTHON3_TABULATE
> +	tristate
> +	select PYTHON3
> +	prompt "tabulate"
> +	help
> +	  Pretty-print tabular data in Python, a library and a command-line utility
> diff --git a/rules/python3-tabulate.make b/rules/python3-tabulate.make
> new file mode 100644
> index 000000000000..3665e1e45ed3
> --- /dev/null
> +++ b/rules/python3-tabulate.make
> @@ -0,0 +1,54 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 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_TABULATE) += python3-tabulate
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_TABULATE_VERSION	:= 0.8.9
> +PYTHON3_TABULATE_MD5		:= 71e6f214512ceda2892be47767156754
> +PYTHON3_TABULATE		:= tabulate-$(PYTHON3_TABULATE_VERSION)
> +PYTHON3_TABULATE_SUFFIX		:= tar.gz
> +PYTHON3_TABULATE_URL		:= $(call ptx/mirror-pypi, tabulate, $(PYTHON3_TABULATE).$(PYTHON3_TABULATE_SUFFIX))
> +PYTHON3_TABULATE_SOURCE		:= $(SRCDIR)/$(PYTHON3_TABULATE).$(PYTHON3_TABULATE_SUFFIX)
> +PYTHON3_TABULATE_DIR		:= $(BUILDDIR)/$(PYTHON3_TABULATE)
> +PYTHON3_TABULATE_LICENSE	:= MIT
> +PYTHON3_TABULATE_LICENSE_FILES := \
> +	file://LICENSE;md5=fad5a39bdfe452b13775adda41023ba7
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_TABULATE_CONF_TOOL	:= python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-tabulate.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, python3-tabulate)
> +	@$(call install_fixup, python3-tabulate,PRIORITY,optional)
> +	@$(call install_fixup, python3-tabulate,SECTION,base)
> +	@$(call install_fixup, python3-tabulate,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> +	@$(call install_fixup, python3-tabulate,DESCRIPTION,missing)
> +
> +	@$(call install_glob, python3-tabulate, 0, 0, -, \
> +		$(PYTHON3_SITEPACKAGES),, *.py)
> +
> +	@$(call install_finish, python3-tabulate)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


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

* Re: [ptxdist] [APPLIED] python3-yoyo-migrations: new package
  2021-07-05  9:40 ` [ptxdist] [PATCH 2/2] python3-yoyo-migrations: " Lars Pedersen
@ 2021-07-20 11:48   ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2021-07-20 11:48 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Thanks, applied as 3cc2718d5f814d9579dfd47cfb9eb213e2c9cbce.

Michael

[sent from post-receive hook]

On Tue, 20 Jul 2021 13:48:27 +0200, Lars Pedersen <lapeddk@gmail.com> wrote:
> Yoyo is a database schema migration tool using python and depends on new
> package python3-tabulate
> 
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> Message-Id: <20210705094004.56639-2-lapeddk@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/python3-yoyo-migrations.in b/rules/python3-yoyo-migrations.in
> new file mode 100644
> index 000000000000..d01286d0b0a9
> --- /dev/null
> +++ b/rules/python3-yoyo-migrations.in
> @@ -0,0 +1,13 @@
> +## SECTION=python3
> +
> +config PYTHON3_YOYO_MIGRATIONS
> +	tristate
> +	prompt "python3-yoyo-migrations"
> +	select PYTHON3
> +	select PYTHON3_SETUPTOOLS
> +	select PYTHON3_INIHERIT
> +	select PYTHON3_TEXT_UNIDECODE
> +	select PYTHON3_SQLPARSE
> +	select PYTHON3_TABULATE
> +	help
> +	  Yoyo is a database schema migration tool using python.
> diff --git a/rules/python3-yoyo-migrations.make b/rules/python3-yoyo-migrations.make
> new file mode 100644
> index 000000000000..d6f9c3c2b96d
> --- /dev/null
> +++ b/rules/python3-yoyo-migrations.make
> @@ -0,0 +1,70 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 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_YOYO_MIGRATIONS) += python3-yoyo-migrations
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_YOYO_MIGRATIONS_VERSION	:= 7.3.2
> +PYTHON3_YOYO_MIGRATIONS_MD5	:= bf1f70e0198a8dae5eb78e864d545456
> +PYTHON3_YOYO_MIGRATIONS		:= yoyo-migrations-$(PYTHON3_YOYO_MIGRATIONS_VERSION)
> +PYTHON3_YOYO_MIGRATIONS_SUFFIX	:= tar.gz
> +PYTHON3_YOYO_MIGRATIONS_URL	:= $(call ptx/mirror-pypi, yoyo-migrations, $(PYTHON3_YOYO_MIGRATIONS).$(PYTHON3_YOYO_MIGRATIONS_SUFFIX))
> +PYTHON3_YOYO_MIGRATIONS_SOURCE	:= $(SRCDIR)/$(PYTHON3_YOYO_MIGRATIONS).$(PYTHON3_YOYO_MIGRATIONS_SUFFIX)
> +PYTHON3_YOYO_MIGRATIONS_DIR	:= $(BUILDDIR)/$(PYTHON3_YOYO_MIGRATIONS)
> +PYTHON3_YOYO_MIGRATIONS_LICENSE	:= Apache-2.0
> +PYTHON3_YOYO_MIGRATIONS_LICENSE_FILES := \
> +	file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_YOYO_MIGRATIONS_CONF_TOOL	:= python3
> +PYTHON3_YOYO_MIGRATIONS_MAKE_OPT	:= install_scripts
> +
> +# ----------------------------------------------------------------------------
> +# Install post
> +# ----------------------------------------------------------------------------
> +
> +# Fix python shebang from an absolute path in yoyo and yoyo-migrate install_scripts
> +$(STATEDIR)/python3-yoyo-migrations.install.post:
> +	@$(call targetinfo)
> +	@sed -i -e '1s,^.*$$,\#\!\/usr\/bin\/python3,g' "$(PTXDIST_PLATFORMDIR)/packages/$(PYTHON3_YOYO_MIGRATIONS)/usr/bin/yoyo"
> +	@sed -i -e '1s,^.*$$,\#\!\/usr\/bin\/python3,g' "$(PTXDIST_PLATFORMDIR)/packages/$(PYTHON3_YOYO_MIGRATIONS)/usr/bin/yoyo-migrate"
> +
> +	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-yoyo-migrations.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, python3-yoyo-migrations)
> +	@$(call install_fixup, python3-yoyo-migrations,PRIORITY,optional)
> +	@$(call install_fixup, python3-yoyo-migrations,SECTION,base)
> +	@$(call install_fixup, python3-yoyo-migrations,Lars Pedersen,"<lapeddk@gmail.com>")
> +	@$(call install_fixup, python3-yoyo-migrations,DESCRIPTION,missing)
> +
> +	@$(call install_glob,python3-yoyo-migrations, 0, 0, -, \
> +		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
> +
> +	@$(call install_copy, python3-yoyo-migrations, 0, 0, 0775, -, /usr/bin/yoyo)
> +	@$(call install_copy, python3-yoyo-migrations, 0, 0, 0775, -, /usr/bin/yoyo-migrate)
> +
> +	@$(call install_finish, python3-yoyo-migrations)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


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

end of thread, other threads:[~2021-07-20 11:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05  9:40 [ptxdist] [PATCH 1/2] python3-tabulate: new package Lars Pedersen
2021-07-05  9:40 ` [ptxdist] [PATCH 2/2] python3-yoyo-migrations: " Lars Pedersen
2021-07-20 11:48   ` [ptxdist] [APPLIED] " Michael Olbrich
2021-07-20 11:48 ` [ptxdist] [APPLIED] python3-tabulate: " Michael Olbrich

mailarchive of the ptxdist mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://lore.ptxdist.org/ptxdist/0 ptxdist/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ptxdist ptxdist/ https://lore.ptxdist.org/ptxdist \
		ptxdist@pengutronix.de
	public-inbox-index ptxdist

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git