Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / python-pyotp
Commits: 79658560 by Jelle van der Waa at 2024-11-29T21:00:21+01:00 upgpkg: 2.9.0-3: Rebuild for Python 3.13 - - - - - 3 changed files: - .SRCINFO - + 0001-docs-fix-deprecated-intersphinx_mapping-format.patch - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,7 +1,7 @@ pkgbase = python-pyotp pkgdesc = Python library for generating and verifying one-time passwords pkgver = 2.9.0 - pkgrel = 2 + pkgrel = 3 url = https://pyotp.readthedocs.io/ arch = any license = MIT @@ -16,7 +16,9 @@ pkgbase = python-pyotp depends = python options = !makeflags source = git+https://github.com/pyotp/pyotp#tag=v2.9.0?signed + source = 0001-docs-fix-deprecated-intersphinx_mapping-format.patch validpgpkeys = 29BCBADB4ECAAAC2382699388AFAFCD242818A52 sha512sums = bf3519fa0ddba2282ea3d0bc5444277bd9f305cf100b372266bf1ae72edab1b6dd13e00acfaf566061bd346aa4dd42e3d738be58f3c401387f0691dffb362b9f + sha512sums = 0d716d99844a7d2fad3678b41f951b903c8021c7f322fbd5741f03e4dec2484e9e0d281816341343824f0bb6e903673ee83418a43b0d6d2b23ad0940320716a9 pkgname = python-pyotp ===================================== 0001-docs-fix-deprecated-intersphinx_mapping-format.patch ===================================== @@ -0,0 +1,28 @@ +From 1287e4fde57b82a8c5654524a76979d4bfe67fbf Mon Sep 17 00:00:00 2001 +From: Jelle van der Waa <je...@archlinux.org> +Date: Fri, 29 Nov 2024 20:53:26 +0100 +Subject: [PATCH] docs: fix deprecated intersphinx_mapping format + +Since Sphinx 8.0 the docs cannot be build as the old +`intersphinx_mapping` format is still used which is deprecated since +Sphinx 0.5. +--- + docs/conf.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/conf.py b/docs/conf.py +index f508b98..13dc6fc 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -15,7 +15,7 @@ source_suffix = [".rst", ".md"] + exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] + pygments_style = "sphinx" + intersphinx_mapping = { +- "https://docs.python.org/3": None, ++ "python": ("https://docs.python.org/3", None), + } + templates_path = [""] + ogp_site_url = "https://pyauth.github.io/pyotp/" +-- +2.47.1 + ===================================== PKGBUILD ===================================== @@ -4,7 +4,7 @@ pkgname=python-pyotp _pkgname=pyotp pkgver=2.9.0 -pkgrel=2 +pkgrel=3 pkgdesc='Python library for generating and verifying one-time passwords' url='https://pyotp.readthedocs.io/' arch=('any') @@ -12,8 +12,10 @@ license=('MIT') depends=('python') makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'python-sphinx' 'python-guzzle-sphinx-theme' 'python-sphinxext-opengraph') options=('!makeflags') -source=("git+https://github.com/pyotp/pyotp#tag=v$pkgver?signed") -sha512sums=('bf3519fa0ddba2282ea3d0bc5444277bd9f305cf100b372266bf1ae72edab1b6dd13e00acfaf566061bd346aa4dd42e3d738be58f3c401387f0691dffb362b9f') +source=("git+https://github.com/pyotp/pyotp#tag=v$pkgver?signed" + "0001-docs-fix-deprecated-intersphinx_mapping-format.patch") +sha512sums=('bf3519fa0ddba2282ea3d0bc5444277bd9f305cf100b372266bf1ae72edab1b6dd13e00acfaf566061bd346aa4dd42e3d738be58f3c401387f0691dffb362b9f' + '0d716d99844a7d2fad3678b41f951b903c8021c7f322fbd5741f03e4dec2484e9e0d281816341343824f0bb6e903673ee83418a43b0d6d2b23ad0940320716a9') validpgpkeys=('29BCBADB4ECAAAC2382699388AFAFCD242818A52') # Andrey Kislyuk <kisl...@gmail.com> pkgver() { @@ -21,6 +23,11 @@ pkgver() { git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } +prepare() { + cd ${_pkgname} + patch -Np1 -i "${srcdir}/0001-docs-fix-deprecated-intersphinx_mapping-format.patch" +} + build() { cd ${_pkgname} python -m build --wheel --skip-dependency-check --no-isolation View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyotp/-/commit/79658560901e1f8678bd305b3b6e0ec29a865857 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyotp/-/commit/79658560901e1f8678bd305b3b6e0ec29a865857 You're receiving this email because of your account on gitlab.archlinux.org.