From 4d3b8f8b38eda2e6cfa39c2efcf4f9c4055c2d7d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 12 Jan 2023 17:46:56 +0000 Subject: gentoo auto-resync : 12:01:2023 - 17:46:56 --- dev-python/Manifest.gz | Bin 261272 -> 261278 bytes dev-python/braintree/Manifest | 4 +- dev-python/braintree/braintree-4.17.1.ebuild | 38 ---- dev-python/braintree/braintree-4.18.0.ebuild | 38 ++++ dev-python/build/Manifest | 2 +- dev-python/build/build-0.10.0.ebuild | 3 + dev-python/pyls-spyder/Manifest | 2 +- dev-python/pyls-spyder/pyls-spyder-0.4.0-r2.ebuild | 4 +- dev-python/pyside2-tools/Manifest | 2 + .../pyside2-tools/pyside2-tools-5.15.8.ebuild | 77 +++++++ dev-python/pyside2/Manifest | 2 + dev-python/pyside2/pyside2-5.15.8.ebuild | 226 +++++++++++++++++++++ dev-python/pyside6-tools/Manifest | 2 + .../pyside6-tools/pyside6-tools-6.4.2.ebuild | 64 ++++++ dev-python/pyside6/Manifest | 2 + dev-python/pyside6/pyside6-6.4.2.ebuild | 223 ++++++++++++++++++++ dev-python/shiboken2/Manifest | 3 + .../files/shiboken2-5.15.8-py-limited-api.patch | 11 + dev-python/shiboken2/shiboken2-5.15.8.ebuild | 175 ++++++++++++++++ dev-python/shiboken6/Manifest | 2 + dev-python/shiboken6/shiboken6-6.4.2.ebuild | 169 +++++++++++++++ dev-python/spyder-kernels/Manifest | 2 - .../spyder-kernels/spyder-kernels-2.4.0.ebuild | 73 ------- dev-python/spyder-line-profiler/Manifest | 5 +- dev-python/spyder-line-profiler/metadata.xml | 1 + .../spyder-line-profiler-0.3.1-r1.ebuild | 4 +- .../spyder-line-profiler-0.3.1.ebuild | 34 ---- dev-python/spyder-notebook/Manifest | 4 +- dev-python/spyder-notebook/metadata.xml | 1 + .../spyder-notebook/spyder-notebook-0.4.0.ebuild | 4 +- dev-python/spyder-terminal/Manifest | 4 +- dev-python/spyder-terminal/metadata.xml | 1 + .../spyder-terminal/spyder-terminal-1.2.2.ebuild | 4 +- dev-python/spyder-unittest/Manifest | 4 +- dev-python/spyder-unittest/metadata.xml | 1 + .../spyder-unittest/spyder-unittest-0.5.1.ebuild | 2 +- dev-python/spyder-vim/Manifest | 4 +- dev-python/spyder-vim/metadata.xml | 4 + dev-python/spyder-vim/spyder-vim-0.1.0.ebuild | 4 +- dev-python/spyder/Manifest | 3 - dev-python/spyder/spyder-5.4.0.ebuild | 196 ------------------ 41 files changed, 1032 insertions(+), 372 deletions(-) delete mode 100644 dev-python/braintree/braintree-4.17.1.ebuild create mode 100644 dev-python/braintree/braintree-4.18.0.ebuild create mode 100644 dev-python/pyside2-tools/pyside2-tools-5.15.8.ebuild create mode 100644 dev-python/pyside2/pyside2-5.15.8.ebuild create mode 100644 dev-python/pyside6-tools/pyside6-tools-6.4.2.ebuild create mode 100644 dev-python/pyside6/pyside6-6.4.2.ebuild create mode 100644 dev-python/shiboken2/files/shiboken2-5.15.8-py-limited-api.patch create mode 100644 dev-python/shiboken2/shiboken2-5.15.8.ebuild create mode 100644 dev-python/shiboken6/shiboken6-6.4.2.ebuild delete mode 100644 dev-python/spyder-kernels/spyder-kernels-2.4.0.ebuild delete mode 100644 dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1.ebuild delete mode 100644 dev-python/spyder/spyder-5.4.0.ebuild (limited to 'dev-python') diff --git a/dev-python/Manifest.gz b/dev-python/Manifest.gz index d9ea4ceeb588..65ac2b9f8b07 100644 Binary files a/dev-python/Manifest.gz and b/dev-python/Manifest.gz differ diff --git a/dev-python/braintree/Manifest b/dev-python/braintree/Manifest index f606f4bf7552..aa934fe0a29a 100644 --- a/dev-python/braintree/Manifest +++ b/dev-python/braintree/Manifest @@ -1,3 +1,3 @@ -DIST braintree_python-4.17.1.gh.tar.gz 213195 BLAKE2B 2ca1176d3fcdf670ced8bc9de4c2c7140823ec4e1f34acc8235003dd57d16b8e5b411756e1c52da68fc5dcc6009333317952ab246d51c3da71b0a1bed81ea8d1 SHA512 a6835f50451d6e914be5c691920f07fdf804c98580625bfc6984b83c5bf9acffe7b8005d6ffc201e8c0826b65ba4549a5159fde9988da57d08626bb226a35feb -EBUILD braintree-4.17.1.ebuild 764 BLAKE2B 4c42342a9ec06c38f42eaf8e82e004a32fb9b81e4a9acb0f3520dcc94508f6373bb939a05d6fd7bdb6d6a1ab97f69a92900a57fe90baf28585d843b16f376e9b SHA512 a5fd102d011e159ece22204e7d888be6573f61fadb42301a3cd1f4adda0fc93534fcf81bfa0e9d1057a26b883cf97a8739e77bf9232cf94bf2d778ec6ac90272 +DIST braintree_python-4.18.0.gh.tar.gz 216422 BLAKE2B 30ed072c3f6c6ae3cc9661fe5a1f49327ad2fd17261590a61aaae543966a40c9018a1c3b789e1ba3f387a8d93cff35c8b7ffd589e76ffefc572b7dc9fcd84951 SHA512 2abdec5e16386bed5e9c6d1d085ec604050907a57bf9dbe65c6c3d05b2bdf8f00929e11729b50a4774ab2bdd61a1a8d4a73f6c23368b663cc5757562b8ce1e4f +EBUILD braintree-4.18.0.ebuild 758 BLAKE2B 95d051bce8bdafa8871c89f0307cb4b36af87731b6f30dba4d134769369bbf3269ec844aff4e787b9d4de19423c5fabc44757fb11d56eb033ec578092a256c9e SHA512 0e33e6798ff488b983095dee459e48073a6ec2df4d7a75afffa502236ab8a9bd833f73e11d5f14c279a1a38cea4e64cfb68f62479a60ed4e70f811026b01ed15 MISC metadata.xml 484 BLAKE2B 17a5993a7630126f55e88b92bf917ae068282c36813ea739407b65d91542d2a9977f3057889838bce776b38c5e64e4a17fabc3367ac01ae8512d06897de1a060 SHA512 c0f5406afc289683369998c79009defdd07735e6aaf60d777e524eee6c58dbaff4b936e990490cd15cd53f175accbfb3adbe55896511c79e9655f08bda24ba49 diff --git a/dev-python/braintree/braintree-4.17.1.ebuild b/dev-python/braintree/braintree-4.17.1.ebuild deleted file mode 100644 index d7355667355f..000000000000 --- a/dev-python/braintree/braintree-4.17.1.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2020-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 - -MY_P=braintree_python-${PV} -DESCRIPTION="Braintree Python Library" -HOMEPAGE=" - https://developer.paypal.com/braintree/docs/reference/overview/ - https://github.com/braintree/braintree_python/ - https://pypi.org/project/braintree/ -" -SRC_URI=" - https://github.com/braintree/braintree_python/archive/${PV}.tar.gz - -> ${MY_P}.gh.tar.gz -" -S=${WORKDIR}/${MY_P} - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - >=dev-python/requests-0.11.1[${PYTHON_USEDEP}] -" - -DOCS=( README.md ) - -distutils_enable_tests nose - -python_test() { - nosetests -v tests/unit || die -} diff --git a/dev-python/braintree/braintree-4.18.0.ebuild b/dev-python/braintree/braintree-4.18.0.ebuild new file mode 100644 index 000000000000..a74aca49c2a8 --- /dev/null +++ b/dev-python/braintree/braintree-4.18.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +MY_P=braintree_python-${PV} +DESCRIPTION="Braintree Python Library" +HOMEPAGE=" + https://developer.paypal.com/braintree/docs/reference/overview/ + https://github.com/braintree/braintree_python/ + https://pypi.org/project/braintree/ +" +SRC_URI=" + https://github.com/braintree/braintree_python/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/requests-0.11.1[${PYTHON_USEDEP}] +" + +DOCS=( README.md ) + +distutils_enable_tests unittest + +python_test() { + eunittest tests/unit +} diff --git a/dev-python/build/Manifest b/dev-python/build/Manifest index bfb17d2a5650..eab52d2aeed1 100644 --- a/dev-python/build/Manifest +++ b/dev-python/build/Manifest @@ -1,5 +1,5 @@ DIST build-0.10.0.gh.tar.gz 41509 BLAKE2B 0b1967af6fd0e47e8de5a6efcab879a37231b399965c4b52d9f952ed4fd64e9606b40f8e34ca18fb634ac5b42e3fa63995e6da292b10424f5ea0bd9fd49a46ca SHA512 e7ab783cc2b228e49c3dd15be7e25150924f26611994367b145cc2d43d7f89597c018cd4ca5cd8b31280d965421d314c80e4b97cf3e00f6cf73d80a3b081e7d1 DIST build-0.9.0.gh.tar.gz 41012 BLAKE2B 764338ffab3b6ede66542195271b1b07d1cff71685ae88bcef8042ce0a93a3a95a80a8a2273ac6a1534d8416410c8af77fdd3fe52fdacb47b8a56a9857ba60a2 SHA512 d6ef229c8f3b348cc939af6bd9a0a521a25c3a5702a95da8ee36d7a1ad3f3e22e10b5c96495ff08a1328ab73f03feebc64e89ce165862cb295eff4360c79d642 -EBUILD build-0.10.0.ebuild 1711 BLAKE2B 0920eafc7950f33cd23d71f2da0eb685f0e7eb87891e0b86efe4b760839a3b85fd5cb0fbc70c4f4598643c311f21cf42cec093109b2a99543b8423307698defc SHA512 b091f33f60e95853ff59c4b1e8a50eb7e23825bc73fd9f533dfabe4561e76f0f4c6417b613615eb1301ace06ed4100bb29fe8c798fb24ab7be1bb321c4eaef9a +EBUILD build-0.10.0.ebuild 1886 BLAKE2B fe3f17ee805c50d08941fc24e3a25fd57e98b3fd37bdb1ac14d2598586ec0c030b4a9c7cb2866511dd8f93956bd510f9f1aa9dbe69754c26efdf5a5f90a2d12c SHA512 c4c4f29686897d3a9f37c8f1009e63aff872717ac05673df589a71fb448c77a6e33008f430208475f2cb8f70a5a8f0cd7a2b183ee89df94a94bbbeff8506f3b8 EBUILD build-0.9.0.ebuild 2101 BLAKE2B 41059b2880d4716241cacbd696645111fc7bd1374541589c0253322f24afe3405424bc765cc86b81125e84de1dba7f9d2f44117f0d536a0848be8250d8122b5d SHA512 d5ec900c7ca060e6cca0abc8451e5d2336f58f08f0a3aeb1e28cdde1a4c099e3dc4c31fc8ab0bd203ccdc095e9e6f284f368f9a82f16da298d8f95ad99b532c3 MISC metadata.xml 361 BLAKE2B 1c46e1d83bec4a8aaedd932af700865009735ff75e3af63ef7c08f7c00883d5f658f86aec981cd48c8ef0ab0a287250a3a4fdfad42fb434f6c06d9f33f72f7d6 SHA512 89c86db40833c86e25f387c5bfa8952b62e983714be85af1e8ca2a6ef8a402b94cc32dfc18cda8d8850736aaabdb46c153743af9bcb027e86b2c1f085f6f2369 diff --git a/dev-python/build/build-0.10.0.ebuild b/dev-python/build/build-0.10.0.ebuild index 840c30d10816..787fa5dc72dc 100644 --- a/dev-python/build/build-0.10.0.ebuild +++ b/dev-python/build/build-0.10.0.ebuild @@ -56,6 +56,9 @@ python_test() { tests/test_self_packaging.py::test_build_wheel 'tests/test_util.py::test_wheel_metadata[True]' tests/test_util.py::test_with_get_requires + # we don't really have to test that fallback + # (requires dev-python/toml that we'd like to lastrite eventually) + tests/test_projectbuilder.py::test_toml_instead_of_tomli ) epytest -p no:flaky -n "$(makeopts_jobs)" diff --git a/dev-python/pyls-spyder/Manifest b/dev-python/pyls-spyder/Manifest index f0d1249570de..99df27347005 100644 --- a/dev-python/pyls-spyder/Manifest +++ b/dev-python/pyls-spyder/Manifest @@ -1,3 +1,3 @@ DIST pyls-spyder-0.4.0.gh.tar.gz 8854 BLAKE2B d14a78be98c1db0a37a2fffe2e6bd8955687a95af8524c852d434e57cdd157dda8f5ecceb19ad34527dedede4497c59fb7949a709d266803c2d8cd67c60380ce SHA512 5a9d6667cb85434ec41a176e097d20c78751d5f3879d4d361e097da214b54b37fbef97d95a763a58d7f5e3c148215672e769091814f06a34139c6625cdae3f9f -EBUILD pyls-spyder-0.4.0-r2.ebuild 642 BLAKE2B 0793d4446acbe08e83a7c85c28fe3f3f66c7c7f5fa333790b2ac329efdcec752cf326dc053344b971add9c7f3b5f05650b77dc95644f2006323e950d25d4ee63 SHA512 d208b3f8b4ab14dbc6ee5be4d4b986119df64cbc3b43d0738c3cc3f85389baf6962e6b7f19c0dafc75d5e31f25ac00757db5c747b0b050345bcf0a234bcdaf86 +EBUILD pyls-spyder-0.4.0-r2.ebuild 643 BLAKE2B 649b9fa8a24483f2ed6ee37cb9dee150017825cd5df04ffc91e41d1e1ba22e7895fd5d18263cf320248ad8d8efe1a6625f02db66fcb90e8623dc81e0e820a4ec SHA512 b2fa29252465f1194160b1caf1fd5b88bb884c19ce4171647098b556b425a546140b5b46ee43cef2154501a090ac0d1101aedf2000f2b36a1b2a55b61b58ed09 MISC metadata.xml 520 BLAKE2B ad207da8af7c89c4645f86aac823861720f57f7cb98be21f970506328dbe95cdba5eec58744135a5d5e0928217ad97a65dcef6d8e8d47538773c66ddb894b154 SHA512 ec3b1c30f3502d83f372f439e105eee62bba5627619395ab3ffc6e60c37312759e06a5e37287fd8a293438162c016cfd5c66765cc349636abd264be85983f44b diff --git a/dev-python/pyls-spyder/pyls-spyder-0.4.0-r2.ebuild b/dev-python/pyls-spyder/pyls-spyder-0.4.0-r2.ebuild index 784484c1720f..43cd5c7e8583 100644 --- a/dev-python/pyls-spyder/pyls-spyder-0.4.0-r2.ebuild +++ b/dev-python/pyls-spyder/pyls-spyder-0.4.0-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_COMPAT=( python3_{10..11} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 diff --git a/dev-python/pyside2-tools/Manifest b/dev-python/pyside2-tools/Manifest index 1da068955137..14e6e5e8098f 100644 --- a/dev-python/pyside2-tools/Manifest +++ b/dev-python/pyside2-tools/Manifest @@ -1,6 +1,8 @@ AUX pyside2-tools-5.15.1-dont-install-tools.patch 1782 BLAKE2B a9a1c3cb8d1e6feabbc752bb4bf0af30b645736b9895fe96063dc4a9d5668866523e567f723693b17c6da4101d28713cfa6ad8adadb78e6bb99756d7c69244a2 SHA512 c8b17db89f42a52f4191dda953d7228eafcafd6afb6d7b70527cef090ffd1f073970010a817bede941de10b4e40e41d35fb99b74091baeea6d237c08eb7f225f DIST pyside-setup-opensource-src-5.15.6.tar.xz 3580388 BLAKE2B 8a3b15d073bcbb0c6734f500ca906e56387cb8fc4bfcfd996304d71b54edd5f4568976049519ed26aa718bee9e43f59a0c4ef53837d5a341219b991a8527a800 SHA512 99a0c1a05e722cbf33128cf25742e61b92e151fdc05b79db9bafe778e024a0c6fc2886ee3d0b923ff681c55916f5c0eea4197f174432587fd662fba4390b26f4 DIST pyside-setup-opensource-src-5.15.7.tar.xz 3581144 BLAKE2B 95b5720a5273c96b00bdf86b36734970991a29cf0db1e6fb2c00d7e671fbc4459b4434abc91a8a47ec5d8ba694bcdae5b57a52448908fdca25c348f9ee2b6c81 SHA512 9c551b47581e4f2671c4378f1a2c0d9e565b08edee74244a7704a2c94eef1e1041d23f0e388c07bdd61067e986340907cf80f4527257a9a706f7f07c497834c6 +DIST pyside-setup-opensource-src-5.15.8.tar.xz 3582256 BLAKE2B eef6668c612c39eac4ea29db4eee0cc6eef72034babaa14525ca63cf6e02695df27bf8a6764110c4bcc77f55c7e9fb531074916a45d7ea324265e50d9a60d592 SHA512 78e19a8e8fa413bb784f16847d5774e4362409a2bd83567177b83f1391c37305d373155fb95ea569c6c483175e62a0d3f5d91a2fd5dae85d48c8047d242b9e22 EBUILD pyside2-tools-5.15.6.ebuild 1654 BLAKE2B a995039b5d9df220c7a2b26d555d5ef0895f934ec47a86f05b6e1d5a20889c5621973289ec2318630f89d1af83b52d197ed96e32d911360837ff44c179224cf6 SHA512 aa5d0e12a94a9a11c87afdc582540bbd61ed821beaebdee89eb83ad33a4a1a420b4169806ea27584e0f74f638c49be45b61f7d2cff7161ee0d0498b62fef45aa EBUILD pyside2-tools-5.15.7.ebuild 1654 BLAKE2B a795d0c9a1b6b3bd6579a7e96065ce1897ea6f4583c75b64a2487b7fe0ed2863c20d6975421598e092d5694e78196b77d7cd6c63d10cfd72b1ace326cb439ff2 SHA512 4e633b67d6f57f35face554691d8da5739746a99dcbfa00f29129a8f4884bf35eddaed532140e515bf378db899523a34bcd5491a4894f83a2bdae9b47c96b319 +EBUILD pyside2-tools-5.15.8.ebuild 1656 BLAKE2B ea3d03785f170005de734cbd9cdabb2cb38f0f538850ffaf42f5953962f51db724d89bd9fa67664bf45efce215190dea0acc7839022571a28e53cb91cbc4f1f7 SHA512 0699cc5de008594b104bd278d4e258939561b4438ee5f71e3dc6ef119d1146644078db2fcfc5168caaa7f50e574483c8c30dbfee3bc225dcaec41e15c3b29385 MISC metadata.xml 512 BLAKE2B e06bacf79750f6cc22b41ade8840a01636793100a85cc469c19af1b4273ef33adb3dec755947057a892e88de4ac68e665fa0ccb265457dd09a502964bd991749 SHA512 d201e34b2d73fb308c6b5f14b2d0d292b453b5ef05c820efe429fcfa7259b23f17bc015c08b8f938a2df75f5b654cc1357632a786abfb555479e3f172feee3fd diff --git a/dev-python/pyside2-tools/pyside2-tools-5.15.8.ebuild b/dev-python/pyside2-tools/pyside2-tools-5.15.8.ebuild new file mode 100644 index 000000000000..06b056d57a35 --- /dev/null +++ b/dev-python/pyside2-tools/pyside2-tools-5.15.8.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# TODO: Add PyPy once officially supported. See also: +# https://bugreports.qt.io/browse/PYSIDE-535 +PYTHON_COMPAT=( python3_{8..11} ) +CMAKE_IN_SOURCE_BUILD=1 + +inherit cmake python-r1 + +MY_P=pyside-setup-opensource-src-${PV} + +DESCRIPTION="PySide development tools (pyside2-lupdate with support for Python)" +HOMEPAGE="https://wiki.qt.io/PySide2" +SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${PV}-src/${MY_P}.tar.xz" +S="${WORKDIR}/${MY_P}/sources/${PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + ~dev-python/pyside2-${PV}[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) + +# the tools conflict with tools from QT +PATCHES=( + "${FILESDIR}/${PN}-5.15.1-dont-install-tools.patch" +) + +src_prepare() { + cmake_src_prepare + + python_copy_sources +} + +src_configure() { + # The tests are only related to the tools that we don't install + local mycmakeargs=( + -DBUILD_TESTS=OFF + ) + + pyside-tools_configure() { + local mycmakeargs=( + "${mycmakeargs[@]}" + -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" + ) + CMAKE_USE_DIR="${BUILD_DIR}" cmake_src_configure + } + + python_foreach_impl pyside-tools_configure +} + +src_compile() { + pyside-tools_compile() { + CMAKE_USE_DIR="${BUILD_DIR}" cmake_src_compile + } + + python_foreach_impl pyside-tools_compile +} + +src_install() { + pyside-tools_install() { + python_doexe "${BUILD_DIR}/pylupdate/pyside2-lupdate" + } + + python_foreach_impl pyside-tools_install + + doman pylupdate/pyside2-lupdate.1 + einstalldocs +} diff --git a/dev-python/pyside2/Manifest b/dev-python/pyside2/Manifest index f5d419c16c89..455688965042 100644 --- a/dev-python/pyside2/Manifest +++ b/dev-python/pyside2/Manifest @@ -3,6 +3,8 @@ AUX pyside2-5.15.2-python311-fixups.patch 1962 BLAKE2B 37d91352ea09eaef6d36c6001 AUX pyside2-5.15.2-python311.patch 1777 BLAKE2B 1afa7c39755c4f91b4b4c951f59e1a3190f924d8b20cf2140ad5342c2fa046ff7e6bec540bea9d7652116894e0cb7f5fa5ea73067212ca5b631382e7139d7786 SHA512 b88f300e4944cbb9adc8ac887e263e74e088a1b291000c86f6677a01241939e612fa5eebba3807fb2318477e68de241914832cc92ed0470726804d3098486120 DIST pyside-setup-opensource-src-5.15.6.tar.xz 3580388 BLAKE2B 8a3b15d073bcbb0c6734f500ca906e56387cb8fc4bfcfd996304d71b54edd5f4568976049519ed26aa718bee9e43f59a0c4ef53837d5a341219b991a8527a800 SHA512 99a0c1a05e722cbf33128cf25742e61b92e151fdc05b79db9bafe778e024a0c6fc2886ee3d0b923ff681c55916f5c0eea4197f174432587fd662fba4390b26f4 DIST pyside-setup-opensource-src-5.15.7.tar.xz 3581144 BLAKE2B 95b5720a5273c96b00bdf86b36734970991a29cf0db1e6fb2c00d7e671fbc4459b4434abc91a8a47ec5d8ba694bcdae5b57a52448908fdca25c348f9ee2b6c81 SHA512 9c551b47581e4f2671c4378f1a2c0d9e565b08edee74244a7704a2c94eef1e1041d23f0e388c07bdd61067e986340907cf80f4527257a9a706f7f07c497834c6 +DIST pyside-setup-opensource-src-5.15.8.tar.xz 3582256 BLAKE2B eef6668c612c39eac4ea29db4eee0cc6eef72034babaa14525ca63cf6e02695df27bf8a6764110c4bcc77f55c7e9fb531074916a45d7ea324265e50d9a60d592 SHA512 78e19a8e8fa413bb784f16847d5774e4362409a2bd83567177b83f1391c37305d373155fb95ea569c6c483175e62a0d3f5d91a2fd5dae85d48c8047d242b9e22 EBUILD pyside2-5.15.6.ebuild 9114 BLAKE2B c90521a72aa4bf3ef86d27228f9b5aadb1174a450280c1c94517238a7aed5fa2920ba780969517272a580b3b39abe85741f3429558a325c00acc2b421879c0d4 SHA512 c137ce6937d8f55463852333df00c91f0367df6800fc4a8da97b490820645d74ecbe55f40d4f721a1af11e3f5067f2acf3410ddf8b578d0e9c2e7263e6e5ecf0 EBUILD pyside2-5.15.7.ebuild 9268 BLAKE2B fdf9efb76d325d4a5401f930cbe44f06dd0d2ac27f882dcdc34c0deb496f3e0fc1e6510d518aba2e29fc65bdde6ef615f1523b5671efbdb5cd26c134d51e310a SHA512 6d9a9da415446b13e67ee054199364b371217f9d87ef0985c2c59c3a1a5980578e12812e78c29f32a1ded8d03eabd5a3046036e228c3a03a269ff17adf908445 +EBUILD pyside2-5.15.8.ebuild 9270 BLAKE2B 197897f344d20e6069088b395a4e74cdc3a39158abbb266850f86bc974b37916c784e71abc9849480234aa233efbcb987942f98044fd43ee53fbddccec81958a SHA512 6f2131237d9cdddb803425daf499e0d6696e0ded909a5b3dd73cd0fba71fc0bb8410025ef3be928016255f3c82fb94d6f158d495a4698caea86fbdd05740c226 MISC metadata.xml 2255 BLAKE2B 00982d17109b327ce063f5ba53474603cc73ffb013268ec9f6b751a73792a790f56de285291e70ad12147c27ba97b516be1318df312483d67d72509f8e8d8655 SHA512 830f9510f5e141422cbbab356d34a34b631f948eea14bcc96badbef65ce10f56c648748edc4ddf06be77b1c597a7d12d4552bde122937eb4cda01b304a3193c7 diff --git a/dev-python/pyside2/pyside2-5.15.8.ebuild b/dev-python/pyside2/pyside2-5.15.8.ebuild new file mode 100644 index 000000000000..faf50b0aca85 --- /dev/null +++ b/dev-python/pyside2/pyside2-5.15.8.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# TODO: Add PyPy once officially supported. See also: +# https://bugreports.qt.io/browse/PYSIDE-535 +PYTHON_COMPAT=( python3_{8..11} ) + +inherit cmake python-r1 virtualx + +# TODO: Add conditional support for "QtRemoteObjects" via a new "remoteobjects" +# USE flag after an external "dev-qt/qtremoteobjects" package has been created. +# TODO: Add conditional support for apidoc generation via a new "doc" USE flag. +# Note that doing so requires the Qt source tree, sphinx, and graphviz. Once +# ready, pass the ${QT_SRC_DIR} variable to cmake to enable this support. +# TODO: Disable GLES support if the "gles2-only" USE flag is disabled. Note +# that the "PySide2/QtGui/CMakeLists.txt" and +# "PySide2/QtOpenGLFunctions/CMakeLists.txt" files test for GLES support by +# testing whether the "Qt5::Gui" list property defined by +# "/usr/lib64/cmake/Qt5Gui/Qt5GuiConfig.cmake" at "dev-qt/qtgui" installation +# time contains the substring "opengles2". Since cmake does not permit +# properties to be overridden from the command line, these files must instead +# be conditionally patched to avoid these tests. An issue should be filed with +# upstream requesting a CLI-settable variable to control this. + +MY_P=pyside-setup-opensource-src-${PV} + +DESCRIPTION="Python bindings for the Qt framework" +HOMEPAGE="https://wiki.qt.io/PySide2" +SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${PV}-src/${MY_P}.tar.xz" +S="${WORKDIR}/${MY_P}/sources/pyside2" + +# See "sources/pyside2/PySide2/licensecomment.txt" for licensing details. +# Shall we allow essential modules to be disabled? They are: +# (core), gui, widgets, printsupport, sql, network, testlib, concurrent, +# x11extras (for X) +LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE=" + 3d charts +concurrent datavis designer gles2-only +gui help location + multimedia +network positioning +printsupport qml quick script scripttools + scxml sensors speech +sql svg test +testlib webchannel webengine websockets + +widgets +x11extras xml xmlpatterns +" + +# Manually reextract these requirements on version bumps by running the +# following one-liners from within "${S}": +# $ grep 'set.*_deps' PySide2/Qt*/CMakeLists.txt +# $ cat /lib64/cmake/Qt5*/Qt5*.cmake | grep -i DEPENDENCIES +# Note that the "designer" USE flag corresponds to the "Qt5UiTools" module. +REQUIRED_USE="${PYTHON_REQUIRED_USE} + 3d? ( gui network ) + charts? ( gui widgets ) + datavis? ( gui ) + designer? ( gui widgets xml ) + gles2-only? ( gui ) + help? ( gui sql widgets ) + location? ( gui network positioning quick ) + multimedia? ( gui network widgets ) + printsupport? ( gui widgets ) + qml? ( gui network ) + quick? ( gui network qml widgets network ) + scripttools? ( gui script widgets ) + speech? ( multimedia ) + sql? ( widgets ) + svg? ( widgets ) + testlib? ( widgets ) + webchannel? ( qml ) + webengine? ( + gui network positioning quick qml + widgets? ( printsupport network webchannel ) + ) + websockets? ( network ) + widgets? ( gui ) + x11extras? ( gui ) +" + +# Tests fail pretty bad and I'm not fixing them right now +RESTRICT="test" + +# Minimal supported version of Qt. +QT_PV="$(ver_cut 1-2)*:5" + +RDEPEND="${PYTHON_DEPS} + ~dev-python/shiboken2-${PV}[${PYTHON_USEDEP}] + =dev-qt/qtcore-${QT_PV} + =dev-qt/qtopengl-${QT_PV}[gles2-only=] + =dev-qt/qtserialport-${QT_PV} + 3d? ( =dev-qt/qt3d-${QT_PV}[qml?,gles2-only=] ) + charts? ( =dev-qt/qtcharts-${QT_PV}[qml?] ) + concurrent? ( =dev-qt/qtconcurrent-${QT_PV} ) + datavis? ( =dev-qt/qtdatavis3d-${QT_PV}[qml?,gles2-only=] ) + designer? ( =dev-qt/designer-${QT_PV} ) + gui? ( =dev-qt/qtgui-${QT_PV}[jpeg,gles2-only=] ) + help? ( =dev-qt/qthelp-${QT_PV} ) + location? ( =dev-qt/qtlocation-${QT_PV} ) + multimedia? ( =dev-qt/qtmultimedia-${QT_PV}[qml?,gles2-only=,widgets?] ) + network? ( =dev-qt/qtnetwork-${QT_PV} ) + positioning? ( =dev-qt/qtpositioning-${QT_PV}[qml?] ) + printsupport? ( =dev-qt/qtprintsupport-${QT_PV}[gles2-only=] ) + qml? ( =dev-qt/qtdeclarative-${QT_PV}[widgets?] ) + quick? ( + =dev-qt/qtdeclarative-${QT_PV}[widgets?] + =dev-qt/qtquickcontrols2-${QT_PV}[widgets?] + ) + script? ( =dev-qt/qtscript-${QT_PV}[scripttools?] ) + scxml? ( =dev-qt/qtscxml-${QT_PV} ) + sensors? ( =dev-qt/qtsensors-${QT_PV}[qml?] ) + speech? ( =dev-qt/qtspeech-${QT_PV} ) + sql? ( =dev-qt/qtsql-${QT_PV} ) + svg? ( =dev-qt/qtsvg-${QT_PV} ) + testlib? ( =dev-qt/qttest-${QT_PV} ) + webchannel? ( =dev-qt/qtwebchannel-${QT_PV}[qml] ) + webengine? ( =dev-qt/qtwebengine-${QT_PV}[widgets?] ) + websockets? ( =dev-qt/qtwebsockets-${QT_PV}[qml?] ) + widgets? ( =dev-qt/qtwidgets-${QT_PV}[gles2-only=] ) + x11extras? ( =dev-qt/qtx11extras-${QT_PV} ) + xml? ( =dev-qt/qtxml-${QT_PV} ) + xmlpatterns? ( =dev-qt/qtxmlpatterns-${QT_PV}[qml?] ) +" +DEPEND="${RDEPEND} + test? ( x11-misc/xvfb-run ) +" + +PATCHES=( + "${FILESDIR}/${PN}-5.15.2-python310.patch" + "${FILESDIR}/${PN}-5.15.2-python311.patch" + "${FILESDIR}/${PN}-5.15.2-python311-fixups.patch" +) + +src_configure() { + # See COLLECT_MODULE_IF_FOUND macros in CMakeLists.txt + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DAnimation=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DCore=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DExtras=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DInput=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DLogic=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DRender=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Charts=$(usex !charts) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Concurrent=$(usex !concurrent) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5DataVisualization=$(usex !datavis) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=$(usex !designer) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Gui=$(usex !gui) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Help=$(usex !help) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Location=$(usex !location) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=$(usex !multimedia) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5MultimediaWidgets=$(usex !multimedia yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Network=$(usex !network) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Positioning=$(usex !positioning) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5PrintSupport=$(usex !printsupport) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Qml=$(usex !qml) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Quick=$(usex !quick) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickControls2=$(usex !quick) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickWidgets=$(usex !quick yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Script=$(usex !script) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5ScriptTools=$(usex !scripttools) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Scxml=$(usex !scxml) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sensors=$(usex !sensors) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5TextToSpeech=$(usex !speech) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sql=$(usex !sql) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Svg=$(usex !svg) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=$(usex !testlib) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5UiTools=$(usex !designer) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebChannel=$(usex !webchannel) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngine=$(usex !webengine) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineCore=$(usex !webengine) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineWidgets=$(usex !webengine yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebSockets=$(usex !websockets) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=$(usex !widgets) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=$(usex !x11extras) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Xml=$(usex !xml) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5XmlPatterns=$(usex !xmlpatterns) + ) + + pyside2_configure() { + local mycmakeargs=( + "${mycmakeargs[@]}" + -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" + -DPYTHON_EXECUTABLE="${PYTHON}" + -DPYTHON_SITE_PACKAGES="$(python_get_sitedir)" + -DSHIBOKEN_PYTHON_SHARED_LIBRARY_SUFFIX="-${EPYTHON}" + ) + cmake_src_configure + } + python_foreach_impl pyside2_configure +} + +src_compile() { + python_foreach_impl cmake_src_compile +} + +src_test() { + local -x PYTHONDONTWRITEBYTECODE + python_foreach_impl virtx cmake_src_test +} + +src_install() { + pyside2_install() { + cmake_src_install + python_optimize + + # Uniquify the shiboken2 pkgconfig dependency in the PySide2 pkgconfig + # file for the current Python target. See also: + # https://github.com/leycec/raiagent/issues/73 + sed -i -e 's~^Requires: shiboken2$~&-'${EPYTHON}'~' \ + "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}.pc || die + + # Uniquify the PySide2 pkgconfig file for the current Python target, + # preserving an unversioned "pyside2.pc" file arbitrarily associated + # with the last Python target. (See the previously linked issue.) + cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}{,-${EPYTHON}}.pc || die + } + python_foreach_impl pyside2_install + + # CMakeLists.txt installs a "PySide2Targets-gentoo.cmake" file forcing + # downstream consumers (e.g., pyside2-tools) to target one + # "libpyside2-*.so" library linked to one Python interpreter. See also: + # https://bugreports.qt.io/browse/PYSIDE-1053 + # https://github.com/leycec/raiagent/issues/74 + sed -i -e 's~pyside2-python[[:digit:]]\+\.[[:digit:]]\+~pyside2${PYTHON_CONFIG_SUFFIX}~g' \ + "${ED}/usr/$(get_libdir)/cmake/PySide2-${PV}/PySide2Targets-${CMAKE_BUILD_TYPE,,}.cmake" || die +} diff --git a/dev-python/pyside6-tools/Manifest b/dev-python/pyside6-tools/Manifest index 1584579ae4cc..caec497b7e05 100644 --- a/dev-python/pyside6-tools/Manifest +++ b/dev-python/pyside6-tools/Manifest @@ -1,5 +1,7 @@ DIST pyside-setup-opensource-src-6.4.0.tar.xz 8551772 BLAKE2B 180d9f2182b8df04394677bbcb0765764d9de1f34064fc688a3ccae8ec37174b4a01fa70c80d98c7ca7fe6b45239225bd801c552d332e2c6fc4a3726535e72e9 SHA512 0517408f110830b888f04777c60b29479831604877da13c5a41a710888ebe53064f06d9b7b61d5c6e6a483ac5ee1639a63bb7f9844301df53e3e9ca8eafcf9e9 DIST pyside-setup-opensource-src-6.4.1.tar.xz 8755436 BLAKE2B 9b88115374eb690282397fbf33fa6698043c77c8defd40fd0d711dee39aa4cd56af94533cf1703b87084e8755758fe636b877071a29043ee7f4c8e406e47cf38 SHA512 330eef5d63c5225e0d3ee8be1229e81ac04ec39772766fd2dfe197291a8153c00a2cd548ce6e49a0a198b3081535c79a7e649a6e9f03dfe67df68790543ea023 +DIST pyside-setup-opensource-src-6.4.2.tar.xz 8759528 BLAKE2B cc1a18e9dc81eb02bbfffd38816da68f053337f94c485fdd2f99488ae7ade2e899be1d98518def8f39a4eeaeaff6018ff09402bfe55b3484d78d8c4d9796b4e7 SHA512 129ea420000fceef9726fab9e0320e8286a34aa0855fc4bd369adc0020b76909b3a5ac8c3fa622b73da1561b39dcaeb8ac121f634918e2c0460a9ebaccb0f659 EBUILD pyside6-tools-6.4.0.ebuild 1360 BLAKE2B 78593ae554e548ac0c3f2f7d3627d8059caab2af9130c63dd5852af3805affec9b9748cbf5cda9ab0d447266499cc1d858de64943728ccc09186104f41cb2133 SHA512 5de2803012852861e6adf4e4b7e2ea6ff8a98c96cac7809e3b9ec2accc4b7467fd06e8e3f2da737199a0011e0ae2c911f214d69ba9f9a21b6b3fc064f901caa4 EBUILD pyside6-tools-6.4.1.ebuild 1360 BLAKE2B 78593ae554e548ac0c3f2f7d3627d8059caab2af9130c63dd5852af3805affec9b9748cbf5cda9ab0d447266499cc1d858de64943728ccc09186104f41cb2133 SHA512 5de2803012852861e6adf4e4b7e2ea6ff8a98c96cac7809e3b9ec2accc4b7467fd06e8e3f2da737199a0011e0ae2c911f214d69ba9f9a21b6b3fc064f901caa4 +EBUILD pyside6-tools-6.4.2.ebuild 1360 BLAKE2B 93e8d984e5b77969bc3e2707bc2256224d176c895a11e4e3a5dceab0a5b5dc067dd62aa92eb5d19a6de4ab71bd28ac371f10abf2f101e69481efef17424bd8cd SHA512 091f4492053fb2ffff45408d2a6db1673556196e4d0956f8ed60558d0eacf347417da69291170150b78bab22cc55833d28613eb600deb97e2d9580bd46bff251 MISC metadata.xml 402 BLAKE2B 28348df442d189eadb56e04dfda71c1d5a56868aae85611a7d77ecdc7651e34ce02563c8da1270aad55758e2dd4301de44434e0bbdb010ef484e240068602ede SHA512 a54866110e38c24d67d60286c64b63dc0b537c55eb201b84b9173b47710b6e8a840d9072ca46fbef969bf481e43e1d8824b20655d7fe6b300cfd5333c3f74a41 diff --git a/dev-python/pyside6-tools/pyside6-tools-6.4.2.ebuild b/dev-python/pyside6-tools/pyside6-tools-6.4.2.ebuild new file mode 100644 index 000000000000..e86e2068947f --- /dev/null +++ b/dev-python/pyside6-tools/pyside6-tools-6.4.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# TODO: Add PyPy once officially supported. See also: +# https://bugreports.qt.io/browse/PYSIDE-535 +PYTHON_COMPAT=( python3_{8..11} ) +CMAKE_IN_SOURCE_BUILD=1 + +inherit cmake python-r1 + +MY_P=pyside-setup-opensource-src-${PV} + +DESCRIPTION="PySide development tools (pyside6-lupdate with support for Python)" +HOMEPAGE="https://wiki.qt.io/PySide6" +SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-${PV}-src/${MY_P}.tar.xz" +S="${WORKDIR}/${MY_P}/sources/pyside-tools" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + ~dev-python/pyside6-${PV}[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +src_prepare() { + cmake_src_prepare + + python_copy_sources +} + +src_configure() { + pyside-tools_configure() { + local mycmakeargs=( + # the tools conflict with tools from Qt + -DNO_QT_TOOLS=yes + ) + CMAKE_USE_DIR="${BUILD_DIR}" cmake_src_configure + } + + python_foreach_impl pyside-tools_configure +} + +src_compile() { + pyside-tools_compile() { + CMAKE_USE_DIR="${BUILD_DIR}" cmake_src_compile + } + + python_foreach_impl pyside-tools_compile +} + +src_install() { + pyside-tools_install() { + python_doexe "${BUILD_DIR}/"*.py + } + + python_foreach_impl pyside-tools_install + + einstalldocs +} diff --git a/dev-python/pyside6/Manifest b/dev-python/pyside6/Manifest index 5a07f130ba2f..472d2c116286 100644 --- a/dev-python/pyside6/Manifest +++ b/dev-python/pyside6/Manifest @@ -2,6 +2,8 @@ AUX pyside6-6.3.1-fix-designer-plugin-install-location.patch 685 BLAKE2B 2f3b387 AUX pyside6-6.3.1-no-strip.patch 953 BLAKE2B f88bac603a584213a864fcfc7c528f1d236ebdbfb653c3877316cd0b95c30c2f7288b1c81c6a90a3e4228536da4aa63552991fefa952f450b0b852b3e2aed94a SHA512 2920075a26fc059bdebc8eb5fa7c15de74729b7f8d1eb59197f7426afa7a65f1f78a8ebb76e946b2dfaf5817dbf090744bafaed2f2156f2d1548c2932a7ce61a DIST pyside-setup-opensource-src-6.4.0.tar.xz 8551772 BLAKE2B 180d9f2182b8df04394677bbcb0765764d9de1f34064fc688a3ccae8ec37174b4a01fa70c80d98c7ca7fe6b45239225bd801c552d332e2c6fc4a3726535e72e9 SHA512 0517408f110830b888f04777c60b29479831604877da13c5a41a710888ebe53064f06d9b7b61d5c6e6a483ac5ee1639a63bb7f9844301df53e3e9ca8eafcf9e9 DIST pyside-setup-opensource-src-6.4.1.tar.xz 8755436 BLAKE2B 9b88115374eb690282397fbf33fa6698043c77c8defd40fd0d711dee39aa4cd56af94533cf1703b87084e8755758fe636b877071a29043ee7f4c8e406e47cf38 SHA512 330eef5d63c5225e0d3ee8be1229e81ac04ec39772766fd2dfe197291a8153c00a2cd548ce6e49a0a198b3081535c79a7e649a6e9f03dfe67df68790543ea023 +DIST pyside-setup-opensource-src-6.4.2.tar.xz 8759528 BLAKE2B cc1a18e9dc81eb02bbfffd38816da68f053337f94c485fdd2f99488ae7ade2e899be1d98518def8f39a4eeaeaff6018ff09402bfe55b3484d78d8c4d9796b4e7 SHA512 129ea420000fceef9726fab9e0320e8286a34aa0855fc4bd369adc0020b76909b3a5ac8c3fa622b73da1561b39dcaeb8ac121f634918e2c0460a9ebaccb0f659 EBUILD pyside6-6.4.0.ebuild 9171 BLAKE2B b679ec96c272a1a2396bd46e2906a0b89f348162f658743670c2d5967d9941f5d6318a84563e979cd1956fd3a243c6ecceb9010baa62c50f398ff3944145b5e7 SHA512 7516fb3e2d006e33c2e4e9de4df6b86d58735205521a51a4750918afa0221d307e8cc67468be5db45443945cd59c293074e36452731ed385b262ca2a822d11a9 EBUILD pyside6-6.4.1.ebuild 9171 BLAKE2B b679ec96c272a1a2396bd46e2906a0b89f348162f658743670c2d5967d9941f5d6318a84563e979cd1956fd3a243c6ecceb9010baa62c50f398ff3944145b5e7 SHA512 7516fb3e2d006e33c2e4e9de4df6b86d58735205521a51a4750918afa0221d307e8cc67468be5db45443945cd59c293074e36452731ed385b262ca2a822d11a9 +EBUILD pyside6-6.4.2.ebuild 9171 BLAKE2B f7ff3f159c9aaba4b9a118e1127386f0452c249a9cb044a8f926ba826fa3db190c9e6b00350eaf6ef8baccc07ee27b5ec6dba1afe77dfae46c6ee5a0f8b2d2b8 SHA512 16e40f3b5f852392a6983e4c57099ff0af560fb624abeaf1c12a83160ff204d7d0c8547897c633ffb3f825cacdb1546b5af5ab580b20e8eef7192808eac4fa76 MISC metadata.xml 1830 BLAKE2B fe8b0657824ef49182b8a5ac334539e10ff88d56f1d0ff517ce9247f0ec1c8b82158688fefde8e01c99fadcb0268e6e0109fef49830ffdec821e803e2ad23517 SHA512 4b49ec54b699673da2c9173f849f70e2a42321608c2893fa9d161a2ff51a917864042b3c0421c3723b98bcbde0d53e78e8c832f25a689dc7e3499d05446a014b diff --git a/dev-python/pyside6/pyside6-6.4.2.ebuild b/dev-python/pyside6/pyside6-6.4.2.ebuild new file mode 100644 index 000000000000..f7978768824b --- /dev/null +++ b/dev-python/pyside6/pyside6-6.4.2.ebuild @@ -0,0 +1,223 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# TODO: Add PyPy once officially supported. See also: +# https://bugreports.qt.io/browse/PYSIDE-535 +PYTHON_COMPAT=( python3_{8..11} ) + +inherit cmake python-r1 virtualx + +# TODO: Add conditional support for "QtRemoteObjects" via a new "remoteobjects" +# USE flag after an external "dev-qt/qtremoteobjects" package has been created. +# TODO: Add conditional support for apidoc generation via a new "doc" USE flag. +# Note that doing so requires the Qt source tree, sphinx, and graphviz. Once +# ready, pass the ${QT_SRC_DIR} variable to cmake to enable this support. +# TODO: Disable GLES support if the "gles2-only" USE flag is disabled. Note +# that the "PySide6/QtGui/CMakeLists.txt" and +# "PySide6/QtOpenGLFunctions/CMakeLists.txt" files test for GLES support by +# testing whether the "Qt5::Gui" list property defined by +# "/usr/lib64/cmake/Qt5Gui/Qt5GuiConfig.cmake" at "dev-qt/qtgui" installation +# time contains the substring "opengles2". Since cmake does not permit +# properties to be overridden from the command line, these files must instead +# be conditionally patched to avoid these tests. An issue should be filed with +# upstream requesting a CLI-settable variable to control this. + +MY_P=pyside-setup-opensource-src-${PV} + +DESCRIPTION="Python bindings for the Qt framework" +HOMEPAGE="https://wiki.qt.io/PySide6" +SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-${PV}-src/${MY_P}.tar.xz" +S="${WORKDIR}/${MY_P}/sources/pyside6" + +# See "sources/pyside6/PySide6/licensecomment.txt" for licensing details. +# Shall we allow essential modules to be disabled? They are: +# (core), gui, widgets, printsupport, sql, network, testlib, concurrent, +# x11extras (for X) +LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 )" +SLOT="0" +KEYWORDS="~amd64" +IUSE=" + +dbus charts +concurrent designer gles2-only +gui help multimedia + +network network-auth +opengl positioning +printsupport qml quick + quick3d serialport +sql svg test +testlib webchannel webengine + websockets +widgets +xml +" + +# Manually reextract these requirements on version bumps by running the +# following one-liner from within "${S}": +# $ grep 'set.*_deps' PySide6/Qt*/CMakeLists.txt +# Note that the "designer" USE flag corresponds to the "Qt6UiTools" module. +REQUIRED_USE="${PYTHON_REQUIRED_USE} + charts? ( gui widgets ) + designer? ( widgets ) + gles2-only? ( gui ) + gui? ( dbus opengl ) + help? ( network sql widgets ) + multimedia? ( gui network ) + network-auth? ( network ) + opengl? ( gui ) + printsupport? ( widgets ) + qml? ( network ) + quick? ( gui network opengl qml ) + quick3d? ( gui network opengl qml quick ) + sql? ( widgets ) + svg? ( gui ) + testlib? ( widgets ) + webchannel? ( qml ) + webengine? ( network gui printsupport quick webchannel ) + websockets? ( network ) + widgets? ( gui ) +" + +# Tests fail pretty bad and I'm not fixing them right now +RESTRICT="test" + +# Minimal supported version of Qt. +QT_PV="$(ver_cut 1-2)*:6" + +RDEPEND="${PYTHON_DEPS} + ~dev-python/shiboken6-${PV}[${PYTHON_USEDEP}] + =dev-qt/qtbase-${QT_PV}[concurrent?,dbus?,gles2-only=,network?,opengl?,sql?,widgets?,xml?] + charts? ( =dev-qt/qtcharts-${QT_PV} ) + designer? ( =dev-qt/qttools-${QT_PV}[designer] ) + gui? ( + =dev-qt/qtbase-${QT_PV}[gui,jpeg] + x11-libs/libxkbcommon + ) + help? ( =dev-qt/qttools-${QT_PV}[assistant] ) + multimedia? ( =dev-qt/qtmultimedia-${QT_PV}[qml(+)?,gles2-only(-)=,widgets(+)?] ) + network-auth? ( =dev-qt/qtnetworkauth-${QT_PV} ) + positioning? ( =dev-qt/qtpositioning-${QT_PV} ) + printsupport? ( =dev-qt/qtbase-${QT_PV}[gui,widgets] ) + qml? ( =dev-qt/qtdeclarative-${QT_PV}[widgets?] ) + quick3d? ( =dev-qt/qtquick3d-${QT_PV} ) + serialport? ( =dev-qt/qtserialport-${QT_PV} ) + svg? ( =dev-qt/qtsvg-${QT_PV} ) + testlib? ( =dev-qt/qtbase-${QT_PV}[gui] ) + webchannel? ( =dev-qt/qtwebchannel-${QT_PV} ) + webengine? ( =dev-qt/qtwebengine-${QT_PV}[widgets?] ) + websockets? ( =dev-qt/qtwebsockets-${QT_PV} ) +" +DEPEND="${RDEPEND} + test? ( =dev-qt/qtbase-${QT_PV}[gui] ) +" +# testlib is toggled by the gui flag on qtbase + +PATCHES=( + "${FILESDIR}/${PN}-6.3.1-no-strip.patch" + "${FILESDIR}/${PN}-6.3.1-fix-designer-plugin-install-location.patch" +) + +src_configure() { + # See collect_module_if_found macros in PySideHelpers.cmake + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DAnimation=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DCore=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DExtras=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DInput=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DLogic=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt63DRender=yes + #-DCMAKE_DISABLE_FIND_PACKAGE_Qt6AxContainer=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Bluetooth=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Charts=$(usex !charts) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Concurrent=$(usex !concurrent) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6DataVisualization=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6DBus=$(usex !dbus) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Designer=$(usex !designer) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Gui=$(usex !gui) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Help=$(usex !help) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6HttpServer=yes + #-DCMAKE_DISABLE_FIND_PACKAGE_Qt6Location=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Multimedia=$(usex !multimedia) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6MultimediaWidgets=$(usex !multimedia yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6NetworkAuth=$(usex !network-auth) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Network=$(usex !network) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Nfc=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6OpenGL=$(usex !opengl) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6OpenGLWidgets=$(usex !opengl yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Pdf=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6PdfWidgets=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Positioning=$(usex !positioning) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6PrintSupport=$(usex !printsupport) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Qml=$(usex !qml) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Quick3D=$(usex !quick3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Quick=$(usex !quick) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6QuickControls2=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6QuickWidgets=$(usex !quick yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6RemoteObjects=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Scxml=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Sensors=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6SerialPort=$(usex !serialport) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6SpatialAudio=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Sql=$(usex !sql) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6StateMachine=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Svg=$(usex !svg) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6SvgWidgets=$(usex !svg yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Test=$(usex !testlib) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6TextToSpeech=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6UiTools=$(usex !designer) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WebChannel=$(usex !webchannel) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineCore=$(usex !webengine) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineQuick=$(usex !webengine yes $(usex !quick)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineWidgets=$(usex !webengine yes $(usex !widgets)) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WebSockets=$(usex !websockets) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Widgets=$(usex !widgets) + #-DCMAKE_DISABLE_FIND_PACKAGE_Qt6WinExtras=yes + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Xml=$(usex !xml) + # try to avoid pre-stripping + -DQFP_NO_OVERRIDE_OPTIMIZATION_FLAGS=yes + -DQFP_NO_STRIP=yes + + ) + + pyside6_configure() { + local mycmakeargs=( + "${mycmakeargs[@]}" + -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" + -DPYTHON_EXECUTABLE="${PYTHON}" + -DPYTHON_SITE_PACKAGES="$(python_get_sitedir)" + -DSHIBOKEN_PYTHON_SHARED_LIBRARY_SUFFIX="-${EPYTHON}" + ) + cmake_src_configure + } + python_foreach_impl pyside6_configure +} + +src_compile() { + python_foreach_impl cmake_src_compile +} + +src_test() { + local -x PYTHONDONTWRITEBYTECODE + python_foreach_impl virtx cmake_src_test +} + +src_install() { + pyside6_install() { + cmake_src_install + python_optimize + + # Uniquify the shiboken6 pkgconfig dependency in the PySide6 pkgconfig + # file for the current Python target. See also: + # https://github.com/leycec/raiagent/issues/73 + sed -i -e 's~^Requires: shiboken6$~&-'${EPYTHON}'~' \ + "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}.pc || die + + # Uniquify the PySide6 pkgconfig file for the current Python target, + # preserving an unversioned "pyside6.pc" file arbitrarily associated + # with the last Python target. (See the previously linked issue.) + cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}{,-${EPYTHON}}.pc || die + } + python_foreach_impl pyside6_install + + # CMakeLists.txt installs a "PySide6Targets-gentoo.cmake" file forcing + # downstream consumers (e.g., pyside6-tools) to target one + # "libpyside6-*.so" library linked to one Python interpreter. See also: + # https://bugreports.qt.io/browse/PYSIDE-1053 + # https://github.com/leycec/raiagent/issues/74 + sed -i -e 's~pyside6-python[[:digit:]]\+\.[[:digit:]]\+~pyside6${PYTHON_CONFIG_SUFFIX}~g' \ + "${ED}/usr/$(get_libdir)/cmake/PySide6-${PV}/PySide6Targets-${CMAKE_BUILD_TYPE,,}.cmake" || die +} diff --git a/dev-python/shiboken2/Manifest b/dev-python/shiboken2/Manifest index 0665e4899a77..81f193215d98 100644 --- a/dev-python/shiboken2/Manifest +++ b/dev-python/shiboken2/Manifest @@ -3,8 +3,11 @@ AUX shiboken2-5.15.5-python311-1.patch 3124 BLAKE2B 97e51ae8cc6866da7ac9cced4f19 AUX shiboken2-5.15.5-python311-2.patch 2056 BLAKE2B c93be29e31b0fa6ce28a29de0dc4dba9635e86ba0103d77334e324a0d26f4c81c9ee6583bef146eb908fe290426eb462dd0a0f68e917ca5f3c4505742d673a0f SHA512 df6f185546180b3d27d8ed1ec1ccf90cdf3813f8928894717ad02e97f0c404b8dc00aed330e8b51aa7e04d5b3e621a15981fc911b2371542f9266c147fdf3828 AUX shiboken2-5.15.5-python311-3.patch 2363 BLAKE2B 84521be2008dda0fc9398dac2c6e235d0d976c3219f7ecf50f28938a7cce6952ec41795c2c86d0f71ccd94210661dc22a471adb2f879a133e11a3148923fd708 SHA512 540ff5afbfebcc00f20c43993f67458013f4655c06505fdf23bc26085bd2c621863dd9c28be1a20dca299113aee828974f853b145818fdb11d59fc12d0bb8c14 AUX shiboken2-5.15.6-fix-pyside2-compile.patch 422 BLAKE2B bdb66c4ef26fccf4b9f4bc4586fb7ffdd8dfed80bf6315a70c86882f98250e42235ff27265b6c3a4e65e8dd7b233b61201a33808985ffb50e929bc8b5deb864f SHA512 4f608eb93fb72f81a9327699b14d4451261831f5079fac12aa88ce17ac30fc846bd9b461b8f6a4780727507b388f675a116f55ef1c240ced33d941315af4d21c +AUX shiboken2-5.15.8-py-limited-api.patch 527 BLAKE2B a27886393ff917dbf3b1318d44d998e574e87ce79dbcc694dedb2dc9da7c173c87b40eb8d6296d2f1f7d6bd3ccffa2e5ae9a11e97a2f4e436d4902b2a447513c SHA512 579b88892e05b2e313f14adebaf62e399fd3f9981955e15a762196ca405b0dccc254edfd941727f777ea97709272475c8df239991d2aa7491e200c61dd66a583 DIST pyside-setup-opensource-src-5.15.6.tar.xz 3580388 BLAKE2B 8a3b15d073bcbb0c6734f500ca906e56387cb8fc4bfcfd996304d71b54edd5f4568976049519ed26aa718bee9e43f59a0c4ef53837d5a341219b991a8527a800 SHA512 99a0c1a05e722cbf33128cf25742e61b92e151fdc05b79db9bafe778e024a0c6fc2886ee3d0b923ff681c55916f5c0eea4197f174432587fd662fba4390b26f4 DIST pyside-setup-opensource-src-5.15.7.tar.xz 3581144 BLAKE2B 95b5720a5273c96b00bdf86b36734970991a29cf0db1e6fb2c00d7e671fbc4459b4434abc91a8a47ec5d8ba694bcdae5b57a52448908fdca25c348f9ee2b6c81 SHA512 9c551b47581e4f2671c4378f1a2c0d9e565b08edee74244a7704a2c94eef1e1041d23f0e388c07bdd61067e986340907cf80f4527257a9a706f7f07c497834c6 +DIST pyside-setup-opensource-src-5.15.8.tar.xz 3582256 BLAKE2B eef6668c612c39eac4ea29db4eee0cc6eef72034babaa14525ca63cf6e02695df27bf8a6764110c4bcc77f55c7e9fb531074916a45d7ea324265e50d9a60d592 SHA512 78e19a8e8fa413bb784f16847d5774e4362409a2bd83567177b83f1391c37305d373155fb95ea569c6c483175e62a0d3f5d91a2fd5dae85d48c8047d242b9e22 EBUILD shiboken2-5.15.6.ebuild 6693 BLAKE2B af9bbbe6711442a1526f4db11cd6660f6d93b1a4997a120dd55cbf2e3911c8c4b00de4961b609f4761d293568a47f63cf0a9f70a67c11c5e730c9d14762b2d5a SHA512 be0131579e928a32450636db2b49c370412f0c7652216a7db2e16697f00e3f2afb938540a82b51b8350c9853c30d0dc98314ba5f007503f364aaca7686680750 EBUILD shiboken2-5.15.7.ebuild 6691 BLAKE2B 61b9c0dc1eea1d40c6ee5bf1b04ce2842e9053110f52a61a7c9133bd52bc8b9d80c7aa2d636d831dee2de2ba8f5ba5b3198bd683531c6c18a964b52412c5c16d SHA512 24a58180617e0e45397c07088d673bb44bcce48095c50b10d33872790a74f940ef931fad9a76cb8675b9c3ada4036b0a5912d133190ca7b9c8bc60b948c73f01 +EBUILD shiboken2-5.15.8.ebuild 6742 BLAKE2B fab7fb16e9b6cc4d35012c04fc913091c1548b9e77cc37d9565a86995ca1ce222f8bfde7aebd5bc3e10f03f38d12b140be9328c43f63cf80e005da4d3d6272bc SHA512 a8bcc2ba829acb9dc626bddbe6c8165360d7ba9bd84899d0b46668457e2ca37563c63e654b46ce0e9daf8d10de8f22b3903d2255fd86edcec39b43b5727e84d0 MISC metadata.xml 730 BLAKE2B 803b825adb9fcd4379b1e3fba57d6b1916a81ced12f3b3c7d3ddcd68a0c03e85fcf31d5b07a70deebe073f267fe93a0529f7ffb4b1a9508a2223894883044f3b SHA512 5a462077fee2bd3ac87ab79274be0a718fd9b273fca4946d2d2734cefdf5817e6b4dc478a828b3bc783c63e64a62a6662b482d61eefe57386c15f9703a57fb24 diff --git a/dev-python/shiboken2/files/shiboken2-5.15.8-py-limited-api.patch b/dev-python/shiboken2/files/shiboken2-5.15.8-py-limited-api.patch new file mode 100644 index 000000000000..143eb24a103a --- /dev/null +++ b/dev-python/shiboken2/files/shiboken2-5.15.8-py-limited-api.patch @@ -0,0 +1,11 @@ +--- a/libshiboken/pep384impl.cpp 2022-09-23 08:47:20.000000000 +0200 ++++ b/libshiboken/pep384impl.cpp 2023-01-04 08:07:17.000000000 +0100 +@@ -751,7 +751,7 @@ + #endif // IS_PY2 + Shiboken::AutoDecRef privateobj(PyObject_GetAttr( + reinterpret_cast(Py_TYPE(self)), Shiboken::PyMagicName::name())); +-#ifndef Py_LIMITED_API ++#if !defined(Py_LIMITED_API) && PY_VERSION_HEX < 0x03010000 + return _Py_Mangle(privateobj, name); + #else + // PYSIDE-1436: _Py_Mangle is no longer exposed; implement it always. diff --git a/dev-python/shiboken2/shiboken2-5.15.8.ebuild b/dev-python/shiboken2/shiboken2-5.15.8.ebuild new file mode 100644 index 000000000000..0f2ee50680cc --- /dev/null +++ b/dev-python/shiboken2/shiboken2-5.15.8.ebuild @@ -0,0 +1,175 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# TODO: Split the "/usr/bin/shiboken2" binding generator from the +# "/usr/lib64/libshiboken2-*.so" family of shared libraries. The former +# requires everything (including Clang) at runtime; the latter only requires +# Qt and Python at runtime. Note that "pip" separates these two as well. See: +# https://doc.qt.io/qtforpython/shiboken2/faq.html#is-there-any-runtime-dependency-on-the-generated-binding +# Once split, the PySide2 ebuild should be revised to require +# "/usr/bin/shiboken2" at build time and "libshiboken2-*.so" at runtime. +# TODO: Add PyPy once officially supported. See also: +# https://bugreports.qt.io/browse/PYSIDE-535 +PYTHON_COMPAT=( python3_{8..11} ) + +inherit cmake llvm python-r1 toolchain-funcs + +MY_P=pyside-setup-opensource-src-${PV} + +DESCRIPTION="Python binding generator for C++ libraries" +HOMEPAGE="https://wiki.qt.io/PySide2" +SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${PV}-src/${MY_P}.tar.xz" +S="${WORKDIR}/${MY_P}/sources/shiboken2" + +# The "sources/shiboken2/libshiboken" directory is triple-licensed under the +# GPL v2, v3+, and LGPL v3. All remaining files are licensed under the GPL v3 +# with version 1.0 of a Qt-specific exception enabling shiboken2 output to be +# arbitrarily relicensed. (TODO) +LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 ) GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="+docstrings numpy test vulkan" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Tests fail pretty bad and I'm not fixing them right now +RESTRICT="test" + +# Minimal supported version of Qt. +QT_PV="$(ver_cut 1-2)*:5" + +# Since Clang is required at both build- and runtime, BDEPEND is omitted here. +LLVM_MAX_SLOT=15 +RDEPEND="${PYTHON_DEPS} + =dev-qt/qtcore-${QT_PV} + =dev-libs/libxml2-2.6.32 + >=dev-libs/libxslt-1.1.19 + =dev-qt/qtxml-${QT_PV} + =dev-qt/qtxmlpatterns-${QT_PV} + ) + numpy? ( dev-python/numpy[${PYTHON_USEDEP}] ) + vulkan? ( dev-util/vulkan-headers ) +" +DEPEND="${RDEPEND} + test? ( =dev-qt/qttest-${QT_PV} ) +" + +DOCS=( AUTHORS ) + +PATCHES=( + "${FILESDIR}"/${PN}-5.15.5-python311-1.patch + "${FILESDIR}"/${PN}-5.15.5-python311-2.patch + "${FILESDIR}"/${PN}-5.15.5-python311-3.patch + "${FILESDIR}"/${PN}-5.15.6-fix-pyside2-compile.patch + "${FILESDIR}"/${PN}-5.15.8-py-limited-api.patch + "${FILESDIR}"/${PN}-5.15.5-add-numpy-1.23-compatibility.patch +) + +# Ensure the path returned by get_llvm_prefix() contains clang as well. +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} + +src_prepare() { + # TODO: File upstream issue requesting a sane way to disable NumPy support. + if ! use numpy; then + sed -i -e '/\bprint(os\.path\.realpath(numpy))/d' \ + libshiboken/CMakeLists.txt || die + fi + + # Shiboken2 assumes Vulkan headers live under either "$VULKAN_SDK/include" + # or "$VK_SDK_PATH/include" rather than "${EPREFIX}/usr/include/vulkan". + if use vulkan; then + sed -i -e "s~\bdetectVulkan(&headerPaths);~headerPaths.append(HeaderPath{QByteArrayLiteral(\"${EPREFIX}/usr/include/vulkan\"), HeaderType::System});~" \ + ApiExtractor/clangparser/compilersupport.cpp || die + fi + + # Shiboken2 assumes the "/usr/lib/clang/${CLANG_NEWEST_VERSION}/include/" + # subdirectory provides Clang builtin includes (e.g., "stddef.h") for the + # currently installed version of Clang, where ${CLANG_NEWEST_VERSION} is + # the largest version specifier that exists under the "/usr/lib/clang/" + # subdirectory. This assumption is false in edge cases, including when + # users downgrade from newer Clang versions but fail to remove those + # versions with "emerge --depclean". See also: + # https://github.com/leycec/raiagent/issues/85 + # + # Sadly, the clang-* family of functions exported by the "toolchain-funcs" + # eclass are defective, returning nonsensical placeholder strings if the + # end user has *NOT* explicitly configured their C++ compiler to be Clang. + # PySide2 does *NOT* care whether the end user has done so or not, as + # PySide2 unconditionally requires Clang in either case. See also: + # https://bugs.gentoo.org/619490 + sed -i -e 's~(findClangBuiltInIncludesDir())~(QStringLiteral("'"${EPREFIX}"'/usr/lib/clang/'$(CPP=clang clang-fullversion)'/include"))~' \ + ApiExtractor/clangparser/compilersupport.cpp || die + + cmake_src_prepare +} + +src_configure() { + # Minimal tests for now, 2 failing with the extended version + # FIXME Subscripted generics cannot be used with class and instance checks + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DDISABLE_DOCSTRINGS=$(usex !docstrings) + ) + + shiboken2_configure() { + local mycmakeargs=( + "${mycmakeargs[@]}" + -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" + -DPYTHON_EXECUTABLE="${PYTHON}" + -DUSE_PYTHON_VERSION="${EPYTHON#python}" + ) + # CMakeLists.txt expects LLVM_INSTALL_DIR as an environment variable. + local -x LLVM_INSTALL_DIR="$(get_llvm_prefix "${LLVM_MAX_SLOT}")" + cmake_src_configure + } + python_foreach_impl shiboken2_configure +} + +src_compile() { + python_foreach_impl cmake_src_compile +} + +src_test() { + python_foreach_impl cmake_src_test +} + +src_install() { + shiboken2_install() { + cmake_src_install + python_optimize + + # Uniquify the "shiboken2" executable for the current Python target, + # preserving an unversioned "shiboken2" file arbitrarily associated + # with the last Python target. + cp "${ED}"/usr/bin/${PN}{,-${EPYTHON}} || die + + # Uniquify the Shiboken2 pkgconfig file for the current Python target, + # preserving an unversioned "shiboken2.pc" file arbitrarily associated + # with the last Python target. See also: + # https://github.com/leycec/raiagent/issues/73 + cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}{,-${EPYTHON}}.pc || die + } + python_foreach_impl shiboken2_install + + # CMakeLists.txt installs a "Shiboken2Targets-gentoo.cmake" file forcing + # downstream consumers (e.g., PySide2) to target one "libshiboken2-*.so" + # library and one "shiboken2" executable linked to one Python interpreter. + # See also: + # https://bugreports.qt.io/browse/PYSIDE-1053 + # https://github.com/leycec/raiagent/issues/74 + sed -i \ + -e 's~shiboken2-python[[:digit:]]\+\.[[:digit:]]\+~shiboken2${PYTHON_CONFIG_SUFFIX}~g' \ + -e 's~/bin/shiboken2~/bin/shiboken2${PYTHON_CONFIG_SUFFIX}~g' \ + "${ED}/usr/$(get_libdir)"/cmake/Shiboken2-${PV}/Shiboken2Targets-${CMAKE_BUILD_TYPE,,}.cmake || die + + # Remove the broken "shiboken_tool.py" script. By inspection, this script + # reduces to a noop. Moreover, this script raises the following exception: + # FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/../shiboken_tool.py': '/usr/bin/../shiboken_tool.py' + rm "${ED}"/usr/bin/shiboken_tool.py || die +} diff --git a/dev-python/shiboken6/Manifest b/dev-python/shiboken6/Manifest index 115963e12fce..4aa2e1265c8f 100644 --- a/dev-python/shiboken6/Manifest +++ b/dev-python/shiboken6/Manifest @@ -2,6 +2,8 @@ AUX shiboken6-6.3.1-no-strip.patch 1001 BLAKE2B c486f9423d4934c2305e8f3109f017db AUX shiboken6-6.4.1-bug2127.patch 843 BLAKE2B 0314acb04c92c19c2015d9f15f86c6e16224347ea37130edf1419f4be8aa16138c560891810d61bfbb380b3a4bd8590ef095769fed3e4424a4dc26de1c8c7da0 SHA512 84befb7e47d339f01f2b6bf9c7d6686f7aa0c5ce2032696f2d587e1a2608a13c228593abaec972debc1ad7d449ff962524f548808b51ec45622c9385639daee9 DIST pyside-setup-opensource-src-6.4.0.tar.xz 8551772 BLAKE2B 180d9f2182b8df04394677bbcb0765764d9de1f34064fc688a3ccae8ec37174b4a01fa70c80d98c7ca7fe6b45239225bd801c552d332e2c6fc4a3726535e72e9 SHA512 0517408f110830b888f04777c60b29479831604877da13c5a41a710888ebe53064f06d9b7b61d5c6e6a483ac5ee1639a63bb7f9844301df53e3e9ca8eafcf9e9 DIST pyside-setup-opensource-src-6.4.1.tar.xz 8755436 BLAKE2B 9b88115374eb690282397fbf33fa6698043c77c8defd40fd0d711dee39aa4cd56af94533cf1703b87084e8755758fe636b877071a29043ee7f4c8e406e47cf38 SHA512 330eef5d63c5225e0d3ee8be1229e81ac04ec39772766fd2dfe197291a8153c00a2cd548ce6e49a0a198b3081535c79a7e649a6e9f03dfe67df68790543ea023 +DIST pyside-setup-opensource-src-6.4.2.tar.xz 8759528 BLAKE2B cc1a18e9dc81eb02bbfffd38816da68f053337f94c485fdd2f99488ae7ade2e899be1d98518def8f39a4eeaeaff6018ff09402bfe55b3484d78d8c4d9796b4e7 SHA512 129ea420000fceef9726fab9e0320e8286a34aa0855fc4bd369adc0020b76909b3a5ac8c3fa622b73da1561b39dcaeb8ac121f634918e2c0460a9ebaccb0f659 EBUILD shiboken6-6.4.0.ebuild 6457 BLAKE2B bb10375f9711474c4d9dd18b689488ca44e9df091f2c8f74a5ea67f665db23de0063674368af9236f2bed20d1291034b7c5e6b00330eff9dc6d8bcb4bd5d3e30 SHA512 c0937b5162a7e5f3cfa2907598ea4fa8433c9474afdaacdc5d0b11ff0700ad43e9baedd628f0f67c009f6d342553b2b5619aea5a5bf1c4c5d2596cb21f049b8d EBUILD shiboken6-6.4.1.ebuild 6498 BLAKE2B ed12e78ee79a6f95f35b5ac65894c33df84f0085ec1d74fc3ca5912a247421c5f57f4d0b93a516247d1dd6d0592f15a65634abea4a4957c07e5d4b2ba0800fc8 SHA512 318c302a8224efbc2e70a04983f28257210d30b0eef429496ebf966e6a7be5b797535c94c7b47281e5ceeef451de9272f914b19d8d514f369a877e2eb5753797 +EBUILD shiboken6-6.4.2.ebuild 6457 BLAKE2B 05d0b6023d007b972888b1ae55cf585caf6380bc5493107b01a4740d1a694d2d7c1b0ed1536194b5470456bc491c00bd711a487ded4000cb044f1dc3eec70e4d SHA512 38a3853000f15418a5dcad1f8146a49888170f9c93e9b7833627c47aaaedcf15b38ce63283f70c34ddd79c248bf5167db1f5bd228408a9cbcdb3ecc598aa6443 MISC metadata.xml 730 BLAKE2B 33e7e589d02ec0517e134aa50407ecb97c6800be3ab7b69174d65776f62c1f25c2b2209d51299d9e0110b5f5e9322ee2c0b43dc89e6b12c40ea322ca9bc8eb3f SHA512 cc4ecdd9bc86ce59c2027c6f87307d32bd76d5d2cd8c07edb6c60cc5317ea52a96136c7597a179d75f1632db2999300d8b8f0567679ba3fc562804774fcdcc98 diff --git a/dev-python/shiboken6/shiboken6-6.4.2.ebuild b/dev-python/shiboken6/shiboken6-6.4.2.ebuild new file mode 100644 index 000000000000..385027e5689b --- /dev/null +++ b/dev-python/shiboken6/shiboken6-6.4.2.ebuild @@ -0,0 +1,169 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# TODO: Split the "/usr/bin/shiboken6" binding generator from the +# "/usr/lib64/libshiboken6-*.so" family of shared libraries. The former +# requires everything (including Clang) at runtime; the latter only requires +# Qt and Python at runtime. Note that "pip" separates these two as well. See: +# https://doc.qt.io/qtforpython/shiboken6/faq.html#is-there-any-runtime-dependency-on-the-generated-binding +# Once split, the PySide6 ebuild should be revised to require +# "/usr/bin/shiboken6" at build time and "libshiboken6-*.so" at runtime. +# TODO: Add PyPy once officially supported. See also: +# https://bugreports.qt.io/browse/PYSIDE-535 +PYTHON_COMPAT=( python3_{8..11} ) + +inherit cmake llvm python-r1 toolchain-funcs + +MY_P=pyside-setup-opensource-src-${PV} + +DESCRIPTION="Python binding generator for C++ libraries" +HOMEPAGE="https://wiki.qt.io/PySide6" +SRC_URI="https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-${PV}-src/${MY_P}.tar.xz" +S="${WORKDIR}/${MY_P}/sources/shiboken6" + +# The "sources/shiboken6/libshiboken" directory is triple-licensed under the +# GPL v2, v3+, and LGPL v3. All remaining files are licensed under the GPL v3 +# with version 1.0 of a Qt-specific exception enabling shiboken6 output to be +# arbitrarily relicensed. (TODO) +LICENSE="|| ( GPL-2 GPL-3+ LGPL-3 ) GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+docstrings numpy test vulkan" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Tests fail pretty bad and I'm not fixing them right now +RESTRICT="test" + +# Minimal supported version of Qt. +QT_PV="$(ver_cut 1-2)*:6" + +# Since Clang is required at both build- and runtime, BDEPEND is omitted here. +LLVM_MAX_SLOT=15 +RDEPEND="${PYTHON_DEPS} + =dev-qt/qtbase-${QT_PV} + =dev-libs/libxml2-2.6.32 + >=dev-libs/libxslt-1.1.19 + ) + numpy? ( dev-python/numpy[${PYTHON_USEDEP}] ) + vulkan? ( dev-util/vulkan-headers ) +" +DEPEND="${RDEPEND} + test? ( =dev-qt/qtbase-${QT_PV}[gui] ) +" +# testlib is toggled by the gui flag on qtbase + +DOCS=( AUTHORS ) + +PATCHES=( + "${FILESDIR}/${PN}-6.3.1-no-strip.patch" +) + +# Ensure the path returned by get_llvm_prefix() contains clang as well. +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} + +src_prepare() { + # TODO: File upstream issue requesting a sane way to disable NumPy support. + if ! use numpy; then + sed -i -e '/\bprint(os\.path\.realpath(numpy))/d' \ + libshiboken/CMakeLists.txt || die + fi + + # Shiboken6 assumes Vulkan headers live under either "$VULKAN_SDK/include" + # or "$VK_SDK_PATH/include" rather than "${EPREFIX}/usr/include/vulkan". + if use vulkan; then + sed -i -e "s~\bdetectVulkan(&headerPaths);~headerPaths.append(HeaderPath{QByteArrayLiteral(\"${EPREFIX}/usr/include/vulkan\"), HeaderType::System});~" \ + ApiExtractor/clangparser/compilersupport.cpp || die + fi + + # Shiboken6 assumes the "/usr/lib/clang/${CLANG_NEWEST_VERSION}/include/" + # subdirectory provides Clang builtin includes (e.g., "stddef.h") for the + # currently installed version of Clang, where ${CLANG_NEWEST_VERSION} is + # the largest version specifier that exists under the "/usr/lib/clang/" + # subdirectory. This assumption is false in edge cases, including when + # users downgrade from newer Clang versions but fail to remove those + # versions with "emerge --depclean". See also: + # https://github.com/leycec/raiagent/issues/85 + # + # Sadly, the clang-* family of functions exported by the "toolchain-funcs" + # eclass are defective, returning nonsensical placeholder strings if the + # end user has *NOT* explicitly configured their C++ compiler to be Clang. + # PySide6 does *NOT* care whether the end user has done so or not, as + # PySide6 unconditionally requires Clang in either case. See also: + # https://bugs.gentoo.org/619490 + sed -i -e 's~(findClangBuiltInIncludesDir())~(QStringLiteral("'"${EPREFIX}"'/usr/lib/clang/'$(CPP=clang clang-fullversion)'/include"))~' \ + ApiExtractor/clangparser/compilersupport.cpp || die + + cmake_src_prepare +} + +src_configure() { + # Minimal tests for now, 2 failing with the extended version + # FIXME Subscripted generics cannot be used with class and instance checks + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DDISABLE_DOCSTRINGS=$(usex !docstrings) + ) + + shiboken6_configure() { + local mycmakeargs=( + "${mycmakeargs[@]}" + -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" + -DPYTHON_EXECUTABLE="${PYTHON}" + -DUSE_PYTHON_VERSION="${EPYTHON#python}" + ) + # CMakeLists.txt expects LLVM_INSTALL_DIR as an environment variable. + local -x LLVM_INSTALL_DIR="$(get_llvm_prefix "${LLVM_MAX_SLOT}")" + cmake_src_configure + } + python_foreach_impl shiboken6_configure +} + +src_compile() { + python_foreach_impl cmake_src_compile +} + +src_test() { + python_foreach_impl cmake_src_test +} + +src_install() { + shiboken6_install() { + cmake_src_install + python_optimize + + # Uniquify the "shiboken6" executable for the current Python target, + # preserving an unversioned "shiboken6" file arbitrarily associated + # with the last Python target. + cp "${ED}"/usr/bin/${PN}{,-${EPYTHON}} || die + + # Uniquify the Shiboken6 pkgconfig file for the current Python target, + # preserving an unversioned "shiboken6.pc" file arbitrarily associated + # with the last Python target. See also: + # https://github.com/leycec/raiagent/issues/73 + cp "${ED}/usr/$(get_libdir)"/pkgconfig/${PN}{,-${EPYTHON}}.pc || die + } + python_foreach_impl shiboken6_install + + # CMakeLists.txt installs a "Shiboken6Targets-gentoo.cmake" file forcing + # downstream consumers (e.g., PySide6) to target one "libshiboken6-*.so" + # library and one "shiboken6" executable linked to one Python interpreter. + # See also: + # https://bugreports.qt.io/browse/PYSIDE-1053 + # https://github.com/leycec/raiagent/issues/74 + sed -i \ + -e 's~shiboken6-python[[:digit:]]\+\.[[:digit:]]\+~shiboken6${PYTHON_CONFIG_SUFFIX}~g' \ + -e 's~/bin/shiboken6~/bin/shiboken6${PYTHON_CONFIG_SUFFIX}~g' \ + "${ED}/usr/$(get_libdir)"/cmake/Shiboken6-${PV}/Shiboken6Targets-${CMAKE_BUILD_TYPE,,}.cmake || die + + # Remove the broken "shiboken_tool.py" script. By inspection, this script + # reduces to a noop. Moreover, this script raises the following exception: + # FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/../shiboken_tool.py': '/usr/bin/../shiboken_tool.py' + rm "${ED}"/usr/bin/shiboken_tool.py || die +} diff --git a/dev-python/spyder-kernels/Manifest b/dev-python/spyder-kernels/Manifest index e97b24e657bc..b50eb7cff0f3 100644 --- a/dev-python/spyder-kernels/Manifest +++ b/dev-python/spyder-kernels/Manifest @@ -1,5 +1,3 @@ -DIST spyder-kernels-2.4.0.gh.tar.gz 92247 BLAKE2B 7dd5a5c6f43de36f23ebac2707e9dc06ced20bb965325b0a31657d03b49cdd993aafe6f1d52d7108dbd2aa8fddf3ae7a6e2da4c2b75eabf05f8302b2119cd3cd SHA512 6744cd05f4cbe452b0b8fa4f416055b8a69f75e49a10b9de3f2781b11f63c84ed7a6686e1a00bbc2020ba015a0cb7f350a6e85665270629a0e714ffe80bcb08d DIST spyder-kernels-2.4.1.gh.tar.gz 92461 BLAKE2B 44858b58094365c07e8d9aa683d721b5a5fb3475849486cdafb9f4e74330e58c13a1ed4839a470238d5ceee0e990c13fb7c913ba04c0297e91f3f47bc469a5e4 SHA512 d6dbbb4359f9b0a040159e0d654058cb62448c4596d87fcfd0445e31905e61e0a3ac71575763393d25d9f5d81aa07fba62384ef2ef6a1cce32feac5a62153402 -EBUILD spyder-kernels-2.4.0.ebuild 2386 BLAKE2B 8e93a18e2fe57b715fa3c210dd147a90f111f810c8ef53cd65d8709e796cdf7a10277648d75332afa052c7a6231801673ff28c8dec5b278bb18323dd809efc46 SHA512 4846ab75ae36ebc8e0cdabbb7cbde00873b5c60f7e1d63763062cc42beac4b520c53225331bee01b34c2e19a323afc6a2c7169f77de4d0b6d73819624f7d999c EBUILD spyder-kernels-2.4.1.ebuild 2269 BLAKE2B c3d69bd57a02284519d034d6ec4931496fce758d91cc824c34fe9e1c19c7af3cca9e6b996f98214ecadb9c4255f37872722f8335c60e8e2a0daaaf85cd6ad6d1 SHA512 8d0b83ddd8513450afeb6c83ee8d800cb09e31d7dc95254557dee487bb10e55fabf6dc307dd71181c61fec9835a0dd4da593cc759033b0d5d68e4eb6a8846c48 MISC metadata.xml 545 BLAKE2B 52be79edfbfdd86e7f895c53d088399b649901b76c7b69cf6363dfba6954971ce75b14624c2fc4254810112e32721e215255d59035f70850e1c1073f9784e65b SHA512 62ad725aab52d7071ccd5297bd15fcdd5e02e97854fc412a43b5c97b7995c77661251994850616743ce39eee0d0673b3bd4189b00876ed6124bf1871f6fb100c diff --git a/dev-python/spyder-kernels/spyder-kernels-2.4.0.ebuild b/dev-python/spyder-kernels/spyder-kernels-2.4.0.ebuild deleted file mode 100644 index 2e99f7545211..000000000000 --- a/dev-python/spyder-kernels/spyder-kernels-2.4.0.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..11} ) - -inherit distutils-r1 - -DESCRIPTION="Kernels used by spyder on its ipython console" -HOMEPAGE=" - https://github.com/spyder-ide/spyder-kernels/ - https://pypi.org/project/spyder-kernels/ -" -SRC_URI=" - https://github.com/spyder-ide/spyder-kernels/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/cloudpickle[${PYTHON_USEDEP}] - =dev-python/ipykernel-6.16.1[${PYTHON_USEDEP}] - >=dev-python/ipython-7.31.1[${PYTHON_USEDEP}] - =dev-python/jupyter_client-7.3.4[${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/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 -) - -python_prepare_all() { - # No additional test failures with ipython-8: 843251 - sed -i -e "/ipython/s:,<8::" setup.py || die - - distutils-r1_python_prepare_all -} diff --git a/dev-python/spyder-line-profiler/Manifest b/dev-python/spyder-line-profiler/Manifest index 8799591d5ac5..e3bca923256c 100644 --- a/dev-python/spyder-line-profiler/Manifest +++ b/dev-python/spyder-line-profiler/Manifest @@ -1,4 +1,3 @@ DIST spyder-line-profiler-0.3.1.gh.tar.gz 44042 BLAKE2B a98c5770b44b3e11d2261b371e5a806087ebcb347b54745b5bdfe5c4fe3051ff862c79e96ab9a0048e83217cba65fd48a6368bf3e1d1a3f9ab09d2dd69f8ec7c SHA512 96ddc1817adfd58362ea766b95cd58ad521c1333a6bafe9fef1e117ef7ef602bc7e7bced3990d19b85c2882253d81d27940ab409a9daacf588513a405ae4d8fb -EBUILD spyder-line-profiler-0.3.1-r1.ebuild 816 BLAKE2B 329448d4fa13d5216e26a15389d44ea744fce0be155e6162cfffaa91869130c63d9d33c484b53afe373f20600da343c47d57dc6d68d1419e4253cbe17230b848 SHA512 df243fafffed44c1c3c81b15823ecd4fbd0b609ec1061cd3dbe22affb9cb46058ae78b84d6dddb248a5c073845e828c161479bbbb69a783fdd286711de097231 -EBUILD spyder-line-profiler-0.3.1.ebuild 784 BLAKE2B 6f386e12fede0472fa02882f96042477c4941564cce2d537727cc5b8bc0f3cf9ac8c0933d29254ecd3b7df116cc4389ea1259c17a1d63c122e1eda739f008468 SHA512 16325c761101c89198bbe5bbb1bfc37268358ebe9c6eeafc67c6bca78b02a334cf85aa1eb1142f5b566678b5a52a2a360d01ca272d6c0638b4cc6c0a84c82f18 -MISC metadata.xml 366 BLAKE2B c32aaf9d9bc88aad26fd4df03243c046874b2f4e7fc40cc57ac85ba72c23cec611b6d2cfacdde51968fb1c012ab9bee3179c61c0d0c28c6c8854f0bed615f022 SHA512 70265f7e2c19d3d7987f5ca4904ff691e99d261a1f5bb4ad06115e706e2f9d15b26be2af4ececa29b2e48d6ac98d56cc1ba23756d55ee0e97e5304aa3713b7b9 +EBUILD spyder-line-profiler-0.3.1-r1.ebuild 817 BLAKE2B f48282222d680923dc748ec30f05b9cf24d7e5c0bd3455363272cf1f8fce7cb3bfb47c23cfb7eb83a88407855d14a3ce2b6eb5375f75ca87a149be8b90a222c0 SHA512 c62e96b0e80e4858e58c46ffa23f3af50628011d20b7c4d2d3710acf727406027d27b2a560ede9d41e2fec99d1aa26f98e9562decd75edabb7fac1e2e4cc2f3a +MISC metadata.xml 437 BLAKE2B 254a233cdcef8d6960ba16b23c7d7db791b3291895ea2d6327691565bd9fc25c059727598cfe4893749ce691556c3d7c0edb006c6d7f2f39ca596a838bba16d3 SHA512 df4a0bce4f15301ff686c91e9d921dced3821659cd9a4fcbcc1866114fdbcecccb01452ce53ae75b270a38d38dbf838f2a603fdab6aeae1e709a530584a9c9e8 diff --git a/dev-python/spyder-line-profiler/metadata.xml b/dev-python/spyder-line-profiler/metadata.xml index 7cf2dd3db140..a364741e8b32 100644 --- a/dev-python/spyder-line-profiler/metadata.xml +++ b/dev-python/spyder-line-profiler/metadata.xml @@ -7,6 +7,7 @@ spyder-line-profiler + spyder-ide/spyder-line-profiler diff --git a/dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1-r1.ebuild b/dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1-r1.ebuild index 6f07c443f2d4..df59e8e226bf 100644 --- a/dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1-r1.ebuild +++ b/dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_COMPAT=( python3_{10..11} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 virtualx diff --git a/dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1.ebuild b/dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1.ebuild deleted file mode 100644 index dc37126b66a1..000000000000 --- a/dev-python/spyder-line-profiler/spyder-line-profiler-0.3.1.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 virtualx - -DESCRIPTION="Plugin to run the python line profiler from within the spyder editor" -HOMEPAGE="https://github.com/spyder-ide/spyder-line-profiler" -SRC_URI="https://github.com/spyder-ide/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -RESTRICT="test" - -RDEPEND=" - dev-python/line_profiler[${PYTHON_USEDEP}] - dev-python/qtawesome[${PYTHON_USEDEP}] - >=dev-python/spyder-5.2.0[${PYTHON_USEDEP}] - spyder-notebook + spyder-ide/spyder-notebook diff --git a/dev-python/spyder-notebook/spyder-notebook-0.4.0.ebuild b/dev-python/spyder-notebook/spyder-notebook-0.4.0.ebuild index 7b27b26f804a..6bfac7c28690 100644 --- a/dev-python/spyder-notebook/spyder-notebook-0.4.0.ebuild +++ b/dev-python/spyder-notebook/spyder-notebook-0.4.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_COMPAT=( python3_{10..11} ) # ERROR: Server components are missing!! Please run 'python setup.py sdist' first. # DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 virtualx diff --git a/dev-python/spyder-terminal/Manifest b/dev-python/spyder-terminal/Manifest index 52aa15215539..5883213aedbd 100644 --- a/dev-python/spyder-terminal/Manifest +++ b/dev-python/spyder-terminal/Manifest @@ -1,3 +1,3 @@ DIST spyder-terminal-1.2.2.tar.gz 9486091 BLAKE2B 0ac3178bddf82704bd1414999388248c83f9becaf96341a44a4117db88089730882acd08d4688b3ef8a09e52d06b5dc595edcd0fca07b3855fd9c82100af2f0e SHA512 7a4e7ca82553bf870650e0f3ce22f4ab93d54c539799ff855599e17452e4b0887854c30cadba1106b4feece021326709ec7c599e2953d0e72fae8e268db93cce -EBUILD spyder-terminal-1.2.2.ebuild 680 BLAKE2B b8d362251d2165171616615b9a41a62895de4793d1c4d852d0f99451fae552a68f8d620974846187319cf592305a0b5b910313ca8c61d94ab22217d477fe53aa SHA512 629e675dd3abeba12dabce827a87f902ffda2a09a8e233471974b56e04dde3a41a27e5a896a78a320fc5096d95309512cd08d1d4e2e22f51318bff3d701fe822 -MISC metadata.xml 361 BLAKE2B 3c50e1e63c16e0423ebdfc0a862920dd2efc2c47c2a88d6e5568fe8950434c7dd8219bde8a31cfe3046b480c217172705b1fca29562e10524fb644bba59680ba SHA512 73cb744181ea407855879710431ec23f4bc3ec09419bcd129b3ab9c89b2d9a26d619ae00018f5eb3a59afacaa1605de302cfb3e5739ed688e466f6463901c103 +EBUILD spyder-terminal-1.2.2.ebuild 681 BLAKE2B d0cd0db1a84ce82660fb75ad62fca738bc7fe918dade2e91a49ceb53c334d93ef8aed6ca91be3c92c3bf349de1986c5235b2fa52e8d0fa8f8833fb07f09a0871 SHA512 28632172f41c896e86624ab2cd68a0c861f0b10db3175ddc9620dbb2fe5bf5137c8ca522bfd2e8b43cddb0df5e6e386e743d2a46ae7870089cd0fe4fa08eae5c +MISC metadata.xml 427 BLAKE2B c563113539eba5ff70feda0ab561790c0087c59487605eb9c2ccddffab5bbdf350e34ae979f38736328c8addf3f84e10951e94c8382d0f25a1f9cc212c1649ce SHA512 173ff707314cab98b492127405af8144c7eec9e76b6a994f1865b8f45de07cbc17a618bf61f83ed478a17c2c3afc7c2a328c0e954e70a5d4f8a129932a059d7e diff --git a/dev-python/spyder-terminal/metadata.xml b/dev-python/spyder-terminal/metadata.xml index 96ef61818e5d..38dc189dce1c 100644 --- a/dev-python/spyder-terminal/metadata.xml +++ b/dev-python/spyder-terminal/metadata.xml @@ -7,6 +7,7 @@ spyder-terminal + spyder-ide/spyder-terminal diff --git a/dev-python/spyder-terminal/spyder-terminal-1.2.2.ebuild b/dev-python/spyder-terminal/spyder-terminal-1.2.2.ebuild index 77e23d1f08a2..59a975a72e64 100644 --- a/dev-python/spyder-terminal/spyder-terminal-1.2.2.ebuild +++ b/dev-python/spyder-terminal/spyder-terminal-1.2.2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_COMPAT=( python3_{10..11} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 diff --git a/dev-python/spyder-unittest/Manifest b/dev-python/spyder-unittest/Manifest index e1d3023dc402..29388de30e7f 100644 --- a/dev-python/spyder-unittest/Manifest +++ b/dev-python/spyder-unittest/Manifest @@ -1,3 +1,3 @@ DIST spyder-unittest-0.5.1.gh.tar.gz 80022 BLAKE2B c904196f7b0288b4d4f105037cbf75fc7ef60669ba1a24687b4f6aa672b88b139b64282c2d12340c958a3ffb65b8cf01b61256f669e167a6c15eb9471430af2a SHA512 4bea5d88b6be80435e2fa6498803ceea275b72c47bd0a54bb3be962bfe00feed2073e4d4915ea1b4dd780cb1c104f6dcd2735ee000cdedb934ed9fac059d0ca5 -EBUILD spyder-unittest-0.5.1.ebuild 970 BLAKE2B 9dbc97a869271b6a8867f2822207a4a3d8cc9b32b02bb34780e4775beace8312a89c26363c31dd02ba7373ab60bc5cb717fbf1917c207996c4e2604fc7f010d7 SHA512 89e73f8b1600160b8234a03a05141e7a46b84708cafa52b2e9a08a8432517b8195dea92329024c889468c6b24ecc181f3db5e13d8ce02821442e35f3da70eae1 -MISC metadata.xml 361 BLAKE2B 9d9ab5a6fcc2bd47042aaca2342fe7603ccf68929f35e45d2f4435b62bdbee2fcfc8ebf236b3e6930154387a2c83b775cb9782d50db13343ac96f7a325bb9a82 SHA512 4227a170633b961a20a045cdbd39dd2438d02fdfe94b41e9801198f126fe4578285bc16097a8377357ea70ff625b7e47e5a2573af88ca6dd27ab1fac0235d05c +EBUILD spyder-unittest-0.5.1.ebuild 971 BLAKE2B c335b8797235fca3e6b781ea8246f88cbb8eb05c34f4ab99100b31e107a6e4713dc2b58f33bbeef01356045fcd09ec4160c9aaf9914a1a219e65af3e0d5b3f07 SHA512 8620c3854da27ec6079dce2873017ef0923c0146ed3701d32a48197925867aa4408cbba97b8ff4d5cc87800713279e9b2b6e0c3158ec51e5ce8147c6f1c2784d +MISC metadata.xml 427 BLAKE2B a6408ae9feaec15c7178f598d5e4acfe0ce4c966368ce4488d075a8fa08f3ff7cc17e74227ff3638a521667eb671d31f6b5da2679741385cf6cdaa88f63a6ce0 SHA512 17c545b696124de7dd0c49410f527f30f482f30ed2dec86d9e325807d3cbff04684eecb7eb9d4cedfeb40f6f0845e2ea0de027479c4da6e2d2f03c9f518857c4 diff --git a/dev-python/spyder-unittest/metadata.xml b/dev-python/spyder-unittest/metadata.xml index 7a33a2fede83..f8bc4578a4c1 100644 --- a/dev-python/spyder-unittest/metadata.xml +++ b/dev-python/spyder-unittest/metadata.xml @@ -7,6 +7,7 @@ spyder-unittest + spyder-ide/spyder-unittest diff --git a/dev-python/spyder-unittest/spyder-unittest-0.5.1.ebuild b/dev-python/spyder-unittest/spyder-unittest-0.5.1.ebuild index a5ce83462d50..43ce967da1ec 100644 --- a/dev-python/spyder-unittest/spyder-unittest-0.5.1.ebuild +++ b/dev-python/spyder-unittest/spyder-unittest-0.5.1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_COMPAT=( python3_{10..11} ) inherit distutils-r1 virtualx diff --git a/dev-python/spyder-vim/Manifest b/dev-python/spyder-vim/Manifest index 77b6168c2605..3cbbbe2c87bb 100644 --- a/dev-python/spyder-vim/Manifest +++ b/dev-python/spyder-vim/Manifest @@ -1,3 +1,3 @@ DIST spyder-vim-0.1.0.gh.tar.gz 867270 BLAKE2B 23f8d880bfbb168f4c6260cd19ac90aeef7413a825e4023d3e2f9fd6296f96f36792f553a98f458cb452d7f6a80f0b1bb7a31a4e4aa25bf3127cf3dafb600a85 SHA512 4671850782113e5c801ccb058bed036fb0675d817714929bcdf247f9819a25378925d20d4216cd9d6eba621be1c56b45631a9796c2b80f0a0b24cdc79c20d715 -EBUILD spyder-vim-0.1.0.ebuild 825 BLAKE2B c528c4beaf2697bcf94d0add5c170c31a74cd499933dc4def0ed4cc96d7c40473db07f5e9e0cc62f90534788e3fdbd4f8b6e56feceb80a66f8662034b8a29f04 SHA512 96992c67afb97e6e63e93e6ecf7549009cb9517d9d0c8eb7ea8e63930c2415e849db0405a458b41ca51712fe3488873e7312104eaa8c983235dea7c4f8b19f6b -MISC metadata.xml 283 BLAKE2B 496ff63603add5d83ad2236c02d387762094087edea5b495978e2e479162f95dc2d399888ff3f7a255d489b15ce46271f2e93e41c6b25db1bb7d36c24708f173 SHA512 16398e0630a435c2fa074ac8c4fe87dccfbc9ff55881ae7dbce45a3525a3ab2f273ee341f2ab6b45405aa450704c63836636a1c5a3c28c3d84381b01854b488c +EBUILD spyder-vim-0.1.0.ebuild 826 BLAKE2B 95abc7a534daa1cbfb2007ac7522e74153919156b3c4fff40fdc12b1704a98e2603f2e92a0715819a009dbafbcb77c18fbe3d91ddd1a88e4a5c692028b42e03e SHA512 d7891dc839ed32516e61db08b319094d5cafa3f200b8fad473ce8dea3724bcc3c49458b83ff99262822df85fddb647b3083955b187e7fbd6da9dc29368550c1e +MISC metadata.xml 417 BLAKE2B c6a5bd96d0ca565b97a536695ff9a55d4de17e2aadc590c2dfc9e7c274bbf840405e4d361150fa7d693fa616698fb0729cacf5793bec54661624c3ca354a6d05 SHA512 46ab315ed8fc0b816360ccf489756b90cd04fd3fb417f4295ae38067c63bb42d34c9e9edea5c00feb0c35857b8028a66cee4324339017247a736f61d0e221930 diff --git a/dev-python/spyder-vim/metadata.xml b/dev-python/spyder-vim/metadata.xml index 8bb03f453618..25fa136d9c7f 100644 --- a/dev-python/spyder-vim/metadata.xml +++ b/dev-python/spyder-vim/metadata.xml @@ -6,4 +6,8 @@ Andrew Ammerlaan + + spyder-ide/spyder-vim + spyder-vim + diff --git a/dev-python/spyder-vim/spyder-vim-0.1.0.ebuild b/dev-python/spyder-vim/spyder-vim-0.1.0.ebuild index af892fe2ebed..cf7fcf952d11 100644 --- a/dev-python/spyder-vim/spyder-vim-0.1.0.ebuild +++ b/dev-python/spyder-vim/spyder-vim-0.1.0.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_COMPAT=( python3_{10..11} ) inherit distutils-r1 virtualx diff --git a/dev-python/spyder/Manifest b/dev-python/spyder/Manifest index 60fad29c687d..5e5847416899 100644 --- a/dev-python/spyder/Manifest +++ b/dev-python/spyder/Manifest @@ -1,10 +1,7 @@ AUX spyder-5.0.0-build.patch 1147 BLAKE2B 68e62f6bd7a021d82f1da8d86c16e2289faac7f760f9bb5dc975053c7f8bb409c79b90eeaf06c5121ca5833442b61929cc640e4f25e6cc27f6118f0fa8f27b5e SHA512 e88cbbeca42ac2720f4e0888df9432d912d3907af267d3fe6a5e658d18d1242c998a70dee88fa0efe9edfcf87a46a40cf75685037d75fce1d596b708acc32096 AUX spyder-5.2.0-doc-theme-renamed.patch 356 BLAKE2B 666ba289498026ab0679776b8af8f6efe7561a9a736ff19b32eaefcac87d142a55a055556c09f94373869711e81a35ef90832fbfe68acc6cee0f2023742de0be SHA512 396944e6f242bf3b6a27ac9d47f0cc07fd99a55c50f174dbee2fccd1f0b3edf355347bf6291943c3003f55996304d96ce2d2fe45ae7c4291e8425bff73a3a861 AUX spyder-5.4.0-unpin-qdarkstyle.patch 835 BLAKE2B 75ce544c6932d090dfee0ae06e37a960462943c93f36b235a9261eadc3105e0357ef2ee28898dd896b2c2e0d6a3eb25e36f4e77ab7439bd942e09fa1447a8ab1 SHA512 a6fa1cedf079dcf1c9f8c0c33b4be2de911ceff526e73412ee95a8b0806baf5dbaafc06ad5f49c91154106c76a85281f83ef9890aaa2c4778e8c3260eb0a53b8 -DIST spyder-5.4.0.gh.tar.gz 24497211 BLAKE2B 6022e50345a7493e79cc05d735fcded1d109f7b33c94c4b281a0526fe2c3f5c1020c30bc1a48cdde28db6b279b38f191dc6974724ca893220bac034c69ffd46c SHA512 473408c8315ab46dade4cdfb709119d29a38ea77f29c3dc5a8b4e7eece5c1cbd21978ed2665fc6747ef4db9d8726d4ba796ee0716d48657367bb9840760e786f DIST spyder-5.4.1.gh.tar.gz 24518322 BLAKE2B d19c28abf17872163d43e81d1a34e2f09cfb6d47738609352b0252de3eafbd63992e57059e965e5e9f668b44ba594d2a240130d9f10112bdea3f1d97568ca081 SHA512 f8dc629552957d4ddcbe849388a6b5b53acd17248ea247fd3c27e0a6b93c411102b12f427f9f41824709bceda8687f09efa0310ae4ce798ae9ebc389bbb8253c DIST spyder-docs-3ae8705d3eba8fc30d4600d6d1e29ce0da8cd0c6.gh.tar.gz 95448945 BLAKE2B 5e130bff9fbca71e61ed96236a6964e8f34602efbb930dbc928a22eec59ebb2d2bee39f679c27dbbf88686345e5db5894f931e7ab95a3e007444b17c4e021176 SHA512 a6ebe6b6ff057616951c0075ba7c8039dc3a304b6e1bbbb40f80bb54018cee374df230e491493f18070273dded2942e14bfecc9439d33ae1bc3edd5b47067d77 -DIST spyder-docs-bb9b308b66cc90e47f43418f079bf098eb4efe6c.gh.tar.gz 89966852 BLAKE2B 7698b0210ccfec9f00cc76893f49398a02878c732eba6bbc89c1da4514734aad8ae8ef85a9c701a1d194976a35a8092755f7c5f09b319f670fac21d0a2e6c542 SHA512 9dd428ca2623c5703076887ab593bd92a2e737d74eb914a7a186d2ab4855519abb02875226463d8c11ff5021e7e84a5ba7c200ad5476f0dc4646831bb0b197a1 -EBUILD spyder-5.4.0.ebuild 7622 BLAKE2B f2ea5c5fdae38cf0991acb3efd5a15f456bea21748989778171af7884a9fd5f40b2ce93dbc71ac734f9072c85c2409578d846c6d4ef4307e196baae93c91dc3d SHA512 ae38fa51478d42c84503a23cf46a3a1106eb71c7b1d5bb984e3c2f6c114910a6bd601e87dee70450f52508129044bede9983f2d247ac2c82046c314cdb165792 EBUILD spyder-5.4.1.ebuild 7623 BLAKE2B 079e1b2e466df248a42259e9210e86bd52b30f756e37d254c159011df6f01c79f16b99c703c5fef490db1c53bff09e72b2511789047101ed0d6a305bfc30a322 SHA512 3320610793fc3095a3f0816b506903b7b27832771a234d034f0940c7f891c85426900597d79121f1fc9778c57877bbb6453130780f9d53c55b0252f51a64c5c4 MISC metadata.xml 1251 BLAKE2B 81f007eda89ddc66841771a949f76da6f015b49bfbf27b47a7557ab70f1241087f06a5c6675ea8da6aa871937cd705aea888989b468ac11d33420cbe34a27f27 SHA512 24977ed6053ad254748ba4c368bed7f8428d1e5928b586f57e48c01733934894fb1f94df077a71fcd7a00e891e24b776b9e57279f90c2f94728f709a94a90121 diff --git a/dev-python/spyder/spyder-5.4.0.ebuild b/dev-python/spyder/spyder-5.4.0.ebuild deleted file mode 100644 index 7c7b10b21972..000000000000 --- a/dev-python/spyder/spyder-5.4.0.ebuild +++ /dev/null @@ -1,196 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..11} ) -DISTUTILS_USE_PEP517=setuptools - -inherit optfeature xdg distutils-r1 - -# Commit of documentation to fetch -DOCS_PV="bb9b308b66cc90e47f43418f079bf098eb4efe6c" - -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}.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 -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -# The test suite often hangs or does not work. RESTRICTing because IMO it is -# not worth the several hours I would have to spend every single version bump -# checking which tests do and do not work. -RESTRICT="test" - -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-2.1.1[${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.0[${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-2.4.0[${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}] -" - -# Tests are broken anyway, so lets comment this out so we can enable py3.11 -# 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-ordering[${PYTHON_USEDEP}] -# dev-python/pytest-qt[${PYTHON_USEDEP}] -# dev-python/pytest-xvfb[${PYTHON_USEDEP}] -# dev-python/pyyaml[${PYTHON_USEDEP}] -# 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" - "${FILESDIR}/${PN}-5.4.0-unpin-qdarkstyle.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" \ - -e "/'ipython[ 0-9<=>.,]*',/d" \ - setup.py || die - 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'" \ - -e "/^IPYTHON_REQVER/c\IPYTHON_REQVER = '>=0.0.1'" \ - spyder/dependencies.py || die - - # 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 makes the tests freeze after completing even if successful -# Exit code is nonzero even upon success, so can't add || die here test results -# should be checked for success manually -python_test() { - "${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 -} -- cgit v1.2.3