Files
gentoo-zh/dev-python/pywikibot/pywikibot-10.7.4.ebuild
T
Zakk 10c0bf1feb treewide: drop python3_11 from PYTHON_COMPAT
python3_11 no longer resolves for packages depending on dev-python/requests,
which dropped it. Raise the PYTHON_COMPAT floor to python3_12 across every
package in the overlay that still allowed python3_11, keeping the python3_14
profile default (ceiling raised to python3_14 where it was lower).

python3_15 is only kept where it was already declared and verified on 3.15
(mwparserfromhell: builds and tests pass); it is not added elsewhere, since
python3.15 is not installed here and could not be build-tested.

Bug: https://github.com/gentoo-zh/overlay/issues/11037
2026-07-18 21:06:53 +10:00

42 lines
977 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit pypi distutils-r1
DESCRIPTION="To interact with MediaWiki API (for example Wikipedia, Wikimedia Commons)"
HOMEPAGE="
https://www.mediawiki.org/wiki/Manual:Pywikibot
https://github.com/wikimedia/pywikibot
https://pypi.org/project/pywikibot
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/mwparserfromhell[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
"
# TODO drop this after releasing of
# https://github.com/wikimedia/pywikibot/commit/af271172a09b39f9f68d707520dad454cefd74db
# We have this against
# "
# License classifiers are deprecated.
# `project.license` as a TOML table is deprecated
# "
src_prepare() {
default
# Remove deprecared license lines
sed -i '/^license = {.*}/d' pyproject.toml || die
sed -i '/"License ::/d' pyproject.toml || die
}