All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegorslists@googlemail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/4] package/python-cheetah3: new package
Date: Wed, 11 Mar 2020 10:52:27 +0100	[thread overview]
Message-ID: <CAGm1_ksT7idUMatv3nqEHh7cr5fa-vWqR5oX_igRzNXa=DTvWw@mail.gmail.com> (raw)
In-Reply-To: <20191026152943.122511-3-titouan.christophe@railnova.eu>

Hi Titouan, all,

On Sat, Oct 26, 2019 at 5:30 PM Titouan Christophe
<titouan.christophe@railnova.eu> wrote:
>
> From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>
> host-python-cheetah3 for host-python3 is required for mongodb 4.1.10
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> [Titouan: Fix comment line contains UTF-8 characters]
> Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>

cheetah3 seems to be a drop-in replacement for cheetah [1]. So I would
suggest just to bump the python-cheetah package.

Another question is, what to do with the markdown dependency [2]? If
it is really required then we make this package Py3 only (because of
python-markdown) and hence, don't need
HOST_PYTHON_CHEETAH3_NEEDS_HOST_PYTHON = python3.

[1] https://github.com/CheetahTemplate3/cheetah3/issues/2
[2] https://github.com/CheetahTemplate3/cheetah3/issues/24

Yegor


>  DEVELOPERS                                   |  1 +
>  package/Config.in                            |  1 +
>  package/python-cheetah3/Config.in            |  6 ++++++
>  package/python-cheetah3/python-cheetah3.hash |  5 +++++
>  package/python-cheetah3/python-cheetah3.mk   | 18 ++++++++++++++++++
>  5 files changed, 31 insertions(+)
>  create mode 100644 package/python-cheetah3/Config.in
>  create mode 100644 package/python-cheetah3/python-cheetah3.hash
>  create mode 100644 package/python-cheetah3/python-cheetah3.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index b9e6881419..952b49fa17 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -867,6 +867,7 @@ F:  package/oniguruma/
>  F:     package/oprofile/
>  F:     package/pcmanfm/
>  F:     package/python-backcall/
> +F:     package/python-cheetah3/
>  F:     package/python-jedi/
>  F:     package/python-parso/
>  F:     package/rygel/
> diff --git a/package/Config.in b/package/Config.in
> index 901c25fe02..9a22aa1e52 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -860,6 +860,7 @@ menu "External python modules"
>         source "package/python-characteristic/Config.in"
>         source "package/python-chardet/Config.in"
>         source "package/python-cheetah/Config.in"
> +       source "package/python-cheetah3/Config.in"
>         source "package/python-cheroot/Config.in"
>         source "package/python-cherrypy/Config.in"
>         source "package/python-click/Config.in"
> diff --git a/package/python-cheetah3/Config.in b/package/python-cheetah3/Config.in
> new file mode 100644
> index 0000000000..9c5761f556
> --- /dev/null
> +++ b/package/python-cheetah3/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_PYTHON_CHEETAH3
> +       bool "python-cheetah3"
> +       help
> +         Cheetah is a template engine and code generation tool.
> +
> +         http://cheetahtemplate.org/
> diff --git a/package/python-cheetah3/python-cheetah3.hash b/package/python-cheetah3/python-cheetah3.hash
> new file mode 100644
> index 0000000000..67f4a720db
> --- /dev/null
> +++ b/package/python-cheetah3/python-cheetah3.hash
> @@ -0,0 +1,5 @@
> +# md5, sha256 from https://pypi.org/pypi/cheetah3/json
> +md5    e0cbd10b6fa0d4b294f7fb6453d85a2a  Cheetah3-3.2.1.tar.gz
> +sha256 685f961d2761e140bfea67156a013313acda66a229edc6c8708b71d9080ece9c  Cheetah3-3.2.1.tar.gz
> +# Locally computed sha256 checksums
> +sha256 21b356594daaefc1b482b7f7ef2b7a83910c95ebd49d7170ce6ec5a18f084442  LICENSE
> diff --git a/package/python-cheetah3/python-cheetah3.mk b/package/python-cheetah3/python-cheetah3.mk
> new file mode 100644
> index 0000000000..38a0921297
> --- /dev/null
> +++ b/package/python-cheetah3/python-cheetah3.mk
> @@ -0,0 +1,18 @@
> +################################################################################
> +#
> +# python-cheetah3
> +#
> +################################################################################
> +
> +PYTHON_CHEETAH3_VERSION = 3.2.1
> +PYTHON_CHEETAH3_SOURCE = Cheetah3-$(PYTHON_CHEETAH3_VERSION).tar.gz
> +PYTHON_CHEETAH3_SITE = https://files.pythonhosted.org/packages/d8/49/25d1d310c274433e1bc82736483f2c57f870688deddb0c56f296dcfe36f7
> +PYTHON_CHEETAH3_SETUP_TYPE = setuptools
> +PYTHON_CHEETAH3_LICENSE = MIT
> +PYTHON_CHEETAH3_LICENSE_FILES = LICENSE
> +
> +# Needed to build mongodb
> +HOST_PYTHON_CHEETAH3_NEEDS_HOST_PYTHON = python3
> +
> +$(eval $(python-package))
> +$(eval $(host-python-package))
> --
> 2.21.0
>

  reply	other threads:[~2020-03-11  9:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-26 15:29 [Buildroot] [PATCH v2 0/4] package/mongodb: Bump to v4.1.10 Titouan Christophe
2019-10-26 15:29 ` [Buildroot] [PATCH v2 1/4] package/python-psutil: add host variant Titouan Christophe
2019-10-26 15:29 ` [Buildroot] [PATCH v2 2/4] package/python-cheetah3: new package Titouan Christophe
2020-03-11  9:52   ` Yegor Yefremov [this message]
2020-03-12  7:30     ` Yegor Yefremov
2019-10-26 15:29 ` [Buildroot] [PATCH v2 3/4] package/python-pyyaml: add a host-python3 dependency for host variant Titouan Christophe
2019-10-26 17:16   ` Thomas Petazzoni
2020-03-11 10:07     ` Yegor Yefremov
2019-10-26 15:29 ` [Buildroot] [PATCH v2 4/4] package/mongodb: bump to version 4.1.10 Titouan Christophe

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='CAGm1_ksT7idUMatv3nqEHh7cr5fa-vWqR5oX_igRzNXa=DTvWw@mail.gmail.com' \
    --to=yegorslists@googlemail.com \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.