[1/3] python: new module flup

Submitted by Oli Vogt on May 25, 2014, 8:24 a.m.

Details

Message ID 1401006257-10688-1-git-send-email-oli.vogt.pub01@gmail.com
State Accepted
Headers show

Commit Message

Oli Vogt May 25, 2014, 8:24 a.m.
This module is useful to implement a fastCGI webserver
Tested with ARM and Python 2.7.6

Signed-off-by: oli vogt <oli.vogt.pub01@gmail.com>
---
 package/Config.in                  |  1 +
 package/python-flup/Config.in      |  9 +++++++++
 package/python-flup/python-flup.mk | 15 +++++++++++++++
 3 files changed, 25 insertions(+)
 create mode 100644 package/python-flup/Config.in
 create mode 100644 package/python-flup/python-flup.mk

Comments

Thomas Petazzoni July 27, 2014, 1:36 p.m.
Dear oli vogt,

On Sun, 25 May 2014 20:24:17 +1200, oli vogt wrote:
> This module is useful to implement a fastCGI webserver
> Tested with ARM and Python 2.7.6
> 
> Signed-off-by: oli vogt <oli.vogt.pub01@gmail.com>
> ---
>  package/Config.in                  |  1 +
>  package/python-flup/Config.in      |  9 +++++++++
>  package/python-flup/python-flup.mk | 15 +++++++++++++++
>  3 files changed, 25 insertions(+)
>  create mode 100644 package/python-flup/Config.in
>  create mode 100644 package/python-flup/python-flup.mk

Thanks, applied. However, I've changed the license from 'BSD-4c, MIT'
to just 'BSD-2c'. Let me know if you believe this is wrong, but it
seemed to be matching what the package really uses.

Thanks,

Thomas
Oli Vogt July 27, 2014, 10 p.m.
Dear Thomas

I added the MIT licence because:
----------
grep -inrA3 -B5 "license" *
:   :   :   :   :   :
flup/server/paste_factory.py-1-# (c) 2005 Ian Bicking and contributors;
written for Paste (http://pythonpaste.org)
flup/server/paste_factory.py:2:# Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
flup/server/paste_factory.py-3-
flup/server/paste_factory.py-4-from flup.server import NoDefault
flup/server/paste_factory.py-5-
:   :   :   :   :   :
----------

Thank you for accepting flup, I have used it happily for a while on an ARM
iMX233 board. No more rebasing :-)

Regards, oli


On 28 July 2014 01:36, Thomas Petazzoni <thomas.petazzoni@free-electrons.com
> wrote:

> Dear oli vogt,
>
> On Sun, 25 May 2014 20:24:17 +1200, oli vogt wrote:
> > This module is useful to implement a fastCGI webserver
> > Tested with ARM and Python 2.7.6
> >
> > Signed-off-by: oli vogt <oli.vogt.pub01@gmail.com>
> > ---
> >  package/Config.in                  |  1 +
> >  package/python-flup/Config.in      |  9 +++++++++
> >  package/python-flup/python-flup.mk | 15 +++++++++++++++
> >  3 files changed, 25 insertions(+)
> >  create mode 100644 package/python-flup/Config.in
> >  create mode 100644 package/python-flup/python-flup.mk
>
> Thanks, applied. However, I've changed the license from 'BSD-4c, MIT'
> to just 'BSD-2c'. Let me know if you believe this is wrong, but it
> seemed to be matching what the package really uses.
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
Thomas Petazzoni July 29, 2014, 7:19 a.m.
Dear Oli Vogt,

On Mon, 28 Jul 2014 10:00:55 +1200, Oli Vogt wrote:

> I added the MIT licence because:
> ----------
> grep -inrA3 -B5 "license" *
> :   :   :   :   :   :
> flup/server/paste_factory.py-1-# (c) 2005 Ian Bicking and contributors;
> written for Paste (http://pythonpaste.org)
> flup/server/paste_factory.py:2:# Licensed under the MIT license:
> http://www.opensource.org/licenses/mit-license.php
> flup/server/paste_factory.py-3-
> flup/server/paste_factory.py-4-from flup.server import NoDefault
> flup/server/paste_factory.py-5-
> :   :   :   :   :   :
> ----------

Ok, I didn't notice this specific file. I've committed a fix that
re-adds the MIT license. Thanks for reporting this.

> Thank you for accepting flup, I have used it happily for a while on an ARM
> iMX233 board. No more rebasing :-)

Cool! Do not hesitate to contribute other changes if you have any.

Thanks,

Thomas

Patch hide | download patch | download mbox

diff --git a/package/Config.in b/package/Config.in
index 3bc8d24..9c61485 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -445,6 +445,7 @@  source "package/python-configobj/Config.in"
 source "package/python-crc16/Config.in"
 source "package/python-dialog/Config.in"
 source "package/python-dpkt/Config.in"
+source "package/python-flup/Config.in"
 source "package/python-id3/Config.in"
 source "package/python-ipy/Config.in"
 source "package/python-json-schema-validator/Config.in"
diff --git a/package/python-flup/Config.in b/package/python-flup/Config.in
new file mode 100644
index 0000000..2c21323
--- /dev/null
+++ b/package/python-flup/Config.in
@@ -0,0 +1,9 @@ 
+config BR2_PACKAGE_PYTHON_FLUP
+	bool "python-flup"
+	depends on BR2_PACKAGE_PYTHON
+	help
+	  flup provides of a collection of WSGI modules for Python.
+	  It allows a webserver to use scgi-mod and fastcgi-mod
+	  with python.
+
+	  https://pypi.python.org/pypi/flup
diff --git a/package/python-flup/python-flup.mk b/package/python-flup/python-flup.mk
new file mode 100644
index 0000000..4f021d5
--- /dev/null
+++ b/package/python-flup/python-flup.mk
@@ -0,0 +1,15 @@ 
+################################################################################
+#
+# python-flup
+#
+################################################################################
+
+PYTHON_FLUP_VERSION = 1.0.3.dev-20110405
+PYTHON_FLUP_SOURCE = flup-$(PYTHON_FLUP_VERSION).tar.gz
+PYTHON_FLUP_SITE = http://pypi.python.org/packages/source/f/flup
+
+PYTHON_FLUP_LICENSE = BSD-4c, MIT
+
+PYTHON_FLUP_SETUP_TYPE = setuptools
+
+$(eval $(python-package))