python-psycopg2: new package
PATCH v2 1/5 python-psycopg2: new package
Psycopg is the most popular PostgreSQL database adapter for the Python programming language. Its main features are the complete implementation of the Python DB API 2.0 specification and the thread safety (several threads can share the same connection). It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a large number of concurrent INSERTs or UPDATEs.
---
Changes v1 -> v2:
- None
DEVELOPERS | 1 + package/Config.in | 1 + .../python-psycopg2/0001-don-t-use-pg_config.patch | 49 ++++++++++++++++++++++ package/python-psycopg2/Config.in | 23 ++++++++++ package/python-psycopg2/python-psycopg2.hash | 4 ++ package/python-psycopg2/python-psycopg2.mk | 20 +++++++++ 6 files changed, 98 insertions(+) create mode 100644 package/python-psycopg2/0001-don-t-use-pg_config.patch create mode 100644 package/python-psycopg2/Config.in create mode 100644 package/python-psycopg2/python-psycopg2.hash create mode 100644 package/python-psycopg2/python-psycopg2.mk
DEVELOPERS +1 -0
@@ -52,6 +52,7 @@ F: package/libsepol/ F: package/nginx-naxsi/ F: package/policycoreutils/ F: package/python-mutagen/ +F: package/python-psycopg2/ F: package/restorecond/ F: package/refpolicy/ F: package/selinux-python/
package/Config.in +1 -0
@@ -844,6 +844,7 @@ menu "External python modules" source "package/python-prompt-toolkit/Config.in" source "package/python-protobuf/Config.in" source "package/python-psutil/Config.in" + source "package/python-psycopg2/Config.in" source "package/python-ptyprocess/Config.in" source "package/python-pudb/Config.in" source "package/python-pyasn/Config.in"
package/python-psycopg2/0001-don-t-use-pg_config.patch new file +49 -0
49 lines not on this page · raw message
package/python-psycopg2/Config.in new file +23 -0
@@ -0,0 +1,23 @@ +config BR2_PACKAGE_PYTHON_PSYCOPG2 + bool "python-psycopg2" + select BR2_PACKAGE_POSTGRESQL + help + Psycopg is the most popular PostgreSQL database adapter for + the Python programming language. Its main features are the + complete implementation of the Python DB API 2.0 specification + and the thread safety (several threads can share the same + connection). It was designed for heavily multi-threaded + applications that create and destroy lots of cursors and make + a large number of concurrent INSERTs or UPDATEs. + + Psycopg 2 is mostly implemented in C as a libpq wrapper, + resulting in being both efficient and secure. It features + client-side and server-side cursors, asynchronous + communication and notifications, COPY support. Many Python + types are supported out-of-the-box and adapted to matching + PostgreSQL data types; adaptation can be extended and + customized thanks to a flexible objects adaptation system. + + Psycopg 2 is both Unicode and Python 3 friendly. + + http://initd.org/psycopg/
package/python-psycopg2/python-psycopg2.hash new file +4 -0
@@ -0,0 +1,4 @@ +# md5 from https://pypi.python.org/pypi/psycopg2/json, sha256 locally computed +md5 8114e672d5f23fa5329874a4314fbd6f psycopg2-2.7.3.2.tar.gz +sha256 5c3213be557d0468f9df8fe2487eaf2990d9799202c5ff5cb8d394d09fad9b2a psycopg2-2.7.3.2.tar.gz +sha256 1752db3c786e12b62ca804178dca033adce8bff4c4b3d98d3449d407fe45210d LICENSE
package/python-psycopg2/python-psycopg2.mk new file +20 -0
@@ -0,0 +1,20 @@ +################################################################################ +# +# python-psycopg2 +# +################################################################################ + +PYTHON_PSYCOPG2_VERSION = 2.7.3.2 +PYTHON_PSYCOPG2_SOURCE = psycopg2-$(PYTHON_PSYCOPG2_VERSION).tar.gz +PYTHON_PSYCOPG2_SITE = https://pypi.python.org/packages/dd/47/000b405d73ca22980684fd7bd3318690cc03cfa3b2ae1c5b7fff8050b28a +PYTHON_PSYCOPG2_SETUP_TYPE = setuptools +PYTHON_PSYCOPG2_LICENSE = LGPL-3.0+ +PYTHON_PSYCOPG2_LICENSE_FILES = LICENSE +PYTHON_PSYCOPG2_DEPENDENCIES = postgresql + +# Force psycopg2 to use the BuildRoot provided postgresql version instead of +# The host machines +PYTHON_PSYCOPG2_ENV += \ + PSYCOPG2_POSTGRESQL_VERSION=$(POSTGRESQL_VERSION) + +$(eval $(python-package))
Signature · 1 line
2.14.3
PATCH v2 2/5 python-sqlalchemy: new package
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.
---
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
DEVELOPERS +1 -0
@@ -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/
package/Config.in +1 -0
@@ -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"
package/python-sqlalchemy/Config.in new file +13 -0
@@ -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
package/python-sqlalchemy/python-sqlalchemy.hash new file +4 -0
@@ -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
package/python-sqlalchemy/python-sqlalchemy.mk new file +14 -0
@@ -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))
Signature · 1 line
2.14.3
PATCH v2 2/5 python-sqlalchemy: new package
Quoted 8 lines · Adam Duskett
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 <[email protected]>
Quoted 94 lines
---
Changes v1 -> v2:
- NoneDEVELOPERS | 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.mkDEVELOPERS +1
-0@@ -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/package/Config.in +1
-0@@ -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"package/python-sqlalchemy/Config.in new file +13
-0@@ -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.orgpackage/python-sqlalchemy/python-sqlalchemy.hash new file +4
-0@@ -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 LICENSEpackage/python-sqlalchemy/python-sqlalchemy.mk new file +14
-1@@ -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 at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v2 2/5 python-sqlalchemy: new package
In reply to Adam DuskettHello,
Thanks for this contribution.
Quoted 8 lines · Adam Duskett
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 <[email protected]>
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
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com
PATCH v2 3/5 python-flask-sqlalchemy: new package
In reply to Adam DuskettFlask-SQLAlchemy is a Flask microframework extension which adds support for the SQLAlchemy SQL toolkit/ORM.
---
Changes v1 -> v2:
- Changed license to BSD-3c (yegor)
DEVELOPERS | 1 + package/Config.in | 1 + package/python-flask-sqlalchemy/Config.in | 9 +++++++++ .../python-flask-sqlalchemy/python-flask-sqlalchemy.hash | 4 ++++ package/python-flask-sqlalchemy/python-flask-sqlalchemy.mk | 14 ++++++++++++++ 5 files changed, 29 insertions(+) create mode 100644 package/python-flask-sqlalchemy/Config.in create mode 100644 package/python-flask-sqlalchemy/python-flask-sqlalchemy.hash create mode 100644 package/python-flask-sqlalchemy/python-flask-sqlalchemy.mk
DEVELOPERS +1 -0
@@ -51,6 +51,7 @@ F: package/libsemanage/ F: package/libsepol/ F: package/nginx-naxsi/ F: package/policycoreutils/ +F: package/python-flask-sqlalchemy/ F: package/python-mutagen/ F: package/python-psycopg2/ F: package/python-sqlalchemy/
package/Config.in +1 -0
@@ -774,6 +774,7 @@ menu "External python modules" source "package/python-flask-babel/Config.in" source "package/python-flask-jsonrpc/Config.in" source "package/python-flask-login/Config.in" + source "package/python-flask-sqlalchemy/Config.in" source "package/python-flup/Config.in" source "package/python-futures/Config.in" source "package/python-gobject/Config.in"
package/python-flask-sqlalchemy/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_FLASK_SQLALCHEMY + bool "python-flask-sqlalchemy" + select BR2_PACKAGE_PYTHON_FLASK # runtime + select BR2_PACKAGE_PYTHON_SQLALCHEMY # runtime + help + Flask-SQLAlchemy is a Flask microframework extension which + adds support for the SQLAlchemy SQL toolkit/ORM. + + http://github.com/mitsuhiko/flask-sqlalchemy
package/python-flask-sqlalchemy/python-flask-sqlalchemy.hash new file +4 -0
@@ -0,0 +1,4 @@ +# md5 from https://pypi.python.org/pypi/Flask-SQLAlchemy/json, sha256 locally computed +md5 373ce61dfd03b593ad2eaba68c9fee35 Flask-SQLAlchemy-2.3.2.tar.gz +sha256 5971b9852b5888655f11db634e87725a9031e170f37c0ce7851cf83497f56e53 Flask-SQLAlchemy-2.3.2.tar.gz +sha256 de2011f25501c45f2b78bfa4f851ce021cfbab0f1e7ab763233688e0b969821f PKG-INFO
package/python-flask-sqlalchemy/python-flask-sqlalchemy.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# python-flask-sqlalchemy +# +################################################################################ + +PYTHON_FLASK_SQLALCHEMY_VERSION = 2.3.2 +PYTHON_FLASK_SQLALCHEMY_SOURCE = Flask-SQLAlchemy-$(PYTHON_FLASK_SQLALCHEMY_VERSION).tar.gz +PYTHON_FLASK_SQLALCHEMY_SITE = https://pypi.python.org/packages/3a/66/f5ace276517c075f102457dd2f7d8645b033758f9c6effb4e0970a90fec1 +PYTHON_FLASK_SQLALCHEMY_SETUP_TYPE = setuptools +PYTHON_FLASK_SQLALCHEMY_LICENSE = BSD-3c +PYTHON_FLASK_SQLALCHEMY_LICENSE_FILES = PKG-INFO + +$(eval $(python-package))
Signature · 1 line
2.14.3
PATCH v2 3/5 python-flask-sqlalchemy: new package
Quoted 4 lines · Adam Duskett
Flask-SQLAlchemy is a Flask microframework extension which adds support for the SQLAlchemy SQL toolkit/ORM.
Signed-off-by Adam Duskett <[email protected]>
Quoted 90 lines
---
Changes v1 -> v2:
- Changed license to BSD-3c (yegor)DEVELOPERS | 1 + package/Config.in | 1 + package/python-flask-sqlalchemy/Config.in | 9 +++++++++ .../python-flask-sqlalchemy/python-flask-sqlalchemy.hash | 4 ++++ package/python-flask-sqlalchemy/python-flask-sqlalchemy.mk | 14 ++++++++++++++ 5 files changed, 29 insertions(+) create mode 100644 package/python-flask-sqlalchemy/Config.in create mode 100644 package/python-flask-sqlalchemy/python-flask-sqlalchemy.hash create mode 100644 package/python-flask-sqlalchemy/python-flask-sqlalchemy.mkDEVELOPERS +1
-0@@ -51,6 +51,7 @@ F: package/libsemanage/ F: package/libsepol/ F: package/nginx-naxsi/ F: package/policycoreutils/ +F: package/python-flask-sqlalchemy/ F: package/python-mutagen/ F: package/python-psycopg2/ F: package/python-sqlalchemy/package/Config.in +1
-0@@ -774,6 +774,7 @@ menu "External python modules" source "package/python-flask-babel/Config.in" source "package/python-flask-jsonrpc/Config.in" source "package/python-flask-login/Config.in" + source "package/python-flask-sqlalchemy/Config.in" source "package/python-flup/Config.in" source "package/python-futures/Config.in" source "package/python-gobject/Config.in"package/python-flask-sqlalchemy/Config.in new file +9
-0@@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_FLASK_SQLALCHEMY + bool "python-flask-sqlalchemy" + select BR2_PACKAGE_PYTHON_FLASK # runtime + select BR2_PACKAGE_PYTHON_SQLALCHEMY # runtime + help + Flask-SQLAlchemy is a Flask microframework extension which + adds support for the SQLAlchemy SQL toolkit/ORM. + + http://github.com/mitsuhiko/flask-sqlalchemypackage/python-flask-sqlalchemy/python-flask-sqlalchemy.hash new file +4
-0@@ -0,0 +1,4 @@ +# md5 from https://pypi.python.org/pypi/Flask-SQLAlchemy/json, sha256 locally computed +md5 373ce61dfd03b593ad2eaba68c9fee35 Flask-SQLAlchemy-2.3.2.tar.gz +sha256 5971b9852b5888655f11db634e87725a9031e170f37c0ce7851cf83497f56e53 Flask-SQLAlchemy-2.3.2.tar.gz +sha256 de2011f25501c45f2b78bfa4f851ce021cfbab0f1e7ab763233688e0b969821f PKG-INFOpackage/python-flask-sqlalchemy/python-flask-sqlalchemy.mk new file +14
-1@@ -0,0 +1,14 @@ +################################################################################ +# +# python-flask-sqlalchemy +# +################################################################################ + +PYTHON_FLASK_SQLALCHEMY_VERSION = 2.3.2 +PYTHON_FLASK_SQLALCHEMY_SOURCE = Flask-SQLAlchemy-$(PYTHON_FLASK_SQLALCHEMY_VERSION).tar.gz +PYTHON_FLASK_SQLALCHEMY_SITE = https://pypi.python.org/packages/3a/66/f5ace276517c075f102457dd2f7d8645b033758f9c6effb4e0970a90fec1 +PYTHON_FLASK_SQLALCHEMY_SETUP_TYPE = setuptools +PYTHON_FLASK_SQLALCHEMY_LICENSE = BSD-3c +PYTHON_FLASK_SQLALCHEMY_LICENSE_FILES = PKG-INFO + +$(eval $(python-package)) --2.14.3
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v2 3/5 python-flask-sqlalchemy: new package
In reply to Adam DuskettHello,
Quoted 7 lines · Adam Duskett
Flask-SQLAlchemy is a Flask microframework extension which adds support for the SQLAlchemy SQL toolkit/ORM.
Signed-off-by Adam Duskett <[email protected]>---
Changes v1 -> v2:
- Changed license to BSD-3c (yegor)
This one also had check-package warnings, which I fixed, and applied to next. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 4/5 python-visitor: new package
In reply to Adam DuskettA tiny library to facilitate visitor implementation in Python
---
Changes v1 -> v2:
- None
DEVELOPERS | 1 + package/Config.in | 1 + package/python-visitor/Config.in | 6 ++++++ package/python-visitor/python-visitor.hash | 4 ++++ package/python-visitor/python-visitor.mk | 14 ++++++++++++++ 5 files changed, 26 insertions(+) create mode 100644 package/python-visitor/Config.in create mode 100644 package/python-visitor/python-visitor.hash create mode 100644 package/python-visitor/python-visitor.mk
DEVELOPERS +1 -0
@@ -55,6 +55,7 @@ F: package/python-flask-sqlalchemy/ F: package/python-mutagen/ F: package/python-psycopg2/ F: package/python-sqlalchemy/ +F: package/python-visitor/ F: package/restorecond/ F: package/refpolicy/ F: package/selinux-python/
package/Config.in +1 -0
@@ -940,6 +940,7 @@ menu "External python modules" source "package/python-urllib3/Config.in" source "package/python-urwid/Config.in" source "package/python-versiontools/Config.in" + source "package/python-visitor/Config.in" source "package/python-watchdog/Config.in" source "package/python-wcwidth/Config.in" source "package/python-web2py/Config.in"
package/python-visitor/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_VISITOR + bool "python-visitor" + help + A tiny pythonic visitor implementation. + + http://github.com/mbr/visitor
package/python-visitor/python-visitor.hash new file +4 -0
@@ -0,0 +1,4 @@ +# md5 from https://pypi.python.org/pypi/visitor/json, sha256 locally computed +md5 94a024ed0ec1b02b4497c15267d319ca visitor-0.1.3.tar.gz +sha256 2c737903b2b6864ebc6167eef7cf3b997126f1aa94bdf590f90f1436d23e480a visitor-0.1.3.tar.gz +sha256 184d1ebb65da97ada36447f3c028f2fd4890b874f17b18c023ce200dd96639af LICENSE
package/python-visitor/python-visitor.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# python-visitor +# +################################################################################ + +PYTHON_VISITOR_VERSION = 0.1.3 +PYTHON_VISITOR_SOURCE = visitor-$(PYTHON_VISITOR_VERSION).tar.gz +PYTHON_VISITOR_SITE = https://pypi.python.org/packages/d7/58/785fcd6de4210049da5fafe62301b197f044f3835393594be368547142b0 +PYTHON_VISITOR_SETUP_TYPE = setuptools +PYTHON_VISITOR_LICENSE = MIT +PYTHON_VISITOR_LICENSE_FILES = LICENSE + +$(eval $(python-package))
Signature · 1 line
2.14.3
PATCH v2 4/5 python-visitor: new package
Quoted 3 lines · Adam Duskett
A tiny library to facilitate visitor implementation in Python
Signed-off-by Adam Duskett <[email protected]>
Quoted 87 lines
---
Changes v1 -> v2:
- NoneDEVELOPERS | 1 + package/Config.in | 1 + package/python-visitor/Config.in | 6 ++++++ package/python-visitor/python-visitor.hash | 4 ++++ package/python-visitor/python-visitor.mk | 14 ++++++++++++++ 5 files changed, 26 insertions(+) create mode 100644 package/python-visitor/Config.in create mode 100644 package/python-visitor/python-visitor.hash create mode 100644 package/python-visitor/python-visitor.mkDEVELOPERS +1
-0@@ -55,6 +55,7 @@ F: package/python-flask-sqlalchemy/ F: package/python-mutagen/ F: package/python-psycopg2/ F: package/python-sqlalchemy/ +F: package/python-visitor/ F: package/restorecond/ F: package/refpolicy/ F: package/selinux-python/package/Config.in +1
-0@@ -940,6 +940,7 @@ menu "External python modules" source "package/python-urllib3/Config.in" source "package/python-urwid/Config.in" source "package/python-versiontools/Config.in" + source "package/python-visitor/Config.in" source "package/python-watchdog/Config.in" source "package/python-wcwidth/Config.in" source "package/python-web2py/Config.in"package/python-visitor/Config.in new file +6
-0@@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_VISITOR + bool "python-visitor" + help + A tiny pythonic visitor implementation. + + http://github.com/mbr/visitorpackage/python-visitor/python-visitor.hash new file +4
-0@@ -0,0 +1,4 @@ +# md5 from https://pypi.python.org/pypi/visitor/json, sha256 locally computed +md5 94a024ed0ec1b02b4497c15267d319ca visitor-0.1.3.tar.gz +sha256 2c737903b2b6864ebc6167eef7cf3b997126f1aa94bdf590f90f1436d23e480a visitor-0.1.3.tar.gz +sha256 184d1ebb65da97ada36447f3c028f2fd4890b874f17b18c023ce200dd96639af LICENSEpackage/python-visitor/python-visitor.mk new file +14
-1@@ -0,0 +1,14 @@ +################################################################################ +# +# python-visitor +# +################################################################################ + +PYTHON_VISITOR_VERSION = 0.1.3 +PYTHON_VISITOR_SOURCE = visitor-$(PYTHON_VISITOR_VERSION).tar.gz +PYTHON_VISITOR_SITE = https://pypi.python.org/packages/d7/58/785fcd6de4210049da5fafe62301b197f044f3835393594be368547142b0 +PYTHON_VISITOR_SETUP_TYPE = setuptools +PYTHON_VISITOR_LICENSE = MIT +PYTHON_VISITOR_LICENSE_FILES = LICENSE + +$(eval $(python-package)) --2.14.3
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v2 4/5 python-visitor: new package
In reply to Adam DuskettHello,
Quoted 3 lines · Adam Duskett
A tiny library to facilitate visitor implementation in Python
Signed-off-by Adam Duskett <[email protected]>
This patch had some check-package warnings:
package/python-visitor/Config.in:2: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-visitor/Config.in:3: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-visitor/Config.in:4: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
I fixed them and applied. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 5/5 python-flask-bootstrap: new package
In reply to Adam DuskettFlask-Bootstrap packages Bootstrap into an extension that mostly consists of a blueprint named 'bootstrap'. It can also create links to serve Bootstrap from a CDN and works with no boilerplate code in your application.
---
Changes v1 -> v2:
- Changed license to BSD-3c (yegor)
DEVELOPERS | 1 + package/Config.in | 1 + package/python-flask-bootstrap/Config.in | 12 ++++++++++++ package/python-flask-bootstrap/python-flask-bootstrap.hash | 3 +++ package/python-flask-bootstrap/python-flask-bootstrap.mk | 13 +++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 package/python-flask-bootstrap/Config.in create mode 100644 package/python-flask-bootstrap/python-flask-bootstrap.hash create mode 100644 package/python-flask-bootstrap/python-flask-bootstrap.mk
DEVELOPERS +1 -0
@@ -51,6 +51,7 @@ F: package/libsemanage/ F: package/libsepol/ F: package/nginx-naxsi/ F: package/policycoreutils/ +F: package/python-flask-bootstrap/ F: package/python-flask-sqlalchemy/ F: package/python-mutagen/ F: package/python-psycopg2/
package/Config.in +1 -0
@@ -772,6 +772,7 @@ menu "External python modules" source "package/python-flask/Config.in" source "package/python-flask-cors/Config.in" source "package/python-flask-babel/Config.in" + source "package/python-flask-bootstrap/Config.in" source "package/python-flask-jsonrpc/Config.in" source "package/python-flask-login/Config.in"
source "package/python-flask-sqlalchemy/Config.in"
package/python-flask-bootstrap/Config.in new file +12 -0
@@ -0,0 +1,12 @@ +config BR2_PACKAGE_PYTHON_FLASK_BOOTSTRAP + bool "python-flask-bootstrap" + select BR2_PACKAGE_PYTHON_FLASK # runtime + select BR2_PACKAGE_PYTHON_DOMINATE # runtime + select BR2_PACKAGE_PYTHON_VISITOR # runtime + help + Flask-Bootstrap packages Bootstrap into an extension that + mostly consists of a blueprint named 'bootstrap'. It can also + create links to serve Bootstrap from a CDN and works with no + boilerplate code in your application. + + http://github.com/mbr/flask-bootstrap
package/python-flask-bootstrap/python-flask-bootstrap.hash new file +3 -0
@@ -0,0 +1,3 @@ +# md5 from https://pypi.python.org/pypi/Flask-Bootstrap/json, sha256 locally computed +md5 e40d50f5c5b6438c1c6200a6f2871f81 Flask-Bootstrap-3.3.7.1.tar.gz +sha256 cb08ed940183f6343a64e465e83b3a3f13c53e1baabb8d72b5da4545ef123ac8 Flask-Bootstrap-3.3.7.1.tar.gz
package/python-flask-bootstrap/python-flask-bootstrap.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# python-flask-bootstrap +# +################################################################################ + +PYTHON_FLASK_BOOTSTRAP_VERSION = 3.3.7.1 +PYTHON_FLASK_BOOTSTRAP_SOURCE = Flask-Bootstrap-$(PYTHON_FLASK_BOOTSTRAP_VERSION).tar.gz +PYTHON_FLASK_BOOTSTRAP_SITE = https://pypi.python.org/packages/88/53/958ce7c2aa26280b7fd7f3eecbf13053f1302ee2acb1db58ef32e1c23c2a +PYTHON_FLASK_BOOTSTRAP_SETUP_TYPE = setuptools +PYTHON_FLASK_BOOTSTRAP_LICENSE = BSD-3c + +$(eval $(python-package))
Signature · 1 line
2.14.3
PATCH v2 5/5 python-flask-bootstrap: new package
Quoted 5 lines · Adam Duskett
Flask-Bootstrap packages Bootstrap into an extension that mostly consists of a blueprint named 'bootstrap'. It can also create links to serve Bootstrap from a CDN and works with no boilerplate code in your application.
Signed-off-by Adam Duskett <[email protected]>
Quoted 91 lines
---
Changes v1 -> v2:
- Changed license to BSD-3c (yegor)DEVELOPERS | 1 + package/Config.in | 1 + package/python-flask-bootstrap/Config.in | 12 ++++++++++++ package/python-flask-bootstrap/python-flask-bootstrap.hash | 3 +++ package/python-flask-bootstrap/python-flask-bootstrap.mk | 13 +++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 package/python-flask-bootstrap/Config.in create mode 100644 package/python-flask-bootstrap/python-flask-bootstrap.hash create mode 100644 package/python-flask-bootstrap/python-flask-bootstrap.mkDEVELOPERS +1
-0@@ -51,6 +51,7 @@ F: package/libsemanage/ F: package/libsepol/ F: package/nginx-naxsi/ F: package/policycoreutils/ +F: package/python-flask-bootstrap/ F: package/python-flask-sqlalchemy/ F: package/python-mutagen/ F: package/python-psycopg2/package/Config.in +1
-0@@ -772,6 +772,7 @@ menu "External python modules" source "package/python-flask/Config.in" source "package/python-flask-cors/Config.in" source "package/python-flask-babel/Config.in" + source "package/python-flask-bootstrap/Config.in" source "package/python-flask-jsonrpc/Config.in" source "package/python-flask-login/Config.in" source "package/python-flask-sqlalchemy/Config.in"package/python-flask-bootstrap/Config.in new file +12
-0@@ -0,0 +1,12 @@ +config BR2_PACKAGE_PYTHON_FLASK_BOOTSTRAP + bool "python-flask-bootstrap" + select BR2_PACKAGE_PYTHON_FLASK # runtime + select BR2_PACKAGE_PYTHON_DOMINATE # runtime + select BR2_PACKAGE_PYTHON_VISITOR # runtime + help + Flask-Bootstrap packages Bootstrap into an extension that + mostly consists of a blueprint named 'bootstrap'. It can also + create links to serve Bootstrap from a CDN and works with no + boilerplate code in your application. + + http://github.com/mbr/flask-bootstrappackage/python-flask-bootstrap/python-flask-bootstrap.hash new file +3
-0@@ -0,0 +1,3 @@ +# md5 from https://pypi.python.org/pypi/Flask-Bootstrap/json, sha256 locally computed +md5 e40d50f5c5b6438c1c6200a6f2871f81 Flask-Bootstrap-3.3.7.1.tar.gz +sha256 cb08ed940183f6343a64e465e83b3a3f13c53e1baabb8d72b5da4545ef123ac8 Flask-Bootstrap-3.3.7.1.tar.gzpackage/python-flask-bootstrap/python-flask-bootstrap.mk new file +13
-1@@ -0,0 +1,13 @@ +################################################################################ +# +# python-flask-bootstrap +# +################################################################################ + +PYTHON_FLASK_BOOTSTRAP_VERSION = 3.3.7.1 +PYTHON_FLASK_BOOTSTRAP_SOURCE = Flask-Bootstrap-$(PYTHON_FLASK_BOOTSTRAP_VERSION).tar.gz +PYTHON_FLASK_BOOTSTRAP_SITE = https://pypi.python.org/packages/88/53/958ce7c2aa26280b7fd7f3eecbf13053f1302ee2acb1db58ef32e1c23c2a +PYTHON_FLASK_BOOTSTRAP_SETUP_TYPE = setuptools +PYTHON_FLASK_BOOTSTRAP_LICENSE = BSD-3c + +$(eval $(python-package)) --2.14.3
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v2 5/5 python-flask-bootstrap: new package
In reply to Adam DuskettHello,
Quoted 5 lines · Adam Duskett
Flask-Bootstrap packages Bootstrap into an extension that mostly consists of a blueprint named 'bootstrap'. It can also create links to serve Bootstrap from a CDN and works with no boilerplate code in your application.
Signed-off-by Adam Duskett <[email protected]>
This package has a bunch of check-package warnings:
package/python-flask-bootstrap/Config.in:2: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-flask-bootstrap/Config.in:3: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-flask-bootstrap/Config.in:4: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-flask-bootstrap/Config.in:5: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-flask-bootstrap/Config.in:6: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-flask-bootstrap/Config.in:7: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-flask-bootstrap/Config.in:8: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-flask-bootstrap/Config.in:9: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-flask-bootstrap/Config.in:10: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
I had fixed them locally, but then I had another question.
Quoted 1 line
+PYTHON_FLASK_BOOTSTRAP_LICENSE = BSD-3c
How did you determine it was BSD-3c ? Originally you had just BSD (which isn't specific enough) and Yegor said it's BSD-3c, but I couldn't find where this information was coming from.
Yegor ?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 5/5 python-flask-bootstrap: new package
Quoted 23 lines · Thomas Petazzoni
Hello,
Quoted 5 lines · Adam Duskett
Flask-Bootstrap packages Bootstrap into an extension that mostly consists of a blueprint named 'bootstrap'. It can also create links to serve Bootstrap from a CDN and works with no boilerplate code in your application.
Signed-off-by Adam Duskett <[email protected]>This package has a bunch of check-package warnings:
package/python-flask-bootstrap/Config.in:2: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-flask-bootstrap/Config.in:3: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-flask-bootstrap/Config.in:4: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-flask-bootstrap/Config.in:5: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-flask-bootstrap/Config.in:6: should be indented with one tab (http://nightly.buildroot.org/#_config_files)
package/python-flask-bootstrap/Config.in:7: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-flask-bootstrap/Config.in:8: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-flask-bootstrap/Config.in:9: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/python-flask-bootstrap/Config.in:10: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)I had fixed them locally, but then I had another question.
Quoted 7 lines
Quoted 1 line
+PYTHON_FLASK_BOOTSTRAP_LICENSE = BSD-3c
How did you determine it was BSD-3c ? Originally you had just BSD (which isn't specific enough) and Yegor said it's BSD-3c, but I couldn't find where this information was coming from.
Yegor ?
I've looked at this file
https://github.com/mbr/flask-bootstrap/blob/master/LICENSE
The author also mentions Apache-2.0 license as the license of the original project.
Yegor
PATCH v2 5/5 python-flask-bootstrap: new package
Hello,
Quoted 2 lines · Yegor Yefremov
I've looked at this file
https://github.com/mbr/flask-bootstrap/blob/master/LICENSE
This file isn't distributed in the tarball from Pypi, at least I don't remember seeing it yesterday when I looked at the package source code.
Quoted 2 lines
The author also mentions Apache-2.0 license as the license of the original project.
And so, is this package just under BSD-3c, or under BSD-3c and Apache-2.0 ?
I'm not sure what the "original Bootstrap files" are, whether they are distributed with python-flask-bootstrap or not.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 5/5 python-flask-bootstrap: new package
Quoted 10 lines · Thomas Petazzoni
Hello,
Quoted 2 lines · Yegor Yefremov
I've looked at this file
https://github.com/mbr/flask-bootstrap/blob/master/LICENSEThis file isn't distributed in the tarball from Pypi, at least I don't remember seeing it yesterday when I looked at the package source code.
Quoted 8 lines
Quoted 2 lines
The author also mentions Apache-2.0 license as the license of the original project.
And so, is this package just under BSD-3c, or under BSD-3c and Apache-2.0 ?
I'm not sure what the "original Bootstrap files" are, whether they are distributed with python-flask-bootstrap or not.
I've opened an issue: https://github.com/mbr/flask-bootstrap/issues/181
Yegor
PATCH v2 5/5 python-flask-bootstrap: new package
In reply to Adam DuskettHello,
Quoted 5 lines · Adam Duskett
Flask-Bootstrap packages Bootstrap into an extension that mostly consists of a blueprint named 'bootstrap'. It can also create links to serve Bootstrap from a CDN and works with no boilerplate code in your application.
Signed-off-by Adam Duskett <[email protected]>
The license issue has not been resolved
(https://github.com/mbr/flask-bootstrap/issues/181) and the check-package issues have also not been fixed in a new iteration.
Consequently, I've marked this patch as Changes Requested.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 1/5 python-psycopg2: new package
In reply to Adam DuskettHello Yegor,
Any reason why you review all patches in this series, except this first one ? Do you have issues/comments with it, or is it just that you had no time/interest ?
Thanks a lot for having reviewed all other patches, that is very useful!
Thomas
Quoted 168 lines · Adam Duskett
Psycopg is the most popular PostgreSQL database adapter for the Python programming language. Its main features are the complete implementation of the Python DB API 2.0 specification and the thread safety (several threads can share the same connection). It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a large number of concurrent INSERTs or UPDATEs.
Signed-off-by Adam Duskett <[email protected]>---
Changes v1 -> v2:
- NoneDEVELOPERS | 1 + package/Config.in | 1 + .../python-psycopg2/0001-don-t-use-pg_config.patch | 49 ++++++++++++++++++++++ package/python-psycopg2/Config.in | 23 ++++++++++ package/python-psycopg2/python-psycopg2.hash | 4 ++ package/python-psycopg2/python-psycopg2.mk | 20 +++++++++ 6 files changed, 98 insertions(+) create mode 100644 package/python-psycopg2/0001-don-t-use-pg_config.patch create mode 100644 package/python-psycopg2/Config.in create mode 100644 package/python-psycopg2/python-psycopg2.hash create mode 100644 package/python-psycopg2/python-psycopg2.mkDEVELOPERS +1
-0@@ -52,6 +52,7 @@ F: package/libsepol/ F: package/nginx-naxsi/ F: package/policycoreutils/ F: package/python-mutagen/ +F: package/python-psycopg2/ F: package/restorecond/ F: package/refpolicy/ F: package/selinux-python/package/Config.in +1
-0@@ -844,6 +844,7 @@ menu "External python modules" source "package/python-prompt-toolkit/Config.in" source "package/python-protobuf/Config.in" source "package/python-psutil/Config.in" + source "package/python-psycopg2/Config.in" source "package/python-ptyprocess/Config.in" source "package/python-pudb/Config.in" source "package/python-pyasn/Config.in"package/python-psycopg2/0001-don-t-use-pg_config.patch new file +49
-0@@ -0,0 +1,49 @@ +From 92d42775735d1555449b860c214ca7265d7ad75b Mon Sep 17 00:00:00 2001 +From: Mark Asselstine <[email protected]> +Date: Tue, 24 Jan 2017 00:43:35 +0900 +Subject: [PATCH] setup: don't use pg_config + +pg_config is used to get library and include directories, and the postgresql +version. All of which is not available in the cross compiled version. + +Signed-off-by: Mark Asselstine <[email protected]> +Signed-off-by: Huang Qiyu <[email protected]> +[aduskett at gmail.com: Update for psycopg2 2.7.3.2] +Signed-off-by: Adam Duskett <[email protected]> +--- + setup.py | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/setup.py b/setup.py +index 86f32d2..05b8eeb 100644 +--- a/setup.py ++++ b/setup.py +@@ -404,16 +404,13 @@ class psycopg_build_ext(build_ext): + self.libraries.append("pq") + + try: +- self.library_dirs.append(pg_config_helper.query("libdir")) +- self.include_dirs.append(pg_config_helper.query("includedir")) +- self.include_dirs.append(pg_config_helper.query("includedir-server")) + try: + # Here we take a conservative approach: we suppose that + # *at least* PostgreSQL 7.4 is available (this is the only + # 7.x series supported by psycopg 2) + pgversion = pg_config_helper.query("version").split()[1] + except: +- pgversion = "7.4.0" ++ pgversion = str(os.environ['PSYCOPG2_POSTGRESQL_VERSION']) + + verre = re.compile( + r"(\d+)(?:\.(\d+))?(?:(?:\.(\d+))|(devel|(?:alpha|beta|rc)\d+))?") +@@ -525,6 +522,7 @@ parser.read('setup.cfg') + # Choose a datetime module + have_pydatetime = True + have_mxdatetime = False ++pg_config="/bin/true" + use_pydatetime = int(parser.get('build_ext', 'use_pydatetime')) + + # check for mx package +-- +2.14.3 +package/python-psycopg2/Config.in new file +23
-0@@ -0,0 +1,23 @@ +config BR2_PACKAGE_PYTHON_PSYCOPG2 + bool "python-psycopg2" + select BR2_PACKAGE_POSTGRESQL + help + Psycopg is the most popular PostgreSQL database adapter for + the Python programming language. Its main features are the + complete implementation of the Python DB API 2.0 specification + and the thread safety (several threads can share the same + connection). It was designed for heavily multi-threaded + applications that create and destroy lots of cursors and make + a large number of concurrent INSERTs or UPDATEs. + + Psycopg 2 is mostly implemented in C as a libpq wrapper, + resulting in being both efficient and secure. It features + client-side and server-side cursors, asynchronous + communication and notifications, COPY support. Many Python + types are supported out-of-the-box and adapted to matching + PostgreSQL data types; adaptation can be extended and + customized thanks to a flexible objects adaptation system. + + Psycopg 2 is both Unicode and Python 3 friendly. + + http://initd.org/psycopg/package/python-psycopg2/python-psycopg2.hash new file +4
-0@@ -0,0 +1,4 @@ +# md5 from https://pypi.python.org/pypi/psycopg2/json, sha256 locally computed +md5 8114e672d5f23fa5329874a4314fbd6f psycopg2-2.7.3.2.tar.gz +sha256 5c3213be557d0468f9df8fe2487eaf2990d9799202c5ff5cb8d394d09fad9b2a psycopg2-2.7.3.2.tar.gz +sha256 1752db3c786e12b62ca804178dca033adce8bff4c4b3d98d3449d407fe45210d LICENSEpackage/python-psycopg2/python-psycopg2.mk new file +20
-0@@ -0,0 +1,20 @@ +################################################################################ +# +# python-psycopg2 +# +################################################################################ + +PYTHON_PSYCOPG2_VERSION = 2.7.3.2 +PYTHON_PSYCOPG2_SOURCE = psycopg2-$(PYTHON_PSYCOPG2_VERSION).tar.gz +PYTHON_PSYCOPG2_SITE = https://pypi.python.org/packages/dd/47/000b405d73ca22980684fd7bd3318690cc03cfa3b2ae1c5b7fff8050b28a +PYTHON_PSYCOPG2_SETUP_TYPE = setuptools +PYTHON_PSYCOPG2_LICENSE = LGPL-3.0+ +PYTHON_PSYCOPG2_LICENSE_FILES = LICENSE +PYTHON_PSYCOPG2_DEPENDENCIES = postgresql + +# Force psycopg2 to use the BuildRoot provided postgresql version instead of +# The host machines +PYTHON_PSYCOPG2_ENV += \ + PSYCOPG2_POSTGRESQL_VERSION=$(POSTGRESQL_VERSION) + +$(eval $(python-package))
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com
PATCH v2 1/5 python-psycopg2: new package
Hi Thomas,
Quoted 5 lines · Thomas Petazzoni
Hello Yegor,
Any reason why you review all patches in this series, except this first one ? Do you have issues/comments with it, or is it just that you had no time/interest ?
I had no time to review this patch, especially 0001-don-t-use-pg_config.patch.
Other than that everything looks OK. So I have no issues with this patch.
Yegor
Quoted 180 lines
Thanks a lot for having reviewed all other patches, that is very useful!
Thomas
Quoted 158 lines · Adam Duskett
Psycopg is the most popular PostgreSQL database adapter for the Python programming language. Its main features are the complete implementation of the Python DB API 2.0 specification and the thread safety (several threads can share the same connection). It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a large number of concurrent INSERTs or UPDATEs.
Signed-off-by Adam Duskett <[email protected]>---
Changes v1 -> v2:
- NoneDEVELOPERS | 1 + package/Config.in | 1 + .../python-psycopg2/0001-don-t-use-pg_config.patch | 49 ++++++++++++++++++++++ package/python-psycopg2/Config.in | 23 ++++++++++ package/python-psycopg2/python-psycopg2.hash | 4 ++ package/python-psycopg2/python-psycopg2.mk | 20 +++++++++ 6 files changed, 98 insertions(+) create mode 100644 package/python-psycopg2/0001-don-t-use-pg_config.patch create mode 100644 package/python-psycopg2/Config.in create mode 100644 package/python-psycopg2/python-psycopg2.hash create mode 100644 package/python-psycopg2/python-psycopg2.mkDEVELOPERS +1
-0@@ -52,6 +52,7 @@ F: package/libsepol/ F: package/nginx-naxsi/ F: package/policycoreutils/ F: package/python-mutagen/ +F: package/python-psycopg2/ F: package/restorecond/ F: package/refpolicy/ F: package/selinux-python/package/Config.in +1
-0@@ -844,6 +844,7 @@ menu "External python modules" source "package/python-prompt-toolkit/Config.in" source "package/python-protobuf/Config.in" source "package/python-psutil/Config.in" + source "package/python-psycopg2/Config.in" source "package/python-ptyprocess/Config.in" source "package/python-pudb/Config.in" source "package/python-pyasn/Config.in"package/python-psycopg2/0001-don-t-use-pg_config.patch new file +49
-0@@ -0,0 +1,49 @@ +From 92d42775735d1555449b860c214ca7265d7ad75b Mon Sep 17 00:00:00 2001 +From: Mark Asselstine <[email protected]> +Date: Tue, 24 Jan 2017 00:43:35 +0900 +Subject: [PATCH] setup: don't use pg_config + +pg_config is used to get library and include directories, and the postgresql +version. All of which is not available in the cross compiled version. + +Signed-off-by: Mark Asselstine <[email protected]> +Signed-off-by: Huang Qiyu <[email protected]> +[aduskett at gmail.com: Update for psycopg2 2.7.3.2] +Signed-off-by: Adam Duskett <[email protected]> +--- + setup.py | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/setup.py b/setup.py +index 86f32d2..05b8eeb 100644 +--- a/setup.py ++++ b/setup.py +@@ -404,16 +404,13 @@ class psycopg_build_ext(build_ext): + self.libraries.append("pq") + + try: +- self.library_dirs.append(pg_config_helper.query("libdir")) +- self.include_dirs.append(pg_config_helper.query("includedir")) +- self.include_dirs.append(pg_config_helper.query("includedir-server")) + try: + # Here we take a conservative approach: we suppose that + # *at least* PostgreSQL 7.4 is available (this is the only + # 7.x series supported by psycopg 2) + pgversion = pg_config_helper.query("version").split()[1] + except: +- pgversion = "7.4.0" ++ pgversion = str(os.environ['PSYCOPG2_POSTGRESQL_VERSION']) + + verre = re.compile( + r"(\d+)(?:\.(\d+))?(?:(?:\.(\d+))|(devel|(?:alpha|beta|rc)\d+))?") +@@ -525,6 +522,7 @@ parser.read('setup.cfg') + # Choose a datetime module + have_pydatetime = True + have_mxdatetime = False ++pg_config="/bin/true" + use_pydatetime = int(parser.get('build_ext', 'use_pydatetime')) + + # check for mx package +-- +2.14.3 +package/python-psycopg2/Config.in new file +23
-0@@ -0,0 +1,23 @@ +config BR2_PACKAGE_PYTHON_PSYCOPG2 + bool "python-psycopg2" + select BR2_PACKAGE_POSTGRESQL + help + Psycopg is the most popular PostgreSQL database adapter for + the Python programming language. Its main features are the + complete implementation of the Python DB API 2.0 specification + and the thread safety (several threads can share the same + connection). It was designed for heavily multi-threaded + applications that create and destroy lots of cursors and make + a large number of concurrent INSERTs or UPDATEs. + + Psycopg 2 is mostly implemented in C as a libpq wrapper, + resulting in being both efficient and secure. It features + client-side and server-side cursors, asynchronous + communication and notifications, COPY support. Many Python + types are supported out-of-the-box and adapted to matching + PostgreSQL data types; adaptation can be extended and + customized thanks to a flexible objects adaptation system. + + Psycopg 2 is both Unicode and Python 3 friendly. + + http://initd.org/psycopg/package/python-psycopg2/python-psycopg2.hash new file +4
-0@@ -0,0 +1,4 @@ +# md5 from https://pypi.python.org/pypi/psycopg2/json, sha256 locally computed +md5 8114e672d5f23fa5329874a4314fbd6f psycopg2-2.7.3.2.tar.gz +sha256 5c3213be557d0468f9df8fe2487eaf2990d9799202c5ff5cb8d394d09fad9b2a psycopg2-2.7.3.2.tar.gz +sha256 1752db3c786e12b62ca804178dca033adce8bff4c4b3d98d3449d407fe45210d LICENSEpackage/python-psycopg2/python-psycopg2.mk new file +10
-0@@ -0,0 +1,20 @@ +################################################################################ +# +# python-psycopg2 +# +################################################################################ + +PYTHON_PSYCOPG2_VERSION = 2.7.3.2 +PYTHON_PSYCOPG2_SOURCE = psycopg2-$(PYTHON_PSYCOPG2_VERSION).tar.gz +PYTHON_PSYCOPG2_SITE = https://pypi.python.org/packages/dd/47/000b405d73ca22980684fd7bd3318690cc03cfa3b2ae1c5b7fff8050b28a +PYTHON_PSYCOPG2_SETUP_TYPE = setuptoolspackage/python-psycopg2/python-psycopg2.mk line 20
Quoted 10 lines
package/python-psycopg2/python-psycopg2.mk new file +10
-0+PYTHON_PSYCOPG2_LICENSE = LGPL-3.0+ +PYTHON_PSYCOPG2_LICENSE_FILES = LICENSE +PYTHON_PSYCOPG2_DEPENDENCIES = postgresql + +# Force psycopg2 to use the BuildRoot provided postgresql version instead of +# The host machines +PYTHON_PSYCOPG2_ENV += \ + PSYCOPG2_POSTGRESQL_VERSION=$(POSTGRESQL_VERSION) + +$(eval $(python-package))--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering
http://bootlin.com
PATCH v2 1/5 python-psycopg2: new package
Hello;
Quoted 4 lines · Yegor Yefremov
Hi Thomas,
On Sat, Feb 10, 2018 at 4:22 PM, Thomas Petazzoni
<[email protected]> wrote:
Quoted 8 lines
Quoted 5 lines
Hello Yegor,
Any reason why you review all patches in this series, except this first one ? Do you have issues/comments with it, or is it just that you had no time/interest ?
I had no time to review this patch, especially 0001-don-t-use-pg_config.patch.
This patch is from yocto actually. pg_config is called by setup.py to get the PostgreSQL server version.
There are two problems with this:
1) There is no way to specify a path to pg_config, so it uses the hosts pg_config (if it's not available it causes an error)
2) Even if you do use pg_config, the one generated during cross-compilation doesn't print out the version information that setup.py is looking for.
So the patch was modified from the original yocto version to work with BuildRoot, instead looking for the variable $(PSYCOPG2_POSTGRESQL_VERSION), which is just passed on to setup.py from the .mk file.
This makes it so updating to new version of PostgreSQL in the future doesn't break psycopg2.
Thanks!
Adam
Quoted 186 lines
Other than that everything looks OK. So I have no issues with this patch.
Reviewed-by Yegor Yefremov <[email protected]>Yegor
Quoted 180 lines
Thanks a lot for having reviewed all other patches, that is very useful!
Thomas
Quoted 158 lines · Adam Duskett
Psycopg is the most popular PostgreSQL database adapter for the Python programming language. Its main features are the complete implementation of the Python DB API 2.0 specification and the thread safety (several threads can share the same connection). It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a large number of concurrent INSERTs or UPDATEs.
Signed-off-by Adam Duskett <[email protected]>---
Changes v1 -> v2:
- NoneDEVELOPERS | 1 + package/Config.in | 1 + .../python-psycopg2/0001-don-t-use-pg_config.patch | 49 ++++++++++++++++++++++ package/python-psycopg2/Config.in | 23 ++++++++++ package/python-psycopg2/python-psycopg2.hash | 4 ++ package/python-psycopg2/python-psycopg2.mk | 20 +++++++++ 6 files changed, 98 insertions(+) create mode 100644 package/python-psycopg2/0001-don-t-use-pg_config.patch create mode 100644 package/python-psycopg2/Config.in create mode 100644 package/python-psycopg2/python-psycopg2.hash create mode 100644 package/python-psycopg2/python-psycopg2.mkDEVELOPERS +1
-0@@ -52,6 +52,7 @@ F: package/libsepol/ F: package/nginx-naxsi/ F: package/policycoreutils/ F: package/python-mutagen/ +F: package/python-psycopg2/ F: package/restorecond/ F: package/refpolicy/ F: package/selinux-python/package/Config.in +1
-0@@ -844,6 +844,7 @@ menu "External python modules" source "package/python-prompt-toolkit/Config.in" source "package/python-protobuf/Config.in" source "package/python-psutil/Config.in" + source "package/python-psycopg2/Config.in" source "package/python-ptyprocess/Config.in" source "package/python-pudb/Config.in" source "package/python-pyasn/Config.in"package/python-psycopg2/0001-don-t-use-pg_config.patch new file +49
-0@@ -0,0 +1,49 @@ +From 92d42775735d1555449b860c214ca7265d7ad75b Mon Sep 17 00:00:00 2001 +From: Mark Asselstine <[email protected]> +Date: Tue, 24 Jan 2017 00:43:35 +0900 +Subject: [PATCH] setup: don't use pg_config + +pg_config is used to get library and include directories, and the postgresql +version. All of which is not available in the cross compiled version. + +Signed-off-by: Mark Asselstine <[email protected]> +Signed-off-by: Huang Qiyu <[email protected]> +[aduskett at gmail.com: Update for psycopg2 2.7.3.2] +Signed-off-by: Adam Duskett <[email protected]> +--- + setup.py | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/setup.py b/setup.py +index 86f32d2..05b8eeb 100644 +--- a/setup.py ++++ b/setup.py +@@ -404,16 +404,13 @@ class psycopg_build_ext(build_ext): + self.libraries.append("pq") + + try: +- self.library_dirs.append(pg_config_helper.query("libdir")) +- self.include_dirs.append(pg_config_helper.query("includedir")) +- self.include_dirs.append(pg_config_helper.query("includedir-server")) + try: + # Here we take a conservative approach: we suppose that + # *at least* PostgreSQL 7.4 is available (this is the only + # 7.x series supported by psycopg 2) + pgversion = pg_config_helper.query("version").split()[1] + except: +- pgversion = "7.4.0" ++ pgversion = str(os.environ['PSYCOPG2_POSTGRESQL_VERSION']) + + verre = re.compile( + r"(\d+)(?:\.(\d+))?(?:(?:\.(\d+))|(devel|(?:alpha|beta|rc)\d+))?") +@@ -525,6 +522,7 @@ parser.read('setup.cfg') + # Choose a datetime module + have_pydatetime = True + have_mxdatetime = False ++pg_config="/bin/true" + use_pydatetime = int(parser.get('build_ext', 'use_pydatetime')) + + # check for mx package +-- +2.14.3 +package/python-psycopg2/Config.in new file +23
-0@@ -0,0 +1,23 @@ +config BR2_PACKAGE_PYTHON_PSYCOPG2 + bool "python-psycopg2" + select BR2_PACKAGE_POSTGRESQL + help + Psycopg is the most popular PostgreSQL database adapter for + the Python programming language. Its main features are the + complete implementation of the Python DB API 2.0 specification + and the thread safety (several threads can share the same + connection). It was designed for heavily multi-threaded + applications that create and destroy lots of cursors and make + a large number of concurrent INSERTs or UPDATEs. + + Psycopg 2 is mostly implemented in C as a libpq wrapper, + resulting in being both efficient and secure. It features + client-side and server-side cursors, asynchronous + communication and notifications, COPY support. Many Python + types are supported out-of-the-box and adapted to matching + PostgreSQL data types; adaptation can be extended and + customized thanks to a flexible objects adaptation system. + + Psycopg 2 is both Unicode and Python 3 friendly. + + http://initd.org/psycopg/package/python-psycopg2/python-psycopg2.hash new file +4
-0@@ -0,0 +1,4 @@ +# md5 from https://pypi.python.org/pypi/psycopg2/json, sha256 locally computed +md5 8114e672d5f23fa5329874a4314fbd6f psycopg2-2.7.3.2.tar.gz +sha256 5c3213be557d0468f9df8fe2487eaf2990d9799202c5ff5cb8d394d09fad9b2a psycopg2-2.7.3.2.tar.gz +sha256 1752db3c786e12b62ca804178dca033adce8bff4c4b3d98d3449d407fe45210d LICENSEpackage/python-psycopg2/python-psycopg2.mk new file +10
-0@@ -0,0 +1,20 @@ +################################################################################ +# +# python-psycopg2 +# +################################################################################ + +PYTHON_PSYCOPG2_VERSION = 2.7.3.2 +PYTHON_PSYCOPG2_SOURCE = psycopg2-$(PYTHON_PSYCOPG2_VERSION).tar.gz +PYTHON_PSYCOPG2_SITE = https://pypi.python.org/packages/dd/47/000b405d73ca22980684fd7bd3318690cc03cfa3b2ae1c5b7fff8050b28a +PYTHON_PSYCOPG2_SETUP_TYPE = setuptoolspackage/python-psycopg2/python-psycopg2.mk line 20
Quoted 10 lines
package/python-psycopg2/python-psycopg2.mk new file +10
-0+PYTHON_PSYCOPG2_LICENSE = LGPL-3.0+ +PYTHON_PSYCOPG2_LICENSE_FILES = LICENSE +PYTHON_PSYCOPG2_DEPENDENCIES = postgresql + +# Force psycopg2 to use the BuildRoot provided postgresql version instead of +# The host machines +PYTHON_PSYCOPG2_ENV += \ + PSYCOPG2_POSTGRESQL_VERSION=$(POSTGRESQL_VERSION) + +$(eval $(python-package))--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering
http://bootlin.com
PATCH v2 1/5 python-psycopg2: new package
Hello,
Quoted 9 lines · Adam Duskett
This patch is from yocto actually.
pg_configis called bysetup.pyto get the PostgreSQL server version.
There are two problems with this:1) There is no way to specify a path to
pg_config, so it uses the hostspg_config(if it's not available it causes an error)
2) Even if you do usepg_config, the one generated during cross-compilation doesn't print out the version information thatsetup.pyis looking for.
Did you notice that Buildroot has its own pg_config in package/postgresql/postgresql.mk ? Indeed, the pg_config built/installed by PostgreSQL didn't work properly in a cross-compilation context, so we simply implemented a simplified shell-based version. Perhaps it just needs to be extended to support what python-psycopg2 needs ?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com