From 6cedc7d4ff67bef0df13d716decc79fe4e53ed3b Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Thu, 7 Sep 2023 18:31:57 +0000 Subject: Adding metadata --- dev-python/langdetect/Manifest | 2 - dev-python/langdetect/metadata.xml | 10 +- dev-python/pyuca/Manifest | 1 + dev-python/pyuca/metadata.xml | 11 ++ dev-python/pyuca/pyuca-1.2.ebuild | 25 +++ dev-python/spyder-kernels/Manifest | 1 - .../spyder-kernels-3.0.0_beta1.ebuild | 70 -------- dev-python/spyder/Manifest | 2 +- dev-python/spyder/spyder-6.0.0_alpha1.ebuild | 191 -------------------- dev-python/spyder/spyder-6.0.0_alpha2.ebuild | 192 +++++++++++++++++++++ .../files/wxpython-4.2.0-fix-cython3.patch | 13 ++ dev-python/wxpython/metadata.xml | 10 +- dev-python/wxpython/wxpython-4.2.0-r1.ebuild | 122 +++++++++++++ dev-python/wxpython/wxpython-4.2.0.ebuild | 122 ------------- 14 files changed, 372 insertions(+), 400 deletions(-) create mode 100644 dev-python/pyuca/Manifest create mode 100644 dev-python/pyuca/metadata.xml create mode 100644 dev-python/pyuca/pyuca-1.2.ebuild delete mode 100644 dev-python/spyder-kernels/spyder-kernels-3.0.0_beta1.ebuild delete mode 100644 dev-python/spyder/spyder-6.0.0_alpha1.ebuild create mode 100644 dev-python/spyder/spyder-6.0.0_alpha2.ebuild create mode 100644 dev-python/wxpython/files/wxpython-4.2.0-fix-cython3.patch create mode 100644 dev-python/wxpython/wxpython-4.2.0-r1.ebuild delete mode 100644 dev-python/wxpython/wxpython-4.2.0.ebuild (limited to 'dev-python') diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index e9da2ac43cac..a11d7c268c91 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1,3 +1 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db -EBUILD langdetect-1.0.9.ebuild 493 BLAKE2B 0df8bce19bc80f79f8e76bcef5a4c2caf333365fe0cb9a3c076b7858bceded5a3e58921474f866a2709dd657b7ed330c1ec4a7f9d7bab0fcf1bc92d77cabc32d SHA512 ea2a1adcb133ac5fc951ba1aa90ef1ce3dfcc424e59727591763d4875aa044a74188be2d15fd89c6b2e83ed6ea04ec3d9851ed584ae79d2c2c127bde7d994b48 -MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index 020e07f2a3dd..ddb5b0f1787e 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,11 +2,9 @@ - marcin.deranek@slonko.net - Marcin Deranek + cyber+gentoo@sysrq.in + Anna - - https://github.com/Mimino666/langdetect/issues - - slonko-overlay + + gentoo-guru-overlay \ No newline at end of file diff --git a/dev-python/pyuca/Manifest b/dev-python/pyuca/Manifest new file mode 100644 index 000000000000..66c81e907e29 --- /dev/null +++ b/dev-python/pyuca/Manifest @@ -0,0 +1 @@ +DIST pyuca-1.2.gh.tar.gz 20114014 BLAKE2B cb52b23b367a3e2148442c78138a05112543ef40b44a83a5242d566fdce99a9ccd9f004d34b48f05be7d44417a168598c69c073c3fa6551e4cbb4d1e3a5d1e42 SHA512 dd3cc69271bb2c662beee4585ee3374a0d6e99e14688da3805f1278aa231c71577e2738b5c41c0d8fd562abbba618651214ac4c88299ead0c61cb8a4460c9063 diff --git a/dev-python/pyuca/metadata.xml b/dev-python/pyuca/metadata.xml new file mode 100644 index 000000000000..ea8988e8af6a --- /dev/null +++ b/dev-python/pyuca/metadata.xml @@ -0,0 +1,11 @@ + + + + + python@gentoo.org + Python + + + gentoo-staging + + \ No newline at end of file diff --git a/dev-python/pyuca/pyuca-1.2.ebuild b/dev-python/pyuca/pyuca-1.2.ebuild new file mode 100644 index 000000000000..00c6de63a271 --- /dev/null +++ b/dev-python/pyuca/pyuca-1.2.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +DESCRIPTION="Python implementation of the Unicode Collation Algorithm" +HOMEPAGE=" + https://github.com/jtauber/pyuca + https://pypi.org/project/pyuca/ +" +SRC_URI=" + https://github.com/jtauber/pyuca/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +distutils_enable_tests unittest diff --git a/dev-python/spyder-kernels/Manifest b/dev-python/spyder-kernels/Manifest index 9d1f1a7385ed..5b1de1d7cedf 100644 --- a/dev-python/spyder-kernels/Manifest +++ b/dev-python/spyder-kernels/Manifest @@ -1,3 +1,2 @@ DIST spyder-kernels-2.4.4.tar.gz 98216 BLAKE2B f9f7c007f3c8f4365b84606e7473c169b525aad6d4ddccd6a72fc4d84f48b3fbf0272bd8f8e7f9cc7eb48df555e333f1b8ef0adc8c2f0b8d6df4ff9de35568f8 SHA512 826ced4928d8308e1a31790f0938e24ee8171b7e1f890a322bf652798991db4f3c2c270dd1b9cee44110ac85724043e4f80bc2adb54ad9f09f5414ee8bbd0a4a -DIST spyder-kernels-3.0.0b1.tar.gz 236330 BLAKE2B 512fb11371b481102fb9b984eaaf665eed5eeeb2c0039a7e445f6e8139bca0a71f24d68b869614f3d65c9d51640d135c4a3dd33a32dd6c8750d5ba3c7b3330ef SHA512 e8e4cb9e7a577ff2ea969c78aafb1585a6afb652d5ee0063cdaada302648d3152ed38ae33376a4e13e4e183bd18233ff8305ecbe3e248422d2a056b08b0e7226 DIST spyder-kernels-3.0.0b2.tar.gz 236918 BLAKE2B 2a0083f8f48d11d66e49bb6736e8efd4fdfa1a4cac8e5a99d5ca473a90371084ff0e66c169850f36c1f77df54939c16336f1f7f6f0f5d7042525ecfde4b3b5a4 SHA512 8cd77b377056fdec07c68cc07960f4692ca3328a375891365ca0f59133a648a74b5cd75585398d53c1237ebee0a0fd4a01b6e7f24a8df93f107307511777fced diff --git a/dev-python/spyder-kernels/spyder-kernels-3.0.0_beta1.ebuild b/dev-python/spyder-kernels/spyder-kernels-3.0.0_beta1.ebuild deleted file mode 100644 index 50b175e03cb5..000000000000 --- a/dev-python/spyder-kernels/spyder-kernels-3.0.0_beta1.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{8,9,10,11} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Kernels used by spyder on its ipython console" -HOMEPAGE=" - https://github.com/spyder-ide/spyder-kernels/ - https://pypi.org/project/spyder-kernels/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="" - -RDEPEND=" - dev-python/cloudpickle[${PYTHON_USEDEP}] - =dev-python/ipykernel-6.16.1[${PYTHON_USEDEP}] - dev-python/ipython-8.12.1[${PYTHON_USEDEP}] - =dev-python/jupyter-client-7.4.9[${PYTHON_USEDEP}] - dev-python/matplotlib-inline[${PYTHON_USEDEP}] - >=dev-python/pyxdg-0.26[${PYTHON_USEDEP}] - >=dev-python/pyzmq-22.1.0[${PYTHON_USEDEP}] - >=dev-python/wurlitzer-1.0.3[${PYTHON_USEDEP}] -" - -BDEPEND=" - test? ( - dev-python/cython[${PYTHON_USEDEP}] - dev-python/django[${PYTHON_USEDEP}] - dev-python/flaky[${PYTHON_USEDEP}] - dev-python/h5py[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] - dev-python/scipy[${PYTHON_USEDEP}] - dev-python/xarray[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # we no longer package distributed, and also removed dependency on dask - spyder_kernels/console/tests/test_console_kernel.py::test_dask_multiprocessing - - # RuntimeError: There is no current event loop in thread 'MainThread'. - # https://bugs.gentoo.org/834893 - spyder_kernels/console/tests/test_console_kernel.py::test_cwd_in_sys_path - spyder_kernels/console/tests/test_console_kernel.py::test_multiprocessing - spyder_kernels/console/tests/test_console_kernel.py::test_multiprocessing_2 - spyder_kernels/console/tests/test_console_kernel.py::test_runfile - spyder_kernels/console/tests/test_console_kernel.py::test_np_threshold - spyder_kernels/console/tests/test_console_kernel.py::test_turtle_launch - spyder_kernels/console/tests/test_console_kernel.py::test_matplotlib_inline - - # pydicom only packaged in ::sci at the moment - spyder_kernels/utils/tests/test_iofuncs.py::test_load_dicom_files -) diff --git a/dev-python/spyder/Manifest b/dev-python/spyder/Manifest index 7be09d6cf3e8..afe97f8011ac 100644 --- a/dev-python/spyder/Manifest +++ b/dev-python/spyder/Manifest @@ -1,4 +1,4 @@ DIST spyder-5.4.4.gh.tar.gz 16214815 BLAKE2B 43bdf54599acc9c7ecf38d25a2d18e463473f36abad0fcd8d5379f785f967269940c2e8bc5b85811afc853d299ec9cfceac3d7acb32ef9f0e6f7081efc160eb9 SHA512 1c2684bbff5d9f800ddb2262a0a846cc7b3a9b1cd43d1f951fd511314877d2f03c317486564d1908f3bd12e889b3e9b0260f5708b5b1181eb7815d32bdb987eb DIST spyder-5.4.5.gh.tar.gz 16214117 BLAKE2B e572fe2e104e464bacff939c6195d1042c6ff0e6a1167c3ab4bf96a4f7dde0a1abb6ec84dc0dd54af24cd1635ecf8b80dabcc43c5131821bb3f7f6f08300605f SHA512 d938e3e64c22837bd4a7ab55822e9d763842cadba3cfb3de952652164054a4b87c2495bd8ae2617dbdd8bad5120e84e9017269d4bcdd6cbf73fb3d4dddbcad8f -DIST spyder-6.0.0_alpha1.gh.tar.gz 16384148 BLAKE2B 29916c2bcad598b5437be909e5a99834077edf72b5b9c71502bf4b679f268cd72a5c5dddedbc0a703506a2def4a92b1d8e1907bb1edcb84c8f10c8328be22649 SHA512 299ec0b22b183d183e34f50e92270e63f19159955c18e15b9514bd31f32dd3ab56ffcc133dd59a2193f3d0d1b2230e05fcd2f4444f2ce9926ec3278a82a92ae6 +DIST spyder-6.0.0_alpha2.gh.tar.gz 16311030 BLAKE2B 17466525aea0afa93ce0efd2cba3e249d6e95e458fdbe35ed672e704b3643fe17adbc663498436bb6cf435a6ab9f704f435ed014eec8a695eaf558dd17ac5785 SHA512 9a80954e18a0b4cf3f2a0ad20ee39cfda867ed1df0b2dc3f2ddbcd78cff09064accf3b9089ce1076dcdc8fe52a6af04c10b22b9d123d7353bfdc789c470d7cc9 DIST spyder-docs-cfa8e009264cb5e79beeead6a012e521db2c73dc.gh.tar.gz 94895763 BLAKE2B b26a8f834db25fd2a8881fdd411329a6d70213827d450070d4f73692742764efb34c74c6dd72d51829b8718956a4def172eaba56a1f02c264552aa838860feb9 SHA512 67defa7913392b0c41a931badb1f5669adcaf8d27e2d3ef59c5d07810c4423272776f369ab134b5096209d781009bbf076711f780234ec93fbe3e1a52e475dcd diff --git a/dev-python/spyder/spyder-6.0.0_alpha1.ebuild b/dev-python/spyder/spyder-6.0.0_alpha1.ebuild deleted file mode 100644 index e7390ce82c8d..000000000000 --- a/dev-python/spyder/spyder-6.0.0_alpha1.ebuild +++ /dev/null @@ -1,191 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11} ) -DISTUTILS_USE_PEP517=setuptools - -inherit distutils-r1 optfeature virtualx xdg - -# Commit of documentation to fetch -DOCS_PV="cfa8e009264cb5e79beeead6a012e521db2c73dc" - -DESCRIPTION="The Scientific Python Development Environment" -HOMEPAGE=" - https://www.spyder-ide.org/ - https://github.com/spyder-ide/spyder/ - https://pypi.org/project/spyder/ -" -SRC_URI=" - https://github.com/spyder-ide/${PN}/archive/v${PV//_alpha/a}.tar.gz -> ${P}.gh.tar.gz - https://github.com/spyder-ide/${PN}-docs/archive/${DOCS_PV}.tar.gz -> ${PN}-docs-${DOCS_PV}.gh.tar.gz -" -S="${WORKDIR}/${PN}-${PV//_alpha/a}" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="" - -RDEPEND=" - >=dev-python/atomicwrites-1.2.0[${PYTHON_USEDEP}] - >=dev-python/chardet-2.0.0[${PYTHON_USEDEP}] - >=dev-util/cookiecutter-1.6.0[${PYTHON_USEDEP}] - >=dev-python/diff-match-patch-20181111[${PYTHON_USEDEP}] - >=dev-python/intervaltree-3.0.2[${PYTHON_USEDEP}] - >=dev-python/jellyfish-0.7[${PYTHON_USEDEP}] - >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}] - >=dev-python/keyring-17.0.0[${PYTHON_USEDEP}] - >=dev-python/nbconvert-4.0[${PYTHON_USEDEP}] - >=dev-python/numpydoc-0.6.0[${PYTHON_USEDEP}] - >=dev-python/pexpect-4.4.0[${PYTHON_USEDEP}] - >=dev-python/pickleshare-0.4[${PYTHON_USEDEP}] - >=dev-python/psutil-5.3[${PYTHON_USEDEP}] - >=dev-python/pygments-2.0[${PYTHON_USEDEP}] - >=dev-python/pylint-venv-3.0.2[${PYTHON_USEDEP}] - >=dev-python/python-lsp-black-1.2.0[${PYTHON_USEDEP}] - >=dev-python/pyls-spyder-0.4.0[${PYTHON_USEDEP}] - >=dev-python/pyxdg-0.26[${PYTHON_USEDEP}] - >=dev-python/pyzmq-22.1.0[${PYTHON_USEDEP}] - >=dev-python/qdarkstyle-3.0.2[${PYTHON_USEDEP}] - =dev-python/qstylizer-0.2.2[${PYTHON_USEDEP}] - >=dev-python/qtawesome-1.2.1[${PYTHON_USEDEP}] - >=dev-python/qtconsole-5.4.2[${PYTHON_USEDEP}] - =dev-python/QtPy-2.1.0[${PYTHON_USEDEP},svg,webengine] - >=sci-libs/rtree-0.9.7[${PYTHON_USEDEP}] - >=dev-python/sphinx-0.6.6[${PYTHON_USEDEP}] - >=dev-python/spyder-kernels-3.0.0_beta1[${PYTHON_USEDEP}] - =dev-python/textdistance-4.2.0[${PYTHON_USEDEP}] - >=dev-python/three-merge-0.1.1[${PYTHON_USEDEP}] - >=dev-python/watchdog-0.10.3[${PYTHON_USEDEP}] -" - -BDEPEND=" - test? ( - dev-python/cython[${PYTHON_USEDEP}] - dev-python/flaky[${PYTHON_USEDEP}] - dev-python/matplotlib[tk,${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/pytest-order[${PYTHON_USEDEP}] - dev-python/pytest-qt[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/QtPy[${PYTHON_USEDEP},pyside2,pyqt5] - dev-python/scipy[${PYTHON_USEDEP}] - dev-python/sympy[${PYTHON_USEDEP}] - )" - -# Based on the courtesy of Arfrever -# This patch removes a call to update-desktop-database during build -# This fails because access is denied to this command during build -PATCHES=( - "${FILESDIR}/${PN}-5.0.0-build.patch" - "${FILESDIR}/${PN}-5.2.0-doc-theme-renamed.patch" -) - -DOCS=( - "AUTHORS.txt" - "Announcements.md" - "CHANGELOG.md" - "CODE_OF_CONDUCT.md" - "CONTRIBUTING.md" - "NOTICE.txt" - "README.md" - "RELEASE.md" -) - -distutils_enable_tests pytest -distutils_enable_sphinx docs/doc \ - dev-python/sphinx-panels \ - dev-python/pydata-sphinx-theme \ - dev-python/sphinx-multiversion - -python_prepare_all() { - # move docs into workdir - mv ../spyder-docs-${DOCS_PV}* docs || die - - # these dependencies are packaged separately: - # dev-python/spyder-kernels, - # dev-python/python-lsp-server, - # dev-python/qdarkstyle - rm -r external-deps/* || die - # runs against things packaged in external-deps dir - rm conftest.py || die - - # Do not depend on pyqt5<5.16, this dependency is carried by QtPy[pyqt5] - # Do not depend on pyqtwebengine<5.16, this dependency is carried by QtPy[webengine] - # Do not depend on parso and jedi, this is dependency is carried in python-lsp-server - # Do not depend on python-lsp-server, this dependency is carried in pyls-spyder - # Do not depend on ipython, this dependency is carried in spyder-kernels - # The explicit version requirements only make things more complicated, if e.g. - # pyls-spyder gains compatibility with a newer version of python-lsp-server - # in a new release it will take time for this information to propagate into - # the next spyder release. So just remove the dependency and let the other - # ebuilds handle the version requirements to speed things up and prevent - # issues such as Bug 803269. - sed -i \ - -e "/'pyqt5[ 0-9<=>.,]*',/d" \ - -e "/'pyqtwebengine[ 0-9<=>.,]*',/d" \ - -e "/'python-lsp-server\[all\][ 0-9<=>.,]*',/d" \ - -e "/'parso[ 0-9<=>.,]*',/d" \ - -e "/'jedi[ 0-9<=>.,]*',/d" \ - -e "/'pylint[ 0-9<=>.,]*',/d" \ - setup.py || die - # -e "/'ipython[ 0-9<=>.,]*',/d" \ - sed -i \ - -e "/^PYLS_REQVER/c\PYLS_REQVER = '>=0.0.1'" \ - -e "/^PYLSP_REQVER/c\PYLSP_REQVER = '>=0.0.1'" \ - -e "/^PARSO_REQVER/c\PARSO_REQVER = '>=0.0.1'" \ - -e "/^JEDI_REQVER/c\JEDI_REQVER = '>=0.0.1'" \ - -e "/^PYLINT_REQVER/c\PYLINT_REQVER = '>=0.0.1'" \ - spyder/dependencies.py || die - # -e "/^IPYTHON_REQVER/c\IPYTHON_REQVER = '>=0.0.1'" \ - - # do not check deps, fails because we removed dependencies above - sed -i -e 's:test_dependencies_for_spyder_setup_install_requires_in_sync:_&:' \ - spyder/tests/test_dependencies_in_sync.py || die - - # can't check for update, need network - rm spyder/workers/tests/test_update.py || die - - # skip online test - rm spyder/widgets/github/tests/test_github_backend.py || die - - distutils-r1_python_prepare_all -} - -# Calling pytest directly somehow passes the pytest arguments to spyder -# causing an invalid argument error -python_test() { - virtx "${EPYTHON}" runtests.py -} - -pkg_postinst() { - xdg_pkg_postinst - - optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib - optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas - optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy - optfeature "Symbolic mathematics in the IPython console" dev-python/sympy - optfeature "Import Matlab workspace files in the Variable Explorer" dev-python/scipy - optfeature "Run Cython files in the IPython console" dev-python/cython - optfeature "The hdf5/h5py plugin" dev-python/h5py - optfeature "The line profiler plugin" dev-python/spyder-line-profiler - optfeature "Vim key bindings" dev-python/spyder-vim - optfeature "Unittest support" dev-python/spyder-unittest - optfeature "System terminal inside spyder" dev-python/spyder-terminal - optfeature "Jupyter notebook support" dev-python/spyder-notebook - # spyder-memory-profiler is not compatible with spyder-5.2+ yet - # optfeature "The memory profiler plugin" dev-python/spyder-memory-profiler - # spyder-reports not yet updated to >=spyder-4.0.0 - # optfeature "Markdown reports using Pweave" dev-python/spyder-reports - # Plugins with no release yet: - # optfeature "Manage virtual environments and packages" dev-python/spyder-env-manager - # optfeature "VCS (e.g. git) integration" dev-python/spyder-vcs -} diff --git a/dev-python/spyder/spyder-6.0.0_alpha2.ebuild b/dev-python/spyder/spyder-6.0.0_alpha2.ebuild new file mode 100644 index 000000000000..863143d76eb8 --- /dev/null +++ b/dev-python/spyder/spyder-6.0.0_alpha2.ebuild @@ -0,0 +1,192 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 optfeature virtualx xdg + +# Commit of documentation to fetch +DOCS_PV="cfa8e009264cb5e79beeead6a012e521db2c73dc" + +DESCRIPTION="The Scientific Python Development Environment" +HOMEPAGE=" + https://www.spyder-ide.org/ + https://github.com/spyder-ide/spyder/ + https://pypi.org/project/spyder/ +" +SRC_URI=" + https://github.com/spyder-ide/${PN}/archive/v${PV//_alpha/a}.tar.gz -> ${P}.gh.tar.gz + https://github.com/spyder-ide/${PN}-docs/archive/${DOCS_PV}.tar.gz -> ${PN}-docs-${DOCS_PV}.gh.tar.gz +" +S="${WORKDIR}/${PN}-${PV//_alpha/a}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" + +RDEPEND=" + >=dev-python/atomicwrites-1.2.0[${PYTHON_USEDEP}] + >=dev-python/chardet-2.0.0[${PYTHON_USEDEP}] + >=dev-util/cookiecutter-1.6.0[${PYTHON_USEDEP}] + >=dev-python/diff-match-patch-20181111[${PYTHON_USEDEP}] + >=dev-python/intervaltree-3.0.2[${PYTHON_USEDEP}] + >=dev-python/jellyfish-0.7[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}] + >=dev-python/keyring-17.0.0[${PYTHON_USEDEP}] + >=dev-python/nbconvert-4.0[${PYTHON_USEDEP}] + >=dev-python/numpydoc-0.6.0[${PYTHON_USEDEP}] + >=dev-python/pexpect-4.4.0[${PYTHON_USEDEP}] + >=dev-python/pickleshare-0.4[${PYTHON_USEDEP}] + >=dev-python/psutil-5.3[${PYTHON_USEDEP}] + >=dev-python/pygments-2.0[${PYTHON_USEDEP}] + >=dev-python/pylint-venv-3.0.2[${PYTHON_USEDEP}] + >=dev-python/python-lsp-black-1.2.0[${PYTHON_USEDEP}] + >=dev-python/pyls-spyder-0.4.0[${PYTHON_USEDEP}] + >=dev-python/pyuca-1.2[${PYTHON_USEDEP}] + >=dev-python/pyxdg-0.26[${PYTHON_USEDEP}] + >=dev-python/pyzmq-22.1.0[${PYTHON_USEDEP}] + >=dev-python/qdarkstyle-3.0.2[${PYTHON_USEDEP}] + =dev-python/qstylizer-0.2.2[${PYTHON_USEDEP}] + >=dev-python/qtawesome-1.2.1[${PYTHON_USEDEP}] + >=dev-python/qtconsole-5.4.2[${PYTHON_USEDEP}] + =dev-python/QtPy-2.1.0[${PYTHON_USEDEP},svg,webengine] + >=sci-libs/rtree-0.9.7[${PYTHON_USEDEP}] + >=dev-python/sphinx-0.6.6[${PYTHON_USEDEP}] + >=dev-python/spyder-kernels-3.0.0_beta2[${PYTHON_USEDEP}] + =dev-python/textdistance-4.2.0[${PYTHON_USEDEP}] + >=dev-python/three-merge-0.1.1[${PYTHON_USEDEP}] + >=dev-python/watchdog-0.10.3[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/cython[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/matplotlib[tk,${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-order[${PYTHON_USEDEP}] + dev-python/pytest-qt[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/QtPy[${PYTHON_USEDEP},pyside2,pyqt5] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + )" + +# Based on the courtesy of Arfrever +# This patch removes a call to update-desktop-database during build +# This fails because access is denied to this command during build +PATCHES=( + "${FILESDIR}/${PN}-5.0.0-build.patch" + "${FILESDIR}/${PN}-5.2.0-doc-theme-renamed.patch" +) + +DOCS=( + "AUTHORS.txt" + "Announcements.md" + "CHANGELOG.md" + "CODE_OF_CONDUCT.md" + "CONTRIBUTING.md" + "NOTICE.txt" + "README.md" + "RELEASE.md" +) + +distutils_enable_tests pytest +distutils_enable_sphinx docs/doc \ + dev-python/sphinx-panels \ + dev-python/pydata-sphinx-theme \ + dev-python/sphinx-multiversion + +python_prepare_all() { + # move docs into workdir + mv ../spyder-docs-${DOCS_PV}* docs || die + + # these dependencies are packaged separately: + # dev-python/spyder-kernels, + # dev-python/python-lsp-server, + # dev-python/qdarkstyle + rm -r external-deps/* || die + # runs against things packaged in external-deps dir + rm conftest.py || die + + # Do not depend on pyqt5<5.16, this dependency is carried by QtPy[pyqt5] + # Do not depend on pyqtwebengine<5.16, this dependency is carried by QtPy[webengine] + # Do not depend on parso and jedi, this is dependency is carried in python-lsp-server + # Do not depend on python-lsp-server, this dependency is carried in pyls-spyder + # Do not depend on ipython, this dependency is carried in spyder-kernels + # The explicit version requirements only make things more complicated, if e.g. + # pyls-spyder gains compatibility with a newer version of python-lsp-server + # in a new release it will take time for this information to propagate into + # the next spyder release. So just remove the dependency and let the other + # ebuilds handle the version requirements to speed things up and prevent + # issues such as Bug 803269. + sed -i \ + -e "/'pyqt5[ 0-9<=>.,]*',/d" \ + -e "/'pyqtwebengine[ 0-9<=>.,]*',/d" \ + -e "/'python-lsp-server\[all\][ 0-9<=>.,]*',/d" \ + -e "/'parso[ 0-9<=>.,]*',/d" \ + -e "/'jedi[ 0-9<=>.,]*',/d" \ + -e "/'pylint[ 0-9<=>.,]*',/d" \ + setup.py || die + # -e "/'ipython[ 0-9<=>.,]*',/d" \ + sed -i \ + -e "/^PYLS_REQVER/c\PYLS_REQVER = '>=0.0.1'" \ + -e "/^PYLSP_REQVER/c\PYLSP_REQVER = '>=0.0.1'" \ + -e "/^PARSO_REQVER/c\PARSO_REQVER = '>=0.0.1'" \ + -e "/^JEDI_REQVER/c\JEDI_REQVER = '>=0.0.1'" \ + -e "/^PYLINT_REQVER/c\PYLINT_REQVER = '>=0.0.1'" \ + spyder/dependencies.py || die + # -e "/^IPYTHON_REQVER/c\IPYTHON_REQVER = '>=0.0.1'" \ + + # do not check deps, fails because we removed dependencies above + sed -i -e 's:test_dependencies_for_spyder_setup_install_requires_in_sync:_&:' \ + spyder/tests/test_dependencies_in_sync.py || die + + # can't check for update, need network + rm spyder/workers/tests/test_update.py || die + + # skip online test + rm spyder/widgets/github/tests/test_github_backend.py || die + + distutils-r1_python_prepare_all +} + +# Calling pytest directly somehow passes the pytest arguments to spyder +# causing an invalid argument error +python_test() { + virtx "${EPYTHON}" runtests.py +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib + optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas + optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy + optfeature "Symbolic mathematics in the IPython console" dev-python/sympy + optfeature "Import Matlab workspace files in the Variable Explorer" dev-python/scipy + optfeature "Run Cython files in the IPython console" dev-python/cython + optfeature "The hdf5/h5py plugin" dev-python/h5py + optfeature "The line profiler plugin" dev-python/spyder-line-profiler + optfeature "Vim key bindings" dev-python/spyder-vim + optfeature "Unittest support" dev-python/spyder-unittest + optfeature "System terminal inside spyder" dev-python/spyder-terminal + optfeature "Jupyter notebook support" dev-python/spyder-notebook + # spyder-memory-profiler is not compatible with spyder-5.2+ yet + # optfeature "The memory profiler plugin" dev-python/spyder-memory-profiler + # spyder-reports not yet updated to >=spyder-4.0.0 + # optfeature "Markdown reports using Pweave" dev-python/spyder-reports + # Plugins with no release yet: + # optfeature "Manage virtual environments and packages" dev-python/spyder-env-manager + # optfeature "VCS (e.g. git) integration" dev-python/spyder-vcs +} diff --git a/dev-python/wxpython/files/wxpython-4.2.0-fix-cython3.patch b/dev-python/wxpython/files/wxpython-4.2.0-fix-cython3.patch new file mode 100644 index 000000000000..3961f12e3442 --- /dev/null +++ b/dev-python/wxpython/files/wxpython-4.2.0-fix-cython3.patch @@ -0,0 +1,13 @@ +diff --git a/wx/svg/_nanosvg.pyx b/wx/svg/_nanosvg.pyx +index cda04d5ca..d1cae1aa9 100644 +--- a/wx/svg/_nanosvg.pyx ++++ b/wx/svg/_nanosvg.pyx +@@ -42,7 +42,7 @@ for manipulating the SVG shape info in memory. + + import sys + +-cimport cython.object ++ + from cpython.buffer cimport ( + Py_buffer, PyObject_CheckBuffer, PyObject_GetBuffer, PyBUF_SIMPLE, + PyBuffer_Release) diff --git a/dev-python/wxpython/metadata.xml b/dev-python/wxpython/metadata.xml index 0bd9f9a61086..0d618616ba59 100644 --- a/dev-python/wxpython/metadata.xml +++ b/dev-python/wxpython/metadata.xml @@ -2,13 +2,9 @@ - wxwidgets@gentoo.org - Gentoo wxWidgets Project - - - python@gentoo.org - Python + core@liguros.net + Development - gentoo-staging + binaryden-overlay \ No newline at end of file diff --git a/dev-python/wxpython/wxpython-4.2.0-r1.ebuild b/dev-python/wxpython/wxpython-4.2.0-r1.ebuild new file mode 100644 index 000000000000..80f5a509512f --- /dev/null +++ b/dev-python/wxpython/wxpython-4.2.0-r1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_IN_SOURCE_BUILD="1" +PYTHON_COMPAT=( python3_{8,9,10,11} ) +PYPI_NO_NORMALIZE=1 +PYPI_PN="wxPython" +WX_GTK_VER="3.2-gtk3" + +inherit distutils-r1 multiprocessing virtualx wxwidgets pypi + +DESCRIPTION="A blending of the wxWindows C++ class library with Python" +HOMEPAGE="https://www.wxpython.org/" + +LICENSE="wxWinLL-3" +SLOT="4.0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test webkit" +# Tests broken: #726812, #722716 +# Nearly there as of 4.2.0 but still quite flaky (inconsistent set of failures) +RESTRICT="!test? ( test ) test" + +# wxPython doesn't seem to be able to optionally disable features. webkit is +# optionally patched out because it's so huge, but other elements are not, +# which makes us have to require all features from wxGTK +RDEPEND=" + >=x11-libs/wxGTK-3.0.4-r301:${WX_GTK_VER}=[gstreamer,libnotify,opengl,sdl,tiff,webkit?,X] + media-libs/libpng:= + media-libs/tiff:= + media-libs/libjpeg-turbo:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-doc/doxygen + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/sip-6.6.2[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + test? ( + ${VIRTUALX_DEPEND} + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-4.2.0-no-attrdict.patch" + "${FILESDIR}/${PN}-4.2.0-flags.patch" + "${FILESDIR}/${PN}-4.2.0-fix-cython3.patch" +) + +python_prepare_all() { + if ! use webkit; then + eapply "${FILESDIR}/${PN}-4.2.0-no-webkit.patch" + rm unittests/test_webview.py || die + fi + + # Most of these tests disabled below fail because of the virtx/portage + # environment, but some fail for unknown reasons. + rm unittests/test_uiaction.py \ + unittests/test_notifmsg.py \ + unittests/test_mousemanager.py \ + unittests/test_display.py \ + unittests/test_pi_import.py \ + unittests/test_lib_agw_thumbnailctrl.py \ + unittests/test_sound.py || die + + distutils-r1_python_prepare_all +} + +src_configure() { + setup-wxwidgets +} + +python_compile() { + DOXYGEN=/usr/bin/doxygen ${PYTHON} build.py dox etg --nodoc || die + + # Refresh the bundled/pregenerated sip files + ${PYTHON} build.py sip || die + + # Build the bindings + ${PYTHON} build.py build_py \ + --use_syswx \ + --no_magic \ + --jobs="$(makeopts_jobs)" \ + --verbose \ + --release || die +} + +python_test() { + EPYTEST_DESELECT=( + # Aborts, needs investigation + unittests/test_utils.py::utils_Tests::test_utilsSomeOtherStuff + + # Failures, need investigation + unittests/test_frame.py::frame_Tests::test_frameRestore + unittests/test_fswatcher.py::fswatcher_Tests::test_fswatcher1 + unittests/test_intl.py::intl_Tests::test_intlGetString + unittests/test_lib_busy.py::lib_busy_Tests::test_lib_busy5 + unittests/test_lib_mixins_inspection.py::wit_TestCase::test_App_OnInit + unittests/test_lib_pubsub_provider.py::lib_pubsub_Except::test1 + unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr2_GetOrCreate_DefnProv::test20_UseProvider + unittests/test_windowid.py::IdManagerTest::test_newIdRef03 + unittests/test_auibook.py::auibook_Tests::test_auibook02 + unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerPersistValue + unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerRestore + unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgGeneric + unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager02 + ) + + # We use pytest-forked as opensuse does to avoid tests corrupting each + # other. + virtx epytest --forked -n "$(makeopts_jobs)" unittests +} + +python_install() { + distutils-r1_python_install --skip-build +} diff --git a/dev-python/wxpython/wxpython-4.2.0.ebuild b/dev-python/wxpython/wxpython-4.2.0.ebuild deleted file mode 100644 index c1f8027fb04b..000000000000 --- a/dev-python/wxpython/wxpython-4.2.0.ebuild +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_IN_SOURCE_BUILD="1" -PYTHON_COMPAT=( python3_{8,9,10,11} ) -PYPI_NO_NORMALIZE=1 -PYPI_PN="wxPython" -WX_GTK_VER="3.2-gtk3" - -inherit distutils-r1 multiprocessing virtualx wxwidgets pypi - -DESCRIPTION="A blending of the wxWindows C++ class library with Python" -HOMEPAGE="https://www.wxpython.org/" - -LICENSE="wxWinLL-3" -SLOT="4.0" -KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc x86" -IUSE="test webkit" -# Tests broken: #726812, #722716 -# Nearly there as of 4.2.0 but still quite flaky (inconsistent set of failures) -RESTRICT="!test? ( test ) test" - -# wxPython doesn't seem to be able to optionally disable features. webkit is -# optionally patched out because it's so huge, but other elements are not, -# which makes us have to require all features from wxGTK -RDEPEND=" - >=x11-libs/wxGTK-3.0.4-r301:${WX_GTK_VER}=[gstreamer,libnotify,opengl,sdl,tiff,webkit?,X] - media-libs/libpng:= - media-libs/tiff:= - media-libs/libjpeg-turbo:= -" -DEPEND="${RDEPEND}" -BDEPEND=" - app-doc/doxygen - dev-python/cython[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] - >=dev-python/sip-6.6.2[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - test? ( - ${VIRTUALX_DEPEND} - dev-python/appdirs[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - #"${FILESDIR}/${PN}-4.0.6-skip-broken-tests.patch" - "${FILESDIR}/${PN}-4.2.0-no-attrdict.patch" - "${FILESDIR}/${PN}-4.2.0-flags.patch" -) - -python_prepare_all() { - if ! use webkit; then - eapply "${FILESDIR}/${PN}-4.2.0-no-webkit.patch" - rm unittests/test_webview.py || die - fi - - # Most of these tests disabled below fail because of the virtx/portage - # environment, but some fail for unknown reasons. - rm unittests/test_uiaction.py \ - unittests/test_notifmsg.py \ - unittests/test_mousemanager.py \ - unittests/test_display.py \ - unittests/test_pi_import.py \ - unittests/test_lib_agw_thumbnailctrl.py \ - unittests/test_sound.py || die - - distutils-r1_python_prepare_all -} - -src_configure() { - setup-wxwidgets -} - -python_compile() { - DOXYGEN=/usr/bin/doxygen ${PYTHON} build.py dox etg --nodoc || die - - # Refresh the bundled/pregenerated sip files - ${PYTHON} build.py sip || die - - # Build the bindings - ${PYTHON} build.py build_py \ - --use_syswx \ - --no_magic \ - --jobs="$(makeopts_jobs)" \ - --verbose \ - --release || die -} - -python_test() { - EPYTEST_DESELECT=( - # Aborts, needs investigation - unittests/test_utils.py::utils_Tests::test_utilsSomeOtherStuff - - # Failures, need investigation - unittests/test_frame.py::frame_Tests::test_frameRestore - unittests/test_fswatcher.py::fswatcher_Tests::test_fswatcher1 - unittests/test_intl.py::intl_Tests::test_intlGetString - unittests/test_lib_busy.py::lib_busy_Tests::test_lib_busy5 - unittests/test_lib_mixins_inspection.py::wit_TestCase::test_App_OnInit - unittests/test_lib_pubsub_provider.py::lib_pubsub_Except::test1 - unittests/test_lib_pubsub_topicmgr.py::lib_pubsub_TopicMgr2_GetOrCreate_DefnProv::test20_UseProvider - unittests/test_windowid.py::IdManagerTest::test_newIdRef03 - unittests/test_auibook.py::auibook_Tests::test_auibook02 - unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerPersistValue - unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerRestore - unittests/test_aboutdlg.py::aboutdlg_Tests::test_aboutdlgGeneric - unittests/test_auiframemanager.py::auiframemanager_Tests::test_auiframemanager02 - ) - - # We use pytest-forked as opensuse does to avoid tests corrupting each - # other. - virtx epytest --forked -n "$(makeopts_jobs)" unittests -} - -python_install() { - distutils-r1_python_install --skip-build -} -- cgit v1.3.1