Skip to contentSkip to conversation

python-xlrd: new package

PATCH Superseded yegorslists at googlemail.com 2 participants 6 messages Jun 23, 2016 – Jun 24, 2016

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 python-xlrd: new package

From: Yegor Yefremov <[email protected]>

---
 package/Config.in                    |  1 +
 package/python-xlrd/Config.in        | 11 +++++++++++
 package/python-xlrd/python-xlrd.hash |  4 ++++
 package/python-xlrd/python-xlrd.mk   | 14 ++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/python-xlrd/Config.in
 create mode 100644 package/python-xlrd/python-xlrd.hash
 create mode 100644 package/python-xlrd/python-xlrd.mk
package/Config.in +1 -0
index a2a02a8..e5ddc3e 100644
@@ -776,6 +776,7 @@ menu "External python modules"
 	source "package/python-werkzeug/Config.in"
 	source "package/python-ws4py/Config.in"
 	source "package/python-wsaccel/Config.in"
+	source "package/python-xlrd/Config.in"
 	source "package/python-xlsxwriter/Config.in"
 	source "package/python-zope-interface/Config.in"
 endmenu
package/python-xlrd/Config.in new file +11 -0
new file mode 100644
index 0000000..81331f9
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_XLRD
+	bool "python-xlrd"
+	select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3
+	select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3
+	help
+	  Library for developers to extract data from Microsoft Excel (tm)
+	  spreadsheet files.
+
+	  http://www.python-excel.org/
package/python-xlrd/python-xlrd.hash new file +4 -0
new file mode 100644
index 0000000..8075605
@@ -0,0 +1,4 @@
+# md5 from https://pypi.python.org/pypi/xlrd/json
+md5	9a91b688cd4945477ac28187a54f9a3b  xlrd-1.0.0.tar.gz
+# sha256 calculated by scanpypi
+sha256	0ff87dd5d50425084f7219cb6f86bb3eb5aa29063f53d50bf270ed007e941069  xlrd-1.0.0.tar.gz
package/python-xlrd/python-xlrd.mk new file +14 -0
new file mode 100644
index 0000000..a31657a
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-xlrd
+#
+################################################################################
+
+PYTHON_XLRD_VERSION = 1.0.0
+PYTHON_XLRD_SOURCE = xlrd-$(PYTHON_XLRD_VERSION).tar.gz
+PYTHON_XLRD_SITE = https://pypi.python.org/packages/42/85/25caf967c2d496067489e0bb32df069a8361e1fd96a7e9f35408e56b3aab
+PYTHON_XLRD_SETUP_TYPE = setuptools
+PYTHON_XLRD_LICENSE = BSD-3c, BSD-4c
+PYTHON_XLRD_LICENSE_FILES = xlrd/licences.py
+
+$(eval $(python-package))
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 2/3 python-xlwt: new package

From: Yegor Yefremov <[email protected]>

---
Changes:
v2: correct supported Python versions in package description (Baruch Siach)

 package/Config.in                    |  1 +
 package/python-xlwt/Config.in        |  8 ++++++++
 package/python-xlwt/python-xlwt.hash |  4 ++++
 package/python-xlwt/python-xlwt.mk   | 14 ++++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 package/python-xlwt/Config.in
 create mode 100644 package/python-xlwt/python-xlwt.hash
 create mode 100644 package/python-xlwt/python-xlwt.mk
package/Config.in +1 -0
index e5ddc3e..61d1d26 100644
@@ -778,6 +778,7 @@ menu "External python modules"
 	source "package/python-wsaccel/Config.in"
 	source "package/python-xlrd/Config.in"
 	source "package/python-xlsxwriter/Config.in"
+	source "package/python-xlwt/Config.in"
 	source "package/python-zope-interface/Config.in"
 endmenu
 endif
package/python-xlwt/Config.in new file +8 -0
new file mode 100644
index 0000000..74a323f
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_XLWT
+	bool "python-xlwt"
+	help
+	  Library to create spreadsheet files compatible with MS Excel
+	  97/2000/XP/2003 XLS files, on any platform, with Python 2.6, 2.7,
+	  3.3+.
+
+	  http://www.python-excel.org/
package/python-xlwt/python-xlwt.hash new file +4 -0
new file mode 100644
index 0000000..4cacf2b
@@ -0,0 +1,4 @@
+# md5 from https://pypi.python.org/pypi/xlwt/json
+md5	fadf8d1be8c5f071561c4145ed5f5b89  xlwt-1.1.2.tar.gz
+# sha256 calculated by scanpypi
+sha256	aed648c17731f40f84550dd2a1aaa53569f0cbcaf5610ba895cd2632587b723c  xlwt-1.1.2.tar.gz
package/python-xlwt/python-xlwt.mk new file +14 -0
new file mode 100644
index 0000000..1b1a716
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-xlwt
+#
+################################################################################
+
+PYTHON_XLWT_VERSION = 1.1.2
+PYTHON_XLWT_SOURCE = xlwt-$(PYTHON_XLWT_VERSION).tar.gz
+PYTHON_XLWT_SITE = https://pypi.python.org/packages/0b/69/644313df86e6375ec2c6b34ec8ac544b9cc7803b7d943223d32811860f3d
+PYTHON_XLWT_SETUP_TYPE = setuptools
+PYTHON_XLWT_LICENSE = BSD-3c, BSD-4c, LGPLv2.1+
+PYTHON_XLWT_LICENSE_FILES = docs/licenses.rst
+
+$(eval $(python-package))
Signature · 1 line
2.1.4
#2 lore raw

PATCH v2 3/3 python-xlutils: new package

In reply to yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

---
 package/Config.in                          |  1 +
 package/python-xlutils/Config.in           |  9 +++++++++
 package/python-xlutils/python-xlutils.hash |  4 ++++
 package/python-xlutils/python-xlutils.mk   | 14 ++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/python-xlutils/Config.in
 create mode 100644 package/python-xlutils/python-xlutils.hash
 create mode 100644 package/python-xlutils/python-xlutils.mk
package/Config.in +1 -0
index 61d1d26..8328d9e 100644
@@ -778,6 +778,7 @@ menu "External python modules"
 	source "package/python-wsaccel/Config.in"
 	source "package/python-xlrd/Config.in"
 	source "package/python-xlsxwriter/Config.in"
+	source "package/python-xlutils/Config.in"
 	source "package/python-xlwt/Config.in"
 	source "package/python-zope-interface/Config.in"
 endmenu
package/python-xlutils/Config.in new file +9 -0
new file mode 100644
index 0000000..7788612
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_XLUTILS
+	bool "python-xlutils"
+	select BR2_PACKAGE_PYTHON_XLRD # runtime
+	select BR2_PACKAGE_PYTHON_XLWT # runtime
+	help
+	  Utilities for working with Excel files that require both xlrd and
+	  xlwt.
+
+	  http://www.python-excel.org
package/python-xlutils/python-xlutils.hash new file +4 -0
new file mode 100644
index 0000000..4f99860
@@ -0,0 +1,4 @@
+# md5 from https://pypi.python.org/pypi/xlutils/json
+md5	7a6a339ddaacabce244341582ee61353  xlutils-2.0.0.tar.gz
+# sha256 calculated by scanpypi
+sha256	7e0e2c233bd185fecf5e2bd3f4e9469ca4a3bd87da64c82cfe5b2af27e7f9e54  xlutils-2.0.0.tar.gz
package/python-xlutils/python-xlutils.mk new file +14 -0
new file mode 100644
index 0000000..fc26b3c
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-xlutils
+#
+################################################################################
+
+PYTHON_XLUTILS_VERSION = 2.0.0
+PYTHON_XLUTILS_SOURCE = xlutils-$(PYTHON_XLUTILS_VERSION).tar.gz
+PYTHON_XLUTILS_SITE = https://pypi.python.org/packages/93/fe/af6d73e4bc7b0ce359d34bebb2e8d4d129763acfecd66a3a7efc587e54c9
+PYTHON_XLUTILS_SETUP_TYPE = setuptools
+PYTHON_XLUTILS_LICENSE = MIT
+PYTHON_XLUTILS_LICENSE_FILES = xlutils/license.txt
+
+$(eval $(python-package))
Signature · 1 line
2.1.4
#3 lore raw

PATCH v2 1/3 python-xlrd: new package

In reply to yegorslists at googlemail.com
Quoted 31 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

---
 package/Config.in                    |  1 +
 package/python-xlrd/Config.in        | 11 +++++++++++
 package/python-xlrd/python-xlrd.hash |  4 ++++
 package/python-xlrd/python-xlrd.mk   | 14 ++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/python-xlrd/Config.in
 create mode 100644 package/python-xlrd/python-xlrd.hash
 create mode 100644 package/python-xlrd/python-xlrd.mk
package/Config.in +1 -0
index a2a02a8..e5ddc3e 100644
@@ -776,6 +776,7 @@ menu "External python modules"
 	source "package/python-werkzeug/Config.in"
 	source "package/python-ws4py/Config.in"
 	source "package/python-wsaccel/Config.in"
+	source "package/python-xlrd/Config.in"
 	source "package/python-xlsxwriter/Config.in"
 	source "package/python-zope-interface/Config.in"
 endmenu
package/python-xlrd/Config.in new file +0 -0
new file mode 100644
index 0000000..81331f9

package/python-xlrd/Config.in line 9

Quoted 9 lines
package/python-xlrd/Config.in new file +9 -0
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_XLRD
+	bool "python-xlrd"
+	select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3
+	select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3
+	help
+	  Library for developers to extract data from Microsoft Excel (tm)
+	  spreadsheet files.

I think it would be better to specify explicitly which Excel versions are
supported. It's all of them, but still, better to be explicit about it.

Quoted 19 lines
package/python-xlrd/Config.in new file +2 -0
+
+	  http://www.python-excel.org/
package/python-xlrd/python-xlrd.hash new file +4 -0
new file mode 100644
index 0000000..8075605
@@ -0,0 +1,4 @@
+# md5 from https://pypi.python.org/pypi/xlrd/json
+md5	9a91b688cd4945477ac28187a54f9a3b  xlrd-1.0.0.tar.gz
+# sha256 calculated by scanpypi
+sha256	0ff87dd5d50425084f7219cb6f86bb3eb5aa29063f53d50bf270ed007e941069  xlrd-1.0.0.tar.gz
package/python-xlrd/python-xlrd.mk new file +1 -0
new file mode 100644
index 0000000..a31657a
@@ -0,0 +1,14 @@
+################################################################################

package/python-xlrd/python-xlrd.mk line 11

Quoted 10 lines
package/python-xlrd/python-xlrd.mk new file +10 -0
+#
+# python-xlrd
+#
+################################################################################
+
+PYTHON_XLRD_VERSION = 1.0.0
+PYTHON_XLRD_SOURCE = xlrd-$(PYTHON_XLRD_VERSION).tar.gz
+PYTHON_XLRD_SITE = https://pypi.python.org/packages/42/85/25caf967c2d496067489e0bb32df069a8361e1fd96a7e9f35408e56b3aab
+PYTHON_XLRD_SETUP_TYPE = setuptools
+PYTHON_XLRD_LICENSE = BSD-3c, BSD-4c

Even though licenses.py specifies BSD-4c, the actual source code doesn't. In
fact, several files explicitly mention that they are not derived from Giffin's code. So I would say: just keep BSD-3c. licenses.py still contains the -4c so an attentive legal department will still do vetting on their own.

Regards,
Arnout

Quoted 4 lines
package/python-xlrd/python-xlrd.mk new file +3 -0
+PYTHON_XLRD_LICENSE_FILES = xlrd/licences.py
+
+$(eval $(python-package))
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#4 lore raw

PATCH v2 1/3 python-xlrd: new package

Hi Arnout,

Quoted 36 lines · Arnout Vandecappelle
Quoted 35 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

---
 package/Config.in                    |  1 +
 package/python-xlrd/Config.in        | 11 +++++++++++
 package/python-xlrd/python-xlrd.hash |  4 ++++
 package/python-xlrd/python-xlrd.mk   | 14 ++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/python-xlrd/Config.in
 create mode 100644 package/python-xlrd/python-xlrd.hash
 create mode 100644 package/python-xlrd/python-xlrd.mk
package/Config.in +1 -0
index a2a02a8..e5ddc3e 100644
@@ -776,6 +776,7 @@ menu "External python modules"
      source "package/python-werkzeug/Config.in"
      source "package/python-ws4py/Config.in"
      source "package/python-wsaccel/Config.in"
+     source "package/python-xlrd/Config.in"
      source "package/python-xlsxwriter/Config.in"
      source "package/python-zope-interface/Config.in"
 endmenu
package/python-xlrd/Config.in new file +4 -0
new file mode 100644
index 0000000..81331f9
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_XLRD
+     bool "python-xlrd"
+     select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON
+     select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3
Quoted 8 lines

package/python-xlrd/Config.in line 9

Quoted 5 lines
package/python-xlrd/Config.in new file +5 -0
+     select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON
+     select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3
+     help
+       Library for developers to extract data from Microsoft Excel (tm)
+       spreadsheet files.

I think it would be better to specify explicitly which Excel versions are
supported. It's all of them, but still, better to be explicit about it.

Will do.

Quoted 26 lines
Quoted 26 lines
package/python-xlrd/Config.in new file +2 -0
+
+       http://www.python-excel.org/
package/python-xlrd/python-xlrd.hash new file +4 -0
new file mode 100644
index 0000000..8075605
@@ -0,0 +1,4 @@
+# md5 from https://pypi.python.org/pypi/xlrd/json
+md5  9a91b688cd4945477ac28187a54f9a3b  xlrd-1.0.0.tar.gz
+# sha256 calculated by scanpypi
+sha256       0ff87dd5d50425084f7219cb6f86bb3eb5aa29063f53d50bf270ed007e941069  xlrd-1.0.0.tar.gz
package/python-xlrd/python-xlrd.mk new file +8 -0
new file mode 100644
index 0000000..a31657a
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-xlrd
+#
+################################################################################
+
+PYTHON_XLRD_VERSION = 1.0.0
+PYTHON_XLRD_SOURCE = xlrd-$(PYTHON_XLRD_VERSION).tar.gz
Quoted 8 lines

package/python-xlrd/python-xlrd.mk line 11

Quoted 3 lines
package/python-xlrd/python-xlrd.mk new file +3 -0
+PYTHON_XLRD_SITE = https://pypi.python.org/packages/42/85/25caf967c2d496067489e0bb32df069a8361e1fd96a7e9f35408e56b3aab
+PYTHON_XLRD_SETUP_TYPE = setuptools
+PYTHON_XLRD_LICENSE = BSD-3c, BSD-4c

Even though licenses.py specifies BSD-4c, the actual source code doesn't. In
fact, several files explicitly mention that they are not derived from Giffin's code. So I would say: just keep BSD-3c. licenses.py still contains the -4c so an attentive legal department will still do vetting on their own.

Should I also reduce license types in xlwt too?

Yegor

#5 lore raw

PATCH v2 1/3 python-xlrd: new package

Quoted 5 lines · Yegor Yefremov
Quoted 4 lines

Even though licenses.py specifies BSD-4c, the actual source code doesn't. In
fact, several files explicitly mention that they are not derived from Giffin's code. So I would say: just keep BSD-3c. licenses.py still contains the -4c so an attentive legal department will still do vetting on their own.

Should I also reduce license types in xlwt too?

I haven't looked at xlwt, but probably yes. Just look at the headers in each
file to see if there is any with a BSD-4c or copyright Giffin.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF