From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Lars Pedersen <lapeddk@gmail.com>
Subject: Re: [ptxdist] [APPLIED] python3-yoyo-migrations: new package
Date: Tue, 20 Jul 2021 13:48:27 +0200 [thread overview]
Message-ID: <20210720114827.2555845-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20210705094004.56639-2-lapeddk@gmail.com>
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
next prev parent reply other threads:[~2021-07-20 11:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-05 9:40 [ptxdist] [PATCH 1/2] python3-tabulate: " Lars Pedersen
2021-07-05 9:40 ` [ptxdist] [PATCH 2/2] python3-yoyo-migrations: " Lars Pedersen
2021-07-20 11:48 ` Michael Olbrich [this message]
2021-07-20 11:48 ` [ptxdist] [APPLIED] python3-tabulate: " 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=20210720114827.2555845-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=lapeddk@gmail.com \
--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