George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / python-deprecated
Commits: bfa47726 by loqs at 2026-03-24T00:37:14+00:00 Remove pkg_resources Related https://archlinux.org/todo/python-pkg_resources-deprecation/. - - - - - 5 changed files: - .SRCINFO - + LICENSES/MIT.txt - PKGBUILD - REUSE.toml - + python-deprecated-1.3.0-remove-pkg_resources.patch Changes: ===================================== .SRCINFO ===================================== @@ -5,6 +5,7 @@ pkgbase = python-deprecated url = https://github.com/tantale/deprecated arch = any license = MIT + checkdepends = python-packaging checkdepends = python-pytest makedepends = git makedepends = python-setuptools @@ -14,6 +15,8 @@ pkgbase = python-deprecated depends = python depends = python-wrapt source = git+https://github.com/tantale/deprecated.git#tag=v1.3.1 + source = python-deprecated-1.3.0-remove-pkg_resources.patch sha512sums = 0ae88b26d6de25aa6bf543d3bb2c5ac51fd5bf99ae10e46dc3dd9affc041e39790991c2d07d3f1a3ef8ee7464f07cdd596f59813128b83a138cf8887a1b95a88 + sha512sums = 029b0504220b10438933ebda00696b7b95f095177db0e3baa95b8b36e4402338581b174139e2d038d9dad66717feb87385a04dcfd44d82c7593fbd0a9c28f1e3 pkgname = python-deprecated ===================================== LICENSES/MIT.txt ===================================== @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) <year> <copyright holders> + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. ===================================== PKGBUILD ===================================== @@ -9,9 +9,16 @@ license=('MIT') arch=('any') depends=('python' 'python-wrapt') makedepends=('git' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel') -checkdepends=('python-pytest') -source=("git+https://github.com/tantale/deprecated.git#tag=v$pkgver") -sha512sums=('0ae88b26d6de25aa6bf543d3bb2c5ac51fd5bf99ae10e46dc3dd9affc041e39790991c2d07d3f1a3ef8ee7464f07cdd596f59813128b83a138cf8887a1b95a88') +checkdepends=('python-packaging' 'python-pytest') +source=("git+https://github.com/tantale/deprecated.git#tag=v$pkgver" + "python-deprecated-1.3.0-remove-pkg_resources.patch") +sha512sums=('0ae88b26d6de25aa6bf543d3bb2c5ac51fd5bf99ae10e46dc3dd9affc041e39790991c2d07d3f1a3ef8ee7464f07cdd596f59813128b83a138cf8887a1b95a88' + '029b0504220b10438933ebda00696b7b95f095177db0e3baa95b8b36e4402338581b174139e2d038d9dad66717feb87385a04dcfd44d82c7593fbd0a9c28f1e3') + +prepare() { + cd deprecated + patch -Np1 -i ../python-deprecated-1.3.0-remove-pkg_resources.patch +} build() { cd deprecated ===================================== REUSE.toml ===================================== @@ -20,3 +20,10 @@ path = [ ] SPDX-FileCopyrightText = "Arch Linux contributors" SPDX-License-Identifier = "0BSD" + +[[annotations]] +path = [ + "python-deprecated-1.3.0-remove-pkg_resources.patch", +] +SPDX-FileCopyrightText = "python-deprecated contributors" +SPDX-License-Identifier = "MIT" ===================================== python-deprecated-1.3.0-remove-pkg_resources.patch ===================================== @@ -0,0 +1,20 @@ +diff --git a/tests/test.py b/tests/test.py +index 3d5aa21..004bdff 100644 +--- a/tests/test.py ++++ b/tests/test.py +@@ -1,5 +1,5 @@ + # coding: utf-8 +-import pkg_resources ++from packaging.version import parse as parse_version + + import deprecated + +@@ -13,7 +13,7 @@ def test_deprecated_has_docstring(): + def test_deprecated_has_version(): + # The deprecated package must have a valid version number + assert deprecated.__version__ is not None +- version = pkg_resources.parse_version(deprecated.__version__) ++ version = parse_version(deprecated.__version__) + + # .. note:: + # View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-deprecated/-/commit/bfa477262a8b7e084bbe984ace534c4e35666286 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-deprecated/-/commit/bfa477262a8b7e084bbe984ace534c4e35666286 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
