diff mbox series

[v2,2/5] python-sqlalchemy: new package

Message ID 20180206132506.30389-2-aduskett@gmail.com
State Accepted
Headers show
Series [v2,1/5] python-psycopg2: new package | expand

Commit Message

Adam Duskett Feb. 6, 2018, 1:25 p.m. UTC
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives
application developers the full power and flexibility of SQL.

It provides a full suite of well known enterprise-level persistence patterns,
designed for efficient and high-performing database access, adapted into a
simple and Pythonic domain language.

Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
Changes v1 -> v2:
  - None

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

Comments

Yegor Yefremov Feb. 6, 2018, 1:38 p.m. UTC | #1
On Tue, Feb 6, 2018 at 2:25 PM, Adam Duskett <aduskett@gmail.com> wrote:
> SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives
> application developers the full power and flexibility of SQL.
>
> It provides a full suite of well known enterprise-level persistence patterns,
> designed for efficient and high-performing database access, adapted into a
> simple and Pythonic domain language.
>
> Signed-off-by: Adam Duskett <aduskett@gmail.com>

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

> ---
> Changes v1 -> v2:
>   - None
>
>  DEVELOPERS                                       |  1 +
>  package/Config.in                                |  1 +
>  package/python-sqlalchemy/Config.in              | 13 +++++++++++++
>  package/python-sqlalchemy/python-sqlalchemy.hash |  4 ++++
>  package/python-sqlalchemy/python-sqlalchemy.mk   | 14 ++++++++++++++
>  5 files changed, 33 insertions(+)
>  create mode 100644 package/python-sqlalchemy/Config.in
>  create mode 100644 package/python-sqlalchemy/python-sqlalchemy.hash
>  create mode 100644 package/python-sqlalchemy/python-sqlalchemy.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 8cf0836a1a..f82f33a1c0 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -53,6 +53,7 @@ F:    package/nginx-naxsi/
>  F:     package/policycoreutils/
>  F:     package/python-mutagen/
>  F:     package/python-psycopg2/
> +F:     package/python-sqlalchemy/
>  F:     package/restorecond/
>  F:     package/refpolicy/
>  F:     package/selinux-python/
> diff --git a/package/Config.in b/package/Config.in
> index b039dea58f..d250b59995 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -919,6 +919,7 @@ menu "External python modules"
>         source "package/python-socketio/Config.in"
>         source "package/python-sortedcontainers//Config.in"
>         source "package/python-spidev/Config.in"
> +       source "package/python-sqlalchemy/Config.in"
>         source "package/python-systemd/Config.in"
>         source "package/python-tabledata/Config.in"
>         source "package/python-tempora/Config.in"
> diff --git a/package/python-sqlalchemy/Config.in b/package/python-sqlalchemy/Config.in
> new file mode 100644
> index 0000000000..65d3622e2e
> --- /dev/null
> +++ b/package/python-sqlalchemy/Config.in
> @@ -0,0 +1,13 @@
> +config BR2_PACKAGE_PYTHON_SQLALCHEMY
> +       bool "python-sqlalchemy"
> +       help
> +         SQLAlchemy is the Python SQL toolkit and Object Relational
> +         Mapper that gives application developers the full power and
> +         flexibility of SQL.
> +
> +         It provides a full suite of well known enterprise-level
> +         persistence patterns, designed for efficient and
> +         high-performing database access, adapted into a simple and
> +         Pythonic domain language.
> +
> +         http://www.sqlalchemy.org
> diff --git a/package/python-sqlalchemy/python-sqlalchemy.hash b/package/python-sqlalchemy/python-sqlalchemy.hash
> new file mode 100644
> index 0000000000..9e13a2f20f
> --- /dev/null
> +++ b/package/python-sqlalchemy/python-sqlalchemy.hash
> @@ -0,0 +1,4 @@
> +# md5 from https://pypi.python.org/pypi/SQLAlchemy/json, sha256 locally computed
> +md5    968e07dc0aa92f9205bb3877f33f498f  SQLAlchemy-1.2.2.tar.gz
> +sha256 64b4720f0a8e033db0154d3824f5bf677cf2797e11d44743cf0aebd2a0499d9d  SQLAlchemy-1.2.2.tar.gz
> +sha256 73bda3d7d6c568f494c1d12520a97d41a38b7ce91d88c21f1b469b747b17f7fd  LICENSE
> diff --git a/package/python-sqlalchemy/python-sqlalchemy.mk b/package/python-sqlalchemy/python-sqlalchemy.mk
> new file mode 100644
> index 0000000000..c0023712a2
> --- /dev/null
> +++ b/package/python-sqlalchemy/python-sqlalchemy.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# python-sqlalchemy
> +#
> +################################################################################
> +
> +PYTHON_SQLALCHEMY_VERSION = 1.2.2
> +PYTHON_SQLALCHEMY_SOURCE = SQLAlchemy-$(PYTHON_SQLALCHEMY_VERSION).tar.gz
> +PYTHON_SQLALCHEMY_SITE = https://pypi.python.org/packages/b9/fb/a56d2fc0ce3571328fa872734ad124cae25a4cea422088987f865fb71787
> +PYTHON_SQLALCHEMY_SETUP_TYPE = setuptools
> +PYTHON_SQLALCHEMY_LICENSE = MIT
> +PYTHON_SQLALCHEMY_LICENSE_FILES = LICENSE
> +
> +$(eval $(python-package))
> --
> 2.14.3
>
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Thomas Petazzoni Feb. 10, 2018, 3:21 p.m. UTC | #2
Hello,

Thanks for this contribution.

On Tue,  6 Feb 2018 08:25:03 -0500, Adam Duskett wrote:
> SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives
> application developers the full power and flexibility of SQL.
> 
> It provides a full suite of well known enterprise-level persistence patterns,
> designed for efficient and high-performing database access, adapted into a
> simple and Pythonic domain language.
> 
> Signed-off-by: Adam Duskett <aduskett@gmail.com>

It would be nice to run check-package before submitting packages:

$ ./utils/check-package package/python-sqlalchemy/*
package/python-sqlalchemy/Config.in:2: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-sqlalchemy/Config.in:3: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-sqlalchemy/Config.in:4: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-sqlalchemy/Config.in:5: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-sqlalchemy/Config.in:6: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-sqlalchemy/Config.in:8: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-sqlalchemy/Config.in:9: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-sqlalchemy/Config.in:10: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-sqlalchemy/Config.in:11: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
31 lines processed
9 warnings generated

I've fixed those issues and applied to next. Thanks!

Thomas
diff mbox series

Patch

diff --git a/DEVELOPERS b/DEVELOPERS
index 8cf0836a1a..f82f33a1c0 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -53,6 +53,7 @@  F:	package/nginx-naxsi/
 F:	package/policycoreutils/
 F:	package/python-mutagen/
 F:	package/python-psycopg2/
+F:	package/python-sqlalchemy/
 F:	package/restorecond/
 F:	package/refpolicy/
 F:	package/selinux-python/
diff --git a/package/Config.in b/package/Config.in
index b039dea58f..d250b59995 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -919,6 +919,7 @@  menu "External python modules"
 	source "package/python-socketio/Config.in"
 	source "package/python-sortedcontainers//Config.in"
 	source "package/python-spidev/Config.in"
+	source "package/python-sqlalchemy/Config.in"
 	source "package/python-systemd/Config.in"
 	source "package/python-tabledata/Config.in"
 	source "package/python-tempora/Config.in"
diff --git a/package/python-sqlalchemy/Config.in b/package/python-sqlalchemy/Config.in
new file mode 100644
index 0000000000..65d3622e2e
--- /dev/null
+++ b/package/python-sqlalchemy/Config.in
@@ -0,0 +1,13 @@ 
+config BR2_PACKAGE_PYTHON_SQLALCHEMY
+       bool "python-sqlalchemy"
+       help
+         SQLAlchemy is the Python SQL toolkit and Object Relational
+         Mapper that gives application developers the full power and
+         flexibility of SQL.
+
+         It provides a full suite of well known enterprise-level
+         persistence patterns, designed for efficient and
+         high-performing database access, adapted into a simple and
+         Pythonic domain language.
+
+         http://www.sqlalchemy.org
diff --git a/package/python-sqlalchemy/python-sqlalchemy.hash b/package/python-sqlalchemy/python-sqlalchemy.hash
new file mode 100644
index 0000000000..9e13a2f20f
--- /dev/null
+++ b/package/python-sqlalchemy/python-sqlalchemy.hash
@@ -0,0 +1,4 @@ 
+# md5 from https://pypi.python.org/pypi/SQLAlchemy/json, sha256 locally computed
+md5    968e07dc0aa92f9205bb3877f33f498f  SQLAlchemy-1.2.2.tar.gz
+sha256 64b4720f0a8e033db0154d3824f5bf677cf2797e11d44743cf0aebd2a0499d9d  SQLAlchemy-1.2.2.tar.gz
+sha256 73bda3d7d6c568f494c1d12520a97d41a38b7ce91d88c21f1b469b747b17f7fd  LICENSE
diff --git a/package/python-sqlalchemy/python-sqlalchemy.mk b/package/python-sqlalchemy/python-sqlalchemy.mk
new file mode 100644
index 0000000000..c0023712a2
--- /dev/null
+++ b/package/python-sqlalchemy/python-sqlalchemy.mk
@@ -0,0 +1,14 @@ 
+################################################################################
+#
+# python-sqlalchemy
+#
+################################################################################
+
+PYTHON_SQLALCHEMY_VERSION = 1.2.2
+PYTHON_SQLALCHEMY_SOURCE = SQLAlchemy-$(PYTHON_SQLALCHEMY_VERSION).tar.gz
+PYTHON_SQLALCHEMY_SITE = https://pypi.python.org/packages/b9/fb/a56d2fc0ce3571328fa872734ad124cae25a4cea422088987f865fb71787
+PYTHON_SQLALCHEMY_SETUP_TYPE = setuptools
+PYTHON_SQLALCHEMY_LICENSE = MIT
+PYTHON_SQLALCHEMY_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))