From ed66b5276c54898cdc27b5dfea646740c4f9bef9 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Thu, 28 Apr 2022 00:39:28 +0000 Subject: Adding metadata --- dev-python/argparse-manpage/Manifest | 4 +- .../argparse-manpage-1.5-r1.ebuild | 21 ---- .../argparse-manpage/argparse-manpage-2.1.ebuild | 27 ----- .../argparse-manpage/argparse-manpage-2.ebuild | 27 ----- .../argparse-manpage/argparse-manpage-3.ebuild | 28 +++++ .../argparse-manpage-1.5-remove-six-dep.patch | 19 ---- .../clang-python/clang-python-15.0.0.9999.ebuild | 14 ++- dev-python/lit/lit-15.0.0.9999.ebuild | 3 +- dev-python/mysqlclient/Manifest | 2 - dev-python/mysqlclient/mysqlclient-1.4.6-r1.ebuild | 35 ------ dev-python/mysqlclient/mysqlclient-2.0.3.ebuild | 88 --------------- dev-python/mysqlclient/mysqlclient-2.1.0.ebuild | 5 +- dev-python/pypy-exe-bin/Manifest | 4 +- dev-python/pypy-exe-bin/pypy-exe-bin-7.3.6.ebuild | 50 --------- dev-python/pypy-exe-bin/pypy-exe-bin-7.3.9.ebuild | 50 +++++++++ dev-python/python-docs/python-docs-3.10.4.ebuild | 2 +- dev-python/python-docs/python-docs-3.9.12.ebuild | 2 +- dev-python/sphinx/sphinx-4.4.0-r1.ebuild | 123 ++++++++++++++++++++ dev-python/sphinx/sphinx-4.4.0.ebuild | 120 -------------------- dev-python/sphinx/sphinx-4.5.0-r1.ebuild | 125 +++++++++++++++++++++ dev-python/sphinx/sphinx-4.5.0.ebuild | 122 -------------------- 21 files changed, 347 insertions(+), 524 deletions(-) delete mode 100644 dev-python/argparse-manpage/argparse-manpage-1.5-r1.ebuild delete mode 100644 dev-python/argparse-manpage/argparse-manpage-2.1.ebuild delete mode 100644 dev-python/argparse-manpage/argparse-manpage-2.ebuild create mode 100644 dev-python/argparse-manpage/argparse-manpage-3.ebuild delete mode 100644 dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch delete mode 100644 dev-python/mysqlclient/mysqlclient-1.4.6-r1.ebuild delete mode 100644 dev-python/mysqlclient/mysqlclient-2.0.3.ebuild delete mode 100644 dev-python/pypy-exe-bin/pypy-exe-bin-7.3.6.ebuild create mode 100644 dev-python/pypy-exe-bin/pypy-exe-bin-7.3.9.ebuild create mode 100644 dev-python/sphinx/sphinx-4.4.0-r1.ebuild delete mode 100644 dev-python/sphinx/sphinx-4.4.0.ebuild create mode 100644 dev-python/sphinx/sphinx-4.5.0-r1.ebuild delete mode 100644 dev-python/sphinx/sphinx-4.5.0.ebuild (limited to 'dev-python') diff --git a/dev-python/argparse-manpage/Manifest b/dev-python/argparse-manpage/Manifest index 6a7cf556053e..97807aa8377b 100644 --- a/dev-python/argparse-manpage/Manifest +++ b/dev-python/argparse-manpage/Manifest @@ -1,4 +1,2 @@ -DIST argparse-manpage-1.5.tar.gz 34290 BLAKE2B 598a0eb0d4816a764c1ba4093b18e28d7865c9a113db1910793748eb24394636a9e1caad86fef5416933ae5341026048d1e39ce928131a8796a5d66a40e36853 SHA512 bfdea19fa62ac029754d6df26c4fb51c18f7fee4fae681c1117253627e724cf1ff1db5196ad0690fd436cebbe403536905f157cb7eae7be50d321c663b491fd0 -DIST argparse-manpage-2.1.tar.gz 39889 BLAKE2B 9c534b775e59064062d91587e275acf0af343cef864009e290c9a5224e481cd2f7cde87e85b2b0135483d6119e711cd6668d8455315eeb2a28d335c8ef37e3ae SHA512 aed2908bec8f6bee0f8619c6d5cff742fdac0f44ab7f65b8d0c1aa3409ec0335ce763cd2177b2606111b9ba5fe43698b04ace43f9017034cf99a7142eccd9ea0 DIST argparse-manpage-2.2.tar.gz 39963 BLAKE2B 3ba427653c51265be944309dbd94368b9e62f46ec9fa3315a9b7da2de1fc6ae3399408488b74fb1c62ed39f70034d6429f3825c0857b07b71c277922870fbc13 SHA512 1708d33633405f1c4b9c96acd78cdbc5e3465089c7de0c5d0654f9f70ac1b7176f3798fd8bd8e7c0f2163b28dcc6d41ea2b68f2e2b03652677af3ba945d14588 -DIST argparse-manpage-2.tar.gz 38279 BLAKE2B 24edcb71aed7731178d24e99a36baf8be2270f6d4da0d884610da294d44313d913f8aa2db381eae77409ec504b18346688d5f7f27257285b7aa92d453b1a58f1 SHA512 24854cd5209635e8938716f97cb4eb283152a2a109c554385a78a5145c6e0f38c76a9172d607fb3ffdf610e8d3f7270ed94f6b4612ce731ea9dafe0a1bebebe6 +DIST argparse-manpage-3.tar.gz 45091 BLAKE2B b2ab9d4863227eacaf566865cd47763b9a52f4fd445ae78cf8212b3762a14c1ceb7f9008d25b8828f5e5da23e120a7be6d48239bb300670e559000de1e75fd68 SHA512 96225cf71dc60c638bd312331622e5b60589d7e6baf59fdfca0d90d24cff2bb232696c754c440c4e239949ea1a6280699c4f0f7816c50ec62bf77474d0c48cf4 diff --git a/dev-python/argparse-manpage/argparse-manpage-1.5-r1.ebuild b/dev-python/argparse-manpage/argparse-manpage-1.5-r1.ebuild deleted file mode 100644 index 9f6420071930..000000000000 --- a/dev-python/argparse-manpage/argparse-manpage-1.5-r1.ebuild +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) -inherit distutils-r1 - -DESCRIPTION="Automatically build man-pages for your Python project" -HOMEPAGE="https://github.com/praiskup/argparse-manpage https://pypi.org/project/argparse-manpage/" -SRC_URI="https://github.com/praiskup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" - -PATCHES=( - "${FILESDIR}/${P}-remove-six-dep.patch" -) - -distutils_enable_tests pytest diff --git a/dev-python/argparse-manpage/argparse-manpage-2.1.ebuild b/dev-python/argparse-manpage/argparse-manpage-2.1.ebuild deleted file mode 100644 index 295715d53a4c..000000000000 --- a/dev-python/argparse-manpage/argparse-manpage-2.1.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 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 - -DESCRIPTION="Automatically build man-pages for your Python project" -HOMEPAGE="https://github.com/praiskup/argparse-manpage https://pypi.org/project/argparse-manpage/" -SRC_URI="https://github.com/praiskup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" - -BDEPEND=" - test? ( - dev-python/pip[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -python_test() { - local -x COLUMNS=80 - epytest -} diff --git a/dev-python/argparse-manpage/argparse-manpage-2.ebuild b/dev-python/argparse-manpage/argparse-manpage-2.ebuild deleted file mode 100644 index f2d68482914a..000000000000 --- a/dev-python/argparse-manpage/argparse-manpage-2.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 2021 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 - -DESCRIPTION="Automatically build man-pages for your Python project" -HOMEPAGE="https://github.com/praiskup/argparse-manpage https://pypi.org/project/argparse-manpage/" -SRC_URI="https://github.com/praiskup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" - -BDEPEND=" - test? ( - dev-python/pip[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -python_test() { - local -x COLUMNS=80 - epytest -} diff --git a/dev-python/argparse-manpage/argparse-manpage-3.ebuild b/dev-python/argparse-manpage/argparse-manpage-3.ebuild new file mode 100644 index 000000000000..7105f4b2aa11 --- /dev/null +++ b/dev-python/argparse-manpage/argparse-manpage-3.ebuild @@ -0,0 +1,28 @@ +# Copyright 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="Automatically build man-pages for your Python project" +HOMEPAGE="https://github.com/praiskup/argparse-manpage https://pypi.org/project/argparse-manpage/" +SRC_URI="https://github.com/praiskup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~sparc ~x86" + +BDEPEND=" + test? ( + dev-python/pip[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +python_test() { + local -x COLUMNS=80 + epytest +} diff --git a/dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch b/dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch deleted file mode 100644 index 7a5aa777739a..000000000000 --- a/dev-python/argparse-manpage/files/argparse-manpage-1.5-remove-six-dep.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- a/examples/copr/copr_cli/main.py -+++ b/examples/copr/copr_cli/main.py -@@ -8,15 +8,11 @@ import argparse - import sys - import datetime - import time --import six - import simplejson - from collections import defaultdict - - import logging --if six.PY2: -- from urlparse import urlparse --else: -- from urllib.parse import urlparse -+from urllib.parse import urlparse - - if sys.version_info < (2, 7): - class NullHandler(logging.Handler): diff --git a/dev-python/clang-python/clang-python-15.0.0.9999.ebuild b/dev-python/clang-python/clang-python-15.0.0.9999.ebuild index e86654593318..04eb349df22e 100644 --- a/dev-python/clang-python/clang-python-15.0.0.9999.ebuild +++ b/dev-python/clang-python/clang-python-15.0.0.9999.ebuild @@ -13,17 +13,23 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" KEYWORDS="" IUSE="test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" # The module is opening libclang.so directly, and doing some blasphemy # on top of it. -RDEPEND=" +DEPEND=" >=sys-devel/clang-${PV}:* !sys-devel/llvm:0[clang(-),python(-)] !sys-devel/clang:0[python(-)] - ${PYTHON_DEPS}" -DEPEND="${RDEPEND}" +" +RDEPEND=" + ${DEPEND} + ${PYTHON_DEPS} +" +BDEPEND=" + ${PYTHON_DEPS} +" LLVM_COMPONENTS=( clang/bindings/python ) llvm.org_set_globals diff --git a/dev-python/lit/lit-15.0.0.9999.ebuild b/dev-python/lit/lit-15.0.0.9999.ebuild index caea682be0f3..804d31b11189 100644 --- a/dev-python/lit/lit-15.0.0.9999.ebuild +++ b/dev-python/lit/lit-15.0.0.9999.ebuild @@ -22,7 +22,8 @@ BDEPEND=" test? ( dev-python/psutil[${PYTHON_USEDEP}] sys-devel/llvm - )" + ) +" LLVM_COMPONENTS=( llvm/utils/lit ) llvm.org_set_globals diff --git a/dev-python/mysqlclient/Manifest b/dev-python/mysqlclient/Manifest index f36427093892..8e94c89c1ede 100644 --- a/dev-python/mysqlclient/Manifest +++ b/dev-python/mysqlclient/Manifest @@ -1,3 +1 @@ -DIST mysqlclient-1.4.6.tar.gz 85517 BLAKE2B f5e604094b06b919b92ecadc8b3f0249dd038149d1182ba882fe6b0ecd34f0bcceeed21b310318ca3291d9483fd3d1ac385c29415e07a8fbabb6cd65ccee8a2d SHA512 11ecb8a0a6f78edb193cd07472579aec1626994a80a584ff74de18774e7db8896de595f3e4d280b78e8636f53323ebcce8aa294ec7b2a54a839742d9699650ab -DIST mysqlclient-2.0.3.tar.gz 88886 BLAKE2B 2673f2ab46ddff241260b036b14bad84947a37d002cbacd7aa53127fa3dd4fad7a37c9e2f8704d43cab6a2e0289f2542cb36ccb3f1bd66c64d2440f79d26948e SHA512 49c234bc982b373a74d65361a697dfa4f87f06d193d86d7cc40a732f48c9b2494cea21ee3f95d4d6d2a55b3f7476a92eda0c2e294766cb0ff592e1c54353b9cb DIST mysqlclient-2.1.0.tar.gz 87635 BLAKE2B b92e138f6128873912e951087bc4f12b3c00a400521c7ee64da177c6f5a2dfb3a649d92f7a12f45c8716fd8b6b9682a0eff6d9bc111cffac38a27676f67d396a SHA512 a0b2645af225fd6f1f551cfd34c09309a859410e66287c32637901e15beb88632f9a3e87cf2b08a94867a9b2d4a048c56d63d55f523eafc82f1b1b93ce1c843c diff --git a/dev-python/mysqlclient/mysqlclient-1.4.6-r1.ebuild b/dev-python/mysqlclient/mysqlclient-1.4.6-r1.ebuild deleted file mode 100644 index b0f768cfd0c6..000000000000 --- a/dev-python/mysqlclient/mysqlclient-1.4.6-r1.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="Fork of MySQL-python" -HOMEPAGE="https://pypi.org/project/mysqlclient/ https://github.com/PyMySQL/mysqlclient-python" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" -IUSE="doc" - -RDEPEND=" - !dev-python/mysql-python - dev-db/mysql-connector-c:0=" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" - -DOCS=( README.md doc/{FAQ,MySQLdb}.rst ) - -python_compile_all() { - use doc && sphinx-build -b html doc doc/_build/ -} - -python_install_all() { - use doc && local HTML_DOCS=( doc/_build/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/mysqlclient/mysqlclient-2.0.3.ebuild b/dev-python/mysqlclient/mysqlclient-2.0.3.ebuild deleted file mode 100644 index 4983e87a2733..000000000000 --- a/dev-python/mysqlclient/mysqlclient-2.0.3.ebuild +++ /dev/null @@ -1,88 +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 - -DESCRIPTION="Fork of MySQL-python" -HOMEPAGE="https://pypi.org/project/mysqlclient/ https://github.com/PyMySQL/mysqlclient-python" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" - -RDEPEND=" - dev-db/mysql-connector-c:0= -" -DEPEND="${RDEPEND}" -BDEPEND=" - test? ( - dev-db/mariadb[server] - dev-python/mock[${PYTHON_USEDEP}] - ) -" - -distutils_enable_sphinx doc -distutils_enable_tests pytest - -src_test() { - local datadir="${T}/mysql" \ - install_log="${T}/mysqld_install.log" \ - pidfile="${T}/mysqld.pid" \ - socket="${T}/mysqld.sock" \ - log="${T}/mysqld.log" - einfo "Creating test MySQL instance ..." - if ! mysql_install_db \ - --no-defaults \ - --auth-root-authentication-method=normal \ - --basedir="${EPREFIX}/usr" \ - --datadir="${datadir}" >& "${install_log}" - then - cat "${install_log}" - die "Failed to create database" - fi - - einfo "Starting test MySQL instance ..." - mysqld \ - --no-defaults \ - --character-set-server=utf8 \ - --pid-file="${pidfile}" \ - --socket="${socket}" \ - --skip-networking \ - --datadir="${datadir}" >& "${log}" & - - local i timeout=10 - einfo "Waiting for MySQL to start for up to ${timeout} seconds ..." - for i in seq 1 ${timeout}; do - [[ -S "${socket}" ]] && break - sleep 1 - done - if [[ ! -S "${socket}" ]]; then - cat "${log}" - die "MySQL failed to start in ${timeout} seconds" - fi - - cat > "${T}/mysql.cnf" <<- EOF - [MySQLdb-tests] - socket = ${socket} - user = root - database = test - EOF - - distutils-r1_src_test - - einfo "Stopping test MySQL instance ..." - pkill -F "${pidfile}" &>/dev/null -} - -python_test() { - # The C extension ("_mysql") can't be imported from "${S}/MySQLdb" - # so we need to cd somewhere else to make sure "MySQLdb" is imported - # from ${BUILD_DIR}/lib (thanks to PYTHONPATH). - cd "${T}" || die - TESTDB="${T}/mysql.cnf" epytest "${S}" -} diff --git a/dev-python/mysqlclient/mysqlclient-2.1.0.ebuild b/dev-python/mysqlclient/mysqlclient-2.1.0.ebuild index 60cce589a438..b7495b8f5ae1 100644 --- a/dev-python/mysqlclient/mysqlclient-2.1.0.ebuild +++ b/dev-python/mysqlclient/mysqlclient-2.1.0.ebuild @@ -7,7 +7,10 @@ PYTHON_COMPAT=( python3_{7,8,9,10} ) inherit distutils-r1 DESCRIPTION="Python interface to MySQL" -HOMEPAGE="https://pypi.org/project/mysqlclient/ https://github.com/PyMySQL/mysqlclient-python" +HOMEPAGE=" + https://pypi.org/project/mysqlclient/ + https://github.com/PyMySQL/mysqlclient/ +" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="GPL-2+" diff --git a/dev-python/pypy-exe-bin/Manifest b/dev-python/pypy-exe-bin/Manifest index fd2a79609e92..b7412f5abb15 100644 --- a/dev-python/pypy-exe-bin/Manifest +++ b/dev-python/pypy-exe-bin/Manifest @@ -1,4 +1,4 @@ -DIST pypy-exe-7.3.6-1.amd64.xpak 13698534 BLAKE2B d47e70f5d982b273b31da94f4f9e35597ba79389caffb06df1b397b4de91b90fe23183afde609225155debd80acbc827ad8a7a6d52e2f2192f9fe80cc86d6af3 SHA512 500ba779dd0bb0a525bab520f5eb7155d81d386ae785b7a23d369c20345719f280b0f639d444807bd82a8a9cdadd8c85cb4ce3b31abc74e377796aa8e88c260a -DIST pypy-exe-7.3.6-1.x86.xpak 10322051 BLAKE2B d15ce84560a4e0f56446b7b514c3a20ecf84de48b89e15bed4a261946f1f3b39cfd49323e600c5c186d9bdd75a900a3688c124daa5d9dba7bf0bdb82873cc3f6 SHA512 4ac83e5334666efccc7c5d59be7838032f9082055d320fa3b44b58c18c4349c4a5ebead0c9ae11b24069f80f82081f8119ec4c00287f16b80b83b21db429cddd DIST pypy-exe-7.3.8-1.amd64.xpak 13659803 BLAKE2B 438206eb417422b749d21ba0de71611147df9d0a40b6bef12bfc068fab92e7cd39878b1f15c97b6efe3f2751b29efd2f7ee9a6d084fc405384012b3c3e327552 SHA512 2c88e383302b8c873e1dcab1d24e0fc0455f751c2e5617926e97aa2414d84a437477ab029b9ae0751c418658250f13b54cb8abc871bd543ec58e392acdf4195f DIST pypy-exe-7.3.8-1.x86.xpak 10179209 BLAKE2B e7d32ca389ab1dd92acc848caca0fb8e965f25f0ec9b3ca433984417d5979e4742926fcd5d6566eb89e19513b6fd02adcc1c5ef3305c52db84107cf14af1010a SHA512 df6086c046e6ad1da3d4d04dbc1bd6889b0ff760e6e10d4fd85c7add22cfaa31d6873dabaa18593aadc3e52d837043b3be1fec474c829debd79612adb7b0d07a +DIST pypy-exe-7.3.9-1.amd64.xpak 13757730 BLAKE2B d5e2bddc32a9cd199d01280dfbe2ff6e73583094583bf9ec3bc469911754df86270c8cfc5a9284cf06dba7ce267d897f864f6f357418e96e853a6e0f31d627e6 SHA512 570ca27d1ca411281a002c9c33ebb54d088032d6aa1898967e637f6bf06c8a32a16576f8c637fc13a0fb8294e7ba5b0b9b16600902037680b7d7f2b4edd6cfe7 +DIST pypy-exe-7.3.9-1.x86.xpak 10132659 BLAKE2B 2a7e1e587f38178861f958ab40864f3d4f1df80dd7495eb31ac493d0bfa1b4a42278bb1fe9219148b6d04377588c33e8606e59e93c53c08b867f5408a39b2efb SHA512 57cfdd0c9e9b44aae882069f356935be1719bf737d9fbd1fde75b724269bd69cffc62c8cec77a863eab5260d76bfe689dcc6c78fda55a4952b496a6d5ac5acc0 diff --git a/dev-python/pypy-exe-bin/pypy-exe-bin-7.3.6.ebuild b/dev-python/pypy-exe-bin/pypy-exe-bin-7.3.6.ebuild deleted file mode 100644 index 2d903d752f05..000000000000 --- a/dev-python/pypy-exe-bin/pypy-exe-bin-7.3.6.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 2021 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -inherit pax-utils - -MY_P=pypy-exe-${PV}-1 -DESCRIPTION="PyPy executable (pre-built version)" -HOMEPAGE="https://www.pypy.org/" -SRC_URI=" - amd64? ( - https://dev.gentoo.org/~mgorny/binpkg/amd64/pypy/dev-python/pypy-exe/${MY_P}.xpak - -> ${MY_P}.amd64.xpak - ) - x86? ( - https://dev.gentoo.org/~mgorny/binpkg/x86/pypy/dev-python/pypy-exe/${MY_P}.xpak - -> ${MY_P}.x86.xpak - )" -S="${WORKDIR}" - -LICENSE="MIT" -SLOT="${PV%_p*}" -KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux" - -RDEPEND=">=sys-libs/zlib-1.1.3:0/1 - || ( - dev-libs/libffi-compat:7 - dev-libs/libffi:0/7 - ) - virtual/libintl:0/0 - dev-libs/expat:0/0 - app-arch/bzip2:0/1 - sys-libs/ncurses:0/6 - !dev-python/pypy-exe:${SLOT}" - -QA_PREBUILT=" - usr/lib/pypy2.7/pypy-c-${SLOT}" - -src_unpack() { - ebegin "Unpacking ${MY_P}.${ARCH}.xpak" - tar -x < <(xz -c -d --single-stream "${DISTDIR}/${MY_P}.${ARCH}.xpak") - eend ${?} || die "Unpacking ${MY_P} failed" -} - -src_install() { - insinto / - doins -r usr - fperms +x "/usr/lib/pypy2.7/pypy-c-${SLOT}" - pax-mark m "${ED}/usr/lib/pypy2.7/pypy-c-${SLOT}" -} diff --git a/dev-python/pypy-exe-bin/pypy-exe-bin-7.3.9.ebuild b/dev-python/pypy-exe-bin/pypy-exe-bin-7.3.9.ebuild new file mode 100644 index 000000000000..42a06e9b0cb0 --- /dev/null +++ b/dev-python/pypy-exe-bin/pypy-exe-bin-7.3.9.ebuild @@ -0,0 +1,50 @@ +# Copyright 2021-2022 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +inherit pax-utils + +MY_P=pypy-exe-${PV}-1 +DESCRIPTION="PyPy executable (pre-built version)" +HOMEPAGE="https://www.pypy.org/" +SRC_URI=" + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/pypy/dev-python/pypy-exe/${MY_P}.xpak + -> ${MY_P}.amd64.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/pypy/dev-python/pypy-exe/${MY_P}.xpak + -> ${MY_P}.x86.xpak + )" +S="${WORKDIR}" + +LICENSE="MIT" +SLOT="${PV%_p*}" +KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux" + +RDEPEND=">=sys-libs/zlib-1.1.3:0/1 + || ( + dev-libs/libffi-compat:7 + dev-libs/libffi:0/7 + ) + virtual/libintl:0/0 + dev-libs/expat:0/0 + app-arch/bzip2:0/1 + sys-libs/ncurses:0/6 + !dev-python/pypy-exe:${SLOT}" + +QA_PREBUILT=" + usr/lib/pypy2.7/pypy-c-${SLOT}" + +src_unpack() { + ebegin "Unpacking ${MY_P}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${MY_P}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${MY_P} failed" +} + +src_install() { + insinto / + doins -r usr + fperms +x "/usr/lib/pypy2.7/pypy-c-${SLOT}" + pax-mark m "${ED}/usr/lib/pypy2.7/pypy-c-${SLOT}" +} diff --git a/dev-python/python-docs/python-docs-3.10.4.ebuild b/dev-python/python-docs/python-docs-3.10.4.ebuild index db7df46c6ffb..f3341b1efa12 100644 --- a/dev-python/python-docs/python-docs-3.10.4.ebuild +++ b/dev-python/python-docs/python-docs-3.10.4.ebuild @@ -10,7 +10,7 @@ S="${WORKDIR}/python-${PV}-docs-html" LICENSE="PSF-2" SLOT="$(ver_cut 1-2)" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 sparc x86" src_install() { rm -r _sources || die diff --git a/dev-python/python-docs/python-docs-3.9.12.ebuild b/dev-python/python-docs/python-docs-3.9.12.ebuild index db7df46c6ffb..50e46bb19d8e 100644 --- a/dev-python/python-docs/python-docs-3.9.12.ebuild +++ b/dev-python/python-docs/python-docs-3.9.12.ebuild @@ -10,7 +10,7 @@ S="${WORKDIR}/python-${PV}-docs-html" LICENSE="PSF-2" SLOT="$(ver_cut 1-2)" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc ~x86" src_install() { rm -r _sources || die diff --git a/dev-python/sphinx/sphinx-4.4.0-r1.ebuild b/dev-python/sphinx/sphinx-4.4.0-r1.ebuild new file mode 100644 index 000000000000..d138a4c0ffca --- /dev/null +++ b/dev-python/sphinx/sphinx-4.4.0-r1.ebuild @@ -0,0 +1,123 @@ +# 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 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python documentation generator" +HOMEPAGE="https://www.sphinx-doc.org/ + https://github.com/sphinx-doc/sphinx" +SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" +S=${WORKDIR}/${P^} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="doc latex" + +RDEPEND=" + =dev-python/Babel-1.3[${PYTHON_USEDEP}] + =dev-python/jinja-2.3[${PYTHON_USEDEP}] + >=dev-python/pygments-2.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.5.0[${PYTHON_USEDEP}] + >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}] + >=dev-python/sphinxcontrib-htmlhelp-2.0.0[${PYTHON_USEDEP}] + >=dev-python/sphinxcontrib-serializinghtml-1.1.5[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/importlib_metadata-4.4[${PYTHON_USEDEP}] + ' python3_{8,9} pypy3) + latex? ( + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + app-text/dvipng + ) + !dev-python/namespace-sphinxcontrib +" +BDEPEND=" + doc? ( + dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] + media-gfx/graphviz + ) + test? ( + dev-python/html5lib[${PYTHON_USEDEP}] + virtual/imagemagick-tools[jpeg,png,svg] + dev-texlive/texlive-fontsextra + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + app-text/dvipng + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-3.2.1-doc-link.patch" + "${FILESDIR}/${PN}-4.3.2-doc-link.patch" +) + +distutils_enable_tests pytest + +python_prepare_all() { + # disable internet access + sed -i -e 's:^intersphinx_mapping:disabled_&:' \ + doc/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + esetup.py build_sphinx + HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + fi +} + +python_test() { + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" + + local EPYTEST_DESELECT=( + # these tests require Internet access + tests/test_build_latex.py::test_latex_images + tests/test_build_linkcheck.py::test_defaults + tests/test_build_linkcheck.py::test_defaults_json + tests/test_build_linkcheck.py::test_anchors_ignored + tests/test_build_linkcheck.py::test_linkcheck_exclude_documents + # TODO + tests/test_ext_autodoc_autoclass.py::test_classes + tests/test_ext_autodoc_autofunction.py::test_classes + ) + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( + tests/test_build_linkcheck.py::test_connect_to_selfsigned_fails + tests/test_ext_autodoc.py::test_autodoc_inherited_members_None + tests/test_ext_autodoc.py::test_autodoc_typed_inherited_instance_variables + tests/test_ext_autodoc.py::test_autodoc_typed_instance_variables + tests/test_ext_autodoc.py::test_automethod_for_builtin + tests/test_ext_autodoc.py::test_cython + tests/test_ext_autodoc.py::test_partialfunction + tests/test_ext_autodoc_autoclass.py::test_autodoc_process_bases + tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type + tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type + tests/test_ext_autodoc_autodata.py::test_autodata_type_comment + tests/test_ext_autodoc_autofunction.py::test_builtin_function + tests/test_ext_autodoc_autofunction.py::test_methoddescriptor + tests/test_ext_autodoc_configs.py::test_autodoc_type_aliases + tests/test_ext_autodoc_configs.py::test_autodoc_typehints_signature + tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module + tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped + tests/test_pycode_parser.py::test_annotated_assignment + ) + + epytest +} diff --git a/dev-python/sphinx/sphinx-4.4.0.ebuild b/dev-python/sphinx/sphinx-4.4.0.ebuild deleted file mode 100644 index 1e03be66d57e..000000000000 --- a/dev-python/sphinx/sphinx-4.4.0.ebuild +++ /dev/null @@ -1,120 +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 ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Python documentation generator" -HOMEPAGE="https://www.sphinx-doc.org/ - https://github.com/sphinx-doc/sphinx" -SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" -S=${WORKDIR}/${P^} - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="doc latex" - -RDEPEND=" - =dev-python/Babel-1.3[${PYTHON_USEDEP}] - =dev-python/jinja-2.3[${PYTHON_USEDEP}] - >=dev-python/pygments-2.0[${PYTHON_USEDEP}] - >=dev-python/requests-2.5.0[${PYTHON_USEDEP}] - >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}] - >=dev-python/sphinxcontrib-htmlhelp-2.0.0[${PYTHON_USEDEP}] - >=dev-python/sphinxcontrib-serializinghtml-1.1.5[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/importlib_metadata-4.4[${PYTHON_USEDEP}] - ' python3_{8,9} pypy3) - latex? ( - dev-texlive/texlive-latexextra - dev-texlive/texlive-luatex - app-text/dvipng - )" -BDEPEND=" - doc? ( - dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] - media-gfx/graphviz - ) - test? ( - dev-python/html5lib[${PYTHON_USEDEP}] - virtual/imagemagick-tools[jpeg,png,svg] - dev-texlive/texlive-fontsextra - dev-texlive/texlive-latexextra - dev-texlive/texlive-luatex - app-text/dvipng - )" - -PATCHES=( - "${FILESDIR}/${PN}-3.2.1-doc-link.patch" - "${FILESDIR}/${PN}-4.3.2-doc-link.patch" -) - -distutils_enable_tests pytest - -python_prepare_all() { - # disable internet access - sed -i -e 's:^intersphinx_mapping:disabled_&:' \ - doc/conf.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc; then - esetup.py build_sphinx - HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) - fi -} - -python_test() { - mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die - local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" - - local EPYTEST_DESELECT=( - # these tests require Internet access - tests/test_build_latex.py::test_latex_images - tests/test_build_linkcheck.py::test_defaults - tests/test_build_linkcheck.py::test_defaults_json - tests/test_build_linkcheck.py::test_anchors_ignored - tests/test_build_linkcheck.py::test_linkcheck_exclude_documents - # TODO - tests/test_ext_autodoc_autoclass.py::test_classes - tests/test_ext_autodoc_autofunction.py::test_classes - ) - [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( - tests/test_build_linkcheck.py::test_connect_to_selfsigned_fails - tests/test_ext_autodoc.py::test_autodoc_inherited_members_None - tests/test_ext_autodoc.py::test_autodoc_typed_inherited_instance_variables - tests/test_ext_autodoc.py::test_autodoc_typed_instance_variables - tests/test_ext_autodoc.py::test_automethod_for_builtin - tests/test_ext_autodoc.py::test_cython - tests/test_ext_autodoc.py::test_partialfunction - tests/test_ext_autodoc_autoclass.py::test_autodoc_process_bases - tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type - tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type - tests/test_ext_autodoc_autodata.py::test_autodata_type_comment - tests/test_ext_autodoc_autofunction.py::test_builtin_function - tests/test_ext_autodoc_autofunction.py::test_methoddescriptor - tests/test_ext_autodoc_configs.py::test_autodoc_type_aliases - tests/test_ext_autodoc_configs.py::test_autodoc_typehints_signature - tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module - tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped - tests/test_pycode_parser.py::test_annotated_assignment - ) - - epytest -} diff --git a/dev-python/sphinx/sphinx-4.5.0-r1.ebuild b/dev-python/sphinx/sphinx-4.5.0-r1.ebuild new file mode 100644 index 000000000000..8d2914903d24 --- /dev/null +++ b/dev-python/sphinx/sphinx-4.5.0-r1.ebuild @@ -0,0 +1,125 @@ +# 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 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python documentation generator" +HOMEPAGE="https://www.sphinx-doc.org/ + https://github.com/sphinx-doc/sphinx" +SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" +S=${WORKDIR}/${P^} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="doc latex" + +RDEPEND=" + =dev-python/Babel-1.3[${PYTHON_USEDEP}] + =dev-python/jinja-2.3[${PYTHON_USEDEP}] + >=dev-python/pygments-2.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.5.0[${PYTHON_USEDEP}] + >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}] + >=dev-python/sphinxcontrib-htmlhelp-2.0.0[${PYTHON_USEDEP}] + >=dev-python/sphinxcontrib-serializinghtml-1.1.5[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/importlib_metadata-4.4[${PYTHON_USEDEP}] + ' python3_{8,9} pypy3) + latex? ( + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + app-text/dvipng + ) + !dev-python/namespace-sphinxcontrib +" +BDEPEND=" + doc? ( + dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] + media-gfx/graphviz + ) + test? ( + dev-python/html5lib[${PYTHON_USEDEP}] + virtual/imagemagick-tools[jpeg,png,svg] + dev-texlive/texlive-fontsextra + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + app-text/dvipng + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-3.2.1-doc-link.patch" + "${FILESDIR}/${PN}-4.3.2-doc-link.patch" +) + +distutils_enable_tests pytest + +python_prepare_all() { + # disable internet access + sed -i -e 's:^intersphinx_mapping:disabled_&:' \ + doc/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + esetup.py build_sphinx + HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + fi +} + +python_test() { + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" + + local EPYTEST_DESELECT=( + # these tests require Internet access + tests/test_build_latex.py::test_latex_images + tests/test_build_linkcheck.py::test_defaults + tests/test_build_linkcheck.py::test_defaults_json + tests/test_build_linkcheck.py::test_anchors_ignored + tests/test_build_linkcheck.py::test_linkcheck_exclude_documents + # TODO + tests/test_ext_autodoc_autoclass.py::test_classes + tests/test_ext_autodoc_autofunction.py::test_classes + ) + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( + tests/test_build_linkcheck.py::test_connect_to_selfsigned_fails + tests/test_ext_autodoc.py::test_autodoc_inherited_members_None + tests/test_ext_autodoc.py::test_autodoc_typed_inherited_instance_variables + tests/test_ext_autodoc.py::test_autodoc_typed_instance_variables + tests/test_ext_autodoc.py::test_automethod_for_builtin + tests/test_ext_autodoc.py::test_cython + tests/test_ext_autodoc.py::test_partialfunction + tests/test_ext_autodoc_autoclass.py::test_autodoc_process_bases + tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type + tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type + tests/test_ext_autodoc_autodata.py::test_autodata_type_comment + tests/test_ext_autodoc_autofunction.py::test_builtin_function + tests/test_ext_autodoc_autofunction.py::test_methoddescriptor + tests/test_ext_autodoc_configs.py::test_autodoc_type_aliases + tests/test_ext_autodoc_configs.py::test_autodoc_typehints_signature + tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module + tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped + tests/test_pycode_parser.py::test_annotated_assignment + tests/test_util_inspect.py::test_isattributedescriptor + tests/test_util_typing.py::test_stringify_type_hints_pep_585 + ) + + epytest +} diff --git a/dev-python/sphinx/sphinx-4.5.0.ebuild b/dev-python/sphinx/sphinx-4.5.0.ebuild deleted file mode 100644 index aca9cb053577..000000000000 --- a/dev-python/sphinx/sphinx-4.5.0.ebuild +++ /dev/null @@ -1,122 +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 ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Python documentation generator" -HOMEPAGE="https://www.sphinx-doc.org/ - https://github.com/sphinx-doc/sphinx" -SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" -S=${WORKDIR}/${P^} - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="doc latex" - -RDEPEND=" - =dev-python/Babel-1.3[${PYTHON_USEDEP}] - =dev-python/jinja-2.3[${PYTHON_USEDEP}] - >=dev-python/pygments-2.0[${PYTHON_USEDEP}] - >=dev-python/requests-2.5.0[${PYTHON_USEDEP}] - >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}] - >=dev-python/sphinxcontrib-htmlhelp-2.0.0[${PYTHON_USEDEP}] - >=dev-python/sphinxcontrib-serializinghtml-1.1.5[${PYTHON_USEDEP}] - dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/importlib_metadata-4.4[${PYTHON_USEDEP}] - ' python3_{8,9} pypy3) - latex? ( - dev-texlive/texlive-latexextra - dev-texlive/texlive-luatex - app-text/dvipng - )" -BDEPEND=" - doc? ( - dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] - media-gfx/graphviz - ) - test? ( - dev-python/html5lib[${PYTHON_USEDEP}] - virtual/imagemagick-tools[jpeg,png,svg] - dev-texlive/texlive-fontsextra - dev-texlive/texlive-latexextra - dev-texlive/texlive-luatex - app-text/dvipng - )" - -PATCHES=( - "${FILESDIR}/${PN}-3.2.1-doc-link.patch" - "${FILESDIR}/${PN}-4.3.2-doc-link.patch" -) - -distutils_enable_tests pytest - -python_prepare_all() { - # disable internet access - sed -i -e 's:^intersphinx_mapping:disabled_&:' \ - doc/conf.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc; then - esetup.py build_sphinx - HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) - fi -} - -python_test() { - mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die - local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" - - local EPYTEST_DESELECT=( - # these tests require Internet access - tests/test_build_latex.py::test_latex_images - tests/test_build_linkcheck.py::test_defaults - tests/test_build_linkcheck.py::test_defaults_json - tests/test_build_linkcheck.py::test_anchors_ignored - tests/test_build_linkcheck.py::test_linkcheck_exclude_documents - # TODO - tests/test_ext_autodoc_autoclass.py::test_classes - tests/test_ext_autodoc_autofunction.py::test_classes - ) - [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( - tests/test_build_linkcheck.py::test_connect_to_selfsigned_fails - tests/test_ext_autodoc.py::test_autodoc_inherited_members_None - tests/test_ext_autodoc.py::test_autodoc_typed_inherited_instance_variables - tests/test_ext_autodoc.py::test_autodoc_typed_instance_variables - tests/test_ext_autodoc.py::test_automethod_for_builtin - tests/test_ext_autodoc.py::test_cython - tests/test_ext_autodoc.py::test_partialfunction - tests/test_ext_autodoc_autoclass.py::test_autodoc_process_bases - tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type - tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type - tests/test_ext_autodoc_autodata.py::test_autodata_type_comment - tests/test_ext_autodoc_autofunction.py::test_builtin_function - tests/test_ext_autodoc_autofunction.py::test_methoddescriptor - tests/test_ext_autodoc_configs.py::test_autodoc_type_aliases - tests/test_ext_autodoc_configs.py::test_autodoc_typehints_signature - tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module - tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped - tests/test_pycode_parser.py::test_annotated_assignment - tests/test_util_inspect.py::test_isattributedescriptor - tests/test_util_typing.py::test_stringify_type_hints_pep_585 - ) - - epytest -} -- cgit v1.3