Skip to contentSkip to conversation

python-docutils: new package

PATCH New yegorslists at googlemail.com 2 participants 5 messages Sep 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-docutils: new package

From: Yegor Yefremov <[email protected]>

Host variant is needed for building python-daemon package.

---
 package/Config.in                            |  1 +
 package/python-docutils/Config.in            |  9 +++++++++
 package/python-docutils/python-docutils.hash |  3 +++
 package/python-docutils/python-docutils.mk   | 15 +++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/python-docutils/Config.in
 create mode 100644 package/python-docutils/python-docutils.hash
 create mode 100644 package/python-docutils/python-docutils.mk
package/Config.in +1 -0
index a9f6bc7..4e78faa 100644
@@ -669,6 +669,7 @@ menu "External python modules"
 	source "package/python-dicttoxml/Config.in"
 	source "package/python-django/Config.in"
 	source "package/python-docopt/Config.in"
+	source "package/python-docutils/Config.in"
 	source "package/python-dominate/Config.in"
 	source "package/python-dpkt/Config.in"
 	source "package/python-ecdsa/Config.in"
package/python-docutils/Config.in new file +9 -0
new file mode 100644
index 0000000..e7bf7e6
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_DOCUTILS
+	bool "python-docutils"
+	help
+	  Docutils is a modular system for processing documentation
+	  into useful formats, such as HTML, XML, and LaTeX. For input
+	  Docutils supports reStructuredText, an easy-to-read,
+	  what-you-see-is-what-you-get plaintext markup syntax.
+
+	  http://docutils.sourceforge.net/
package/python-docutils/python-docutils.hash new file +3 -0
new file mode 100644
index 0000000..9d45058
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/docutils/json, sha256 locally computed
+md5     4622263b62c5c771c03502afa3157768 docutils-0.12.tar.gz
+sha256  c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa  docutils-0.12.tar.gz
package/python-docutils/python-docutils.mk new file +15 -0
new file mode 100644
index 0000000..3bbed00
@@ -0,0 +1,15 @@
+#############################################################
+#
+# python-docutils
+#
+#############################################################
+
+PYTHON_DOCUTILS_VERSION = 0.12
+PYTHON_DOCUTILS_SOURCE = docutils-$(PYTHON_DOCUTILS_VERSION).tar.gz
+PYTHON_DOCUTILS_SITE = https://pypi.python.org/packages/37/38/ceda70135b9144d84884ae2fc5886c6baac4edea39550f28bcd144c1234d
+PYTHON_DOCUTILS_LICENSE = BSD-2c
+PYTHON_DOCUTILS_LICENSE_FILES = COPYING.txt
+PYTHON_DOCUTILS_SETUP_TYPE = distutils
+
+$(eval $(python-package))
+$(eval $(host-python-package))
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/2 python-docutils: new package

Quoted 57 lines · On Wed, Sep 21, 2016 at 3:40 PM, <[email protected]> wrote:

From: Yegor Yefremov <[email protected]>

Host variant is needed for building python-daemon package.

---
 package/Config.in                            |  1 +
 package/python-docutils/Config.in            |  9 +++++++++
 package/python-docutils/python-docutils.hash |  3 +++
 package/python-docutils/python-docutils.mk   | 15 +++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/python-docutils/Config.in
 create mode 100644 package/python-docutils/python-docutils.hash
 create mode 100644 package/python-docutils/python-docutils.mk
package/Config.in +1 -0
index a9f6bc7..4e78faa 100644
@@ -669,6 +669,7 @@ menu "External python modules"
        source "package/python-dicttoxml/Config.in"
        source "package/python-django/Config.in"
        source "package/python-docopt/Config.in"
+       source "package/python-docutils/Config.in"
        source "package/python-dominate/Config.in"
        source "package/python-dpkt/Config.in"
        source "package/python-ecdsa/Config.in"
package/python-docutils/Config.in new file +9 -0
new file mode 100644
index 0000000..e7bf7e6
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_DOCUTILS
+       bool "python-docutils"
+       help
+         Docutils is a modular system for processing documentation
+         into useful formats, such as HTML, XML, and LaTeX. For input
+         Docutils supports reStructuredText, an easy-to-read,
+         what-you-see-is-what-you-get plaintext markup syntax.
+
+         http://docutils.sourceforge.net/
package/python-docutils/python-docutils.hash new file +3 -0
new file mode 100644
index 0000000..9d45058
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/docutils/json, sha256 locally computed
+md5     4622263b62c5c771c03502afa3157768 docutils-0.12.tar.gz
+sha256  c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa  docutils-0.12.tar.gz
package/python-docutils/python-docutils.mk new file +0 -0
new file mode 100644
index 0000000..3bbed00

package/python-docutils/python-docutils.mk line 10

Quoted 10 lines
package/python-docutils/python-docutils.mk new file +10 -0
@@ -0,0 +1,15 @@
+#############################################################
+#
+# python-docutils
+#
+#############################################################
+
+PYTHON_DOCUTILS_VERSION = 0.12
+PYTHON_DOCUTILS_SOURCE = docutils-$(PYTHON_DOCUTILS_VERSION).tar.gz
+PYTHON_DOCUTILS_SITE = https://pypi.python.org/packages/37/38/ceda70135b9144d84884ae2fc5886c6baac4edea39550f28bcd144c1234d
+PYTHON_DOCUTILS_LICENSE = BSD-2c

COPYING.txt is rather complicated mentioning a lot of files with different licences. So I'm not sure how to handle this properly.

Quoted 8 lines
package/python-docutils/python-docutils.mk new file +5 -1
+PYTHON_DOCUTILS_LICENSE_FILES = COPYING.txt
+PYTHON_DOCUTILS_SETUP_TYPE = distutils
+
+$(eval $(python-package))
+$(eval $(host-python-package))
--

2.9.3

#2 lore raw

PATCH 2/2 python-daemon: add missing dependencies

In reply to yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

python-daemon package mentions python-docutils in both setup_requires and instal_requires fields. So add related dependencies.

Fixes:
http://autobuild.buildroot.net/results/0c3/0c3866038f7c40888e5e440f7a720fc614a6b1ba/
http://autobuild.buildroot.net/results/5d8/5d817bddeff5bb49ed31c6a1d111974c358ef96c/
and many more.

---
 package/python-daemon/Config.in        | 1 +
 package/python-daemon/python-daemon.mk | 1 +
 2 files changed, 2 insertions(+)
package/python-daemon/Config.in +1 -0
index 8b6dcc0..21f4407 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_DAEMON
 	bool "python-daemon"
+	select BR2_PACKAGE_PYTHON_DOCUTILS # runtime
 	help
 	  Library to implement a well-behaved Unix daemon process.
 
package/python-daemon/python-daemon.mk +1 -0
index e85be9a..648d549 100644
@@ -9,5 +9,6 @@ PYTHON_DAEMON_SITE = https://pypi.python.org/packages/source/p/python-daemon
 PYTHON_DAEMON_LICENSE = Apache-2.0 (library), GPLv3+ (test, build)
 PYTHON_DAEMON_LICENSE_FILES = LICENSE.ASF-2 LICENSE.GPL-3
 PYTHON_DAEMON_SETUP_TYPE = setuptools
+PYTHON_DAEMON_DEPENDENCIES = host-python-docutils
 
 $(eval $(python-package))
Signature · 1 line
2.9.3
#3 lore raw

PATCH 2/2 python-daemon: add missing dependencies

Hello,

Quoted 10 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

python-daemon package mentions python-docutils in both setup_requires and instal_requires fields. So add related dependencies.

Fixes:
http://autobuild.buildroot.net/results/0c3/0c3866038f7c40888e5e440f7a720fc614a6b1ba/
http://autobuild.buildroot.net/results/5d8/5d817bddeff5bb49ed31c6a1d111974c358ef96c/
and many more.

Quoted 5 lines
---
 package/python-daemon/Config.in        | 1 +
 package/python-daemon/python-daemon.mk | 1 +
 2 files changed, 2 insertions(+)

Applied to master, thanks.

Thomas

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

PATCH 1/2 python-docutils: new package

In reply to yegorslists at googlemail.com

Hello,

Quoted 5 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

Host variant is needed for building python-daemon package.

Quoted 9 lines
---
 package/Config.in                            |  1 +
 package/python-docutils/Config.in            |  9 +++++++++
 package/python-docutils/python-docutils.hash |  3 +++
 package/python-docutils/python-docutils.mk   | 15 +++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/python-docutils/Config.in
 create mode 100644 package/python-docutils/python-docutils.hash
 create mode 100644 package/python-docutils/python-docutils.mk

I slightly tweaked the description of the licenses, and then applied. And indeed, this package is quite complicated in terms of licenses... I hope what I've added is good enough. Hopefully other Buildroot developers can have a look and suggest better descriptions if needed.

Best regards,

Thomas

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