diff options
| author | Michał Górny <mgorny@gentoo.org> | 2026-03-26 05:27:53 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2026-03-26 05:44:51 +0100 |
| commit | 79a57ca2a721e3adfbc9d68b719e7ecd586eb36b (patch) | |
| tree | 759e5721a02f55a95a4ba9d548bcaf7cf4a173d9 /dev-python | |
| parent | b4a4ae72e86abfd1f19fa2a05704dd6b075c4671 (diff) | |
| download | gentoo-79a57ca2a721e3adfbc9d68b719e7ecd586eb36b.tar.gz gentoo-79a57ca2a721e3adfbc9d68b719e7ecd586eb36b.tar.bz2 gentoo-79a57ca2a721e3adfbc9d68b719e7ecd586eb36b.zip | |
dev-python/xdoctest: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/xdoctest/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/xdoctest/files/xdoctest-1.2.0-py314.patch | 58 | ||||
| -rw-r--r-- | dev-python/xdoctest/xdoctest-1.2.0-r1.ebuild | 52 | ||||
| -rw-r--r-- | dev-python/xdoctest/xdoctest-1.2.0.ebuild | 45 |
4 files changed, 0 insertions, 156 deletions
diff --git a/dev-python/xdoctest/Manifest b/dev-python/xdoctest/Manifest index edad6c312902e..0f051b814cb3f 100644 --- a/dev-python/xdoctest/Manifest +++ b/dev-python/xdoctest/Manifest @@ -1,2 +1 @@ -DIST xdoctest-1.2.0.gh.tar.gz 231269 BLAKE2B 5593bfa8a2d4ff6ff13db592e83325c6bd30e6614db969aec7b4072ec788a203024a0e4066b69a34782cc99252d0601a0a3db0c2b70cf5b7f58e9f6dad2de89d SHA512 a33509e494919bbcb630307b0a71f784d7e2be1d1c6422e49c2286218f21202088faa4baabc5e33a836225ca1fd0c12937de15a9a5b90ac4a80f35c8218b0071 DIST xdoctest-1.3.0.gh.tar.gz 233012 BLAKE2B 87a10ae11f94e013191535c45b5e92fb44ed2e3051c4b2d38a7f8eabcf521cd0c5e22a8d40eaa42788e1ecc3b4bc90734f9b29ca1f5df8ef833ca1b3fd39df5e SHA512 5a245415f318f09c403fa18d2538240e21c9820e7c7db8830acc3ef32a1f886f7aaffe918d6188ca30e8e0a542f077e62dc786bcadc00a07a1271b603b8aa5f2 diff --git a/dev-python/xdoctest/files/xdoctest-1.2.0-py314.patch b/dev-python/xdoctest/files/xdoctest-1.2.0-py314.patch deleted file mode 100644 index 2c143ae4b1574..0000000000000 --- a/dev-python/xdoctest/files/xdoctest-1.2.0-py314.patch +++ /dev/null @@ -1,58 +0,0 @@ -diff --git a/setup.py b/setup.py -index e9c0f587..06b1eeb0 100755 ---- a/setup.py -+++ b/setup.py -@@ -18,7 +18,8 @@ def parse_version(fpath): - - def static_parse(varname, fpath): - """ -- Statically parse the a constant variable from a python file -+ Statically parse the a constant variable from a python file. -+ Raise an error if the variable is not a constant. - """ - import ast - -@@ -29,10 +30,13 @@ def static_parse(varname, fpath): - pt = ast.parse(sourcecode) - - class StaticVisitor(ast.NodeVisitor): -- def visit_Assign(self, node): -+ def visit_Assign(self, node: ast.Assign): - for target in node.targets: - if getattr(target, "id", None) == varname: -- self.static_value = node.value.s -+ value: ast.expr = node.value -+ if not isinstance(value, ast.Constant): -+ raise ValueError("variable {!r} is not a constant".format(varname)) -+ self.static_value = value.value - - visitor = StaticVisitor() - visitor.visit(pt) -diff --git a/src/xdoctest/static_analysis.py b/src/xdoctest/static_analysis.py -index d8171b2..cb1f798 100644 ---- a/src/xdoctest/static_analysis.py -+++ b/src/xdoctest/static_analysis.py -@@ -21,8 +21,10 @@ import platform - PLAT_IMPL = platform.python_implementation() - - --IS_PY_GE_308 = sys.version_info[0] >= 3 and sys.version_info[1] >= 8 --IS_PY_GE_312 = sys.version_info[0] >= 3 and sys.version_info[1] >= 12 -+IS_PY_GE_312 = sys.version_info[0:2] >= (3, 12) -+IS_PY_GE_308 = sys.version_info[0:2] >= (3, 8) # type: bool -+IS_PY_LT_314 = sys.version_info[0:2] < (3, 14) # type: bool -+ - - if IS_PY_GE_312: - from xdoctest import _tokenize as tokenize -@@ -771,7 +773,9 @@ def _parse_static_node_value(node): - values = map(_parse_static_node_value, node.values) - value = OrderedDict(zip(keys, values)) - # value = dict(zip(keys, values)) -- elif isinstance(node, (ast.NameConstant)): -+ elif IS_PY_LT_314 and isinstance(node, (ast.NameConstant)): -+ value = node.value -+ elif isinstance(node, ast.Constant): - value = node.value - else: - print(node.__dict__) diff --git a/dev-python/xdoctest/xdoctest-1.2.0-r1.ebuild b/dev-python/xdoctest/xdoctest-1.2.0-r1.ebuild deleted file mode 100644 index 9a33f65f1229c..0000000000000 --- a/dev-python/xdoctest/xdoctest-1.2.0-r1.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{11..14} ) - -inherit distutils-r1 - -DESCRIPTION="A rewrite of Python's builtin doctest module but without all the weirdness" -HOMEPAGE=" - https://github.com/Erotemic/xdoctest/ - https://pypi.org/project/xdoctest/ -" -SRC_URI=" - https://github.com/Erotemic/xdoctest/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" - -RDEPEND=" - dev-python/pytest[${PYTHON_USEDEP}] -" -# dev-python/nbformat-5.1.{0..2} did not install package data -BDEPEND=" - test? ( - >=dev-python/nbformat-5.1.2-r1[${PYTHON_USEDEP}] - ) -" - -EPYTEST_PLUGIN_LOAD_VIA_ENV=1 -EPYTEST_PLUGINS=( "${PN}" ) -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -PATCHES=( - # https://github.com/Erotemic/xdoctest/pull/168 - # + parts of https://github.com/Erotemic/xdoctest/pull/177 - "${FILESDIR}/${P}-py314.patch" -) - -python_test() { - local EPYTEST_DESELECT=( - tests/test_pytest_cli.py::test_simple_pytest_import_error_cli - ) - - epytest --pyargs tests xdoctest -} diff --git a/dev-python/xdoctest/xdoctest-1.2.0.ebuild b/dev-python/xdoctest/xdoctest-1.2.0.ebuild deleted file mode 100644 index c2238df30d701..0000000000000 --- a/dev-python/xdoctest/xdoctest-1.2.0.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{11..13} ) - -inherit distutils-r1 - -DESCRIPTION="A rewrite of Python's builtin doctest module but without all the weirdness" -HOMEPAGE=" - https://github.com/Erotemic/xdoctest/ - https://pypi.org/project/xdoctest/ -" -SRC_URI=" - https://github.com/Erotemic/xdoctest/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" - -RDEPEND=" - dev-python/pytest[${PYTHON_USEDEP}] -" -# dev-python/nbformat-5.1.{0..2} did not install package data -BDEPEND=" - test? ( - >=dev-python/nbformat-5.1.2-r1[${PYTHON_USEDEP}] - ) -" - -EPYTEST_PLUGIN_LOAD_VIA_ENV=1 -EPYTEST_PLUGINS=( "${PN}" ) -distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=( - tests/test_pytest_cli.py::test_simple_pytest_import_error_cli - ) - - epytest --pyargs tests xdoctest -} |
