[Buildroot] [PATCH 1/2] python-iniparse: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jan 26 21:53:57 UTC 2016


Dear Zoltan Gyarmati,

Thanks for this contribution. See some comments below.

On Sun, 24 Jan 2016 01:15:03 +0100, Zoltan Gyarmati wrote:

> diff --git a/package/python-iniparse/Config.in b/package/python-iniparse/Config.in
> new file mode 100644
> index 0000000..93d7ead
> --- /dev/null
> +++ b/package/python-iniparse/Config.in
> @@ -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.

> diff --git a/package/python-iniparse/python-iniparse.hash b/package/python-iniparse/python-iniparse.hash
> new file mode 100644
> index 0000000..0caa146
> --- /dev/null
> +++ b/package/python-iniparse/python-iniparse.hash
> @@ -0,0 +1,2 @@
> +#md5 from https://pypi.python.org/pypi?:action=show_md5&digest=5e573e9e9733d97623881ce9bbe5eca6

Space after #

> +md5 5e573e9e9733d97623881ce9bbe5eca6 iniparse-0.4.tar.gz

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

> diff --git a/package/python-iniparse/python-iniparse.mk b/package/python-iniparse/python-iniparse.mk
> new file mode 100644
> index 0000000..b00e0c4
> --- /dev/null
> +++ b/package/python-iniparse/python-iniparse.mk
> @@ -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))

Otherwise, looks good.

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

Thanks!

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



More information about the buildroot mailing list