Skip to contentSkip to conversation

python-singledispatch: new package

PATCH Superseded yegorslists at googlemail.com 2 participants 8 messages Dec 16, 2015 – Dec 18, 2015

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 python-singledispatch: new package

From: Yegor Yefremov <[email protected]>

This library brings functools.singledispatch from Python 3.4 to Python 2.7.x.

---
Changes:
v2: make the patch a part of the Tornado update series

 package/Config.in                                        |  1 +
 package/python-singledispatch/Config.in                  |  8 ++++++++
 package/python-singledispatch/python-singledispatch.hash |  3 +++
 package/python-singledispatch/python-singledispatch.mk   | 14 ++++++++++++++
 4 files changed, 26 insertions(+)
 create mode 100644 package/python-singledispatch/Config.in
 create mode 100644 package/python-singledispatch/python-singledispatch.hash
 create mode 100644 package/python-singledispatch/python-singledispatch.mk
package/Config.in +1 -0
index 5393959..1f5a590 100644
@@ -673,6 +673,7 @@ menu "External python modules"
 	source "package/python-serial/Config.in"
 	source "package/python-setuptools/Config.in"
 	source "package/python-simplejson/Config.in"
+	source "package/python-singledispatch/Config.in"
 	source "package/python-sip/Config.in"
 	source "package/python-six/Config.in"
 	source "package/python-spidev/Config.in"
package/python-singledispatch/Config.in new file +8 -0
new file mode 100644
index 0000000..192e516
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_SINGLEDISPATCH
+	bool "python-singledispatch"
+	depends on BR2_PACKAGE_PYTHON
+	help
+	  This library brings functools.singledispatch from
+	  Python 3.4 to Python 2.6-3.3
+
+	  https://pypi.python.org/pypi/singledispatch
package/python-singledispatch/python-singledispatch.hash new file +3 -0
new file mode 100644
index 0000000..8a96d21
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=af2fc6a3d6cc5a02d0bf54d909785fcb, sha256 locally computed
+md5     af2fc6a3d6cc5a02d0bf54d909785fcb singledispatch-3.4.0.3.tar.gz
+sha256  5b06af87df13818d14f08a028e42f566640aef80805c3b50c5056b086e3c2b9c  singledispatch-3.4.0.3.tar.gz
package/python-singledispatch/python-singledispatch.mk new file +14 -0
new file mode 100644
index 0000000..7e1d5ac
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-singledispatch
+#
+################################################################################
+
+PYTHON_SINGLEDISPATCH_VERSION = 3.4.0.3
+PYTHON_SINGLEDISPATCH_SOURCE = singledispatch-$(PYTHON_SINGLEDISPATCH_VERSION).tar.gz
+PYTHON_SINGLEDISPATCH_SITE = https://pypi.python.org/packages/source/s/singledispatch
+PYTHON_SINGLEDISPATCH_LICENSE = MIT
+PYTHON_SINGLEDISPATCH_LICENSE_FILES = setup.py
+PYTHON_SINGLEDISPATCH_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 2/3 python-backports-abc: new package

From: Yegor Yefremov <[email protected]>

A backport of recent additions to the 'collections.abc' module.

---
Changes:
v2: make the patch a part of the Tornado update series

 package/Config.in                                      |  1 +
 package/python-backports-abc/Config.in                 |  7 +++++++
 package/python-backports-abc/python-backports-abc.hash |  3 +++
 package/python-backports-abc/python-backports-abc.mk   | 13 +++++++++++++
 4 files changed, 24 insertions(+)
 create mode 100644 package/python-backports-abc/Config.in
 create mode 100644 package/python-backports-abc/python-backports-abc.hash
 create mode 100644 package/python-backports-abc/python-backports-abc.mk
package/Config.in +1 -0
index 1f5a590..d31b503 100644
@@ -599,6 +599,7 @@ endif
 if BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
 menu "External python modules"
 	source "package/python-alsaaudio/Config.in"
+	source "package/python-backports-abc/Config.in"
 	source "package/python-bottle/Config.in"
 	source "package/python-can/Config.in"
 	source "package/python-certifi/Config.in"
package/python-backports-abc/Config.in new file +7 -0
new file mode 100644
index 0000000..26d8cfd
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_BACKPORTS_ABC
+	bool "python-backports-abc"
+	help
+	  A backport of recent additions to the 'collections.abc'
+	  module.
+
+	  https://pypi.python.org/pypi/backports_abc
package/python-backports-abc/python-backports-abc.hash new file +3 -0
new file mode 100644
index 0000000..07e954e
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=0b65a216ce9dc9c1a7e20a729dd7c05b, sha256 locally computed
+md5     0b65a216ce9dc9c1a7e20a729dd7c05b backports_abc-0.4.tar.gz
+sha256  8b3e4092ba3d541c7a2f9b7d0d9c0275b21c6a01c53a61c731eba6686939d0a5  backports_abc-0.4.tar.gz
package/python-backports-abc/python-backports-abc.mk new file +13 -0
new file mode 100644
index 0000000..1e3a9a6
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-backports-abc
+#
+################################################################################
+
+PYTHON_BACKPORTS_ABC_VERSION = 0.4
+PYTHON_BACKPORTS_ABC_SOURCE = backports_abc-$(PYTHON_BACKPORTS_ABC_VERSION).tar.gz
+PYTHON_BACKPORTS_ABC_SITE = https://pypi.python.org/packages/source/b/backports_abc
+PYTHON_BACKPORTS_ABC_LICENSE = Python Software Foundation License
+PYTHON_BACKPORTS_ABC_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
Signature · 1 line
2.1.4
#2 lore raw

PATCH v2 2/3 python-backports-abc: new package

Hello,

Quoted 8 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

A backport of recent additions to the 'collections.abc' module.

---
Changes:
v2: make the patch a part of the Tornado update series

I've applied. However, it is not really great that the package doesn't carry any license information. The PKG-INFO file even says that the license is "UNKNOWN". Can you talk with upstream so that they clarify the license of this package (which obviously must be the same license as Python itself, but it is better if it's clearly said).

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH v2 2/3 python-backports-abc: new package

Quoted 12 lines · Thomas Petazzoni

Hello,

Quoted 8 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

A backport of recent additions to the 'collections.abc' module.

---
Changes:
v2: make the patch a part of the Tornado update series

Quoted 5 lines

I've applied. However, it is not really great that the package doesn't carry any license information. The PKG-INFO file even says that the license is "UNKNOWN". Can you talk with upstream so that they clarify the license of this package (which obviously must be the same license as Python itself, but it is better if it's clearly said).

Thanks. I'll take care of this.

Yegor

#4 lore raw

PATCH v2 3/3 python-tornado: bump to 4.3

In reply to yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

Add new run-time dependencies:

PYTHON_SINGLEDISPATCH for Python 2.7.x
PYTHON_BACKPORTS_ABC for both Python versions

---
 package/python-tornado/Config.in           | 2 ++
 package/python-tornado/python-tornado.hash | 4 ++--
 package/python-tornado/python-tornado.mk   | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)
package/python-tornado/Config.in +2 -0
index 85c7891..ac86682 100644
@@ -2,6 +2,8 @@ config BR2_PACKAGE_PYTHON_TORNADO
 	bool "python-tornado"
 	select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON # runtime
 	select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3 # runtime
+	select BR2_PACKAGE_PYTHON_SINGLEDISPATCH if BR2_PACKAGE_PYTHON # runtime
+	select BR2_PACKAGE_PYTHON_BACKPORTS_ABC	# runtime
 	help
 	  Tornado is a Python web framework and asynchronous networking
 	  library, originally developed at FriendFeed.
package/python-tornado/python-tornado.hash +2 -2
index 88e3956..e0f3c39 100644
@@ -1,3 +1,3 @@
 # md5 from https://pypi.python.org/pypi?:action=show_md5&digest=c548d7b77a11d523c3d7255bd7fd6df8, sha256 locally computed
-md5     c548d7b77a11d523c3d7255bd7fd6df8 tornado-4.2.tar.gz
-sha256  e8b1207da67dbdceebfb291292b4ef1b547d6171525bec1b366853f923456a5f  tornado-4.2.tar.gz
+md5     d13a99dc0b60ba69f5f8ec1235e5b232 tornado-4.3.tar.gz
+sha256  c9c2d32593d16eedf2cec1b6a41893626a2649b40b21ca9c4cac4243bde2efbf  tornado-4.3.tar.gz
package/python-tornado/python-tornado.mk +1 -1
index a8d1f94..64809b7 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PYTHON_TORNADO_VERSION = 4.2
+PYTHON_TORNADO_VERSION = 4.3
 PYTHON_TORNADO_SOURCE = tornado-$(PYTHON_TORNADO_VERSION).tar.gz
 PYTHON_TORNADO_SITE = https://pypi.python.org/packages/source/t/tornado
 PYTHON_TORNADO_LICENSE = Apache-2.0
Signature · 1 line
2.1.4
#5 lore raw

PATCH v2 3/3 python-tornado: bump to 4.3

Hello,

package/python-tornado/Config.in config BR2_PACKAGE_PYTHON_TORNADO · line 6

Quoted 10 lines · yegorslists at googlemail.com
package/python-tornado/Config.in +2 -0
index 85c7891..ac86682 100644
@@ -2,6 +2,8 @@ config BR2_PACKAGE_PYTHON_TORNADO
 	bool "python-tornado"
 	select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON # runtime
 	select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3 # runtime
+	select BR2_PACKAGE_PYTHON_SINGLEDISPATCH if BR2_PACKAGE_PYTHON # runtime
+	select BR2_PACKAGE_PYTHON_BACKPORTS_ABC	# runtime

So I guess that the plan is to make this a Python 2 dependency only once we bump Python 3 to 3.5, right ?

Other than that, applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#6 lore raw

PATCH v2 3/3 python-tornado: bump to 4.3

Quoted 4 lines · Thomas Petazzoni

Hello,

On Wed, 16 Dec 2015 08:36:12 +0100, yegorslists at googlemail.com wrote:

Quoted 13 lines

package/python-tornado/Config.in config BR2_PACKAGE_PYTHON_TORNADO · line 6

Quoted 10 lines
package/python-tornado/Config.in +2 -0
index 85c7891..ac86682 100644
@@ -2,6 +2,8 @@ config BR2_PACKAGE_PYTHON_TORNADO
      bool "python-tornado"
      select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON # runtime
      select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3 # runtime
+     select BR2_PACKAGE_PYTHON_SINGLEDISPATCH if BR2_PACKAGE_PYTHON # runtime
+     select BR2_PACKAGE_PYTHON_BACKPORTS_ABC # runtime

So I guess that the plan is to make this a Python 2 dependency only once we bump Python 3 to 3.5, right ?

Yes.

Quoted 1 line

Other than that, applied, thanks!

Thanks.

Yegor

#7 lore raw

PATCH v2 1/3 python-singledispatch: new package

In reply to yegorslists at googlemail.com

Dear yegorslists at googlemail.com,

Quoted 9 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

This library brings functools.singledispatch from Python 3.4 to Python 2.7.x.

---
Changes:
v2: make the patch a part of the Tornado update series

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com