summaryrefslogtreecommitdiff
path: root/dev-python/pdoc3
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-15 02:02:03 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-15 02:02:03 +0000
commit16a4365c3b854e62b50726456ddb29bb78fd5038 (patch)
tree6de11adc70daeb6424485bb16be162d2cb277018 /dev-python/pdoc3
parent59d772d9463f8cf6a145a677bedbf377a0625aff (diff)
gentoo auto-resync : 15:12:2024 - 02:02:03
Diffstat (limited to 'dev-python/pdoc3')
-rw-r--r--dev-python/pdoc3/Manifest7
-rw-r--r--dev-python/pdoc3/files/pdoc3-0.10.0-update-tests.patch114
-rw-r--r--dev-python/pdoc3/files/pdoc3-TST-use-explicit-ClassWithNew-instead-of-typing.Gene.patch43
-rw-r--r--dev-python/pdoc3/pdoc3-0.10.0-r2.ebuild42
-rw-r--r--dev-python/pdoc3/pdoc3-0.11.3.ebuild2
5 files changed, 2 insertions, 206 deletions
diff --git a/dev-python/pdoc3/Manifest b/dev-python/pdoc3/Manifest
index 17e1004c006c..35a71e02ebf1 100644
--- a/dev-python/pdoc3/Manifest
+++ b/dev-python/pdoc3/Manifest
@@ -1,8 +1,3 @@
-AUX pdoc3-0.10.0-update-tests.patch 4107 BLAKE2B 546206d956e677166c61ad6028da5c72aadd1a3d405efbca2d903ded6e923c30d867b7ec49d0bd747594764e3e08c5ee82e4419373e62e2ecb9ee861fc7d490b SHA512 1423ae60b05eb2bfc0ef751758a56be682f04c6911bf118de870b15f8d6bfb36340a06b5a59e1fb4fe9c3721a46307e0adb747ba0b2dc6f8f55baa1235639591
-AUX pdoc3-TST-use-explicit-ClassWithNew-instead-of-typing.Gene.patch 1352 BLAKE2B c0e950e1f84f0e10e977e89eb84abdc52f80c242d2b0285142fd32830ce3f8825c3565b99720df249521a667860dadabfed4bc39503156a72158082f4b5e15e7 SHA512 df89ca51799dca760f22899eba9f12af590d9473235bee36d152fc00e7e9406aa3daa20a97dab012e2ca354076beb54961d90819373a5517fc9a49e5bb9a1bc5
-DIST pdoc3-0.10.0-fix-deprecation-warnings.patch 1447 BLAKE2B 6a4c554f3e0d3b66927cef22ab87a07c0711e6b01203bc37e54097f29f4c2547bd6daf721fa8745f941b1c74cd122222ccf8896ab6174c6775a47703ac02d17b SHA512 73d91a8f0d5747cefb972e1a6a028216688fde2f92cd8e5c4139dcebacc4a825e86345c419af7ccf5682dc6458ea5b20fd45799896555a8acadebc61da549140
-DIST pdoc3-0.10.0.tar.gz 86133 BLAKE2B 3bada6fb1b048c4eff7556108c29d7f92ee988332d160c4ff765c47bf0cf7a461ed90f93e7be25a7a3251f5d3e70492d23be7230a5ec4abb12612b7e0dd4b5b6 SHA512 646ffb9bceb4456a1ab36c840eb384858aab430443905bc71e62e9c71112a769b69e22cbd18a9d75b7968e2336cbbaa9072103f96dc2d0829ccc7515b057ca85
DIST pdoc3-0.11.3.tar.gz 98948 BLAKE2B fff171dd8ede3298f55c18b55d491d9715f415a85b34bb7bf29112a4ea0a94d6842f322fa35a5eeaf4548c425c6a2f6ae108c2422377c02144e6713b9d380372 SHA512 b516aa73e985cc567c755214956d7aedc7f02c24bdd2c162454d70b07db74bb3f3b44f91adf94893beb970202febcfb6715aaa416ff8ede5f7aa66b28c648237
-EBUILD pdoc3-0.10.0-r2.ebuild 996 BLAKE2B 02700f45d34f2d133166f5ba0ab86de7c1ead4ae85b2437b9a58979cba735997425abbcd4dbf1e786fcb1cb6f5b6084fe36e76db358caaace18ce160a836a1d0 SHA512 47b38753c3fe818865e4c8aa95e262ff3210c2ee6a44194d499b1ce85348dd8904b0de9a3898bf0ffbe2e8d1f1a56d6b5035b6264f90e88718cac96533d1e1c4
-EBUILD pdoc3-0.11.3.ebuild 727 BLAKE2B 23833bb5d73268c29143dd69c2ab45a27acde6223608fe2ecac1a887e3dd90e393da00ed0fb00c58d5a786c7c376aa2359a3d9af85b742c4e725b11d6aa30505 SHA512 802b1c3f0867dfcd0beaad3664220bacaa1714a3f22f0a832aa087081d81a53e6b1bfbc75dab773bb36410c88e761a9f74aa8ea3a709578bff5513e34ea41ca9
+EBUILD pdoc3-0.11.3.ebuild 726 BLAKE2B 26ce39ab61e50ee6b17d21dba6f85bbebebc4fe732e3f1f8f79785c80a4f3ddaa05a997130acb488a21e6908e17069a3fc8e93a257e7bc85ef01241c01b47c46 SHA512 76cca0402891c2efcfb75c26d3827976b56d5478f2bbc2b9165f30ec8974d22b320d51d37851ff195336859d17e9f635d572cac89776620f4fc365b69c822665
MISC metadata.xml 365 BLAKE2B 3339f5c2a1488984619c510a3f5bd81ca80ee26fb27fc01e0612632a43e57d1a69be9c4dc509d6a88e3f73cad88bbef3230020eeed1d20f1ec8d2010a335a6a9 SHA512 1614ffd6e83e036b288bcce03d2926429d0b5d41c1b7385053de1bcf5656bb6e03878b5c826f474cf4209f9036c533839ee6bce20780dbe626761ee0c295bf48
diff --git a/dev-python/pdoc3/files/pdoc3-0.10.0-update-tests.patch b/dev-python/pdoc3/files/pdoc3-0.10.0-update-tests.patch
deleted file mode 100644
index bd68ea2d8368..000000000000
--- a/dev-python/pdoc3/files/pdoc3-0.10.0-update-tests.patch
+++ /dev/null
@@ -1,114 +0,0 @@
-From 80af5d40d3ca39e2701c44941c1003ae6a280799 Mon Sep 17 00:00:00 2001
-From: Kernc <kerncece@gmail.com>
-Date: Sat, 29 Oct 2022 18:55:46 +0200
-Subject: [PATCH] CI: Bump min Python 3.7+ and update tests for Python 3.10
-
-Fix https://github.com/pdoc3/pdoc/issues/400
-Thanks @tjni
---- a/pdoc/__init__.py
-+++ b/pdoc/__init__.py
-@@ -1275,7 +1275,7 @@ def _formatannotation(annot):
- `typing.Optional`, `nptyping.NDArray` and other types.
-
- >>> _formatannotation(NewType('MyType', str))
-- 'MyType'
-+ 'pdoc.MyType'
- >>> _formatannotation(Optional[Tuple[Optional[int], None]])
- 'Optional[Tuple[Optional[int], None]]'
- """
---- a/pdoc/documentation.md
-+++ b/pdoc/documentation.md
-@@ -353,7 +353,7 @@ modified templates into the `directories` list of the
-
- Compatibility
- -------------
--`pdoc` requires Python 3.6+.
-+`pdoc` requires Python 3.7+.
- The last version to support Python 2.x is [pdoc3 0.3.x].
-
- [pdoc3 0.3.x]: https://pypi.org/project/pdoc3/0.3.13/
---- a/pdoc/test/__init__.py
-+++ b/pdoc/test/__init__.py
-@@ -126,7 +126,8 @@ class CliTest(unittest.TestCase):
- def setUp(self):
- pdoc.reset()
-
-- @unittest.skipIf(sys.version_info < (3, 7), 'pdoc._formatannotation fails on Py3.6')
-+ @unittest.skipIf(sys.version_info < (3, 10),
-+ 'HACK: _formatannotation() changed return value in Py3.10')
- def test_project_doctests(self):
- doctests = doctest.testmod(pdoc)
- assert not doctests.failed and doctests.attempted, doctests
-@@ -185,8 +186,12 @@ def test_html(self):
- '<object ',
- ' class="ident">_private',
- ' class="ident">_Private',
-- 'non_callable_routine',
- ]
-+ if sys.version_info >= (3, 10):
-+ include_patterns.append('non_callable_routine')
-+ else:
-+ exclude_patterns.append('non_callable_routine')
-+
- package_files = {
- '': self.PUBLIC_FILES,
- '.subpkg2': [f for f in self.PUBLIC_FILES
-@@ -356,8 +361,11 @@ def test_text(self):
- '_Private',
- 'subprocess',
- 'Hidden',
-- 'non_callable_routine',
- ]
-+ if sys.version_info >= (3, 10):
-+ include_patterns.append('non_callable_routine')
-+ else:
-+ exclude_patterns.append('non_callable_routine')
-
- with self.subTest(package=EXAMPLE_MODULE):
- with redirect_streams() as (stdout, _):
-@@ -543,8 +551,9 @@ class C:
- self.assertEqual(doc.doc['vars_dont'].docstring, '')
- self.assertIn('integer', doc.doc['but_clss_have_doc'].docstring)
-
-+ @unittest.skipIf(sys.version_info >= (3, 10), 'No builtin module "parser" in Py3.10')
- def test_builtin_methoddescriptors(self):
-- import parser
-+ import parser # TODO: replace with another public binary builtin
- with self.assertWarns(UserWarning):
- c = pdoc.Class('STType', pdoc.Module(parser), parser.STType)
- self.assertIsInstance(c.doc['compile'], pdoc.Function)
-@@ -906,9 +915,13 @@ def bug130_str_annotation(a: "str"):
- def bug253_newtype_annotation(a: CustomType):
- return
-
-+ expected = CustomType.__name__
-+ if sys.version_info > (3, 10):
-+ expected = f'{__name__}.{CustomType.__name__}'
-+
- self.assertEqual(
- pdoc.Function('bug253', mod, bug253_newtype_annotation).params(annotate=True),
-- ['a:\N{NBSP}CustomType'])
-+ [f'a:\N{NBSP}{expected}'])
-
- # typing.Callable bug
- def f(a: typing.Callable):
---- a/setup.py
-+++ b/setup.py
-@@ -2,8 +2,8 @@
- import sys
- from setuptools import setup, find_packages
-
--if sys.version_info < (3, 6):
-- sys.exit('ERROR: pdoc requires Python 3.6+')
-+if sys.version_info < (3, 7):
-+ sys.exit('ERROR: pdoc requires Python 3.7+')
-
-
- def _discover_tests():
-@@ -58,5 +58,5 @@ def _discover_tests():
- 'write_to': os.path.join('pdoc', '_version.py'),
- },
- test_suite="setup._discover_tests",
-- python_requires='>= 3.6',
-+ python_requires='>= 3.7',
- )
diff --git a/dev-python/pdoc3/files/pdoc3-TST-use-explicit-ClassWithNew-instead-of-typing.Gene.patch b/dev-python/pdoc3/files/pdoc3-TST-use-explicit-ClassWithNew-instead-of-typing.Gene.patch
deleted file mode 100644
index b969bf4727bc..000000000000
--- a/dev-python/pdoc3/files/pdoc3-TST-use-explicit-ClassWithNew-instead-of-typing.Gene.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 4aa70de2221a34a3003a7e5f52a9b91965f0e359 Mon Sep 17 00:00:00 2001
-From: Spencer Baugh <sbaugh@catern.com>
-Date: Thu, 23 Sep 2021 09:00:25 -0400
-Subject: [PATCH] TST: use explicit ClassWithNew instead of typing.Generic
-
-typing.Generic doesn't have a __new__ method in 3.9.
-
-Fixes https://github.com/pdoc3/pdoc/issues/355
----
- pdoc/test/__init__.py | 10 +++++++---
- 1 file changed, 7 insertions(+), 3 deletions(-)
-
-diff --git a/pdoc/test/__init__.py b/pdoc/test/__init__.py
-index e8c3d94a805b..8b67ab77d3f7 100644
---- a/pdoc/test/__init__.py
-+++ b/pdoc/test/__init__.py
-@@ -1043,16 +1043,20 @@ class Foo:
-
- self.assertEqual(pdoc.Class('C2', mod, C2).params(), ['a', 'b', 'c=None', '*', 'd=1', 'e'])
-
-- class G(typing.Generic[T]):
-+ class ClassWithNew:
-+ def __new__(self, arg):
-+ pass
-+
-+ class G(ClassWithNew):
- def __init__(self, a, b, c=100):
- pass
-
- self.assertEqual(pdoc.Class('G', mod, G).params(), ['a', 'b', 'c=100'])
-
-- class G2(typing.Generic[T]):
-+ class G2(ClassWithNew):
- pass
-
-- self.assertEqual(pdoc.Class('G2', mod, G2).params(), ['*args', '**kwds'])
-+ self.assertEqual(pdoc.Class('G2', mod, G2).params(), ['arg'])
-
- def test_url(self):
- mod = pdoc.Module(EXAMPLE_MODULE)
---
-2.32.0
-
diff --git a/dev-python/pdoc3/pdoc3-0.10.0-r2.ebuild b/dev-python/pdoc3/pdoc3-0.10.0-r2.ebuild
deleted file mode 100644
index 326e968a0b58..000000000000
--- a/dev-python/pdoc3/pdoc3-0.10.0-r2.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..12} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Auto-generate API documentation for Python projects"
-HOMEPAGE="https://pdoc3.github.io/pdoc/"
-SRC_URI+="
- https://github.com/pdoc3/pdoc/commit/14cd51c1b7431cdec5c3e7510b8a0e3b66c2f7d4.patch
- -> ${PN}-0.10.0-fix-deprecation-warnings.patch
-"
-
-LICENSE="AGPL-3+"
-SLOT="0"
-KEYWORDS="amd64 ~x86"
-
-RDEPEND="
- dev-python/mako[${PYTHON_USEDEP}]
- >=dev-python/markdown-3.0[${PYTHON_USEDEP}]
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}/${PN}-TST-use-explicit-ClassWithNew-instead-of-typing.Gene.patch"
- "${FILESDIR}/${PN}-0.10.0-update-tests.patch"
- "${DISTDIR}"/${PN}-0.10.0-fix-deprecation-warnings.patch
-)
-
-python_prepare_all() {
- distutils-r1_python_prepare_all
- sed -i \
- -e "/setuptools_git/d" \
- -e "/setuptools_scm/d" \
- setup.py || die
-}
-
-distutils_enable_tests unittest
diff --git a/dev-python/pdoc3/pdoc3-0.11.3.ebuild b/dev-python/pdoc3/pdoc3-0.11.3.ebuild
index 3dac2f0283b2..515a6562c75f 100644
--- a/dev-python/pdoc3/pdoc3-0.11.3.ebuild
+++ b/dev-python/pdoc3/pdoc3-0.11.3.ebuild
@@ -13,7 +13,7 @@ HOMEPAGE="https://pdoc3.github.io/pdoc/"
LICENSE="AGPL-3+"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
RDEPEND="
dev-python/mako[${PYTHON_USEDEP}]