[v2,2/2] python-reentry: new package

Message ID 20180507203429.31102-1-asafka7@gmail.com
State Accepted
Headers show
Series
  • Untitled series #43034
Related show

Commit Message

Asaf Kahlon May 7, 2018, 8:34 p.m.
A plugin manager based on setuptools entry points mechanism.

Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
---

v2: add pypi site to package/python-reentry/Config.in and put the package in the 
correct place on package/Config.in.

 DEVELOPERS                                 |  1 +
 package/Config.in                          |  1 +
 package/python-reentry/Config.in           | 10 ++++++++++
 package/python-reentry/python-reentry.hash |  4 ++++
 package/python-reentry/python-reentry.mk   | 14 ++++++++++++++
 5 files changed, 30 insertions(+)
 create mode 100644 package/python-reentry/Config.in
 create mode 100644 package/python-reentry/python-reentry.hash
 create mode 100644 package/python-reentry/python-reentry.mk

Comments

Yegor Yefremov May 7, 2018, 9:15 p.m. | #1
On Mon, May 7, 2018 at 10:34 PM, Asaf Kahlon <asafka7@gmail.com> wrote:
> A plugin manager based on setuptools entry points mechanism.
>
> Signed-off-by: Asaf Kahlon <asafka7@gmail.com>

Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>

> ---
>
> v2: add pypi site to package/python-reentry/Config.in and put the package in the
> correct place on package/Config.in.
>
>  DEVELOPERS                                 |  1 +
>  package/Config.in                          |  1 +
>  package/python-reentry/Config.in           | 10 ++++++++++
>  package/python-reentry/python-reentry.hash |  4 ++++
>  package/python-reentry/python-reentry.mk   | 14 ++++++++++++++
>  5 files changed, 30 insertions(+)
>  create mode 100644 package/python-reentry/Config.in
>  create mode 100644 package/python-reentry/python-reentry.hash
>  create mode 100644 package/python-reentry/python-reentry.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 7c0b7f0f28..261c556ad8 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -192,6 +192,7 @@ F:  package/stress/
>  N:     Asaf Kahlon <asafka7@gmail.com>
>  F:     package/python-jsonmodels/
>  F:     package/python-py/
> +F:     package/python-reentry/
>  F:     package/python-subprocess32/
>  F:     package/python-yieldfrom/
>  F:     package/zeromq/
> diff --git a/package/Config.in b/package/Config.in
> index a922c67a8e..b7234f3a7d 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -913,6 +913,7 @@ menu "External python modules"
>         source "package/python-pyyaml/Config.in"
>         source "package/python-pyzmq/Config.in"
>         source "package/python-raven/Config.in"
> +       source "package/python-reentry/Config.in"
>         source "package/python-remi/Config.in"
>         source "package/python-requests/Config.in"
>         source "package/python-requests-oauthlib/Config.in"
> diff --git a/package/python-reentry/Config.in b/package/python-reentry/Config.in
> new file mode 100644
> index 0000000000..18518f2c3f
> --- /dev/null
> +++ b/package/python-reentry/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_PYTHON_REENTRY
> +       bool "python-reentry"
> +       select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
> +       select BR2_PACKAGE_PYTHON_CLICK # runtime
> +       select BR2_PACKAGE_PYTHON_SIX # runtime
> +       select BR2_PACKAGE_PYTHON_PY # runtime
> +       help
> +         A plugin manager based on setuptools entry points mechanism.
> +
> +         https://pypi.org/project/reentry/
> diff --git a/package/python-reentry/python-reentry.hash b/package/python-reentry/python-reentry.hash
> new file mode 100644
> index 0000000000..7a3bbf4d99
> --- /dev/null
> +++ b/package/python-reentry/python-reentry.hash
> @@ -0,0 +1,4 @@
> +# sha256 from https://pypi.org/pypi/reentry/json
> +sha256 00df980d8c61713f5002d4d893ba6ea38e9a721cd04aef5a520b974e700ab550  reentry-1.2.0.tar.gz
> +# Locally computed sha256 checksums
> +sha256 4ae7f3216208a7e2327236e95bcd2397b2495f1c2298c708986c893bea608509  LICENSE
> diff --git a/package/python-reentry/python-reentry.mk b/package/python-reentry/python-reentry.mk
> new file mode 100644
> index 0000000000..d3f0e03ef0
> --- /dev/null
> +++ b/package/python-reentry/python-reentry.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# python-reentry
> +#
> +################################################################################
> +
> +PYTHON_REENTRY_VERSION = 1.2.0
> +PYTHON_REENTRY_SOURCE = reentry-$(PYTHON_REENTRY_VERSION).tar.gz
> +PYTHON_REENTRY_SITE = https://files.pythonhosted.org/packages/e2/b4/46dfac6613302fea51454a01aebedae9440aff9d813aedbbc5f687552e3b
> +PYTHON_REENTRY_SETUP_TYPE = setuptools
> +PYTHON_REENTRY_LICENSE = MIT
> +PYTHON_REENTRY_LICENSE_FILES = LICENSE
> +
> +$(eval $(python-package))
> --
> 2.17.0
>
Thomas Petazzoni May 19, 2018, 9:22 p.m. | #2
Hello,

On Mon,  7 May 2018 23:34:29 +0300, Asaf Kahlon wrote:
> A plugin manager based on setuptools entry points mechanism.
> 
> Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
> ---

Applied to next, thanks.

Thomas

Patch

diff --git a/DEVELOPERS b/DEVELOPERS
index 7c0b7f0f28..261c556ad8 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -192,6 +192,7 @@  F:	package/stress/
 N:	Asaf Kahlon <asafka7@gmail.com>
 F:	package/python-jsonmodels/
 F:	package/python-py/
+F:	package/python-reentry/
 F:	package/python-subprocess32/
 F:	package/python-yieldfrom/
 F:	package/zeromq/
diff --git a/package/Config.in b/package/Config.in
index a922c67a8e..b7234f3a7d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -913,6 +913,7 @@  menu "External python modules"
 	source "package/python-pyyaml/Config.in"
 	source "package/python-pyzmq/Config.in"
 	source "package/python-raven/Config.in"
+	source "package/python-reentry/Config.in"
 	source "package/python-remi/Config.in"
 	source "package/python-requests/Config.in"
 	source "package/python-requests-oauthlib/Config.in"
diff --git a/package/python-reentry/Config.in b/package/python-reentry/Config.in
new file mode 100644
index 0000000000..18518f2c3f
--- /dev/null
+++ b/package/python-reentry/Config.in
@@ -0,0 +1,10 @@ 
+config BR2_PACKAGE_PYTHON_REENTRY
+	bool "python-reentry"
+	select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
+	select BR2_PACKAGE_PYTHON_CLICK # runtime
+	select BR2_PACKAGE_PYTHON_SIX # runtime
+	select BR2_PACKAGE_PYTHON_PY # runtime
+	help
+	  A plugin manager based on setuptools entry points mechanism.
+
+	  https://pypi.org/project/reentry/
diff --git a/package/python-reentry/python-reentry.hash b/package/python-reentry/python-reentry.hash
new file mode 100644
index 0000000000..7a3bbf4d99
--- /dev/null
+++ b/package/python-reentry/python-reentry.hash
@@ -0,0 +1,4 @@ 
+# sha256 from https://pypi.org/pypi/reentry/json
+sha256	00df980d8c61713f5002d4d893ba6ea38e9a721cd04aef5a520b974e700ab550  reentry-1.2.0.tar.gz
+# Locally computed sha256 checksums
+sha256	4ae7f3216208a7e2327236e95bcd2397b2495f1c2298c708986c893bea608509  LICENSE
diff --git a/package/python-reentry/python-reentry.mk b/package/python-reentry/python-reentry.mk
new file mode 100644
index 0000000000..d3f0e03ef0
--- /dev/null
+++ b/package/python-reentry/python-reentry.mk
@@ -0,0 +1,14 @@ 
+################################################################################
+#
+# python-reentry
+#
+################################################################################
+
+PYTHON_REENTRY_VERSION = 1.2.0
+PYTHON_REENTRY_SOURCE = reentry-$(PYTHON_REENTRY_VERSION).tar.gz
+PYTHON_REENTRY_SITE = https://files.pythonhosted.org/packages/e2/b4/46dfac6613302fea51454a01aebedae9440aff9d813aedbbc5f687552e3b
+PYTHON_REENTRY_SETUP_TYPE = setuptools
+PYTHON_REENTRY_LICENSE = MIT
+PYTHON_REENTRY_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))