From 09078c3139ee8f320267b35355dc44d60cd37c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:29 +0700 Subject: [PATCH 01/38] New package: python3-Pebble-4.5.1 --- srcpkgs/python3-Pebble/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-Pebble/template diff --git a/srcpkgs/python3-Pebble/template b/srcpkgs/python3-Pebble/template new file mode 100644 index 00000000000..cea38bd0c61 --- /dev/null +++ b/srcpkgs/python3-Pebble/template @@ -0,0 +1,20 @@ +# Template file for 'python3-Pebble' +pkgname=python3-Pebble +version=4.5.1 +revision=1 +archs=noarch +wrksrc=Pebble-${version} +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +checkdepends="python3-pytest" +short_desc="Threading and multiprocessing eye-candy for Python" +maintainer="Đoàn Trần Công Danh " +license="LGPL-3.0-or-later" +homepage="https://pebble.readthedocs.io/en/latest/" +distfiles="${PYPI_SITE}/P/Pebble/Pebble-${version}.tar.gz" +checksum=26fdcc0f36d93d8e07559d36b942b7800c6b9622626d5b587ab1a74820d02732 + +do_check() { + PYTHONPATH=$(pwd)/build/lib pytest +} From 34a2204828a5f73dce437605e0d02edfa6e45904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:31 +0700 Subject: [PATCH 02/38] New package: python3-QtPy-1.9.0 --- srcpkgs/python3-QtPy/template | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 srcpkgs/python3-QtPy/template diff --git a/srcpkgs/python3-QtPy/template b/srcpkgs/python3-QtPy/template new file mode 100644 index 00000000000..2ddc8b313ee --- /dev/null +++ b/srcpkgs/python3-QtPy/template @@ -0,0 +1,35 @@ +# Template file for 'python3-QtPy' +pkgname=python3-QtPy +version=1.9.0 +revision=1 +archs=noarch +wrksrc=QtPy-${version} +build_style=python3-module +hostmakedepends="python3-setuptools" +# depends on any of PySide2 PyQt5 +depends="python3" +checkdepends="python3-pytest python3-mock python3-pyside2-webengine + python3-PyQt5-sql python3-PyQt5-svg python3-PyQt5-webengine + python3-PyQt5-websockets python3-PyQt5-xmlpatterns python3-PyQt5-quick + python3-PyQt5-multimedia python3-PyQt5-location python3-PyQt5-tools" +short_desc="Abstraction layer on top of various Python Qt bindings" +maintainer="Đoàn Trần Công Danh " +license="MIT" +homepage="https://github.com/spyder-ide/qtpy" +distfiles="${PYPI_SITE}/Q/QtPy/QtPy-${version}.tar.gz" +checksum=2db72c44b55d0fe1407be8fba35c838ad0d6d3bb81f23007886dc1fc0f459c8d + +post_patch() { + # Both of those tests are failing inside chroot, + # but success outside of chroot + rm -f qtpy/tests/test_patch_qcombobox.py +} + +do_check() { + CI=1 QT_API=PyQt5 FORCE_QT_API=PyQt5 pytest -k 'not test_load_ui' + CI=1 QT_API=PySide2 FORCE_QT_API=PySide2 pytest +} + +post_install() { + vlicense LICENSE.txt +} From 0220b99b61389b7d20e538200befd74c17230071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:32 +0700 Subject: [PATCH 03/38] New package: python3-EasyProcess-0.2.10 --- srcpkgs/python3-EasyProcess/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/python3-EasyProcess/template diff --git a/srcpkgs/python3-EasyProcess/template b/srcpkgs/python3-EasyProcess/template new file mode 100644 index 00000000000..db1c8197e84 --- /dev/null +++ b/srcpkgs/python3-EasyProcess/template @@ -0,0 +1,25 @@ +# Template file for 'python3-EasyProcess' +pkgname=python3-EasyProcess +version=0.2.10 +revision=1 +archs=noarch +wrksrc=EasyProcess-${version} +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +checkdepends="python3-pytest python3-nose python3-PyVirtualDisplay inetutils + xorg-server-xvfb" +short_desc="Easy to use python subprocess interface" +maintainer="Đoàn Trần Công Danh " +license="BSD-2-Clause" +homepage="https://github.com/ponty/easyprocess" +distfiles="${PYPI_SITE}/E/EasyProcess/EasyProcess-${version}.tar.gz" +checksum=636b5e30222cde1e881fafc0112b35d516bce41ddee83ecbac656dec9befea1b + +do_check() { + PYTHONPATH=$(pwd)/build/lib pytest +} + +post_install() { + vlicense LICENSE.txt +} From 24e7f9767a935c890da8c861444dd5fa61e3066d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:33 +0700 Subject: [PATCH 04/38] New package: python3-PyVirtualDisplay-0.2.5 --- srcpkgs/python3-PyVirtualDisplay/template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/python3-PyVirtualDisplay/template diff --git a/srcpkgs/python3-PyVirtualDisplay/template b/srcpkgs/python3-PyVirtualDisplay/template new file mode 100644 index 00000000000..6cf2afcf765 --- /dev/null +++ b/srcpkgs/python3-PyVirtualDisplay/template @@ -0,0 +1,23 @@ +# Template file for 'python3-PyVirtualDisplay' +pkgname=python3-PyVirtualDisplay +version=0.2.5 +revision=1 +archs=noarch +wrksrc=PyVirtualDisplay-${version} +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-EasyProcess" +short_desc="Python wrapper for Xvfb, Xephyr and Xvnc" +maintainer="Đoàn Trần Công Danh " +license="BSD-2-Clause" +homepage="https://github.com/ponty/pyvirtualdisplay" +distfiles="${PYPI_SITE}/P/PyVirtualDisplay/PyVirtualDisplay-${version}.tar.gz" +checksum=5b267c8ffc98fcbd084ba852ab4caef3f22e9362bc5d117e1697e767553eaf41 + +do_check() { + : no test shipped with dist files +} + +post_install() { + vlicense LICENSE.txt +} From cbca99cbd286e23ff77d04c9d80b9d519bbc7591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:34 +0700 Subject: [PATCH 05/38] New package: python3-pytest-xvfb-1.2.0 --- srcpkgs/python3-pytest-xvfb/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-pytest-xvfb/template diff --git a/srcpkgs/python3-pytest-xvfb/template b/srcpkgs/python3-pytest-xvfb/template new file mode 100644 index 00000000000..9670ee4ccac --- /dev/null +++ b/srcpkgs/python3-pytest-xvfb/template @@ -0,0 +1,20 @@ +# Template file for 'python3-pytest-xvfb' +pkgname=python3-pytest-xvfb +version=1.2.0 +revision=1 +archs=noarch +wrksrc=pytest-xvfb-${version} +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-pytest>=2.8.1 python3-PyVirtualDisplay xorg-server-xvfb xauth" +checkdepends="python3-pytest python3-PyVirtualDisplay xorg-server-xvfb xauth" +short_desc="Pytest plugin to run Xvfb for tests" +maintainer="Đoàn Trần Công Danh " +license="MIT" +homepage="https://github.com/The-Compiler/pytest-xvfb" +distfiles="${PYPI_SITE}/p/pytest-xvfb/pytest-xvfb-${version}.tar.gz" +checksum=a7544ca8d0c7c40db4b40d7a417a7b071c68d6ef6bdf9700872d7a167302f979 + +post_install() { + vlicense LICENSE +} From 3520ab8da61f035ab3f0f907b7b235adc58dbbdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:35 +0700 Subject: [PATCH 06/38] New package: python3-pytest-qt-3.3.0 --- srcpkgs/python3-pytest-qt/template | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/python3-pytest-qt/template diff --git a/srcpkgs/python3-pytest-qt/template b/srcpkgs/python3-pytest-qt/template new file mode 100644 index 00000000000..a15bc15a4f3 --- /dev/null +++ b/srcpkgs/python3-pytest-qt/template @@ -0,0 +1,32 @@ +# Template file for 'python3-pytest-qt' +pkgname=python3-pytest-qt +version=3.3.0 +revision=1 +archs=noarch +wrksrc=pytest-qt-${version} +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-pytest" +checkdepends="$depends python3-pyside2 python3-PyQt5 python3-pytest-xvfb + xdpyinfo" +short_desc="Pytest support for PyQt and PySide applications" +maintainer="Đoàn Trần Công Danh " +license="MIT" +homepage="https://github.com/pytest-dev/pytest-qt" +distfiles="${PYPI_SITE}/p/pytest-qt/pytest-qt-${version}.tar.gz" +checksum=714b0bf86c5313413f2d300ac613515db3a1aef595051ab8ba2ffe619dbe8925 + +do_check() { + # testing for some configuration in test_basics.py, + # isn't those 2 below tests are the real test for envvar + # Why does it run just fine? + local _skip='test_qapp_args or test_qt_api_ini_config or test_invalid_qt_api_envvar' + PYTHONPATH=$(pwd)/build/lib QT_QPA_PLATFORM=offscreen \ + PYTEST_QT_API=pyside2 python3 -m pytest -k "not ($_skip)" + PYTHONPATH=$(pwd)/build/lib QT_QPA_PLATFORM=offscreen \ + PYTEST_QT_API=pyqt5 python3 -m pytest -k "not ($_skip)" +} + +post_install() { + vlicense LICENSE +} From 51afc3ea519ae27998033799b0b9da4fa99943a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:36 +0700 Subject: [PATCH 07/38] python-jupyter: drop python 2 package Also make jupyter as subpackage of jupyter_core to avoid vlicense lint. /usr/bin/jupyter is provided by jupyter_core packages. --- srcpkgs/python-jupyter/template | 26 -------------------------- srcpkgs/python-jupyter_core/template | 16 +++++++++++----- srcpkgs/python3-jupyter | 2 +- 3 files changed, 12 insertions(+), 32 deletions(-) delete mode 100644 srcpkgs/python-jupyter/template diff --git a/srcpkgs/python-jupyter/template b/srcpkgs/python-jupyter/template deleted file mode 100644 index e89802506cf..00000000000 --- a/srcpkgs/python-jupyter/template +++ /dev/null @@ -1,26 +0,0 @@ -# Template file for 'python-jupyter' -pkgname=python-jupyter -version=1.0.0 -revision=5 -archs=noarch -build_style=meta -short_desc="The Jupyter metapackage for Void Linux (Python2)" -maintainer="Alessio Sergi " -homepage="https://jupyter.org/" -license="BSD-3-Clause" -depends=" - python-jupyter_notebook - python-jupyter_console - python-jupyter_nbconvert - python-jupyter_ipywidgets" - -python3-jupyter_package() { - archs=noarch - build_style=meta - short_desc="${short_desc/Python2/Python3}" - depends=" - python3-jupyter_notebook - python3-jupyter_console - python3-jupyter_nbconvert - python3-jupyter_ipywidgets" -} diff --git a/srcpkgs/python-jupyter_core/template b/srcpkgs/python-jupyter_core/template index f1629208e86..07c270fa77f 100644 --- a/srcpkgs/python-jupyter_core/template +++ b/srcpkgs/python-jupyter_core/template @@ -1,17 +1,16 @@ # Template file for 'python-jupyter_core' pkgname=python-jupyter_core version=4.4.0 -revision=2 +revision=3 archs=noarch wrksrc="jupyter_core-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" depends="python-traitlets" -pycompile_module="jupyter_core jupyter.py" short_desc="Jupyter core package (Python2)" maintainer="Alessio Sergi " -homepage="https://github.com/jupyter/jupyter_core" -license="3-clause-BSD" +license="BSD-3-Clause" +homepage="https://jupyter.org" distfiles="${PYPI_SITE}/j/jupyter_core/jupyter_core-${version}.tar.gz" checksum=ba70754aa680300306c699790128f6fbd8c306ee5927976cbe48adacf240c0b7 @@ -29,7 +28,6 @@ python3-jupyter_core_package() { jupyter-core:jupyter-migrate:/usr/bin/jupyter-migrate3" archs=noarch depends="python3-traitlets" - pycompile_module="jupyter_core jupyter.py" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/bin/jupyter3 @@ -38,3 +36,11 @@ python3-jupyter_core_package() { vlicense COPYING.md LICENSE } } + +python3-jupyter_package() { + build_style=meta + archs=noarch + depends="python3-jupyter_notebook python3-jupyter_console + python3-jupyter_ipywidgets" + short_desc="Jupyter metapackage for Void Linux" +} diff --git a/srcpkgs/python3-jupyter b/srcpkgs/python3-jupyter index 5c43ae08651..d348df87da4 120000 --- a/srcpkgs/python3-jupyter +++ b/srcpkgs/python3-jupyter @@ -1 +1 @@ -python-jupyter \ No newline at end of file +python3-jupyter_core \ No newline at end of file From 4b63a82291fbb58487f105e769a93e528a7cd6d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:38 +0700 Subject: [PATCH 08/38] python-jupyter_console: drop package --- srcpkgs/python-jupyter_console/template | 24 ------------------------ srcpkgs/python-jupyter_console/update | 1 - 2 files changed, 25 deletions(-) delete mode 100644 srcpkgs/python-jupyter_console/template delete mode 100644 srcpkgs/python-jupyter_console/update diff --git a/srcpkgs/python-jupyter_console/template b/srcpkgs/python-jupyter_console/template deleted file mode 100644 index bdc224067c0..00000000000 --- a/srcpkgs/python-jupyter_console/template +++ /dev/null @@ -1,24 +0,0 @@ -# Template file for 'python-jupyter_console' -pkgname=python-jupyter_console -version=5.2.0 -revision=4 -archs=noarch -wrksrc="jupyter_console-${version}" -build_style=python2-module -pycompile_module="jupyter_console" -hostmakedepends="python-setuptools" -depends="python-ipython python-ipython_ipykernel python-jupyter_client - python-prompt_toolkit1 python-Pygments" -short_desc="Jupyter terminal console (Python2)" -maintainer="Alessio Sergi " -license="BSD-3-Clause" -homepage="https://github.com/jupyter/jupyter_console" -distfiles="${PYPI_SITE}/j/jupyter_console/jupyter_console-${version}.tar.gz" -checksum=545dedd3aaaa355148093c5609f0229aeb121b4852995c2accfa64fe3e0e55cd -alternatives="jupyter-console:jupyter-console:/usr/bin/jupyter-console2" - -post_install() { - # create versioned script for alternatives - mv ${DESTDIR}/usr/bin/jupyter-console{,2} - vlicense COPYING.md LICENSE -} diff --git a/srcpkgs/python-jupyter_console/update b/srcpkgs/python-jupyter_console/update deleted file mode 100644 index b2ab5939791..00000000000 --- a/srcpkgs/python-jupyter_console/update +++ /dev/null @@ -1 +0,0 @@ -ignore="*b* 6.*" From b4966e5d03a9ee33e9c6781c37a3dfd4f94f2eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:39 +0700 Subject: [PATCH 09/38] python3-jupyter_console: drop alternatives --- srcpkgs/python3-jupyter_console/template | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python3-jupyter_console/template b/srcpkgs/python3-jupyter_console/template index 3837e5b3bbf..cc06132ec85 100644 --- a/srcpkgs/python3-jupyter_console/template +++ b/srcpkgs/python3-jupyter_console/template @@ -1,11 +1,10 @@ # Template file for 'python3-jupyter_console' pkgname=python3-jupyter_console version=6.0.0 -revision=2 +revision=3 archs=noarch wrksrc="jupyter_console-${version}" build_style=python3-module -pycompile_module="jupyter_console" hostmakedepends="python3-setuptools" depends="python3-ipython python3-ipython_ipykernel python3-jupyter_client python3-prompt_toolkit2 python3-Pygments" @@ -15,10 +14,9 @@ license="BSD-3-Clause" homepage="https://github.com/jupyter/jupyter_console" distfiles="${PYPI_SITE}/j/jupyter_console/jupyter_console-${version}.tar.gz" checksum=308ce876354924fb6c540b41d5d6d08acfc946984bf0c97777c1ddcb42e0b2f5 -alternatives="jupyter-console:jupyter-console:/usr/bin/jupyter-console3" +# alternatives will be a conflict +conflicts="python-jupyter_console<=6.0.0_2" post_install() { - # create versioned script for alternatives - mv ${DESTDIR}/usr/bin/jupyter-console{,3} vlicense COPYING.md LICENSE } From 0256d5f50c1a8cfdc9f20fb615f982b8487df7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:40 +0700 Subject: [PATCH 10/38] python-jupyter_ipywidgets: drop package --- srcpkgs/python-jupyter_ipywidgets/template | 34 --------------------- srcpkgs/python3-jupyter_ipywidgets | 1 - srcpkgs/python3-jupyter_ipywidgets/template | 21 +++++++++++++ 3 files changed, 21 insertions(+), 35 deletions(-) delete mode 100644 srcpkgs/python-jupyter_ipywidgets/template delete mode 120000 srcpkgs/python3-jupyter_ipywidgets create mode 100644 srcpkgs/python3-jupyter_ipywidgets/template diff --git a/srcpkgs/python-jupyter_ipywidgets/template b/srcpkgs/python-jupyter_ipywidgets/template deleted file mode 100644 index 44570cf390a..00000000000 --- a/srcpkgs/python-jupyter_ipywidgets/template +++ /dev/null @@ -1,34 +0,0 @@ -# Template file for 'python-jupyter_ipywidgets' -pkgname=python-jupyter_ipywidgets -version=7.4.2 -revision=2 -archs=noarch -_widgetsnbextver=3.4.0 -wrksrc="ipywidgets-${version}" -build_style=python-module -pycompile_module="ipywidgets" -hostmakedepends="python-setuptools python3-setuptools" -depends="python-jupyter_widgetsnbextension>=${_widgetsnbextver} - python-ipython_ipykernel python-traitlets" -short_desc="IPython widgets for the Jupyter notebook (Python2)" -maintainer="Alessio Sergi " -homepage="https://github.com/jupyter-widgets/ipywidgets" -license="BSD-3-Clause" -distfiles="${PYPI_SITE}/i/ipywidgets/ipywidgets-${version}.tar.gz" -checksum=a3e224f430163f767047ab9a042fc55adbcab0c24bbe6cf9f306c4f89fdf0ba3 - -post_install() { - vlicense LICENSE -} - -python3-jupyter_ipywidgets_package() { - archs=noarch - pycompile_module="ipywidgets" - depends="python3-jupyter_widgetsnbextension>=${_widgetsnbextver} - python3-ipython_ipykernel python3-traitlets" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-jupyter_ipywidgets b/srcpkgs/python3-jupyter_ipywidgets deleted file mode 120000 index 5100ae0a31d..00000000000 --- a/srcpkgs/python3-jupyter_ipywidgets +++ /dev/null @@ -1 +0,0 @@ -python-jupyter_ipywidgets \ No newline at end of file diff --git a/srcpkgs/python3-jupyter_ipywidgets/template b/srcpkgs/python3-jupyter_ipywidgets/template new file mode 100644 index 00000000000..4d81b7844c4 --- /dev/null +++ b/srcpkgs/python3-jupyter_ipywidgets/template @@ -0,0 +1,21 @@ +# Template file for 'python3-jupyter_ipywidgets' +pkgname=python3-jupyter_ipywidgets +version=7.4.2 +revision=3 +archs=noarch +_widgetsnbextver=3.4.0 +wrksrc="ipywidgets-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-jupyter_widgetsnbextension>=${_widgetsnbextver} + python3-ipython_ipykernel python3-traitlets" +short_desc="IPython widgets for the Jupyter notebook" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="https://github.com/jupyter-widgets/ipywidgets" +distfiles="${PYPI_SITE}/i/ipywidgets/ipywidgets-${version}.tar.gz" +checksum=a3e224f430163f767047ab9a042fc55adbcab0c24bbe6cf9f306c4f89fdf0ba3 + +post_install() { + vlicense LICENSE +} From 62377c461349d7742c7a65d63d34da312f6d7517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:41 +0700 Subject: [PATCH 11/38] python-jupyter_qtconsole: drop python 2 package --- srcpkgs/python-jupyter_qtconsole/template | 38 ---------------------- srcpkgs/python3-jupyter_qtconsole | 1 - srcpkgs/python3-jupyter_qtconsole/template | 27 +++++++++++++++ 3 files changed, 27 insertions(+), 39 deletions(-) delete mode 100644 srcpkgs/python-jupyter_qtconsole/template delete mode 120000 srcpkgs/python3-jupyter_qtconsole create mode 100644 srcpkgs/python3-jupyter_qtconsole/template diff --git a/srcpkgs/python-jupyter_qtconsole/template b/srcpkgs/python-jupyter_qtconsole/template deleted file mode 100644 index ea7f89a62af..00000000000 --- a/srcpkgs/python-jupyter_qtconsole/template +++ /dev/null @@ -1,38 +0,0 @@ -# Template file for 'python-jupyter_qtconsole' -pkgname=python-jupyter_qtconsole -version=4.4.3 -revision=2 -archs=noarch -wrksrc="qtconsole-${version}" -build_style=python-module -pycompile_module="qtconsole" -hostmakedepends="python-setuptools python3-setuptools" -depends="python-traitlets python-jupyter_core python-jupyter_client - python-Pygments python-ipython_ipykernel python-ipython_genutils - python-PyQt5-svg" -short_desc="Jupyter Qt console (Python2)" -maintainer="Alessio Sergi " -license="BSD-3-Clause" -homepage="https://github.com/jupyter/qtconsole" -distfiles="${PYPI_SITE}/q/qtconsole/qtconsole-${version}.tar.gz" -checksum=bc1ba15f50c29ed50f1268ad823bb6543be263c18dd093b80495e9df63b003ac -alternatives="jupyter-qtconsole:jupyter-qtconsole:/usr/bin/jupyter-qtconsole2" - -post_install() { - vlicense LICENSE -} - -python3-jupyter_qtconsole_package() { - archs=noarch - depends="python3-traitlets python3-jupyter_core python3-jupyter_client - python3-Pygments python3-ipython_ipykernel python3-ipython_genutils - python3-PyQt5-svg" - pycompile_module="qtconsole" - short_desc="${short_desc/Python2/Python3}" - alternatives="jupyter-qtconsole:jupyter-qtconsole:/usr/bin/jupyter-qtconsole3" - pkg_install() { - vmove usr/bin/jupyter-qtconsole3 - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-jupyter_qtconsole b/srcpkgs/python3-jupyter_qtconsole deleted file mode 120000 index 964d4d35037..00000000000 --- a/srcpkgs/python3-jupyter_qtconsole +++ /dev/null @@ -1 +0,0 @@ -python-jupyter_qtconsole \ No newline at end of file diff --git a/srcpkgs/python3-jupyter_qtconsole/template b/srcpkgs/python3-jupyter_qtconsole/template new file mode 100644 index 00000000000..44e8639e502 --- /dev/null +++ b/srcpkgs/python3-jupyter_qtconsole/template @@ -0,0 +1,27 @@ +# Template file for 'python3-jupyter_qtconsole' +pkgname=python3-jupyter_qtconsole +version=4.4.3 +revision=3 +archs=noarch +wrksrc="qtconsole-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-traitlets python3-jupyter_core python3-jupyter_client + python3-Pygments python3-ipython_ipykernel python3-ipython_genutils + python3-PyQt5-svg" +checkdepends="$depends python3-pytest" +short_desc="Jupyter Qt console" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="https://github.com/jupyter/qtconsole" +distfiles="${PYPI_SITE}/q/qtconsole/qtconsole-${version}.tar.gz" +checksum=bc1ba15f50c29ed50f1268ad823bb6543be263c18dd093b80495e9df63b003ac +conflicts="python-jupyter_qtconsole<=4.4.3_2" + +do_check() { + QT_QPA_PLATFORM=offscreen pytest +} + +post_install() { + vlicense LICENSE +} From c9a959536dd5449b247aab918baa9b41a19dab87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:42 +0700 Subject: [PATCH 12/38] jupyter_widgetsnbextension: drop python 2, merge data into python 3 --- .../python-jupyter_widgetsnbextension-data | 1 - .../template | 47 ------------------- srcpkgs/python3-jupyter_widgetsnbextension | 1 - .../template | 24 ++++++++++ 4 files changed, 24 insertions(+), 49 deletions(-) delete mode 120000 srcpkgs/python-jupyter_widgetsnbextension-data delete mode 100644 srcpkgs/python-jupyter_widgetsnbextension/template delete mode 120000 srcpkgs/python3-jupyter_widgetsnbextension create mode 100644 srcpkgs/python3-jupyter_widgetsnbextension/template diff --git a/srcpkgs/python-jupyter_widgetsnbextension-data b/srcpkgs/python-jupyter_widgetsnbextension-data deleted file mode 120000 index d92251cfb9e..00000000000 --- a/srcpkgs/python-jupyter_widgetsnbextension-data +++ /dev/null @@ -1 +0,0 @@ -python-jupyter_widgetsnbextension \ No newline at end of file diff --git a/srcpkgs/python-jupyter_widgetsnbextension/template b/srcpkgs/python-jupyter_widgetsnbextension/template deleted file mode 100644 index 05e9c0d00a3..00000000000 --- a/srcpkgs/python-jupyter_widgetsnbextension/template +++ /dev/null @@ -1,47 +0,0 @@ -# Template file for 'python-jupyter_widgetsnbextension' -pkgname=python-jupyter_widgetsnbextension -version=3.4.2 -revision=2 -archs=noarch -wrksrc="widgetsnbextension-${version}" -build_style=python-module -pycompile_module="widgetsnbextension" -hostmakedepends="python-setuptools python3-setuptools" -depends="python-jupyter_widgetsnbextension-data>=${version}_${revision} - python-jupyter_notebook" -short_desc="Interactive HTML widgets for Jupyter notebooks (Python2)" -maintainer="Alessio Sergi " -homepage="https://pypi.org/project/widgetsnbextension/" -license="BSD-3-Clause" -distfiles="${PYPI_SITE}/w/widgetsnbextension/widgetsnbextension-${version}.tar.gz" -checksum=fa618be8435447a017fd1bf2c7ae922d0428056cfc7449f7a8641edf76b48265 - -pre_build() { - sed -i '/widgetsnbextension.json/d' setup.py -} -post_install() { - vlicense LICENSE -} - -python-jupyter_widgetsnbextension-data_package() { - archs=noarch - short_desc+=" - data files" - conf_files="/etc/jupyter/nbconfig/notebook.d/widgetsnbextension.json" - pkg_install() { - vmkdir etc/jupyter/nbconfig/notebook.d - vinstall widgetsnbextension.json 644 etc/jupyter/nbconfig/notebook.d - vmove usr/share/jupyter - } -} - -python3-jupyter_widgetsnbextension_package() { - archs=noarch - pycompile_module="widgetsnbextension" - depends="python-jupyter_widgetsnbextension-data>=${version}_${revision} - python3-jupyter_notebook" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-jupyter_widgetsnbextension b/srcpkgs/python3-jupyter_widgetsnbextension deleted file mode 120000 index d92251cfb9e..00000000000 --- a/srcpkgs/python3-jupyter_widgetsnbextension +++ /dev/null @@ -1 +0,0 @@ -python-jupyter_widgetsnbextension \ No newline at end of file diff --git a/srcpkgs/python3-jupyter_widgetsnbextension/template b/srcpkgs/python3-jupyter_widgetsnbextension/template new file mode 100644 index 00000000000..40a5f33daae --- /dev/null +++ b/srcpkgs/python3-jupyter_widgetsnbextension/template @@ -0,0 +1,24 @@ +# Template file for 'python3-jupyter_widgetsnbextension' +pkgname=python3-jupyter_widgetsnbextension +version=3.4.2 +revision=3 +archs=noarch +wrksrc="widgetsnbextension-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-jupyter_notebook" +checkdepends="$depends" +short_desc="Interactive HTML widgets for Jupyter notebooks" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="https://pypi.org/project/widgetsnbextension/" +distfiles="${PYPI_SITE}/w/widgetsnbextension/widgetsnbextension-${version}.tar.gz" +checksum=fa618be8435447a017fd1bf2c7ae922d0428056cfc7449f7a8641edf76b48265 +replaces="python-jupyter_widgetsnbextension-data>=0" +conf_files="/etc/jupyter/nbconfig/notebook.d/widgetsnbextension.json" + +post_install() { + # /usr/etc is intended for *example configuration* + mv ${DESTDIR}/usr/etc ${DESTDIR} + vlicense LICENSE +} From c9bed936f03b0a868300d3c8c036e1944d638099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:43 +0700 Subject: [PATCH 13/38] python-jupyter_notebook: drop python 2 --- srcpkgs/python-jupyter_notebook/template | 55 ----------------------- srcpkgs/python3-jupyter_notebook | 1 - srcpkgs/python3-jupyter_notebook/template | 32 +++++++++++++ 3 files changed, 32 insertions(+), 56 deletions(-) delete mode 100644 srcpkgs/python-jupyter_notebook/template delete mode 120000 srcpkgs/python3-jupyter_notebook create mode 100644 srcpkgs/python3-jupyter_notebook/template diff --git a/srcpkgs/python-jupyter_notebook/template b/srcpkgs/python-jupyter_notebook/template deleted file mode 100644 index 4f6de0f642d..00000000000 --- a/srcpkgs/python-jupyter_notebook/template +++ /dev/null @@ -1,55 +0,0 @@ -# Template file for 'python-jupyter_notebook' -pkgname=python-jupyter_notebook -version=5.7.0 -revision=2 -archs=noarch -wrksrc="notebook-${version}" -build_style=python-module -pycompile_module="notebook" -hostmakedepends="python-setuptools python3-setuptools" -depends="python-Jinja2 python-terminado python-tornado - python-ipython_genutils python-traitlets python-jupyter_core - python-jupyter_client python-jupyter_nbformat python-jupyter_nbconvert - python-ipython_ipykernel python-send2trash python-prometheus_client - python-ipaddress mathjax" -short_desc="Jupyter interactive notebook (Python2)" -maintainer="Alessio Sergi " -homepage="https://github.com/jupyter/notebook" -license="BSD-3-Clause" -distfiles="${PYPI_SITE}/n/notebook/notebook-${version}.tar.gz" -checksum=b85e4de3d54cf4f14fe1d0515a980ccb49ddd4cdd21250cc0d4fb6374d50b1a7 - -alternatives=" - jupyter-notebook:jupyter-notebook:/usr/bin/jupyter-notebook2 - jupyter-notebook:jupyter-nbextension:/usr/bin/jupyter-nbextension2 - jupyter-notebook:jupyter-serverextension:/usr/bin/jupyter-serverextension2 - jupyter-notebook:jupyter-bundlerextension:/usr/bin/jupyter-bundlerextension2" - -post_install() { - vlicense COPYING.md LICENSE - # use system mathjax - for py_sitelib in $py2_sitelib $py3_sitelib; do - rm -rf ${DESTDIR}/${py_sitelib}/notebook/static/components/MathJax - ln -sf /usr/share/mathjax ${DESTDIR}/${py_sitelib}/notebook/static/components/MathJax - done -} - -python3-jupyter_notebook_package() { - alternatives=" - jupyter-notebook:jupyter-notebook:/usr/bin/jupyter-notebook3 - jupyter-notebook:jupyter-nbextension:/usr/bin/jupyter-nbextension3 - jupyter-notebook:jupyter-serverextension:/usr/bin/jupyter-serverextension3 - jupyter-notebook:jupyter-bundlerextension:/usr/bin/jupyter-bundlerextension3" - archs=noarch - depends="python3-Jinja2 python3-terminado python3-tornado - python3-ipython_genutils python3-traitlets python3-jupyter_core - python3-jupyter_client python3-jupyter_nbformat python3-jupyter_nbconvert - python3-ipython_ipykernel python3-send2trash python3-prometheus_client mathjax" - pycompile_module="notebook" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/bin/*3 - vmove usr/lib/python3* - vlicense COPYING.md LICENSE - } -} diff --git a/srcpkgs/python3-jupyter_notebook b/srcpkgs/python3-jupyter_notebook deleted file mode 120000 index 8c3e828e727..00000000000 --- a/srcpkgs/python3-jupyter_notebook +++ /dev/null @@ -1 +0,0 @@ -python-jupyter_notebook \ No newline at end of file diff --git a/srcpkgs/python3-jupyter_notebook/template b/srcpkgs/python3-jupyter_notebook/template new file mode 100644 index 00000000000..d35ec7da3c3 --- /dev/null +++ b/srcpkgs/python3-jupyter_notebook/template @@ -0,0 +1,32 @@ +# Template file for 'python3-jupyter_notebook' +pkgname=python3-jupyter_notebook +version=5.7.0 +revision=3 +archs=noarch +wrksrc="notebook-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-Jinja2 python3-terminado python3-tornado + python3-ipython_genutils python3-traitlets python3-jupyter_core + python3-jupyter_client python3-jupyter_nbformat python3-jupyter_nbconvert + python3-ipython_ipykernel python3-send2trash python3-prometheus_client + mathjax" +checkdepends="$depends" +short_desc="Jupyter interactive notebook" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="https://jupyter.org/" +distfiles="${PYPI_SITE}/n/notebook/notebook-${version}.tar.gz" +checksum=b85e4de3d54cf4f14fe1d0515a980ccb49ddd4cdd21250cc0d4fb6374d50b1a7 +conflicts="python-jupyter_notebook<=5.7.0_2" + +post_install() { + vlicense COPYING.md LICENSE + # use system mathjax + rm -rf ${DESTDIR}/${py3_sitelib}/notebook/static/components/MathJax + ln -sf /usr/share/mathjax ${DESTDIR}/${py3_sitelib}/notebook/static/components/MathJax +} + +do_check() { + : no selenium +} From 120544f0db9e85ecad83b15db1d221a881216e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:45 +0700 Subject: [PATCH 14/38] python-jupyter_nbconvert: drop python 2 --- srcpkgs/python-jupyter_nbconvert/INSTALL.msg | 2 - srcpkgs/python-jupyter_nbconvert/template | 38 ------------------- srcpkgs/python3-jupyter_nbconvert | 1 - .../INSTALL.msg} | 0 srcpkgs/python3-jupyter_nbconvert/template | 28 ++++++++++++++ 5 files changed, 28 insertions(+), 41 deletions(-) delete mode 100644 srcpkgs/python-jupyter_nbconvert/INSTALL.msg delete mode 100644 srcpkgs/python-jupyter_nbconvert/template delete mode 120000 srcpkgs/python3-jupyter_nbconvert rename srcpkgs/{python-jupyter_nbconvert/python3-jupyter_nbconvert.INSTALL.msg => python3-jupyter_nbconvert/INSTALL.msg} (100%) create mode 100644 srcpkgs/python3-jupyter_nbconvert/template diff --git a/srcpkgs/python-jupyter_nbconvert/INSTALL.msg b/srcpkgs/python-jupyter_nbconvert/INSTALL.msg deleted file mode 100644 index 9031810f68d..00000000000 --- a/srcpkgs/python-jupyter_nbconvert/INSTALL.msg +++ /dev/null @@ -1,2 +0,0 @@ -To convert notebooks to formats other than HTML and markdown install -python-Sphinx and/or pandoc. diff --git a/srcpkgs/python-jupyter_nbconvert/template b/srcpkgs/python-jupyter_nbconvert/template deleted file mode 100644 index e6cdad7d21c..00000000000 --- a/srcpkgs/python-jupyter_nbconvert/template +++ /dev/null @@ -1,38 +0,0 @@ -# Template file for 'python-jupyter_nbconvert' -pkgname=python-jupyter_nbconvert -version=5.4.1 -revision=2 -archs=noarch -wrksrc="nbconvert-${version}" -build_style=python-module -pycompile_module="nbconvert" -hostmakedepends="python-setuptools python3-setuptools" -depends="python-mistune python-Jinja2 python-Pygments python-traitlets - python-jupyter_core python-jupyter_nbformat python-entrypoints - python-testpath python-bleach python-pandocfilters python-defusedxml" -short_desc="Converting Jupyter notebooks (Python2)" -maintainer="Alessio Sergi " -license="BSD-3-Clause" -homepage="https://github.com/jupyter/nbconvert" -distfiles="${PYPI_SITE}/n/nbconvert/nbconvert-${version}.tar.gz" -checksum=302554a2e219bc0fc84f3edd3e79953f3767b46ab67626fdec16e38ba3f7efe4 -alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert2" - -post_install() { - vlicense LICENSE -} - -python3-jupyter_nbconvert_package() { - archs=noarch - depends="python3-mistune python3-Jinja2 python3-Pygments python3-traitlets - python3-jupyter_core python3-jupyter_nbformat python3-entrypoints - python3-testpath python3-bleach python3-pandocfilters python3-defusedxml" - pycompile_module="nbconvert" - short_desc="${short_desc/Python2/Python3}" - alternatives="jupyter-nbconvert:jupyter-nbconvert:/usr/bin/jupyter-nbconvert3" - pkg_install() { - vmove usr/bin/jupyter-nbconvert3 - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-jupyter_nbconvert b/srcpkgs/python3-jupyter_nbconvert deleted file mode 120000 index 441bbee041a..00000000000 --- a/srcpkgs/python3-jupyter_nbconvert +++ /dev/null @@ -1 +0,0 @@ -python-jupyter_nbconvert \ No newline at end of file diff --git a/srcpkgs/python-jupyter_nbconvert/python3-jupyter_nbconvert.INSTALL.msg b/srcpkgs/python3-jupyter_nbconvert/INSTALL.msg similarity index 100% rename from srcpkgs/python-jupyter_nbconvert/python3-jupyter_nbconvert.INSTALL.msg rename to srcpkgs/python3-jupyter_nbconvert/INSTALL.msg diff --git a/srcpkgs/python3-jupyter_nbconvert/template b/srcpkgs/python3-jupyter_nbconvert/template new file mode 100644 index 00000000000..e10a2048b2a --- /dev/null +++ b/srcpkgs/python3-jupyter_nbconvert/template @@ -0,0 +1,28 @@ +# Template file for 'python3-jupyter_nbconvert' +pkgname=python3-jupyter_nbconvert +version=5.4.1 +revision=3 +archs=noarch +wrksrc="nbconvert-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-mistune python3-Jinja2 python3-Pygments python3-traitlets + python3-jupyter_core python3-jupyter_nbformat python3-entrypoints + python3-testpath python3-bleach python3-pandocfilters python3-defusedxml" +checkdepends="$depends python3-pytest python3-ipython_ipykernel + python3-jupyter_ipywidgets python3-Pebble pandoc inkscape" +short_desc="Converting Jupyter notebooks" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="https://github.com/jupyter/nbconvert" +distfiles="${PYPI_SITE}/n/nbconvert/nbconvert-${version}.tar.gz" +checksum=302554a2e219bc0fc84f3edd3e79953f3767b46ab67626fdec16e38ba3f7efe4 +conflicts="python-jupyter_nbconvert<=5.4.1_2" + +do_check() { + : this version fail badly +} + +post_install() { + vlicense LICENSE +} From 1cb91117ee423d86e408be7bef6ad8fdf74aca08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:46 +0700 Subject: [PATCH 15/38] python-ipython_ipykernel: drop package --- srcpkgs/python-ipython_ipykernel/template | 35 ---------------------- srcpkgs/python3-ipython_ipykernel | 1 - srcpkgs/python3-ipython_ipykernel/template | 27 +++++++++++++++++ 3 files changed, 27 insertions(+), 36 deletions(-) delete mode 100644 srcpkgs/python-ipython_ipykernel/template delete mode 120000 srcpkgs/python3-ipython_ipykernel create mode 100644 srcpkgs/python3-ipython_ipykernel/template diff --git a/srcpkgs/python-ipython_ipykernel/template b/srcpkgs/python-ipython_ipykernel/template deleted file mode 100644 index 503eba2c07e..00000000000 --- a/srcpkgs/python-ipython_ipykernel/template +++ /dev/null @@ -1,35 +0,0 @@ -# Template file for 'python-ipython_ipykernel' -pkgname=python-ipython_ipykernel -version=4.10.0 -revision=3 -archs=noarch -wrksrc="ipykernel-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools python-ipython - python3-ipython python-jupyter_client python3-jupyter_client python-traitlets - python3-traitlets python-tornado python3-tornado" -depends="python-ipython python-traitlets python-jupyter_client python-tornado" -short_desc="IPython kernel for Jupyter (Python2)" -maintainer="Alessio Sergi " -license="BSD-3-Clause" -homepage="https://github.com/ipython/ipykernel" -distfiles="${PYPI_SITE}/i/ipykernel/ipykernel-${version}.tar.gz" -checksum=699103c8e64886e3ec7053f2a6aa83bb90426063526f63a818732ff385202bad - -post_install() { - for v in 2 3; do - vsed -i "s,python,&${v}," ${DESTDIR}/usr/share/jupyter/kernels/python${v}/kernel.json - done - vlicense COPYING.md LICENSE -} - -python3-ipython_ipykernel_package() { - archs=noarch - depends="python3-ipython python3-traitlets python3-jupyter_client python3-tornado" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vmove usr/share/jupyter/kernels/python3 - vlicense COPYING.md LICENSE - } -} diff --git a/srcpkgs/python3-ipython_ipykernel b/srcpkgs/python3-ipython_ipykernel deleted file mode 120000 index fd7db802e59..00000000000 --- a/srcpkgs/python3-ipython_ipykernel +++ /dev/null @@ -1 +0,0 @@ -python-ipython_ipykernel \ No newline at end of file diff --git a/srcpkgs/python3-ipython_ipykernel/template b/srcpkgs/python3-ipython_ipykernel/template new file mode 100644 index 00000000000..a7d266b8b32 --- /dev/null +++ b/srcpkgs/python3-ipython_ipykernel/template @@ -0,0 +1,27 @@ +# Template file for 'python3-ipython_ipykernel' +pkgname=python3-ipython_ipykernel +version=4.10.0 +revision=3 +archs=noarch +wrksrc="ipykernel-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-ipython + python3-jupyter_client python3-traitlets python3-tornado" +depends="python3-ipython python3-traitlets python3-jupyter_client python3-tornado" +checkdepends="python3-pytest $depends python3-numpy python3-flaky python3-nose" +short_desc="IPython kernel for Jupyter (Python3)" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="https://github.com/ipython/ipykernel" +distfiles="${PYPI_SITE}/i/ipykernel/ipykernel-${version}.tar.gz" +checksum=699103c8e64886e3ec7053f2a6aa83bb90426063526f63a818732ff385202bad + +do_check() { + : requires IPython/external/decorators/_decorators of python3-ipython +} + +post_install() { + vsed -i -e "s/python/&3/" \ + ${DESTDIR}/usr/share/jupyter/kernels/python3/kernel.json + vlicense COPYING.md LICENSE +} From e05ec8ea7115137735d74d81dab4f99c299de775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 31 Mar 2020 12:14:47 +0700 Subject: [PATCH 16/38] python-plotly: drop package --- srcpkgs/python-plotly/template | 37 -------- srcpkgs/python3-plotly | 1 - srcpkgs/python3-plotly/patches/py3.8.patch | 99 ++++++++++++++++++++++ srcpkgs/python3-plotly/template | 27 ++++++ 4 files changed, 126 insertions(+), 38 deletions(-) delete mode 100644 srcpkgs/python-plotly/template delete mode 120000 srcpkgs/python3-plotly create mode 100644 srcpkgs/python3-plotly/patches/py3.8.patch create mode 100644 srcpkgs/python3-plotly/template diff --git a/srcpkgs/python-plotly/template b/srcpkgs/python-plotly/template deleted file mode 100644 index 1593b108f7a..00000000000 --- a/srcpkgs/python-plotly/template +++ /dev/null @@ -1,37 +0,0 @@ -# Template file for 'python-plotly' -pkgname=python-plotly -version=2.2.0 -revision=2 -archs=noarch -#wrksrc="${pkgname#*-}-${version}" -wrksrc="plotly.py-${version}" -build_style=python-module -pycompile_module="plotly" -hostmakedepends="python-setuptools python3-setuptools" -depends="python-setuptools python-six python-requests python-pytz python-decorator python-jupyter_nbformat" -short_desc="Python2 plotting library for collaborative, interactive graphs" -maintainer="pulux " -license="MIT" -homepage="https://plot.ly/python/" -#odistfiles="${PYPI_SITE}/p/plotly/plotly-${version}.tar.gz" -#checksum=aee7044a5c70989940d24bbbb12469b2ab2dbf41b9dff652052327fe1168b3cc -#pypi has no LICENSE.txt -distfiles="https://github.com/plotly/plotly.py/archive/v${version}.tar.gz" -checksum=dad2a49fe355dddb6ae159e96c10ac22413a33cbac513b4dbf3791e63ec33c1f - -post_install() { - vlicense LICENSE.txt -} - - -python3-plotly_package() { - archs=noarch - pycompile_module="plotly" - depends="python3-setuptools python3-six python3-requests python3-pytz python3-decorator python3-jupyter_nbformat" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE.txt - } -} - diff --git a/srcpkgs/python3-plotly b/srcpkgs/python3-plotly deleted file mode 120000 index 8d444272b8f..00000000000 --- a/srcpkgs/python3-plotly +++ /dev/null @@ -1 +0,0 @@ -python-plotly \ No newline at end of file diff --git a/srcpkgs/python3-plotly/patches/py3.8.patch b/srcpkgs/python3-plotly/patches/py3.8.patch new file mode 100644 index 00000000000..e8acfb4bd00 --- /dev/null +++ b/srcpkgs/python3-plotly/patches/py3.8.patch @@ -0,0 +1,99 @@ +diff --git plotly/figure_factory/_candlestick.py plotly/figure_factory/_candlestick.py +index 925b4c1..c0847b3 100644 +--- plotly/figure_factory/_candlestick.py ++++ plotly/figure_factory/_candlestick.py +@@ -211,11 +211,11 @@ def create_candlestick(open, high, low, close, dates=None, direction='both', + utils.validate_equal_length(open, high, low, close) + validate_ohlc(open, high, low, close, direction, **kwargs) + +- if direction is 'increasing': ++ if direction == 'increasing': + candle_incr_data = make_increasing_candle(open, high, low, close, + dates, **kwargs) + data = candle_incr_data +- elif direction is 'decreasing': ++ elif direction == 'decreasing': + candle_decr_data = make_decreasing_candle(open, high, low, close, + dates, **kwargs) + data = candle_decr_data +diff --git plotly/figure_factory/_facet_grid.py plotly/figure_factory/_facet_grid.py +index 61af2b1..d0eb2bc 100644 +--- plotly/figure_factory/_facet_grid.py ++++ plotly/figure_factory/_facet_grid.py +@@ -751,7 +751,7 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, + x='wt', + y='mpg', + facet_col='cyl', +- facet_col_labels={4: "$\\alpha$", 6: '$\\beta$', 8: '$\sqrt[y]{x}$'}, ++ facet_col_labels={4: "$\\alpha$", 6: '$\\beta$', 8: '$\\sqrt[y]{x}$'}, + ) + + py.iplot(fig, filename='facet_grid_mtcars_custom_labels') +diff --git plotly/figure_factory/_ohlc.py plotly/figure_factory/_ohlc.py +index b5e84cd..0c41430 100644 +--- plotly/figure_factory/_ohlc.py ++++ plotly/figure_factory/_ohlc.py +@@ -264,11 +264,11 @@ def create_ohlc(open, high, low, close, dates=None, direction='both', + utils.validate_equal_length(open, high, low, close) + validate_ohlc(open, high, low, close, direction, **kwargs) + +- if direction is 'increasing': ++ if direction == 'increasing': + ohlc_incr = make_increasing_ohlc(open, high, low, close, dates, + **kwargs) + data = [ohlc_incr] +- elif direction is 'decreasing': ++ elif direction == 'decreasing': + ohlc_decr = make_decreasing_ohlc(open, high, low, close, dates, + **kwargs) + data = [ohlc_decr] +diff --git plotly/matplotlylib/renderer.py plotly/matplotlylib/renderer.py +index 548ae74..9eb3fd2 100644 +--- plotly/matplotlylib/renderer.py ++++ plotly/matplotlylib/renderer.py +@@ -428,7 +428,7 @@ class PlotlyRenderer(Renderer): + + """ + self.msg += " Attempting to draw a path collection\n" +- if props['offset_coordinates'] is 'data': ++ if props['offset_coordinates'] == 'data': + markerstyle = mpltools.get_markerstyle_from_collection(props) + scatter_props = { + 'coordinates': 'data', +@@ -536,7 +536,7 @@ class PlotlyRenderer(Renderer): + self.draw_title(**props) + else: # just a regular text annotation... + self.msg += " Text object is a normal annotation\n" +- if props['coordinates'] is not 'data': ++ if props['coordinates'] != 'data': + self.msg += " Text object isn't linked to 'data' " \ + "coordinates\n" + x_px, y_px = props['mplobj'].get_transform().transform( +diff --git plotly/tools.py plotly/tools.py +index ba6aae7..db8eaa2 100644 +--- plotly/tools.py ++++ plotly/tools.py +@@ -319,7 +319,7 @@ def get_embed(file_owner_or_url, file_id=None, width="100%", height=525): + raise exceptions.PlotlyError( + "The 'file_id' argument must be a non-negative number." + ) +- if share_key is '': ++ if share_key == '': + s = ("