Message ID | 20170612234216.902-6-andrew.smirnov@gmail.com |
---|---|
State | Accepted |
Headers | show |
Hello, On Mon, 12 Jun 2017 16:42:14 -0700, Andrey Smirnov wrote: > Add 'python-backports-shutil-get-terminal-size'[1] package to > buildroot. Needed by IPython when building against Python2. > > [1] https://pypi.python.org/pypi/backports.shutil_get_terminal_size > > Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> > Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> > --- > DEVELOPERS | 1 + > package/Config.in | 1 + > .../python-backports-shutil-get-terminal-size/Config.in | 9 +++++++++ > .../python-backports-shutil-get-terminal-size.hash | 3 +++ > .../python-backports-shutil-get-terminal-size.mk | 14 ++++++++++++++ I think this one is probably the package with one of the longest name in Buildroot. > +config BR2_PACKAGE_PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE > + bool "python-backports-shutil-get-terminal-size" > + depends on BR2_PACKAGE_PYTHON > + help > + Unnecessary empty new line was left here. > + A backport of the get_terminal_size function from Python > + 3.3's shutil. > + > + https://pypi.python.org/pypi/backports.shutil_get_terminal_size Fixed when applying, of course. Thomas
diff --git a/DEVELOPERS b/DEVELOPERS index e66a31f..6289df6 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -81,6 +81,7 @@ F: package/p7zip/ F: package/wine/ N: Andrey Smirnov <andrew.smirnov@gmail.com> +F: package/python-backports-shutil-get-terminal-size/ F: package/python-decorator/ F: package/python-ipython-genutils/ F: package/python-pathlib2/ diff --git a/package/Config.in b/package/Config.in index 3ca3876..0e8e291 100644 --- a/package/Config.in +++ b/package/Config.in @@ -686,6 +686,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..c1b65e5 --- /dev/null +++ b/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.hash @@ -0,0 +1,3 @@ +# md5 from https://pypi.python.org/pypi/backports.shutil_get_terminal_size/json, sha256 locally computed +md5 03267762480bd86b50580dc19dff3c66 backports.shutil_get_terminal_size-1.0.0.tar.gz +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..68ac9a0 --- /dev/null +++ b/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# 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 +PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_LICENSE_FILE = LICENSE + +$(eval $(python-package))