Daniel Bermond pushed to branch main at Arch Linux / Packaging / Packages / python-lmdb
Commits: e6839bb7 by Daniel Bermond at 2026-03-01T12:42:37-03:00 python-pkg_resources deprecation https://archlinux.org/todo/python-pkg_resources-deprecation/ - - - - - 5 changed files: - .SRCINFO - + 010-python-lmdb-replace-pkg_resources-due-to-deprecation-in-setuptools-82.patch - + LICENSES/OLDAP-2.8.txt - PKGBUILD - REUSE.toml Changes: ===================================== .SRCINFO ===================================== @@ -16,6 +16,8 @@ pkgbase = python-lmdb depends = python depends = python-cffi source = https://github.com/jnwatson/py-lmdb/archive/py-lmdb_1.7.5/python-lmdb-1.7.5.tar.gz + source = 010-python-lmdb-replace-pkg_resources-due-to-deprecation-in-setuptools-82.patch sha256sums = 715a642f6d8df1dbd2ad47d30a567982350213388ab4559fb418be4c1eb3a320 + sha256sums = f1e175793c7a020361a98acba9bc190ccf3dae8c9800c0d207e63a2419aa8e70 pkgname = python-lmdb ===================================== 010-python-lmdb-replace-pkg_resources-due-to-deprecation-in-setuptools-82.patch ===================================== @@ -0,0 +1,22 @@ +--- a/examples/keystore/webapi.py ++++ b/examples/keystore/webapi.py +@@ -1,12 +1,17 @@ + + from __future__ import absolute_import +-import pkg_resources ++ ++try: ++ from importlib.resources import files ++except ImportError: ++ from importlib_resources import files ++ + import keystore.web + import twisted.web.server + + + def read_resource(path): +- return pkg_resources.resource_string('keystore', path) ++ return files("keystore").joinpath(path).read_bytes() + + + class KeyResource(keystore.web.DeferrableResource): ===================================== LICENSES/OLDAP-2.8.txt ===================================== @@ -0,0 +1,20 @@ +The OpenLDAP Public License +Version 2.8, 17 August 2003 + +Redistribution and use of this software and associated documentation ("Software"), with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions in source form must retain copyright statements and notices, + +2. Redistributions in binary form must reproduce applicable copyright statements and notices, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution, and + +3. Redistributions must contain a verbatim copy of this document. + +The OpenLDAP Foundation may revise this license from time to time. Each revision is distinguished by a version number. You may use this Software under terms of this license revision or under the terms of any subsequent revision of the license. + +THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The names of the authors and copyright holders must not be used in advertising or otherwise to promote the sale, use or other dealing in this Software without specific, written prior permission. Title to copyright in this Software shall at all times remain with copyright holders. + +OpenLDAP is a registered trademark of the OpenLDAP Foundation. + +Copyright 1999-2003 The OpenLDAP Foundation, Redwood City, California, USA. All Rights Reserved. Permission to copy and distribute verbatim copies of this document is granted. ===================================== PKGBUILD ===================================== @@ -22,8 +22,14 @@ makedepends=( 'python-wheel') checkdepends=( 'python-pytest') -source=("https://github.com/jnwatson/py-lmdb/archive/${_srcname}_${pkgver}/${pkgname}-${pkgver}.tar.gz") -sha256sums=('715a642f6d8df1dbd2ad47d30a567982350213388ab4559fb418be4c1eb3a320') +source=("https://github.com/jnwatson/py-lmdb/archive/${_srcname}_${pkgver}/${pkgname}-${pkgver}.tar.gz" + '010-python-lmdb-replace-pkg_resources-due-to-deprecation-in-setuptools-82.patch') +sha256sums=('715a642f6d8df1dbd2ad47d30a567982350213388ab4559fb418be4c1eb3a320' + 'f1e175793c7a020361a98acba9bc190ccf3dae8c9800c0d207e63a2419aa8e70') + +prepare() { + patch -d "${_srcname}-${_srcname}_${pkgver}" -Np1 -i "${srcdir}/010-python-lmdb-replace-pkg_resources-due-to-deprecation-in-setuptools-82.patch" +} build() { cd "${_srcname}-${_srcname}_${pkgver}" ===================================== REUSE.toml ===================================== @@ -20,3 +20,10 @@ path = [ ] SPDX-FileCopyrightText = "Arch Linux contributors" SPDX-License-Identifier = "0BSD" + +[[annotations]] +path = [ + "010-python-lmdb-replace-pkg_resources-due-to-deprecation-in-setuptools-82.patch", +] +SPDX-FileCopyrightText = "python-lmdb contributors" +SPDX-License-Identifier = "OLDAP-2.8" View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-lmdb/-/commit/e6839bb7c0a1cdff47b70a033521211f629758e5 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-lmdb/-/commit/e6839bb7c0a1cdff47b70a033521211f629758e5 You're receiving this email because of your account on gitlab.archlinux.org.
