All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/9] Update IPython's dependencies
@ 2017-04-25 19:14 Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 1/9] package/python-decorator: New package Andrey Smirnov
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-25 19:14 UTC (permalink / raw)
  To: buildroot

Hi everyone,

I recently tried using IPython on Buidroot based system and ran into a
number of missing dependencies. The patches in this series are all of
the fixes I had to apply in order to make IPython work.

Any feedback is welcome.

Thanks,
Andrey Smirnov

Andrey Smirnov (9):
  package/python-decorator: New package
  package/python-traitlets: New package
  package/python-simplegeneric: New package
  package/python-ipython-genutils: New package
  package/python-scandir: New package
  package/python-pathlib2: New package
  package/python-pickleshare: New package
  package/python-backports-shutil-get-terminal-size: New package
  package/python-ipython: Add dependecy list

 package/Config.in                                  |  8 ++++++++
 .../Config.in                                      |  9 ++++++++
 .../python-backports-shutil-get-terminal-size.hash |  2 ++
 .../python-backports-shutil-get-terminal-size.mk   | 13 ++++++++++++
 package/python-decorator/Config.in                 |  6 ++++++
 package/python-decorator/python-decorator.mk       | 13 ++++++++++++
 package/python-ipython-genutils/Config.in          |  6 ++++++
 .../python-ipython-genutils.hash                   |  4 ++++
 .../python-ipython-genutils.mk                     | 14 +++++++++++++
 package/python-ipython/Config.in                   | 10 +++++++++
 package/python-ipython/python-ipython.mk           | 14 +++++++++++++
 package/python-pathlib2/Config.in                  | 14 +++++++++++++
 package/python-pathlib2/python-pathlib2.hash       |  2 ++
 package/python-pathlib2/python-pathlib2.mk         | 24 ++++++++++++++++++++++
 package/python-pickleshare/Config.in               |  7 +++++++
 package/python-pickleshare/python-pickleshare.hash |  2 ++
 package/python-pickleshare/python-pickleshare.mk   | 22 ++++++++++++++++++++
 package/python-scandir/Config.in                   |  6 ++++++
 package/python-scandir/python-scandir.hash         |  2 ++
 package/python-scandir/python-scandir.mk           | 13 ++++++++++++
 package/python-simplegeneric/Config.in             |  6 ++++++
 .../python-simplegeneric/python-simplegeneric.hash |  4 ++++
 .../python-simplegeneric/python-simplegeneric.mk   | 19 +++++++++++++++++
 package/python-traitlets/Config.in                 |  8 ++++++++
 package/python-traitlets/python-traitlets.hash     |  2 ++
 package/python-traitlets/python-traitlets.mk       | 18 ++++++++++++++++
 26 files changed, 248 insertions(+)
 create mode 100644 package/python-backports-shutil-get-terminal-size/Config.in
 create mode 100644 package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.hash
 create mode 100644 package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk
 create mode 100644 package/python-decorator/Config.in
 create mode 100644 package/python-decorator/python-decorator.mk
 create mode 100644 package/python-ipython-genutils/Config.in
 create mode 100644 package/python-ipython-genutils/python-ipython-genutils.hash
 create mode 100644 package/python-ipython-genutils/python-ipython-genutils.mk
 create mode 100644 package/python-pathlib2/Config.in
 create mode 100644 package/python-pathlib2/python-pathlib2.hash
 create mode 100644 package/python-pathlib2/python-pathlib2.mk
 create mode 100644 package/python-pickleshare/Config.in
 create mode 100644 package/python-pickleshare/python-pickleshare.hash
 create mode 100644 package/python-pickleshare/python-pickleshare.mk
 create mode 100644 package/python-scandir/Config.in
 create mode 100644 package/python-scandir/python-scandir.hash
 create mode 100644 package/python-scandir/python-scandir.mk
 create mode 100644 package/python-simplegeneric/Config.in
 create mode 100644 package/python-simplegeneric/python-simplegeneric.hash
 create mode 100644 package/python-simplegeneric/python-simplegeneric.mk
 create mode 100644 package/python-traitlets/Config.in
 create mode 100644 package/python-traitlets/python-traitlets.hash
 create mode 100644 package/python-traitlets/python-traitlets.mk

-- 
2.9.3

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/9] package/python-decorator: New package
  2017-04-25 19:14 [Buildroot] [PATCH 0/9] Update IPython's dependencies Andrey Smirnov
@ 2017-04-25 19:14 ` Andrey Smirnov
  2017-04-26  7:25   ` Thomas Petazzoni
  2017-04-25 19:14 ` [Buildroot] [PATCH 2/9] package/python-traitlets: " Andrey Smirnov
                   ` (7 subsequent siblings)
  8 siblings, 1 reply; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-25 19:14 UTC (permalink / raw)
  To: buildroot

Add 'decorator'[1] package to Buildroot. Needed by 'traitlets'
package, which is added in the next patch.

[1] https://pypi.python.org/pypi/decorator

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 package/Config.in                            |  1 +
 package/python-decorator/Config.in           |  6 ++++++
 package/python-decorator/python-decorator.mk | 13 +++++++++++++
 3 files changed, 20 insertions(+)
 create mode 100644 package/python-decorator/Config.in
 create mode 100644 package/python-decorator/python-decorator.mk

diff --git a/package/Config.in b/package/Config.in
index 25405c1..eb6d197 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -701,6 +701,7 @@ menu "External python modules"
 	source "package/python-daemon/Config.in"
 	source "package/python-dataproperty/Config.in"
 	source "package/python-dateutil/Config.in"
+	source "package/python-decorator/Config.in"
 	source "package/python-dialog/Config.in"
 	source "package/python-dialog3/Config.in"
 	source "package/python-dicttoxml/Config.in"
diff --git a/package/python-decorator/Config.in b/package/python-decorator/Config.in
new file mode 100644
index 0000000..e7ec00c
--- /dev/null
+++ b/package/python-decorator/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_DECORATOR
+	bool "python-decorator"
+	help
+	  Better living through Python with decorators
+
+	  https://github.com/micheles/decorator
diff --git a/package/python-decorator/python-decorator.mk b/package/python-decorator/python-decorator.mk
new file mode 100644
index 0000000..f900580
--- /dev/null
+++ b/package/python-decorator/python-decorator.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-decorator
+#
+################################################################################
+
+PYTHON_DECORATOR_VERSION = 4.0.11
+PYTHON_DECORATOR_SITE = https://github.com/micheles/decorator.git
+PYTHON_DECORATOR_SITE_METHOD = git
+PYTHON_DECORATOR_LICENSE = BSD-2c
+PYTHON_DECORATOR_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 2/9] package/python-traitlets: New package
  2017-04-25 19:14 [Buildroot] [PATCH 0/9] Update IPython's dependencies Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 1/9] package/python-decorator: New package Andrey Smirnov
@ 2017-04-25 19:14 ` Andrey Smirnov
  2017-04-26  7:26   ` Thomas Petazzoni
  2017-04-25 19:14 ` [Buildroot] [PATCH 3/9] package/python-simplegeneric: " Andrey Smirnov
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-25 19:14 UTC (permalink / raw)
  To: buildroot

Add 'traitlets'[1] package to Buildroot. Needed by IPython.

[1] https://pypi.python.org/pypi/traitlets

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 package/Config.in                              |  1 +
 package/python-traitlets/Config.in             |  8 ++++++++
 package/python-traitlets/python-traitlets.hash |  2 ++
 package/python-traitlets/python-traitlets.mk   | 18 ++++++++++++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 package/python-traitlets/Config.in
 create mode 100644 package/python-traitlets/python-traitlets.hash
 create mode 100644 package/python-traitlets/python-traitlets.mk

diff --git a/package/Config.in b/package/Config.in
index eb6d197..47f43eb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -843,6 +843,7 @@ menu "External python modules"
 	source "package/python-tomako/Config.in"
 	source "package/python-toml/Config.in"
 	source "package/python-tornado/Config.in"
+	source "package/python-traitlets/Config.in"
 	source "package/python-treq/Config.in"
 	source "package/python-twisted/Config.in"
 	source "package/python-txaio/Config.in"
diff --git a/package/python-traitlets/Config.in b/package/python-traitlets/Config.in
new file mode 100644
index 0000000..ba79218
--- /dev/null
+++ b/package/python-traitlets/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_TRAITLETS
+	select BR2_PACKAGE_PYTHON_DECORATOR
+	select BR2_PACKAGE_PYTHON_ENUM if BR2_PACKAGE_PYTHON
+	bool "python-traitlets"
+	help
+	  A configuration system for Python applications.
+
+	  https://pypi.python.org/pypi/traitlets
diff --git a/package/python-traitlets/python-traitlets.hash b/package/python-traitlets/python-traitlets.hash
new file mode 100644
index 0000000..3b14991
--- /dev/null
+++ b/package/python-traitlets/python-traitlets.hash
@@ -0,0 +1,2 @@
+# sha256 locally computed
+sha256 370f938ad730d52272ef74f96f831cb21138f6168e46fe582fe256c35cc656ce python-traitlets-4.3.2.tar.gz
diff --git a/package/python-traitlets/python-traitlets.mk b/package/python-traitlets/python-traitlets.mk
new file mode 100644
index 0000000..6cfd3e5
--- /dev/null
+++ b/package/python-traitlets/python-traitlets.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# python-traitlets
+#
+################################################################################
+
+PYTHON_TRAITLETS_VERSION = 4.3.2
+PYTHON_TRAITLETS_SOURCE = python-traitlets-$(PYTHON_TRAITLETS_VERSION).tar.gz
+PYTHON_TRAITLETS_SITE = $(call github,ipython,traitlets,$(PYTHON_TRAITLETS_VERSION))
+PYTHON_TRAITLETS_LICENSE = BSD-3c
+PYTHON_TRAITLETS_SETUP_TYPE = distutils
+PYTHON_TRAITLETS_DEPENDENCIES = python-decorator
+
+ifeq ($(BR2_PACKAGE_PYTHON),y)
+PYTHON_TRAITLETS_DEPENDENCIES += python-enum
+endif
+
+$(eval $(python-package))
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 3/9] package/python-simplegeneric: New package
  2017-04-25 19:14 [Buildroot] [PATCH 0/9] Update IPython's dependencies Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 1/9] package/python-decorator: New package Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 2/9] package/python-traitlets: " Andrey Smirnov
@ 2017-04-25 19:14 ` Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 4/9] package/python-ipython-genutils: " Andrey Smirnov
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-25 19:14 UTC (permalink / raw)
  To: buildroot

Add 'simplegeneric'[1] package to Buildroot. Needed by IPython.

[1] https://pypi.python.org/pypi/simplegeneric

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 package/Config.in                                     |  1 +
 package/python-simplegeneric/Config.in                |  6 ++++++
 .../python-simplegeneric/python-simplegeneric.hash    |  4 ++++
 package/python-simplegeneric/python-simplegeneric.mk  | 19 +++++++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/python-simplegeneric/Config.in
 create mode 100644 package/python-simplegeneric/python-simplegeneric.hash
 create mode 100644 package/python-simplegeneric/python-simplegeneric.mk

diff --git a/package/Config.in b/package/Config.in
index 47f43eb..1a0702d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -830,6 +830,7 @@ menu "External python modules"
 	source "package/python-sh/Config.in"
 	source "package/python-shutilwhich/Config.in"
 	source "package/python-simpleaudio/Config.in"
+	source "package/python-simplegeneric/Config.in"
 	source "package/python-simplejson/Config.in"
 	source "package/python-singledispatch/Config.in"
 	source "package/python-sip/Config.in"
diff --git a/package/python-simplegeneric/Config.in b/package/python-simplegeneric/Config.in
new file mode 100644
index 0000000..b5ebfec
--- /dev/null
+++ b/package/python-simplegeneric/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_SIMPLEGENERIC
+	bool "python-simplegeneric"
+	help
+	  A configuration system for Python applications.
+
+	  https://pypi.python.org/pypi/simplegeneric
diff --git a/package/python-simplegeneric/python-simplegeneric.hash b/package/python-simplegeneric/python-simplegeneric.hash
new file mode 100644
index 0000000..6ec74f9
--- /dev/null
+++ b/package/python-simplegeneric/python-simplegeneric.hash
@@ -0,0 +1,4 @@
+# md5 from https://pypi.python.org/pypi/simplegeneric, sha256 locally computed
+md5 f9c1fab00fd981be588fc32759f474e3 simplegeneric-0.8.1.zip
+sha256 dc972e06094b9af5b855b3df4a646395e43d1c9d0d39ed345b7393560d0b9173 simplegeneric-0.8.1.zip
+
diff --git a/package/python-simplegeneric/python-simplegeneric.mk b/package/python-simplegeneric/python-simplegeneric.mk
new file mode 100644
index 0000000..684cda1
--- /dev/null
+++ b/package/python-simplegeneric/python-simplegeneric.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# python-simplegeneric
+#
+################################################################################
+
+PYTHON_SIMPLEGENERIC_VERSION = 0.8.1
+PYTHON_SIMPLEGENERIC_SOURCE = simplegeneric-$(PYTHON_SIMPLEGENERIC_VERSION).zip
+PYTHON_SIMPLEGENERIC_SITE = https://pypi.python.org/packages/3d/57/4d9c9e3ae9a255cd4e1106bb57e24056d3d0709fc01b2e3e345898e49d5b
+PYTHON_SIMPLEGENERIC_LICENSE = BSD-3c
+PYTHON_SIMPLEGENERIC_SETUP_TYPE = distutils
+
+define PYTHON_SIMPLEGENERIC_EXTRACT_CMDS
+	unzip $(DL_DIR)/$(PYTHON_SIMPLEGENERIC_SOURCE) -d $(@D)
+	mv $(@D)/simplegeneric-$(PYTHON_SIMPLEGENERIC_VERSION)/* $(@D)
+	rmdir $(@D)/simplegeneric-$(PYTHON_SIMPLEGENERIC_VERSION)
+endef
+
+$(eval $(python-package))
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 4/9] package/python-ipython-genutils: New package
  2017-04-25 19:14 [Buildroot] [PATCH 0/9] Update IPython's dependencies Andrey Smirnov
                   ` (2 preceding siblings ...)
  2017-04-25 19:14 ` [Buildroot] [PATCH 3/9] package/python-simplegeneric: " Andrey Smirnov
@ 2017-04-25 19:14 ` Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 5/9] package/python-scandir: " Andrey Smirnov
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-25 19:14 UTC (permalink / raw)
  To: buildroot

Add 'ipython_genutils'[1] package to Buildroot. Needed by IPython.

[1] https://pypi.python.org/pypi/ipython_genutils

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 package/Config.in                                          |  1 +
 package/python-ipython-genutils/Config.in                  |  6 ++++++
 .../python-ipython-genutils/python-ipython-genutils.hash   |  4 ++++
 package/python-ipython-genutils/python-ipython-genutils.mk | 14 ++++++++++++++
 4 files changed, 25 insertions(+)
 create mode 100644 package/python-ipython-genutils/Config.in
 create mode 100644 package/python-ipython-genutils/python-ipython-genutils.hash
 create mode 100644 package/python-ipython-genutils/python-ipython-genutils.mk

diff --git a/package/Config.in b/package/Config.in
index 1a0702d..143bccc 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -735,6 +735,7 @@ menu "External python modules"
 	source "package/python-ipaddress/Config.in"
 	source "package/python-ipy/Config.in"
 	source "package/python-ipython/Config.in"
+	source "package/python-ipython-genutils/Config.in"
 	source "package/python-itsdangerous/Config.in"
 	source "package/python-jinja2/Config.in"
 	source "package/python-jsonschema/Config.in"
diff --git a/package/python-ipython-genutils/Config.in b/package/python-ipython-genutils/Config.in
new file mode 100644
index 0000000..d49442e
--- /dev/null
+++ b/package/python-ipython-genutils/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_IPYTHON_GENUTILS
+	bool "python-ipython-genutils"
+	help
+	  IPython vestigial utilities
+
+	  https://pypi.python.org/pypi/ipython_genutils
diff --git a/package/python-ipython-genutils/python-ipython-genutils.hash b/package/python-ipython-genutils/python-ipython-genutils.hash
new file mode 100644
index 0000000..868502e
--- /dev/null
+++ b/package/python-ipython-genutils/python-ipython-genutils.hash
@@ -0,0 +1,4 @@
+# sha256 locally computed.
+
+sha256  424a6ecb33b8c9a8320f8601c533067ed75b491e4bc31621d6278f288497cb1a ipython_genutils-0.2.0.tar.gz
+
diff --git a/package/python-ipython-genutils/python-ipython-genutils.mk b/package/python-ipython-genutils/python-ipython-genutils.mk
new file mode 100644
index 0000000..33982a5
--- /dev/null
+++ b/package/python-ipython-genutils/python-ipython-genutils.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-ipython-genutils
+#
+################################################################################
+
+PYTHON_IPYTHON_GENUTILS_VERSION = 0.2.0
+PYTHON_IPYTHON_GENUTILS_SOURCE = ipython_genutils-$(PYTHON_IPYTHON_GENUTILS_VERSION).tar.gz
+PYTHON_IPYTHON_GENUTILS_SITE = \
+$(call github,ipython,ipython_genutils,$(PYTHON_IPYTHON_GENUTILS_VERSION))
+PYTHON_IPYTHON_GENUTILS_LICENSE = BSD-3c
+PYTHON_IPYTHON_GENUTILS_SETUP_TYPE = distutils
+
+$(eval $(python-package))
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 5/9] package/python-scandir: New package
  2017-04-25 19:14 [Buildroot] [PATCH 0/9] Update IPython's dependencies Andrey Smirnov
                   ` (3 preceding siblings ...)
  2017-04-25 19:14 ` [Buildroot] [PATCH 4/9] package/python-ipython-genutils: " Andrey Smirnov
@ 2017-04-25 19:14 ` Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 6/9] package/python-pathlib2: " Andrey Smirnov
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-25 19:14 UTC (permalink / raw)
  To: buildroot

Add 'scandir'[1] package to buildroot. Needed by 'pathlib2'.

[1] https://pypi.python.org/pypi/scandir
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 package/Config.in                          |  1 +
 package/python-scandir/Config.in           |  6 ++++++
 package/python-scandir/python-scandir.hash |  2 ++
 package/python-scandir/python-scandir.mk   | 13 +++++++++++++
 4 files changed, 22 insertions(+)
 create mode 100644 package/python-scandir/Config.in
 create mode 100644 package/python-scandir/python-scandir.hash
 create mode 100644 package/python-scandir/python-scandir.mk

diff --git a/package/Config.in b/package/Config.in
index 143bccc..c64105e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -823,6 +823,7 @@ menu "External python modules"
 	source "package/python-rpi-gpio/Config.in"
 	source "package/python-rtslib-fb/Config.in"
 	source "package/python-scapy3k/Config.in"
+	source "package/python-scandir/Config.in"
 	source "package/python-sdnotify/Config.in"
 	source "package/python-serial/Config.in"
 	source "package/python-service-identity/Config.in"
diff --git a/package/python-scandir/Config.in b/package/python-scandir/Config.in
new file mode 100644
index 0000000..5e8ca0d
--- /dev/null
+++ b/package/python-scandir/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_SCANDIR
+	bool "python-scandir"
+	help
+	  A configuration system for Python applications.
+
+	  https://pypi.python.org/pypi/pickleshare
diff --git a/package/python-scandir/python-scandir.hash b/package/python-scandir/python-scandir.hash
new file mode 100644
index 0000000..a7ee337
--- /dev/null
+++ b/package/python-scandir/python-scandir.hash
@@ -0,0 +1,2 @@
+# sha256 locally computed
+sha256 c2612d1a487d80fb4701b4a91ca1b8f8a695b1ae820570815e85e8c8b23f1283 scandir-1.5.tar.gz
diff --git a/package/python-scandir/python-scandir.mk b/package/python-scandir/python-scandir.mk
new file mode 100644
index 0000000..e32c4e7
--- /dev/null
+++ b/package/python-scandir/python-scandir.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-scandir
+#
+################################################################################
+
+PYTHON_SCANDIR_VERSION = 1.5
+PYTHON_SCANDIR_SOURCE = scandir-$(PYTHON_SCANDIR_VERSION).tar.gz
+PYTHON_SCANDIR_SITE = https://pypi.python.org/packages/bd/f4/3143e0289faf0883228017dbc6387a66d0b468df646645e29e1eb89ea10e
+PYTHON_SCANDIR_LICENSE = BSD-3c
+PYTHON_SCANDIR_SETUP_TYPE = distutils
+
+$(eval $(python-package))
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 6/9] package/python-pathlib2: New package
  2017-04-25 19:14 [Buildroot] [PATCH 0/9] Update IPython's dependencies Andrey Smirnov
                   ` (4 preceding siblings ...)
  2017-04-25 19:14 ` [Buildroot] [PATCH 5/9] package/python-scandir: " Andrey Smirnov
@ 2017-04-25 19:14 ` Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 7/9] package/python-pickleshare: " Andrey Smirnov
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-25 19:14 UTC (permalink / raw)
  To: buildroot

Add 'pathlib2'[1] package to Buildroot. Needed by 'pickleshare'
package, which is added in the next patch.

[1] https://pypi.python.org/pypi/pathlib2

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 package/Config.in                            |  1 +
 package/python-pathlib2/Config.in            | 14 ++++++++++++++
 package/python-pathlib2/python-pathlib2.hash |  2 ++
 package/python-pathlib2/python-pathlib2.mk   | 24 ++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 package/python-pathlib2/Config.in
 create mode 100644 package/python-pathlib2/python-pathlib2.hash
 create mode 100644 package/python-pathlib2/python-pathlib2.mk

diff --git a/package/Config.in b/package/Config.in
index c64105e..d8880df 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -768,6 +768,7 @@ menu "External python modules"
 	source "package/python-paramiko/Config.in"
 	source "package/python-pathpy/Config.in"
 	source "package/python-pathtools/Config.in"
+	source "package/python-pathlib2/Config.in"
 	source "package/python-pathvalidate/Config.in"
 	source "package/python-pexpect/Config.in"
 	source "package/python-pillow/Config.in"
diff --git a/package/python-pathlib2/Config.in b/package/python-pathlib2/Config.in
new file mode 100644
index 0000000..80f1bc4
--- /dev/null
+++ b/package/python-pathlib2/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_PYTHON_PATHLIB2
+	depends on BR2_PACKAGE_PYTHON
+        select BR2_PACKAGE_PYTHON_SIX
+	select BR2_PACKAGE_PYTHON_SCANDIR
+	bool "python-pathlib2"
+	help
+	  Object-oriented filesystem paths.
+
+	  The goal of pathlib2 is to provide a backport of standard
+	  pathlib module which tracks the standard library module, so
+	  all the newest features of the standard pathlib can be used
+	  also on older Python versions.
+
+	  https://pypi.python.org/pypi/pathlib2
diff --git a/package/python-pathlib2/python-pathlib2.hash b/package/python-pathlib2/python-pathlib2.hash
new file mode 100644
index 0000000..e09496a
--- /dev/null
+++ b/package/python-pathlib2/python-pathlib2.hash
@@ -0,0 +1,2 @@
+# sha256 locally computed
+sha256 ce9007df617ef6b7bd8a31cd2089ed0c1fed1f7c23cf2bf1ba140b3dd563175d pathlib2-2.2.1.tar.gz
diff --git a/package/python-pathlib2/python-pathlib2.mk b/package/python-pathlib2/python-pathlib2.mk
new file mode 100644
index 0000000..6c6ded4
--- /dev/null
+++ b/package/python-pathlib2/python-pathlib2.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# python-pathlib2
+#
+################################################################################
+
+PYTHON_PATHLIB2_VERSION = 2.2.1
+PYTHON_PATHLIB2_SOURCE = pathlib2-$(PYTHON_PATHLIB2_VERSION).tar.gz
+PYTHON_PATHLIB2_SITE = https://pypi.python.org/packages/ab/d8/ac7489d50146f29d0a14f65545698f4545d8a6b739b24b05859942048b56
+PYTHON_PATHLIB2_LICENSE = MIT
+PYTHON_PATHLIB2_SETUP_TYPE = setuptools
+
+#
+# Strictly speaking any python from 2.7 to 3.4 should have this as a
+# dependency, but since BR ships 3.6+ for Python3, we can simplify
+# things a bit
+#
+ifeq ($(BR2_PACKAGE_PYTHON),y)
+PYTHON_PATHLIB2_DEPENDS += python-scandir
+endif
+
+PYTHON_PATHLIB2_DEPENDS += python-six
+
+$(eval $(python-package))
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 7/9] package/python-pickleshare: New package
  2017-04-25 19:14 [Buildroot] [PATCH 0/9] Update IPython's dependencies Andrey Smirnov
                   ` (5 preceding siblings ...)
  2017-04-25 19:14 ` [Buildroot] [PATCH 6/9] package/python-pathlib2: " Andrey Smirnov
@ 2017-04-25 19:14 ` Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 8/9] package/python-backports-shutil-get-terminal-size: " Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 9/9] package/python-ipython: Add dependecy list Andrey Smirnov
  8 siblings, 0 replies; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-25 19:14 UTC (permalink / raw)
  To: buildroot

Add 'pickleshare'[1] package to buildroot. Needed by 'IPython'.

[1] https://pypi.python.org/pypi/pickleshare

Add pickleshare to satisfy IPython's dependency.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 package/Config.in                                  |  1 +
 package/python-pickleshare/Config.in               |  7 +++++++
 package/python-pickleshare/python-pickleshare.hash |  2 ++
 package/python-pickleshare/python-pickleshare.mk   | 22 ++++++++++++++++++++++
 4 files changed, 32 insertions(+)
 create mode 100644 package/python-pickleshare/Config.in
 create mode 100644 package/python-pickleshare/python-pickleshare.hash
 create mode 100644 package/python-pickleshare/python-pickleshare.mk

diff --git a/package/Config.in b/package/Config.in
index d8880df..a749b78 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -771,6 +771,7 @@ menu "External python modules"
 	source "package/python-pathlib2/Config.in"
 	source "package/python-pathvalidate/Config.in"
 	source "package/python-pexpect/Config.in"
+	source "package/python-pickleshare/Config.in"
 	source "package/python-pillow/Config.in"
 	source "package/python-posix-ipc/Config.in"
 	source "package/python-prompt-toolkit/Config.in"
diff --git a/package/python-pickleshare/Config.in b/package/python-pickleshare/Config.in
new file mode 100644
index 0000000..ff37550
--- /dev/null
+++ b/package/python-pickleshare/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_PICKLESHARE
+	select BR2_PACKAGE_PYTHON_PATHLIB2 if BR2_PACKAGE_PYTHON
+	bool "python-pickleshare"
+	help
+	  A configuration system for Python applications.
+
+	  https://pypi.python.org/pypi/pickleshare
diff --git a/package/python-pickleshare/python-pickleshare.hash b/package/python-pickleshare/python-pickleshare.hash
new file mode 100644
index 0000000..f9f9beb
--- /dev/null
+++ b/package/python-pickleshare/python-pickleshare.hash
@@ -0,0 +1,2 @@
+# sha256 locally computed
+sha256 a9ccf2c87c2224f26dd5b7dfd135f2472e374ae972f8d510b1b940861beb1eb4 pickleshare-0.7.4.tar.gz
diff --git a/package/python-pickleshare/python-pickleshare.mk b/package/python-pickleshare/python-pickleshare.mk
new file mode 100644
index 0000000..c613859
--- /dev/null
+++ b/package/python-pickleshare/python-pickleshare.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# python-pickleshare
+#
+################################################################################
+
+PYTHON_PICKLESHARE_VERSION = 0.7.4
+PYTHON_PICKLESHARE_SOURCE = pickleshare-$(PYTHON_PICKLESHARE_VERSION).tar.gz
+PYTHON_PICKLESHARE_SITE = $(call github,pickleshare,pickleshare,$(PYTHON_PICKLESHARE_VERSION))
+PYTHON_PICKLESHARE_LICENSE = MIT
+PYTHON_PICKLESHARE_SETUP_TYPE = setuptools
+
+#
+# Strictly speaking any python from 2.7 to 3.3 should have this as a
+# dependency, but since BR ships 3.6+ for Python3, we can simplify
+# things a bit
+#
+ifeq ($(BR2_PACKAGE_PYTHON),y)
+PYTHON_PICKLESHARE_DEPENDS += python-pathlib2
+endif
+
+$(eval $(python-package))
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 8/9] package/python-backports-shutil-get-terminal-size: New package
  2017-04-25 19:14 [Buildroot] [PATCH 0/9] Update IPython's dependencies Andrey Smirnov
                   ` (6 preceding siblings ...)
  2017-04-25 19:14 ` [Buildroot] [PATCH 7/9] package/python-pickleshare: " Andrey Smirnov
@ 2017-04-25 19:14 ` Andrey Smirnov
  2017-04-25 19:14 ` [Buildroot] [PATCH 9/9] package/python-ipython: Add dependecy list Andrey Smirnov
  8 siblings, 0 replies; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-25 19:14 UTC (permalink / raw)
  To: buildroot

Add 'scandir'[1] package to buildroot. Needed by 'IPython', when
building against Python2.

[1] https://pypi.python.org/pypi/backports.shutil_get_terminal_size

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 package/Config.in                                           |  1 +
 package/python-backports-shutil-get-terminal-size/Config.in |  9 +++++++++
 .../python-backports-shutil-get-terminal-size.hash          |  2 ++
 .../python-backports-shutil-get-terminal-size.mk            | 13 +++++++++++++
 4 files changed, 25 insertions(+)
 create mode 100644 package/python-backports-shutil-get-terminal-size/Config.in
 create mode 100644 package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.hash
 create mode 100644 package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk

diff --git a/package/Config.in b/package/Config.in
index a749b78..87240ef 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -675,6 +675,7 @@ menu "External python modules"
 	source "package/python-autobahn/Config.in"
 	source "package/python-babel/Config.in"
 	source "package/python-backports-abc/Config.in"
+	source "package/python-backports-shutil-get-terminal-size/Config.in"
 	source "package/python-beautifulsoup4/Config.in"
 	source "package/python-bitstring/Config.in"
 	source "package/python-bottle/Config.in"
diff --git a/package/python-backports-shutil-get-terminal-size/Config.in b/package/python-backports-shutil-get-terminal-size/Config.in
new file mode 100644
index 0000000..24bf3b7
--- /dev/null
+++ b/package/python-backports-shutil-get-terminal-size/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE
+	bool "python-backports-shutil-get-terminal-size"
+	depends on BR2_PACKAGE_PYTHON
+	help
+
+	  A backport of the get_terminal_size function from Python
+	  3.3's shutil.
+
+	  https://pypi.python.org/pypi/backports.shutil_get_terminal_size
diff --git a/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.hash b/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.hash
new file mode 100644
index 0000000..0df0cf7
--- /dev/null
+++ b/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.hash
@@ -0,0 +1,2 @@
+# sha256 locally computed
+sha256 713e7a8228ae80341c70586d1cc0a8caa5207346927e23d09dcbcaf18eadec80 backports.shutil_get_terminal_size-1.0.0.tar.gz
diff --git a/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk b/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk
new file mode 100644
index 0000000..63cf363
--- /dev/null
+++ b/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-backports-shutil-get-terminal-size
+#
+################################################################################
+
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_VERSION = 1.0.0
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_SOURCE = backports.shutil_get_terminal_size-$(PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_VERSION).tar.gz
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_SITE = https://pypi.python.org/packages/ec/9c/368086faa9c016efce5da3e0e13ba392c9db79e3ab740b763fe28620b18b
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_SETUP_TYPE = setuptools
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_LICENSE = MIT
+
+$(eval $(python-package))
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 9/9] package/python-ipython: Add dependecy list
  2017-04-25 19:14 [Buildroot] [PATCH 0/9] Update IPython's dependencies Andrey Smirnov
                   ` (7 preceding siblings ...)
  2017-04-25 19:14 ` [Buildroot] [PATCH 8/9] package/python-backports-shutil-get-terminal-size: " Andrey Smirnov
@ 2017-04-25 19:14 ` Andrey Smirnov
  2017-04-26  3:38   ` Baruch Siach
  8 siblings, 1 reply; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-25 19:14 UTC (permalink / raw)
  To: buildroot

List minimal set of packages needed to be installed alongside to be able
to run IPython with Python 3 (not tested on Python 2)

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 package/python-ipython/Config.in         | 10 ++++++++++
 package/python-ipython/python-ipython.mk | 14 ++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/package/python-ipython/Config.in b/package/python-ipython/Config.in
index 1d92873..a1dfd48 100644
--- a/package/python-ipython/Config.in
+++ b/package/python-ipython/Config.in
@@ -1,4 +1,14 @@
 config BR2_PACKAGE_PYTHON_IPYTHON
+	select BR2_PACKAGE_PYTHON_SIX
+	select BR2_PACKAGE_PYTHON_TRAITLETS
+	select BR2_PACKAGE_PYTHON_IPYTHON_GENUTILS
+	select BR2_PACKAGE_PYTHON_PYGMENTS
+	select BR2_PACKAGE_PYTHON_PEXPECT
+	select BR2_PACKAGE_PYTHON_PTYPROCESS
+	select BR2_PACKAGE_PYTHON_PICKLESHARE
+	select BR2_PACKAGE_PYTHON_PROMPT_TOOLKIT
+	select BR2_PACKAGE_PYTHON_SIMPLEGENERIC
+	select BR2_PACKAGE_PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE if BR2_PACKAGE_PYTHON
 	bool "python-ipython"
 	help
 	  IPython is a command shell for interactive computing in multiple
diff --git a/package/python-ipython/python-ipython.mk b/package/python-ipython/python-ipython.mk
index e57d69d..f627846 100644
--- a/package/python-ipython/python-ipython.mk
+++ b/package/python-ipython/python-ipython.mk
@@ -10,5 +10,19 @@ PYTHON_IPYTHON_SITE = https://pypi.python.org/packages/6e/cf/c2a3ca5942e2d808457
 PYTHON_IPYTHON_LICENSE = BSD-3-Clause
 PYTHON_IPYTHON_LICENSE_FILES = COPYING.rst
 PYTHON_IPYTHON_SETUP_TYPE = distutils
+PYTHON_IPYTHON_DEPENDS = 	\
+	python-traitlets 	\
+	python-six 		\
+	python-ipython-genutils \
+	python-pygments		\
+	python-pexpect		\
+	python-ptyprocess	\
+	python-pickleshare	\
+	python-prompt-toolkit	\
+	python-simplegeneric
+
+ifeq ($(BR2_PACKAGE_PYTHON),y)
+PYTHON_IPYTHON_DEPENDS += python-backports-shutil-get-terminal-size
+endif
 
 $(eval $(python-package))
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 9/9] package/python-ipython: Add dependecy list
  2017-04-25 19:14 ` [Buildroot] [PATCH 9/9] package/python-ipython: Add dependecy list Andrey Smirnov
@ 2017-04-26  3:38   ` Baruch Siach
  2017-04-26 18:48     ` Andrey Smirnov
  0 siblings, 1 reply; 16+ messages in thread
From: Baruch Siach @ 2017-04-26  3:38 UTC (permalink / raw)
  To: buildroot

Hi Andrey,

On Tue, Apr 25, 2017 at 12:14:23PM -0700, Andrey Smirnov wrote:
> List minimal set of packages needed to be installed alongside to be able
> to run IPython with Python 3 (not tested on Python 2)

[...]

> diff --git a/package/python-ipython/python-ipython.mk b/package/python-ipython/python-ipython.mk
> index e57d69d..f627846 100644
> --- a/package/python-ipython/python-ipython.mk
> +++ b/package/python-ipython/python-ipython.mk
> @@ -10,5 +10,19 @@ PYTHON_IPYTHON_SITE = https://pypi.python.org/packages/6e/cf/c2a3ca5942e2d808457
>  PYTHON_IPYTHON_LICENSE = BSD-3-Clause
>  PYTHON_IPYTHON_LICENSE_FILES = COPYING.rst
>  PYTHON_IPYTHON_SETUP_TYPE = distutils
> +PYTHON_IPYTHON_DEPENDS = 	\
> +	python-traitlets 	\
> +	python-six 		\
> +	python-ipython-genutils \
> +	python-pygments		\
> +	python-pexpect		\
> +	python-ptyprocess	\
> +	python-pickleshare	\
> +	python-prompt-toolkit	\
> +	python-simplegeneric
> +
> +ifeq ($(BR2_PACKAGE_PYTHON),y)
> +PYTHON_IPYTHON_DEPENDS += python-backports-shutil-get-terminal-size
> +endif

Are these run-time only dependencies? If so there is no need to list them in 
<PKG>_DEPENDS, since they are not needed at build time.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/9] package/python-decorator: New package
  2017-04-25 19:14 ` [Buildroot] [PATCH 1/9] package/python-decorator: New package Andrey Smirnov
@ 2017-04-26  7:25   ` Thomas Petazzoni
  2017-04-26 18:41     ` Andrey Smirnov
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2017-04-26  7:25 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 25 Apr 2017 12:14:15 -0700, Andrey Smirnov wrote:

> +PYTHON_DECORATOR_VERSION = 4.0.11
> +PYTHON_DECORATOR_SITE = https://github.com/micheles/decorator.git
> +PYTHON_DECORATOR_SITE_METHOD = git
> +PYTHON_DECORATOR_LICENSE = BSD-2c

This is not the correct SPDX license code: we have recently switched to
use SPDX license codes everywhere in Buildroot, so this should be
BSD-2-Clause (see https://spdx.org/licenses/).

This should be fixed globally in your patch series.

Thanks!

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 2/9] package/python-traitlets: New package
  2017-04-25 19:14 ` [Buildroot] [PATCH 2/9] package/python-traitlets: " Andrey Smirnov
@ 2017-04-26  7:26   ` Thomas Petazzoni
  2017-04-26 18:47     ` Andrey Smirnov
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2017-04-26  7:26 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 25 Apr 2017 12:14:16 -0700, Andrey Smirnov wrote:
> diff --git a/package/python-traitlets/Config.in b/package/python-traitlets/Config.in
> new file mode 100644
> index 0000000..ba79218
> --- /dev/null
> +++ b/package/python-traitlets/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_PYTHON_TRAITLETS
> +	select BR2_PACKAGE_PYTHON_DECORATOR
> +	select BR2_PACKAGE_PYTHON_ENUM if BR2_PACKAGE_PYTHON
> +	bool "python-traitlets"

The "bool" should be before the selects. Have you run your packages
through support/scripts/check-package ?

> +PYTHON_TRAITLETS_DEPENDENCIES = python-decorator
> +
> +ifeq ($(BR2_PACKAGE_PYTHON),y)
> +PYTHON_TRAITLETS_DEPENDENCIES += python-enum
> +endif

Are these really build time dependencies, or just runtime dependencies?

Best regards,

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 1/9] package/python-decorator: New package
  2017-04-26  7:25   ` Thomas Petazzoni
@ 2017-04-26 18:41     ` Andrey Smirnov
  0 siblings, 0 replies; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-26 18:41 UTC (permalink / raw)
  To: buildroot

On Wed, Apr 26, 2017 at 12:25 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> On Tue, 25 Apr 2017 12:14:15 -0700, Andrey Smirnov wrote:
>
>> +PYTHON_DECORATOR_VERSION = 4.0.11
>> +PYTHON_DECORATOR_SITE = https://github.com/micheles/decorator.git
>> +PYTHON_DECORATOR_SITE_METHOD = git
>> +PYTHON_DECORATOR_LICENSE = BSD-2c
>
> This is not the correct SPDX license code: we have recently switched to
> use SPDX license codes everywhere in Buildroot, so this should be
> BSD-2-Clause (see https://spdx.org/licenses/).
>
> This should be fixed globally in your patch series.

OK, will do in v2.

Thanks,
Andrey Smirnov

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 2/9] package/python-traitlets: New package
  2017-04-26  7:26   ` Thomas Petazzoni
@ 2017-04-26 18:47     ` Andrey Smirnov
  0 siblings, 0 replies; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-26 18:47 UTC (permalink / raw)
  To: buildroot

On Wed, Apr 26, 2017 at 12:26 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> On Tue, 25 Apr 2017 12:14:16 -0700, Andrey Smirnov wrote:
>> diff --git a/package/python-traitlets/Config.in b/package/python-traitlets/Config.in
>> new file mode 100644
>> index 0000000..ba79218
>> --- /dev/null
>> +++ b/package/python-traitlets/Config.in
>> @@ -0,0 +1,8 @@
>> +config BR2_PACKAGE_PYTHON_TRAITLETS
>> +     select BR2_PACKAGE_PYTHON_DECORATOR
>> +     select BR2_PACKAGE_PYTHON_ENUM if BR2_PACKAGE_PYTHON
>> +     bool "python-traitlets"
>
> The "bool" should be before the selects. Have you run your packages
> through support/scripts/check-package ?

No, forgot to do that, my bad, sorry. Will do in v2.

>
>> +PYTHON_TRAITLETS_DEPENDENCIES = python-decorator
>> +
>> +ifeq ($(BR2_PACKAGE_PYTHON),y)
>> +PYTHON_TRAITLETS_DEPENDENCIES += python-enum
>> +endif
>
> Are these really build time dependencies, or just runtime dependencies?

I think all of those are runtime dependencies. Will remove code like
this for non build time dependencies globally in v2.

Thanks,
Andrey Smirnov

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Buildroot] [PATCH 9/9] package/python-ipython: Add dependecy list
  2017-04-26  3:38   ` Baruch Siach
@ 2017-04-26 18:48     ` Andrey Smirnov
  0 siblings, 0 replies; 16+ messages in thread
From: Andrey Smirnov @ 2017-04-26 18:48 UTC (permalink / raw)
  To: buildroot

On Tue, Apr 25, 2017 at 8:38 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> Hi Andrey,
>
> On Tue, Apr 25, 2017 at 12:14:23PM -0700, Andrey Smirnov wrote:
>> List minimal set of packages needed to be installed alongside to be able
>> to run IPython with Python 3 (not tested on Python 2)
>
> [...]
>
>> diff --git a/package/python-ipython/python-ipython.mk b/package/python-ipython/python-ipython.mk
>> index e57d69d..f627846 100644
>> --- a/package/python-ipython/python-ipython.mk
>> +++ b/package/python-ipython/python-ipython.mk
>> @@ -10,5 +10,19 @@ PYTHON_IPYTHON_SITE = https://pypi.python.org/packages/6e/cf/c2a3ca5942e2d808457
>>  PYTHON_IPYTHON_LICENSE = BSD-3-Clause
>>  PYTHON_IPYTHON_LICENSE_FILES = COPYING.rst
>>  PYTHON_IPYTHON_SETUP_TYPE = distutils
>> +PYTHON_IPYTHON_DEPENDS =     \
>> +     python-traitlets        \
>> +     python-six              \
>> +     python-ipython-genutils \
>> +     python-pygments         \
>> +     python-pexpect          \
>> +     python-ptyprocess       \
>> +     python-pickleshare      \
>> +     python-prompt-toolkit   \
>> +     python-simplegeneric
>> +
>> +ifeq ($(BR2_PACKAGE_PYTHON),y)
>> +PYTHON_IPYTHON_DEPENDS += python-backports-shutil-get-terminal-size
>> +endif
>
> Are these run-time only dependencies? If so there is no need to list them in
> <PKG>_DEPENDS, since they are not needed at build time.
>

They are and agreed. Will remove in v2.

Thanks,
Andrey Smirnov

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-04-26 18:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-25 19:14 [Buildroot] [PATCH 0/9] Update IPython's dependencies Andrey Smirnov
2017-04-25 19:14 ` [Buildroot] [PATCH 1/9] package/python-decorator: New package Andrey Smirnov
2017-04-26  7:25   ` Thomas Petazzoni
2017-04-26 18:41     ` Andrey Smirnov
2017-04-25 19:14 ` [Buildroot] [PATCH 2/9] package/python-traitlets: " Andrey Smirnov
2017-04-26  7:26   ` Thomas Petazzoni
2017-04-26 18:47     ` Andrey Smirnov
2017-04-25 19:14 ` [Buildroot] [PATCH 3/9] package/python-simplegeneric: " Andrey Smirnov
2017-04-25 19:14 ` [Buildroot] [PATCH 4/9] package/python-ipython-genutils: " Andrey Smirnov
2017-04-25 19:14 ` [Buildroot] [PATCH 5/9] package/python-scandir: " Andrey Smirnov
2017-04-25 19:14 ` [Buildroot] [PATCH 6/9] package/python-pathlib2: " Andrey Smirnov
2017-04-25 19:14 ` [Buildroot] [PATCH 7/9] package/python-pickleshare: " Andrey Smirnov
2017-04-25 19:14 ` [Buildroot] [PATCH 8/9] package/python-backports-shutil-get-terminal-size: " Andrey Smirnov
2017-04-25 19:14 ` [Buildroot] [PATCH 9/9] package/python-ipython: Add dependecy list Andrey Smirnov
2017-04-26  3:38   ` Baruch Siach
2017-04-26 18:48     ` Andrey Smirnov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.