diff options
Diffstat (limited to 'dev-python')
37 files changed, 432 insertions, 711 deletions
diff --git a/dev-python/QtPy/Manifest b/dev-python/QtPy/Manifest index 9369e646aa03..310de7019de0 100644 --- a/dev-python/QtPy/Manifest +++ b/dev-python/QtPy/Manifest @@ -1,2 +1 @@ -DIST QtPy-2.0.1.tar.gz 43047 BLAKE2B 66625852e75fbfcf0bf96e740754ca26b6d5226dd5450d0274cf6dc875cba18e5ed8e339c8c7ad084ffa9b135f19447e087b338690ec521205316c4f22f09197 SHA512 5d482b0a5bd2be67a0fabccf98a9dedf28ef328641c8c976e2274d4a5afb14b9fefce251e80496ed54425dcb3da24984c6c36308db0bfc810ea2142528ad88fd DIST QtPy-2.1.0.tar.gz 46470 BLAKE2B 2e032d141ad134444143cd59b8952957b226d9519925083aecce82adf62eebd3f58803cf548c4142fb1ece6f0e2340043a82a7aef056f6e4a9ac8b9caf72d80d SHA512 052cab4218d23d46162d11bf038dccfe6200b05c1c8647bd1f9dcbdaa7af50c23d4ae85829e065c7bae57630d149d562d76cc78202b4f448cbf6547010c746ff diff --git a/dev-python/QtPy/QtPy-2.0.1.ebuild b/dev-python/QtPy/QtPy-2.0.1.ebuild deleted file mode 100644 index 296461a365d2..000000000000 --- a/dev-python/QtPy/QtPy-2.0.1.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit distutils-r1 virtualx - -DESCRIPTION="Abstraction layer on top of PyQt5 and PySide2 and additional custom QWidgets" -HOMEPAGE="https://github.com/spyder-ide/qtpy/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 x86" - -_IUSE_QT_MODULES=" - declarative designer gui help location multimedia network opengl - positioning printsupport sensors serialport speech sql svg testlib - webchannel webengine websockets widgets x11extras xml xmlpatterns -" -IUSE="+pyqt5 pyside2 ${_IUSE_QT_MODULES}" -unset _IUSE_QT_MODULES - -REQUIRED_USE="|| ( pyqt5 pyside2 )" - -# These flags are currently *not* common to both the PySide2 and PyQt5 ebuild -# Disable them for now, please check periodically if this is still up to date. -# bluetooth? ( pyqt5 ) -# dbus? ( pyqt5 ) -# -# 3d? ( pyside2 ) -# charts? ( pyside2 ) -# concurrent? ( pyside2 ) -# datavis? ( pyside2 ) -# scxml? ( pyside2 ) -# script? ( pyside2 ) -# scripttools? ( pyside2 ) - -# WARNING: the obvious solution of using || for PyQt5/pyside2 is not going -# to work. The package only checks whether PyQt5/pyside2 is installed, it does -# not verify whether they have the necessary modules (i.e. satisfy the USE dep). -# -# Webengine is a special case, because PyQt5 provides this in a separate package -# while PySide2 ships it in the same package. -# -# declarative/qml/quick is a special case, because PyQt5 bundles the bindings -# for qml and quick in one flag: declarative PySide2 does not. -# -# The PyQt5 ebuild currently enables xml support unconditionally, the flag is -# added anyway with a (+) to make it future proof if the ebuild were to change -# this behaviour in the future. -# -# The PySide2 ebuild currently enables opengl and serialport support -# unconditionally, the flag is added anyway with a (+) to make it future proof -# if the ebuild were to change this behaviour in the future. -RDEPEND=" - dev-python/packaging[${PYTHON_USEDEP}] - pyqt5? ( - dev-python/PyQt5[${PYTHON_USEDEP}] - dev-python/PyQt5[declarative?,designer?,gui?,help?,location?] - dev-python/PyQt5[multimedia?,network?,opengl?,positioning?] - dev-python/PyQt5[printsupport?,sensors?,serialport?,speech(-)?,sql?,svg?] - dev-python/PyQt5[testlib?,webchannel?,websockets?,widgets?] - dev-python/PyQt5[x11extras?,xml(+)?,xmlpatterns?] - webengine? ( dev-python/PyQtWebEngine[${PYTHON_USEDEP}] ) - ) - pyside2? ( - dev-python/pyside2[${PYTHON_USEDEP}] - dev-python/pyside2[designer?,gui?,help?,location?,multimedia?] - dev-python/pyside2[network?,opengl(+)?,positioning?,printsupport?] - dev-python/pyside2[sensors?,serialport(+)?,speech?,sql?,svg?] - dev-python/pyside2[testlib?,webchannel?,webengine?,websockets?] - dev-python/pyside2[widgets?,x11extras?,xml?,xmlpatterns?] - declarative? ( dev-python/pyside2[qml,quick] ) - ) -" - -# The QtPy testsuite skips tests for bindings that are not installed, so here we -# ensure that everything is available and all tests are run. Note that not -# all flags are available in PyQt5/PySide2, so some tests are still skipped. -BDEPEND=" - test? ( - dev-python/mock[${PYTHON_USEDEP}] - pyqt5? ( - dev-python/PyQt5[${PYTHON_USEDEP}] - dev-python/PyQt5[bluetooth,dbus,declarative,designer,gui,help,location] - dev-python/PyQt5[multimedia,network,opengl,positioning,printsupport] - dev-python/PyQt5[sensors,serialport,speech(-),sql,svg,testlib,webchannel] - dev-python/PyQt5[websockets,widgets,x11extras,xml(+),xmlpatterns] - dev-python/PyQtWebEngine[${PYTHON_USEDEP}] - ) - pyside2? ( - dev-python/pyside2[${PYTHON_USEDEP}] - dev-python/pyside2[3d,charts,concurrent,datavis,designer,gui,help] - dev-python/pyside2[location,multimedia,network,opengl(+),positioning] - dev-python/pyside2[printsupport,qml,quick,script,scripttools,scxml] - dev-python/pyside2[sensors,serialport(+),speech,sql,svg,testlib] - dev-python/pyside2[webchannel,webengine,websockets,widgets,x11extras] - dev-python/pyside2[xml,xmlpatterns] - ) - ) -" - -distutils_enable_tests pytest - -src_prepare() { - default - # Disale Qt for Python implementations that are not selected - if ! use pyqt5; then - sed -i -e "s/from PyQt5.QtCore import/raise ImportError #/" qtpy/__init__.py || die - fi - if ! use pyside2; then - sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die - sed -i -e "s/from PySide2.QtCore import/raise ImportError #/" qtpy/__init__.py || die - fi - - # Disable outdated PyQt4 and PySide - sed -i -e "s/from PyQt4.Qt import/raise ImportError #/" qtpy/__init__.py || die - sed -i -e "s/from PyQt4.QtCore import/raise ImportError #/" qtpy/__init__.py || die - sed -i -e "s/from PySide import/raise ImportError #/" qtpy/__init__.py || die - sed -i -e "s/from PySide.QtCore import/raise ImportError #/" qtpy/__init__.py || die -} - -python_test() { - if use pyqt5; then - QT_API="pyqt5" virtx epytest - fi - if use pyside2; then - QT_API="pyside2" virtx epytest - fi -} - -pkg_postinst() { - if use pyqt5 && use pyside2; then - ewarn "You have enabled both PyQt5 and PySide2, note that QtPy will default" - ewarn "to PyQt5 unless the QT_API environment variable overrides this." - fi -} diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 92fd51e241cd..8b4c883ba174 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -1,2 +1,3 @@ DIST boto3-1.23.10.gh.tar.gz 504080 BLAKE2B 1840715ec72b10131a430abdb303adf7619fb4dc542cb22acefffe378c96d094eb7d024c068df1df48882a22fc52e3883791da39d0e4fb34abdddad4d78c0ce8 SHA512 88d0abfc990eba2118698c27fe9f556a2b2ef27d0e287c2b3d65a1d485d4be264a5e9ccc02c017c404941c34efdb5f9d480ceb7c5752f99ebf95d3fab184dded DIST boto3-1.24.2.gh.tar.gz 505904 BLAKE2B e5fe9aa089caaa91aa41554a07ba97da55b04f5cc77be58df10ad4b6b9d3ab8ce22f988f658cb653d9f3890a307ea895c1cd57c30b6729ba12a1ee61f475ba1d SHA512 23b550194805859e37b8f3a7b75390bba500e7043e32930ab1ac46d2fca672472def9f4821e0deadaba6e6010afa05e4385a0f6fe229798250746b079fa27810 +DIST boto3-1.24.3.gh.tar.gz 506694 BLAKE2B 5049ad69810c0fcb4d4133fae8efb7d5f44a5b766c3a53710692136231c2f147b08a6782e51f12ab0e22189cb8bbaf90805ca03d0f6eeffe047678b1b21cf72f SHA512 7652ffbfb41df2dde924e85c251dba84643d67b719ea7dc366dcb0f6988815474b0e2a44dba74ebda5f9b1f5576df715dbd16b70ad4109e846766bf34e9d92d0 diff --git a/dev-python/boto3/boto3-1.24.3.ebuild b/dev-python/boto3/boto3-1.24.3.ebuild new file mode 100644 index 000000000000..e4a98e2e28f5 --- /dev/null +++ b/dev-python/boto3/boto3-1.24.3.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE=" + https://github.com/boto/boto3/ + https://pypi.org/project/boto3/ +" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/boto3" + inherit git-r3 + BOTOCORE_PV=${PV} +else + SRC_URI=" + https://github.com/boto/boto3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + " + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + + # botocore is x.(y+3).z + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)" +fi + +RDEPEND=" + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +distutils_enable_tests pytest + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # do not rely on bundled deps in botocore (sic!) + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_python_prepare_all +} + +python_test() { + epytest tests/{functional,unit} -n "$(makeopts_jobs)" +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 45afdb0bec33..9d32ebdf6f34 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -1,2 +1,3 @@ DIST botocore-1.26.10.tar.gz 9008316 BLAKE2B a05078ec5732015cbd8ea4da2d2d82e28f4241b7c3164f3410ae396a19f79c116f7a9059a3361e99eacc952f860a516b187375dbf64ee5e4e5648e8c3b0f95a5 SHA512 b12e9002dc8e0912a9681938f343b51d628f0b2798693dc81636fe7ede01d006d5bc8a901f92edf10a88d97c3c6311aaf97206a6f55070e645747536fe39b144 DIST botocore-1.27.2.tar.gz 9026413 BLAKE2B 013724df76fb87c8e7731401d09774bec303aced7c3a01bb97935865f34193d1f313d49f32c1f6b7addab9b24384f26caca44b03ba0e77014821dc7cab5142ef SHA512 85045c13fa935b017f66edc132d2a31da2ecbe0c7bfcab369cb1d5f76d8a1401d303ab7d3e2ce95d53e9a59ea81dbf5380c1106169d84f40b21cbb926e35abb9 +DIST botocore-1.27.3.tar.gz 9078424 BLAKE2B 62414c2474ec44b3385c589793fd0c54984d2302239b78295bfbdc3739160bbae5bb910207dc7252b7adb96d6cd69add7413000399bcb20b671e3fbdad860c02 SHA512 47ed3e68c10e4175cdbe2122dab9319b9059f9457e27258a142224311042c5ae4692d293d29dc9b4855e65eea561fb7b703f7ddc663064413144aaf72fda33a5 diff --git a/dev-python/botocore/botocore-1.27.3.ebuild b/dev-python/botocore/botocore-1.27.3.ebuild new file mode 100644 index 000000000000..97701266bf61 --- /dev/null +++ b/dev-python/botocore/botocore-1.27.3.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/botocore" + inherit git-r3 +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + <dev-python/jmespath-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/botocore-1.26.0-py311.patch" +) + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + ) + + epytest tests/{functional,unit} -n "$(makeopts_jobs)" +} diff --git a/dev-python/dulwich/Manifest b/dev-python/dulwich/Manifest index 526567a394f8..1f3df20784a0 100644 --- a/dev-python/dulwich/Manifest +++ b/dev-python/dulwich/Manifest @@ -2,3 +2,4 @@ DIST dulwich-0.20.35.tar.gz 420972 BLAKE2B 97c877554199aa8f3abf2f95a43c350cbef78 DIST dulwich-0.20.38.tar.gz 423847 BLAKE2B dc4b9505e30ff88331928355ea708aa7efc802baab3738d8ead0ca57d9387b4fff8f539a67edde8e66a342d504627afdafda5874e12f3c809294183398693d54 SHA512 c4b8be7568153984b17d3f892fa52316702c5f1c697e93c494492db136cc74d50ab9067dd9f1bf67b645e3bf5069cc578ccfd0b6727bd4ec579335528c62f6cf DIST dulwich-0.20.40.tar.gz 423987 BLAKE2B e6a8f04b97db638466522de3f2c15150c9c9150f6d7f8343fba889f46e7f92ddab01d7262cbe9a6762e9b3c4b1e58f12671e1f0e26849c6bcc4f8f0c8c68efc2 SHA512 aff4f7eaf2f4b71d475148528d957f165bc99ac487b4dee9b87c048d67ce914bf5d7d6e8d67188388b8df8fda29c5fa4cbd8e393425a42a2dad6a57eef5a1f50 DIST dulwich-0.20.42.tar.gz 423221 BLAKE2B b7373e2db7616cc696c94f19dccf2a1d93ce1d260419e1ce7b2d09b402f9f051125fb72d6fb79147ce73377667ddc258a37ff057ec485a27a46319ed30b11640 SHA512 ff46cf994afc978f2d9a1ee2d2a4ff561af637bf91aee0cedd0b4a8653264b1ea2590c57bc4f2643cc8f4dfc3019ca51e99fe2559b359ea0b9ba6b327b4eef73 +DIST dulwich-0.20.43.tar.gz 423604 BLAKE2B e8f6b3fc22ac2289e6529d862f54d8c407725c8d22ba9ee7ddb0d700b4ea617f8b069b14168c43c25cccf6e84592e63f88d3402e58b15413952e5b139bda2c2b SHA512 68ef6e3928a202d76ab882d764d08f8948743825b3b07950a81bd86522c9db6865260c2c725a08b26365719e99343daa1c2a2d242bafe991be2552d06b2e3684 diff --git a/dev-python/dulwich/dulwich-0.20.43.ebuild b/dev-python/dulwich/dulwich-0.20.43.ebuild new file mode 100644 index 000000000000..6174956163fa --- /dev/null +++ b/dev-python/dulwich/dulwich-0.20.43.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Pure-Python implementation of the Git file formats and protocols" +HOMEPAGE=" + https://github.com/jelmer/dulwich/ + https://pypi.org/project/dulwich/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2+ Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc examples test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/certifi[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + !hppa? ( !ia64? ( !s390? ( + dev-python/gevent[${PYTHON_USEDEP}] + dev-python/geventhttpclient[${PYTHON_USEDEP}] + ) ) ) + app-crypt/gpgme[python,${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/fastimport[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs + +python_test() { + # remove interference from the tests that do stuff like user.name + unset GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE \ + GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE EMAIL + # Do not use make check which rebuilds the extension and uses -Werror, + # causing unexpected failures. + "${EPYTHON}" -m unittest -v dulwich.tests.test_suite || + die "tests failed with ${EPYTHON}" +} + +python_install_all() { + if use examples; then + docompress -x "/usr/share/doc/${PF}/examples" + dodoc -r examples + fi + distutils-r1_python_install_all +} diff --git a/dev-python/gst-python/Manifest b/dev-python/gst-python/Manifest index 043a8e54adc7..eae37af106a8 100644 --- a/dev-python/gst-python/Manifest +++ b/dev-python/gst-python/Manifest @@ -1,5 +1 @@ -DIST gst-python-1.16.3.tar.xz 419932 BLAKE2B 3c3d7d8dbde7d77d57e340c68503c436ab03f8768be4dd67561b13712bf88d7f8025118cf6a2ff115fbd41b28dc9a3208f612d1b72bf449fd7b23be4437f837f SHA512 2b038c4fc4891ddcf09e58c9e3e8d8462c150589dbb8a1f8d0a1266cffe49fd83531b2eb97cd57baab0f416a2bb1ba81383b55bb953545f3eedc50b6895986c4 -DIST gst-python-1.18.4.tar.xz 158252 BLAKE2B 2fd60d2d451ae572cee2f7e9158e9c06e82cdd56c4fc70d2731aa0a46a21e495321ec02c97ecd9a946278ce9b7290a290b9f2bc13184582c1f8ff19e874d0e3a SHA512 6b9df9e4faaeb030f0596c9e52262c0f82b8854faf821497a840a762913dccb005321c60565754ef571e34976fcda481a41aefbbd486c2932377a95121433bf5 -DIST gst-python-1.18.6.tar.xz 163648 BLAKE2B 2a72d323f3620b976f537d91ac579824c65a112cd7a599b75f8ee6859ea2dcfeaf327a0dd90e1072071d036b6e7a4bd14fbd737ea95e42a1dd8868f05e6a8936 SHA512 312a141bc57a00496c34445648f11c8d61800fde0d5aefcc51bd296f6aafb9556e3ebed71904d262be6134c4b20eda30e025badddc977fdceb65b72ab788497e -DIST gst-python-1.20.1.tar.xz 151020 BLAKE2B 49d6730eeff90cc967e96fc1c9600f82690ff1136e46f65777d057880b239c65c6d88aa519a7558af94822f9ea57faf9b55a11c27bf9b8b567c1cea3fbbdfbf0 SHA512 16819b7b8c564af8d0cc5f3d5a64921c45523865d705d5f4580bf644aeaacf24fd1922f27c3729e8334e710d318646ee5250ac26045f863fedaf1c8481724750 DIST gst-python-1.20.2.tar.xz 153428 BLAKE2B 051be5996530989b0e016662f4bf33ac01d576dff56ef779ae481f6f02143595cb3132b9a1ad56cd26f7de55c5df28d25cac448ef28f1b8595974f468252c6b5 SHA512 99af8bad76f930e6c11dcacac013ffe30670ad77259ebe96ee6059a9c359fd1a9c9b22188856f2f19f31469c152b3ad269ba821d06ef92f0c92b3b0fe0eac0d2 diff --git a/dev-python/gst-python/files/gst-python-1.18.4-avoid-treating-float-as-int.patch b/dev-python/gst-python/files/gst-python-1.18.4-avoid-treating-float-as-int.patch deleted file mode 100644 index d9cc6bca086b..000000000000 --- a/dev-python/gst-python/files/gst-python-1.18.4-avoid-treating-float-as-int.patch +++ /dev/null @@ -1,86 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Thibault Saunier <tsaunier@igalia.com> -Date: Tue, 16 Nov 2021 23:36:10 -0300 -Subject: [PATCH] python: Avoid treating float as int - -Since python 3.10 implicit conversion to integers using `__int__` as -been completely removed (was deprecated behavior in 3.9) so we need -to cleanly handle it now. - -See https://gitlab.gnome.org/GNOME/pitivi/-/issues/2589 - -Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1358> ---- - .../gst-python/gi/overrides/gstmodule.c | 54 ++++++++++++++++--- - 1 file changed, 47 insertions(+), 7 deletions(-) - -diff --git a/subprojects/gst-python/gi/overrides/gstmodule.c b/subprojects/gst-python/gi/overrides/gstmodule.c -index 167a1c27539a..2308eb7dcde6 100644 ---- a/gi/overrides/gstmodule.c -+++ b/gi/overrides/gstmodule.c -@@ -104,18 +104,58 @@ gi_gst_fraction_from_value (const GValue * value) - static int - gi_gst_fraction_to_value (GValue * value, PyObject * object) - { -- PyObject *numerator, *denominator; -+ glong numerator, denominator; -+ PyObject *numerator_obj, *denominator_obj, *is_integer; - -- numerator = PyObject_GetAttrString (object, "num"); -- if (numerator == NULL) -+ numerator_obj = PyObject_GetAttrString (object, "num"); -+ if (numerator_obj == NULL) - goto fail; - -- denominator = PyObject_GetAttrString (object, "denom"); -- if (denominator == NULL) -+ is_integer = PyObject_CallMethod (numerator_obj, "is_integer", NULL); -+ if (is_integer != Py_True) { -+ PyErr_Format (PyExc_TypeError, -+ "numerator %f is not an integer.", PyFloat_AsDouble (numerator_obj)); -+ Py_DECREF (is_integer); -+ goto fail; -+ } -+ Py_DECREF (is_integer); -+ -+ numerator = PyFloat_AsDouble (numerator_obj); -+ if (numerator < -G_MAXINT || numerator > G_MAXINT) { -+ PyErr_Format (PyExc_ValueError, -+ "numerator %" G_GINT64_FORMAT " is out of bound. [-%d - %d]", -+ numerator, G_MAXINT, G_MAXINT); -+ goto fail; -+ } -+ -+ denominator_obj = PyObject_GetAttrString (object, "denom"); -+ if (denominator_obj == NULL) - goto fail; - -- gst_value_set_fraction (value, -- PyLong_AsLong (numerator), PyLong_AsLong (denominator)); -+ is_integer = PyObject_CallMethod (denominator_obj, "is_integer", NULL); -+ if (is_integer != Py_True) { -+ PyErr_Format (PyExc_TypeError, -+ "denominator %f is not an integer.", -+ PyFloat_AsDouble (denominator_obj)); -+ Py_DECREF (is_integer); -+ goto fail; -+ } -+ Py_DECREF (is_integer); -+ -+ denominator = PyFloat_AsDouble (denominator_obj); -+ if (denominator == 0) { -+ PyErr_SetString (PyExc_ValueError, "denominator is 0."); -+ goto fail; -+ } -+ -+ if (denominator < -G_MAXINT || denominator > G_MAXINT) { -+ PyErr_Format (PyExc_ValueError, -+ "denominator %" G_GINT64_FORMAT " is out of bound. [-%d - %d]", -+ denominator, G_MAXINT, G_MAXINT); -+ goto fail; -+ } -+ -+ gst_value_set_fraction (value, numerator, denominator); - - return 0; - diff --git a/dev-python/gst-python/gst-python-1.16.3.ebuild b/dev-python/gst-python/gst-python-1.16.3.ebuild deleted file mode 100644 index f761f05b7d73..000000000000 --- a/dev-python/gst-python/gst-python-1.16.3.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit meson python-r1 xdg-utils - -DESCRIPTION="A Python Interface to GStreamer" -HOMEPAGE="https://gstreamer.freedesktop.org/" -SRC_URI="https://gstreamer.freedesktop.org/src/${PN}/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="1.0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - >=media-libs/gstreamer-${PV}:1.0[introspection] - >=media-libs/gst-plugins-base-${PV}:1.0[introspection] - >=dev-python/pygobject-3.8:3[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig -" - -src_prepare() { - default - # Avoid building plugin - it must NOT be multi-python as gst-inspect will map in all libpython.so versions and crash or behave mysteriously. - # Python plugin support is of limited use (GIL gets in the way). If it's ever requested or needed, it should be a - # separate python-single-r1 media-plugins/gst-plugins-python package that only builds the plugin directory. - sed -e '/subdir.*plugin/d' -i meson.build || die - xdg_environment_reset -} - -src_configure() { - configuring() { - meson_src_configure \ - -Dpython="${EPYTHON}" - } - python_foreach_impl configuring -} - -src_compile() { - python_foreach_impl meson_src_compile -} - -src_test() { - python_foreach_impl meson_src_test -} - -src_install() { - installing() { - meson_src_install - python_optimize - } - python_foreach_impl installing -} diff --git a/dev-python/gst-python/gst-python-1.18.4.ebuild b/dev-python/gst-python/gst-python-1.18.4.ebuild deleted file mode 100644 index 09c1bf20ec55..000000000000 --- a/dev-python/gst-python/gst-python-1.18.4.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit meson python-r1 xdg-utils - -DESCRIPTION="A Python Interface to GStreamer" -HOMEPAGE="https://gstreamer.freedesktop.org/" -SRC_URI="https://gstreamer.freedesktop.org/src/${PN}/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="1.0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - >=media-libs/gstreamer-${PV}:1.0[introspection] - >=media-libs/gst-plugins-base-${PV}:1.0[introspection] - >=dev-python/pygobject-3.8:3[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}/${P}-avoid-treating-float-as-int.patch" -) - -src_prepare() { - default - - # Avoid building & testing plugin - it must NOT be multi-python as gst-inspect will map in all libpython.so versions and crash or behave mysteriously. - # Python plugin support is of limited use (GIL gets in the way). If it's ever requested or needed, it should be a - # separate python-single-r1 media-plugins/gst-plugins-python package that only builds the plugin directory. - sed -e '/subdir.*plugin/d' -i meson.build || die - sed -e '/test_plugin.py/d' -i testsuite/meson.build || die - - xdg_environment_reset -} - -src_configure() { - configuring() { - meson_src_configure \ - -Dpython="${EPYTHON}" - } - python_foreach_impl configuring -} - -src_compile() { - python_foreach_impl meson_src_compile -} - -src_test() { - python_foreach_impl meson_src_test -} - -src_install() { - installing() { - meson_src_install - python_optimize - } - python_foreach_impl installing -} diff --git a/dev-python/gst-python/gst-python-1.18.6.ebuild b/dev-python/gst-python/gst-python-1.18.6.ebuild deleted file mode 100644 index 47b94ae34865..000000000000 --- a/dev-python/gst-python/gst-python-1.18.6.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit meson python-r1 xdg-utils - -DESCRIPTION="A Python Interface to GStreamer" -HOMEPAGE="https://gstreamer.freedesktop.org/" -SRC_URI="https://gstreamer.freedesktop.org/src/${PN}/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="1.0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - >=media-libs/gstreamer-${PV}:1.0[introspection] - >=media-libs/gst-plugins-base-${PV}:1.0[introspection] - >=dev-python/pygobject-3.8:3[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig -" - -src_prepare() { - default - - # Avoid building & testing plugin - it must NOT be multi-python as gst-inspect will map in all libpython.so versions and crash or behave mysteriously. - # Python plugin support is of limited use (GIL gets in the way). If it's ever requested or needed, it should be a - # separate python-single-r1 media-plugins/gst-plugins-python package that only builds the plugin directory. - sed -e '/subdir.*plugin/d' -i meson.build || die - sed -e '/test_plugin.py/d' -i testsuite/meson.build || die - - xdg_environment_reset -} - -src_configure() { - configuring() { - meson_src_configure \ - -Dpython="${EPYTHON}" - } - python_foreach_impl configuring -} - -src_compile() { - python_foreach_impl meson_src_compile -} - -src_test() { - python_foreach_impl meson_src_test -} - -src_install() { - installing() { - meson_src_install - python_optimize - } - python_foreach_impl installing -} diff --git a/dev-python/gst-python/gst-python-1.20.1.ebuild b/dev-python/gst-python/gst-python-1.20.1.ebuild deleted file mode 100644 index 80303f0aa02f..000000000000 --- a/dev-python/gst-python/gst-python-1.20.1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit meson python-r1 xdg-utils - -DESCRIPTION="A Python Interface to GStreamer" -HOMEPAGE="https://gstreamer.freedesktop.org/" -SRC_URI="https://gstreamer.freedesktop.org/src/${PN}/${P}.tar.xz" - -LICENSE="LGPL-2+" -SLOT="1.0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - >=media-libs/gstreamer-${PV}:1.0[introspection] - >=media-libs/gst-plugins-base-${PV}:1.0[introspection] - >=dev-python/pygobject-3.8:3[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig -" - -src_prepare() { - default - - # Avoid building & testing plugin - it must NOT be multi-python as gst-inspect will map in all libpython.so versions and crash or behave mysteriously. - # Python plugin support is of limited use (GIL gets in the way). If it's ever requested or needed, it should be a - # separate python-single-r1 media-plugins/gst-plugins-python package that only builds the plugin directory. - sed -e '/subdir.*plugin/d' -i meson.build || die - sed -e '/test_plugin.py/d' -i testsuite/meson.build || die - - xdg_environment_reset -} - -src_configure() { - configuring() { - meson_src_configure \ - -Dpython="${EPYTHON}" - } - python_foreach_impl configuring -} - -src_compile() { - python_foreach_impl meson_src_compile -} - -src_test() { - python_foreach_impl meson_src_test -} - -src_install() { - installing() { - meson_src_install - python_optimize - } - python_foreach_impl installing -} diff --git a/dev-python/humanize/Manifest b/dev-python/humanize/Manifest index 2849cc562c62..cba3b1e01242 100644 --- a/dev-python/humanize/Manifest +++ b/dev-python/humanize/Manifest @@ -1,2 +1 @@ -DIST humanize-4.0.0.tar.gz 71028 BLAKE2B ef11ae45950a4dc7f55bbd380351aa6f6aaccb7410336f3c9187755d619131741cb2932917e9316c86e33f47e0640311cce278ce23046160aa0ffb4c1bdad1bc SHA512 71c528101b62c883de6474d3c31e97f7f54099c3389f7a88a328ef24b40f7a5667db879badd6154d76ce9bb1390a45404e177c50c7c26064c63b654936ba0514 DIST humanize-4.1.0.tar.gz 73777 BLAKE2B fcbde90977ae9fcd706e423767b1d5617fd118ae8903283f4b307ee05a5adffb3bb68305e5d758b1860d37a37d22766127d84479d331a7ed05c83cd53e5b0829 SHA512 7e2d92ed44e773bd8a53d4b151e80949fda057d8f4a52003826efa9ec2a569360b76663d44c3d1239fd2ecdd5365357d3fac72a395d1c10d5207b4a27f248878 diff --git a/dev-python/humanize/humanize-4.0.0.ebuild b/dev-python/humanize/humanize-4.0.0.ebuild deleted file mode 100644 index ceb6cdd4f606..000000000000 --- a/dev-python/humanize/humanize-4.0.0.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Common humanization utilities" -HOMEPAGE="https://github.com/jmoiron/humanize/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 x86" - -BDEPEND=" - dev-python/setuptools_scm[${PYTHON_USEDEP}] - test? ( dev-python/freezegun[${PYTHON_USEDEP}] ) -" - -distutils_enable_tests pytest diff --git a/dev-python/ipdb/ipdb-0.13.9-r2.ebuild b/dev-python/ipdb/ipdb-0.13.9-r2.ebuild new file mode 100644 index 000000000000..a00ee48ec949 --- /dev/null +++ b/dev-python/ipdb/ipdb-0.13.9-r2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{7,8,9,10} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 optfeature + +DESCRIPTION="IPython-enabled pdb" +HOMEPAGE="https://pypi.org/project/ipdb/ https://github.com/gotcha/ipdb" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +RDEPEND=">=dev-python/ipython-7.17[${PYTHON_USEDEP}]" +BDEPEND="test? ( dev-python/toml[${PYTHON_USEDEP}] )" + +DOCS=( AUTHORS HISTORY.txt README.rst ) + +distutils_enable_tests unittest + +pkg_postinst() { + optfeature "pyproject.toml support" dev-python/toml +} diff --git a/dev-python/ipykernel/Manifest b/dev-python/ipykernel/Manifest index f3bbb00d6b69..041922566777 100644 --- a/dev-python/ipykernel/Manifest +++ b/dev-python/ipykernel/Manifest @@ -1 +1,2 @@ DIST ipykernel-6.13.0.tar.gz 131331 BLAKE2B 95a662b5ff6062fd8f6712a214b2bdcb227064acec145ebbb2ff7dfc0647ee9c486bbb560502e8ab6c5f74bb44c7715a1ee16f4b8cd2661b7a6e77206be7ab67 SHA512 6025a540d7ae08f637d2cc9a022805df54c11844c93d989be73a3a800fb0985ec56f2ce5d8ee940a5ce51d41b4d1f632131b25c1f5847cb51623c285c4944f39 +DIST ipykernel-6.13.1.tar.gz 134356 BLAKE2B 212449f5e49f05052e36b60abc94ccfd81dcf6c13948d2ba32373ffab59f009ac28c251f6b9a9f5412b3d9a0f1347a2352f2e61b831d5efd8d45663ca43b4fdf SHA512 be0f5cf4eab8cf38f20a96e6e59971988bfc03105525694787d4dbbd092e22efb5b955ef622e0c8bc87fb43f29b0f4dc8affa89b81cd2eb7b4d9c93f7b9c68e5 diff --git a/dev-python/ipykernel/ipykernel-6.13.1.ebuild b/dev-python/ipykernel/ipykernel-6.13.1.ebuild new file mode 100644 index 000000000000..cac1970ad1b9 --- /dev/null +++ b/dev-python/ipykernel/ipykernel-6.13.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{7,8,9,10} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="IPython Kernel for Jupyter" +HOMEPAGE="https://github.com/ipython/ipykernel" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/debugpy-1.0[${PYTHON_USEDEP}] + >=dev-python/ipython-7.23.1[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.1.0[${PYTHON_USEDEP}] + >=dev-python/jupyter_client-6.1.12[${PYTHON_USEDEP}] + >=www-servers/tornado-6.1[${PYTHON_USEDEP}] + >=dev-python/matplotlib-inline-0.1[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/nest_asyncio[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] +" +# RDEPEND seems specifically needed in BDEPEND, at least jupyter +# bug #816486 +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/ipyparallel[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # TODO + ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_pylab + ipykernel/tests/test_debugger.py::test_attach_debug + ipykernel/tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines + ipykernel/tests/test_debugger.py::test_rich_inspect_at_breakpoint + ipykernel/tests/test_debugger.py::test_rich_inspect_not_at_breakpoint + ipykernel/tests/test_debugger.py::test_set_breakpoints + ipykernel/tests/test_debugger.py::test_stop_on_breakpoint +) + +src_prepare() { + sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + # Use python3 in kernel.json configuration, bug #784764 + sed -i -e '/python3.[0-9]\+/s//python3/' \ + "${BUILD_DIR}/install${EPREFIX}/usr/share/jupyter/kernels/python3/kernel.json" || die +} diff --git a/dev-python/jupyter_client/Manifest b/dev-python/jupyter_client/Manifest index acbeb7f7bafd..1f36dddedf8b 100644 --- a/dev-python/jupyter_client/Manifest +++ b/dev-python/jupyter_client/Manifest @@ -1 +1,2 @@ DIST jupyter_client-7.3.1.tar.gz 328697 BLAKE2B 9bdca39d974c21e1674f58a7aaa51a6b96e4dc307f918aacc403146827df5ad7a867243dd2df95e717ab7ebd62367817e4f43cae562f47147b4271d72240600e SHA512 86a98288f1be5321b8495d78770501ca45fe3139a482ec41606253eef69eaf4d3f284d1c373d9df64efe28428f32cd1a3b19842a7331b3ac200d780e7a786407 +DIST jupyter_client-7.3.2.tar.gz 328943 BLAKE2B 9093278ec2aeff9810bb0af86607185776d940e51ade5194c28800b1e08a1b40d4a020f947b4fac092e26e6a6b1b1eabe4b2c025d955f4ed1ddf3cd190dda96a SHA512 ec0ceb518eae63356058032b2e43979c78a691eefe594ef98767daff27ea88d4363bdc8f7c4e66c549fd5e7a5fdb0b538d58a45f7d73145093f7bbe26df03c71 diff --git a/dev-python/jupyter_client/jupyter_client-7.3.2.ebuild b/dev-python/jupyter_client/jupyter_client-7.3.2.ebuild new file mode 100644 index 000000000000..f1e92ba86b28 --- /dev/null +++ b/dev-python/jupyter_client/jupyter_client-7.3.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{7,8,9,10} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Jupyter protocol implementation and client libraries" +HOMEPAGE="https://jupyter.org" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/entrypoints[${PYTHON_USEDEP}] + >=dev-python/jupyter_core-4.9.2[${PYTHON_USEDEP}] + >=dev-python/nest_asyncio-1.5.4[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.2[${PYTHON_USEDEP}] + dev-python/pyzmq[${PYTHON_USEDEP}] + >=www-servers/tornado-6.0[${PYTHON_USEDEP}] + dev-python/traitlets[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/ipykernel-6.5[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + >=dev-python/pytest-asyncio-0.18[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-7.0.6-test-timeout.patch +) + +distutils_enable_tests pytest + +src_prepare() { + # relax pyzmq dep + sed -i -e '/pyzmq/s:>=[0-9.]*::' pyproject.toml || die + distutils-r1_src_prepare +} diff --git a/dev-python/matplotlib/matplotlib-3.5.2-r1.ebuild b/dev-python/matplotlib/matplotlib-3.5.2-r1.ebuild index c8262cba89d8..759e30abe3d3 100644 --- a/dev-python/matplotlib/matplotlib-3.5.2-r1.ebuild +++ b/dev-python/matplotlib/matplotlib-3.5.2-r1.ebuild @@ -30,7 +30,7 @@ SRC_URI=" # Fonts: BitstreamVera, OFL-1.1 LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc x86" IUSE="cairo doc excel examples gtk3 latex qt5 tk webagg wxwidgets" # internal copy of pycxx highly patched diff --git a/dev-python/netifaces/netifaces-0.11.0.ebuild b/dev-python/netifaces/netifaces-0.11.0.ebuild index a6437d2acf77..b7e6e4b3e1c2 100644 --- a/dev-python/netifaces/netifaces-0.11.0.ebuild +++ b/dev-python/netifaces/netifaces-0.11.0.ebuild @@ -17,6 +17,6 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 arm arm64 ~riscv x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 arm arm64 ppc64 ~riscv x86 ~amd64-linux ~x86-linux" PATCHES=( "${FILESDIR}"/${PN}-0.10.4-remove-osx-fix.patch ) diff --git a/dev-python/oauthlib/oauthlib-3.2.0.ebuild b/dev-python/oauthlib/oauthlib-3.2.0.ebuild index bd4384996ee9..a107dc588cdd 100644 --- a/dev-python/oauthlib/oauthlib-3.2.0.ebuild +++ b/dev-python/oauthlib/oauthlib-3.2.0.ebuild @@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~riscv x86" +KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv x86" # optional extras hard set as RDEPs. See setup.py RDEPEND=" diff --git a/dev-python/puremagic/puremagic-1.14.ebuild b/dev-python/puremagic/puremagic-1.14.ebuild index 64ec9d6c63a1..b3e23d218335 100644 --- a/dev-python/puremagic/puremagic-1.14.ebuild +++ b/dev-python/puremagic/puremagic-1.14.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 ~x86" DOCS=( CHANGELOG.md README.rst ) diff --git a/dev-python/pyjwt/pyjwt-2.4.0.ebuild b/dev-python/pyjwt/pyjwt-2.4.0.ebuild index 8d38f547a6f7..02f4f3fc64ab 100644 --- a/dev-python/pyjwt/pyjwt-2.4.0.ebuild +++ b/dev-python/pyjwt/pyjwt-2.4.0.ebuild @@ -19,7 +19,7 @@ S=${WORKDIR}/${MY_PN}-${PV} LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm arm64 ppc ~ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm arm64 ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" RDEPEND=" !dev-python/python-jwt diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest index e7ecffe0269c..75d789bb1bb0 100644 --- a/dev-python/pylint/Manifest +++ b/dev-python/pylint/Manifest @@ -1 +1,2 @@ DIST pylint-2.13.9.gh.tar.gz 1123216 BLAKE2B f80e88f565595b16bba650a009bfdd6d55efa65227898d145d4867c116c89c7ab5244c509382f0e9023404b4e46accb742334450ca7342394fb4d0abaccb8d03 SHA512 dcea90b1b1494d928f0b12dd2b50ee1d97a74efce18e0ef54ea02b52209a574977971e12db8f476edcf1bd646ca41c6a77bcf9a425c01af71bd29e54fd6c20b9 +DIST pylint-2.14.1.gh.tar.gz 1270750 BLAKE2B 120cc78c3d76ccb10f88c94b5528f1ed42730b49ac7daea4c1e65cd82fa2aea2c7d77a3a26dcb84201c69afeceb538cddf1ba740af308b586624ee3d40656d49 SHA512 4be985bb78e4b2bd65a195b95fdeb2a95c59c82db2446c9c365b11f0ba57e2a3234a41865071272cb054647a15e7e1a8b48d034ca656a3a44ca509648f258c13 diff --git a/dev-python/pylint/pylint-2.14.1.ebuild b/dev-python/pylint/pylint-2.14.1.ebuild new file mode 100644 index 000000000000..08949a55a651 --- /dev/null +++ b/dev-python/pylint/pylint-2.14.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python code static checker" +HOMEPAGE=" + https://pypi.org/project/pylint/ + https://github.com/PyCQA/pylint/ +" +SRC_URI=" + https://github.com/pycqa/pylint/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="examples" + +# Make sure to check https://github.com/PyCQA/pylint/blob/main/setup.cfg#L43 on bumps +# Adjust dep bounds! +RDEPEND=" + <dev-python/astroid-2.12[${PYTHON_USEDEP}] + >=dev-python/astroid-2.11.5[${PYTHON_USEDEP}] + >=dev-python/dill-0.2[${PYTHON_USEDEP}] + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] + <dev-python/isort-6[${PYTHON_USEDEP}] + >=dev-python/mccabe-0.6[${PYTHON_USEDEP}] + <dev-python/mccabe-0.8[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] + >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] + >=dev-python/tomlkit-0.10.1[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + ' 3.8 3.9) +" +BDEPEND=" + test? ( + >=dev-python/GitPython-3[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + rm -rf pylint || die + + local EPYTEST_DESELECT=( + # No need to run the benchmarks + tests/benchmark/test_baseline_benchmarks.py + + # TODO + 'tests/test_functional.py::test_functional[forgotten_debug_statement_py37]' + 'tests/test_functional.py::test_functional[dataclass_with_field]' + 'tests/test_functional.py::test_functional[no_name_in_module]' + tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_error_msg + tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_info_msg + tests/config/pylint_config/test_run_pylint_config.py::test_invocation_of_pylint_config + ) + # Specify the test directory explicitly to avoid import file mismatches + epytest +} + +python_install_all() { + if use examples ; then + docompress -x "/usr/share/doc/${PF}/examples" + docinto examples + dodoc -r examples/. + fi + + distutils-r1_python_install_all +} diff --git a/dev-python/pypiserver/Manifest b/dev-python/pypiserver/Manifest index 97fc380b6622..f915562aa4ae 100644 --- a/dev-python/pypiserver/Manifest +++ b/dev-python/pypiserver/Manifest @@ -1,2 +1 @@ -DIST pypiserver-1.4.2.tar.gz 511019 BLAKE2B fe9a41c35d601ee20f2cfe0773ce341b8c8fe387a2b825d1e6d669d5f358846b436158beb8a1222fa33cf1841cad5aceacc0f5063f899445ad15ca9eb5b8efd7 SHA512 8597a6a7e83cb3f5ead3418ee91167e1764c123b244c05397fa892c8ebe84b58569f27ce85cd9849d6a41d20342de21cf9cc46e00b233d9d94d0540470e1c49b DIST pypiserver-1.5.0.gh.tar.gz 149963 BLAKE2B bfc0760982f97e93357702342eb5b1776f72c43e66742a8741ee2ba3109839006e99e49b65e04380097500c400e09bce77b74fc5f9072c7670349817ae3a73cb SHA512 c93e724a3aa6ec265d483c2989129292a05132d3d52db6d9b9c1429610ee23b56e106c9389bdfaad142f34071ee258bdd4291668c11f8bb412df043bf4555611 diff --git a/dev-python/pypiserver/pypiserver-1.4.2.ebuild b/dev-python/pypiserver/pypiserver-1.4.2.ebuild deleted file mode 100644 index 27ba71ac400a..000000000000 --- a/dev-python/pypiserver/pypiserver-1.4.2.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) -inherit distutils-r1 - -DESCRIPTION="Minimal PyPI server" -HOMEPAGE="https://github.com/pypiserver/pypiserver" -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="ZLIB MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" -IUSE="test" - -RDEPEND=" - dev-python/pip[${PYTHON_USEDEP}] - >=dev-python/wheel-0.25.0[${PYTHON_USEDEP}]" -BDEPEND=" - dev-python/setuptools-git[${PYTHON_USEDEP}] - test? ( - ${RDEPEND} - dev-python/passlib[${PYTHON_USEDEP}] - >=dev-python/pytest-2.3[${PYTHON_USEDEP}] - dev-python/webtest[${PYTHON_USEDEP}] - !alpha? ( !hppa? ( !ia64? ( - dev-python/twine[${PYTHON_USEDEP}] - ) ) ) - )" - -DOCS=( README.rst ) - -distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=( - # Internet - tests/test_server.py::test_hash_algos - tests/test_server.py::test_pipInstall_openOk - tests/test_server.py::test_pipInstall_authedOk - # TODO - tests/test_app.py::test_root_count - ) - - if ! has_version "dev-python/twine[${PYTHON_USEDEP}]"; then - EPYTEST_DESELECT+=( - tests/test_server.py::test_twine_register_authed_ok - tests/test_server.py::test_twine_register_open - tests/test_server.py::test_twine_upload_authed - tests/test_server.py::test_twine_upload_open - tests/test_server.py::test_twine_upload_partial_authed - ) - fi - - epytest -} diff --git a/dev-python/pypiserver/pypiserver-1.5.0-r2.ebuild b/dev-python/pypiserver/pypiserver-1.5.0-r2.ebuild index 37cd3ca1563c..24aae99a43bf 100644 --- a/dev-python/pypiserver/pypiserver-1.5.0-r2.ebuild +++ b/dev-python/pypiserver/pypiserver-1.5.0-r2.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="ZLIB" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" RDEPEND=" dev-python/bottle[${PYTHON_USEDEP}] diff --git a/dev-python/pypiserver/pypiserver-1.5.0.ebuild b/dev-python/pypiserver/pypiserver-1.5.0.ebuild deleted file mode 100644 index 45dc2e303cad..000000000000 --- a/dev-python/pypiserver/pypiserver-1.5.0.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Minimal PyPI server" -HOMEPAGE=" - https://github.com/pypiserver/pypiserver/ - https://pypi.org/project/pypiserver/ -" -SRC_URI=" - https://github.com/pypiserver/pypiserver/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="ZLIB MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" - -RDEPEND=" - dev-python/pip[${PYTHON_USEDEP}] - >=dev-python/wheel-0.25.0[${PYTHON_USEDEP}] -" -# NB: many test deps are optional/specific to tests we skip -BDEPEND=" - dev-python/setuptools-git[${PYTHON_USEDEP}] - test? ( - >=dev-python/passlib-1.6[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] - dev-python/twine[${PYTHON_USEDEP}] - dev-python/webtest[${PYTHON_USEDEP}] - ) -" - -DOCS=( README.rst ) - -distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=( - # Internet - tests/test_server.py::test_hash_algos - tests/test_server.py::test_pipInstall_openOk - tests/test_server.py::test_pipInstall_authedOk - # TODO - tests/test_app.py::test_root_count - tests/test_server.py::test_pip_install_open_succeeds - tests/test_server.py::test_pip_install_authed_succeeds - ) - - epytest tests -} diff --git a/dev-python/pytest-httpserver/pytest-httpserver-1.0.4-r1.ebuild b/dev-python/pytest-httpserver/pytest-httpserver-1.0.4-r1.ebuild index d4989ed9d345..b5022ceeb7de 100644 --- a/dev-python/pytest-httpserver/pytest-httpserver-1.0.4-r1.ebuild +++ b/dev-python/pytest-httpserver/pytest-httpserver-1.0.4-r1.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/csernazs/pytest-httpserver/archive/refs/tags/${PV}.t LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 x86" RDEPEND="dev-python/werkzeug[${PYTHON_USEDEP}]" BDEPEND=" diff --git a/dev-python/suds-community/Manifest b/dev-python/suds-community/Manifest index 24933b92a74f..23a7eb0658c5 100644 --- a/dev-python/suds-community/Manifest +++ b/dev-python/suds-community/Manifest @@ -1,2 +1 @@ -DIST suds-community-1.1.0.tar.gz 284545 BLAKE2B b5f6f6f46a35df3263664c9893745a2e723f3eef543cb1a9e9fd061956b0c00c219e818228de9bf11b2730ad0a8fed90ad731199ffc7ca9fba9f22c5c0c8dd41 SHA512 2c8902e16c3513c99ce6d8bdf58ef4f5c4d704f1bf2480ea2b23ec2adbd9e8919928bfd5e3fd6859028b7fbc3788d067b9b71bad2a20c2f4907e6e56f3f15350 DIST suds-community-1.1.1.tar.gz 284934 BLAKE2B 9df1a5f6b4dd2ca060c639147a090cef6a194f275706e03a3fdafa46c4d18b890f7c94249db8db6202e95abea71948e0c42fe42f14f659ca14bb0aca11b4b5f5 SHA512 9b343d704b2db123ff44685fb03da8f6912cefb32d38e9b79f9f84aeebff32ba26936a0f70a6121628c6f2c5388e94d380f08ed546f55fbf84fdc8e4fdbd3d0a diff --git a/dev-python/suds-community/suds-community-1.1.0.ebuild b/dev-python/suds-community/suds-community-1.1.0.ebuild deleted file mode 100644 index b0abcbdcaafe..000000000000 --- a/dev-python/suds-community/suds-community-1.1.0.ebuild +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_REQ_USE="xml(+)" -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="Lightweight SOAP client" -HOMEPAGE="https://github.com/suds-community/suds" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="amd64 ~arm64 x86 ~amd64-linux ~x86-linux" - -DOCS=( README.md notes/. ) - -distutils_enable_tests pytest diff --git a/dev-python/tagpy/tagpy-2018.1-r2.ebuild b/dev-python/tagpy/tagpy-2018.1-r2.ebuild deleted file mode 100644 index 8e0a50532583..000000000000 --- a/dev-python/tagpy/tagpy-2018.1-r2.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) -DISTUTILS_IN_SOURCE_BUILD=1 -inherit distutils-r1 - -DESCRIPTION="Python Bindings for TagLib" -HOMEPAGE=" - https://mathema.tician.de//software/tagpy - https://pypi.org/project/tagpy/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 ~sparc x86" -IUSE="examples" - -RDEPEND=" - >=dev-libs/boost-1.70:=[python,threads(+),${PYTHON_USEDEP}] - >=media-libs/taglib-1.8" -DEPEND="${RDEPEND}" - -distutils_enable_tests pytest - -PATCHES=( "${FILESDIR}"/${P}-taglib-1.8.patch ) - -python_prepare_all() { - cp "${FILESDIR}"/${P}-readme.rst README.rst || die - distutils-r1_python_prepare_all -} - -python_configure() { - local boostpy_ver="${EPYTHON#python}" - - "${EPYTHON}" configure.py \ - --taglib-inc-dir="${ESYSROOT}"/usr/include/taglib \ - --boost-python-libname="boost_python${boostpy_ver/\.}" -} - -python_test() { - cd test || die - "${EPYTHON}" *.py || die "Testsuite failed under ${EPYTHON}" -} - -python_install_all() { - if use examples; then - docinto examples - dodoc -r test/. - fi - - distutils-r1_python_install_all -} diff --git a/dev-python/tagpy/tagpy-2018.1-r3.ebuild b/dev-python/tagpy/tagpy-2018.1-r3.ebuild index 09a9ce89e8ed..758e5efc39ab 100644 --- a/dev-python/tagpy/tagpy-2018.1-r3.ebuild +++ b/dev-python/tagpy/tagpy-2018.1-r3.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="amd64 ppc ppc64 ~sparc x86" IUSE="examples" RDEPEND=" |
