George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / python-passlib
Commits: 616790e1 by George Rawlinson at 2026-07-05T08:49:40+00:00 upgpkg: 1.7.4-12 https://archlinux.org/todo/python-pkg_resources-deprecation/ - - - - - 4 changed files: - .SRCINFO - PKGBUILD - REUSE.toml - + remove-pkg_resources.patch Changes: ===================================== .SRCINFO ===================================== @@ -1,7 +1,7 @@ pkgbase = python-passlib pkgdesc = A password hashing library for Python pkgver = 1.7.4 - pkgrel = 11 + pkgrel = 12 url = https://passlib.readthedocs.io/en/stable arch = any license = BSD-3-Clause @@ -17,7 +17,9 @@ pkgbase = python-passlib optdepends = python-scrypt: accelerate SCrypt hashes source = https://pypi.io/packages/source/p/passlib/passlib-1.7.4.tar.gz source = python-passlib-bcrypt.patch + source = remove-pkg_resources.patch sha512sums = 350bd6da5ac57e6c266ffe8bf9684c8c2cce3fc6b513eb6c7bc1b302d2d8a1b701e9c01c953782520a2ac37b7ec1f6d7bd5855f99f6ee0e2dbbf33f2d49a9530 sha512sums = c4c889f14485b75746f2424149b64bceb2a47fd40f3b847ed2ef4af5730ea5287d6fff61cdb805042f639f15f0cf70a54b0950912c19b87508dc8c0b267c1f5b + sha512sums = f178cff2241976f80e4240dad18e2b7cf83ba749def30a03f452da2bebc422aed2a8903bbee4cfeaa2d7690943fd475257bedaef94df09d26dfecf87bdfcc042 pkgname = python-passlib ===================================== PKGBUILD ===================================== @@ -3,7 +3,7 @@ pkgname=python-passlib pkgver=1.7.4 -pkgrel=11 +pkgrel=12 pkgdesc="A password hashing library for Python" arch=('any') url="https://passlib.readthedocs.io/en/stable" @@ -15,14 +15,18 @@ optdepends=("python-fastpbkdf2: accelerate PBKDF2-based hashes" makedepends=('python-setuptools') checkdepends=('python-nose' 'python-bcrypt' 'python-django' 'python-fastpbkdf2' 'python-scrypt') source=("https://pypi.io/packages/source/p/passlib/passlib-$pkgver.tar.gz" - python-passlib-bcrypt.patch) + python-passlib-bcrypt.patch + remove-pkg_resources.patch) sha512sums=('350bd6da5ac57e6c266ffe8bf9684c8c2cce3fc6b513eb6c7bc1b302d2d8a1b701e9c01c953782520a2ac37b7ec1f6d7bd5855f99f6ee0e2dbbf33f2d49a9530' - 'c4c889f14485b75746f2424149b64bceb2a47fd40f3b847ed2ef4af5730ea5287d6fff61cdb805042f639f15f0cf70a54b0950912c19b87508dc8c0b267c1f5b') + 'c4c889f14485b75746f2424149b64bceb2a47fd40f3b847ed2ef4af5730ea5287d6fff61cdb805042f639f15f0cf70a54b0950912c19b87508dc8c0b267c1f5b' + 'f178cff2241976f80e4240dad18e2b7cf83ba749def30a03f452da2bebc422aed2a8903bbee4cfeaa2d7690943fd475257bedaef94df09d26dfecf87bdfcc042') prepare() { cd "$srcdir"/passlib-$pkgver patch -Np1 -i ../python-passlib-bcrypt.patch + + patch -Np1 -i ../remove-pkg_resources.patch } check() { ===================================== REUSE.toml ===================================== @@ -3,20 +3,8 @@ version = 1 [[annotations]] path = [ "PKGBUILD", - "README.md", - "keys/**", ".SRCINFO", ".nvchecker.toml", - "*.install", - "*.sysusers", - "*.tmpfiles", - "*.logrotate", - "*.pam", - "*.service", - "*.socket", - "*.timer", - "*.desktop", - "*.hook", ] SPDX-FileCopyrightText = "Arch Linux contributors" SPDX-License-Identifier = "0BSD" @@ -24,6 +12,7 @@ SPDX-License-Identifier = "0BSD" [[annotations]] path = [ "python-passlib-bcrypt.patch", + "remove-pkg_resources.patch", ] SPDX-FileCopyrightText = "python-passlib contributors" SPDX-License-Identifier = "BSD-3-Clause" ===================================== remove-pkg_resources.patch ===================================== @@ -0,0 +1,20 @@ +--- a/passlib/pwd.py ++++ b/passlib/pwd.py +@@ -13,7 +13,7 @@ except ImportError: + from collections import MutableMapping + from math import ceil, log as logf + import logging; log = logging.getLogger(__name__) +-import pkg_resources ++import importlib_resources + import os + # site + # pkg +@@ -122,7 +122,7 @@ def _open_asset_path(path, encoding=None): + if not sep: + raise ValueError("asset path must be absolute file path " + "or use 'pkg.name:sub/path' format: %r" % (path,)) +- return pkg_resources.resource_stream(package, subpath) ++ return importlib_resources.files(package).joinpath(subpath) + + + #: type aliases View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-passlib/-/commit/616790e1db205d56f92c9aafa536f11cf3e5f9af -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-passlib/-/commit/616790e1db205d56f92c9aafa536f11cf3e5f9af You're receiving this email because of your account on gitlab.archlinux.org. Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications | Help: https://gitlab.archlinux.org/help
