Skip to contentSkip to conversation

python-iniparse: new package

PATCH Superseded Zoltan Gyarmati 2 participants 4 messages Jan 24, 2016 – Jan 26, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-iniparse: new package

---
 package/Config.in                            |  1 +
 package/python-iniparse/Config.in            | 11 +++++++++++
 package/python-iniparse/python-iniparse.hash |  2 ++
 package/python-iniparse/python-iniparse.mk   | 14 ++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/python-iniparse/Config.in
 create mode 100644 package/python-iniparse/python-iniparse.hash
 create mode 100644 package/python-iniparse/python-iniparse.mk
package/Config.in +1 -0
index 09c2b40..a339161 100644
@@ -645,6 +645,7 @@ menu "External python modules"
 	source "package/python-httplib2/Config.in"
 	source "package/python-id3/Config.in"
 	source "package/python-idna/Config.in"
+	source "package/python-iniparse/Config.in"
 	source "package/python-ipaddr/Config.in"
 	source "package/python-ipaddress/Config.in"
 	source "package/python-ipy/Config.in"
package/python-iniparse/Config.in new file +11 -0
new file mode 100644
index 0000000..93d7ead
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_INIPARSE
+	bool "python-iniparse"
+	depends on BR2_PACKAGE_PYTHON
+	help
+	  iniparse is an INI parser for  Python which is API compatible
+	  with the standard library's ConfigParser, preserves structure of INI
+	  files (order of sections & options, indentation, comments, and blank
+	  lines are preserved when data is updated), and is more convenient to
+	  use.
+
+	  https://pypi.python.org/pypi/iniparse
package/python-iniparse/python-iniparse.hash new file +2 -0
new file mode 100644
index 0000000..0caa146
@@ -0,0 +1,2 @@
+#md5 from https://pypi.python.org/pypi?:action=show_md5&digest=5e573e9e9733d97623881ce9bbe5eca6
+md5 5e573e9e9733d97623881ce9bbe5eca6 iniparse-0.4.tar.gz
package/python-iniparse/python-iniparse.mk new file +14 -0
new file mode 100644
index 0000000..b00e0c4
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-iniparse
+#
+################################################################################
+
+PYTHON_INIPARSE_VERSION = 0.4
+PYTHON_INIPARSE_SOURCE = iniparse-$(PYTHON_INIPARSE_VERSION).tar.gz
+PYTHON_INIPARSE_SITE = https://pypi.python.org/packages/source/i/iniparse
+PYTHON_INIPARSE_LICENSE = Python software foundation license v2, MIT
+PYTHON_INIPARSE_LICENSE_FILES = LICENSE-PSF LICENSE
+PYTHON_INIPARSE_SETUP_TYPE = distutils
+
+$(eval $(python-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 crudini: new package

---
 package/Config.in            |  1 +
 package/crudini/Config.in    |  8 ++++++++
 package/crudini/crudini.hash |  2 ++
 package/crudini/crudini.mk   | 14 ++++++++++++++
 4 files changed, 25 insertions(+)
 create mode 100644 package/crudini/Config.in
 create mode 100644 package/crudini/crudini.hash
 create mode 100644 package/crudini/crudini.mk
package/Config.in +1 -0
index a339161..22f5dcb 100644
@@ -1525,6 +1525,7 @@ endif
 comment "Utilities"
 	source "package/at/Config.in"
 	source "package/ccrypt/Config.in"
+	source "package/crudini/Config.in"
 	source "package/dialog/Config.in"
 	source "package/dtach/Config.in"
 	source "package/file/Config.in"
package/crudini/Config.in new file +8 -0
new file mode 100644
index 0000000..c677f3b
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_CRUDINI
+	depends on BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_INIPARSE
+	bool "crudini"
+	help
+	  A utility for handling ini files from the command line and shell scripts
+
+	  https://pypi.python.org/pypi/crudini
package/crudini/crudini.hash new file +2 -0
new file mode 100644
index 0000000..04e2575
@@ -0,0 +1,2 @@
+#md5 from https://pypi.python.org/pypi?:action=show_md5&digest=7d1313f1bb9800db9cbceaa518bcf212
+md5    7d1313f1bb9800db9cbceaa518bcf212 crudini-0.7.tar.gz
package/crudini/crudini.mk new file +14 -0
new file mode 100644
index 0000000..d797efc
@@ -0,0 +1,14 @@
+################################################################################
+#
+# crudini
+#
+################################################################################
+
+CRUDINI_VERSION = 0.7
+CRUDINI_SOURCE = crudini-$(CRUDINI_VERSION).tar.gz
+CRUDINI_SITE = https://pypi.python.org/packages/source/c/crudini
+CRUDINI_SETUP_TYPE = setuptools
+CRUDINI_LICENSE = GPLv2
+CRUDINI_LICENSE_FILES = COPYING
+
+$(eval $(python-package))
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 crudini: new package

Dear Zoltan Gyarmati,

package/crudini/Config.in line 4

Quoted 10 lines · Zoltan Gyarmati
package/crudini/Config.in new file +4 -0
new file mode 100644
index 0000000..c677f3b
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_CRUDINI
+	depends on BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_INIPARSE
+	bool "crudini"

See the documentation which has been recently updated on the ordering of properties:

+As a convention specific to Buildroot, the ordering of the attributes +is as follows:
+
+1. The type of option: +bool+, +string+... with the prompt +2. If needed, the +default+ value(s)
+3. Any dependency of the +depends on+ form
+4. Any dependency of the +select+ form
+5. The help keyword and help text.

Also, please indicate above the select BR2_PACKAGE_PYTHON_INIPARSE that this is a runtime dependency.

package/crudini/Config.in line 6

Quoted 2 lines
package/crudini/Config.in new file +2 -0
+	help
+	  A utility for handling ini files from the command line and shell scripts

Wrap at 72 characters.

package/crudini/crudini.hash line 2

Quoted 8 lines
package/crudini/crudini.hash new file +2 -0
new file mode 100644
index 0000000..04e2575
@@ -0,0 +1,2 @@
+#md5 from https://pypi.python.org/pypi?:action=show_md5&digest=7d1313f1bb9800db9cbceaa518bcf212
+md5    7d1313f1bb9800db9cbceaa518bcf212 crudini-0.7.tar.gz

sha256 hash needed.

Other than that, looks good! Can you fix the minor issues above and resubmit an updated version?

Thanks!

Thomas

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

PATCH 1/2 python-iniparse: new package

In reply to Zoltan Gyarmati

Dear Zoltan Gyarmati,

Thanks for this contribution. See some comments below.

Quoted 6 lines · Zoltan Gyarmati
package/python-iniparse/Config.in new file +0 -0
new file mode 100644
index 0000000..93d7ead

package/python-iniparse/Config.in line 9

Quoted 9 lines
package/python-iniparse/Config.in new file +9 -0
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_INIPARSE
+	bool "python-iniparse"
+	depends on BR2_PACKAGE_PYTHON
+	help
+	  iniparse is an INI parser for  Python which is API compatible
+	  with the standard library's ConfigParser, preserves structure of INI
+	  files (order of sections & options, indentation, comments, and blank
+	  lines are preserved when data is updated), and is more convenient to
+	  use.

Lines are too long, you should wrap at 72 characters.

package/python-iniparse/python-iniparse.hash line 1

Quoted 7 lines
package/python-iniparse/python-iniparse.hash new file +1 -0
new file mode 100644
index 0000000..0caa146
@@ -0,0 +1,2 @@
+#md5 from https://pypi.python.org/pypi?:action=show_md5&digest=5e573e9e9733d97623881ce9bbe5eca6

Space after #

package/python-iniparse/python-iniparse.hash line 2

Quoted 1 line
package/python-iniparse/python-iniparse.hash new file +1 -0
+md5 5e573e9e9733d97623881ce9bbe5eca6 iniparse-0.4.tar.gz

Please add a locally calculated sha256 hash. See package/python-netifaces/python-netifaces.hash for example.

Quoted 10 lines
package/python-iniparse/python-iniparse.mk new file +4 -0
new file mode 100644
index 0000000..b00e0c4
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-iniparse
+#

package/python-iniparse/python-iniparse.mk line 14

Quoted 10 lines
package/python-iniparse/python-iniparse.mk new file +10 -0
+################################################################################
+
+PYTHON_INIPARSE_VERSION = 0.4
+PYTHON_INIPARSE_SOURCE = iniparse-$(PYTHON_INIPARSE_VERSION).tar.gz
+PYTHON_INIPARSE_SITE = https://pypi.python.org/packages/source/i/iniparse
+PYTHON_INIPARSE_LICENSE = Python software foundation license v2, MIT
+PYTHON_INIPARSE_LICENSE_FILES = LICENSE-PSF LICENSE
+PYTHON_INIPARSE_SETUP_TYPE = distutils
+
+$(eval $(python-package))

Otherwise, looks good.

Can you fix the minor comments above and resubmit an updated version?

Thanks!

Thomas

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