George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / 
python-python-discovery


Commits:
efe12914 by George Rawlinson at 2026-08-18T01:18:57+00:00
upgpkg: 1.5.2-1

- - - - -


4 changed files:

- .SRCINFO
- PKGBUILD
- REUSE.toml
- + no-vermin.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
 pkgbase = python-python-discovery
        pkgdesc = Python interpreter discovery
-       pkgver = 1.5.1
+       pkgver = 1.5.2
        pkgrel = 1
        url = https://python-discovery.readthedocs.io
        arch = any
@@ -15,8 +15,11 @@ pkgbase = python-python-discovery
        makedepends = python-hatch-vcs
        depends = python
        depends = python-filelock
-       source = 
python-python-discovery::git+https://github.com/tox-dev/python-discovery#tag=1.5.1
-       sha512sums = 
48e56c199308819a09cea4cdef18a944223f6bffad220d6033b11284c3de281e74647e6c4951c12b0da09ddd2227f49438b8c915eea809035f5b5317be79fc92
-       b2sums = 
9ab7d447bedef9566f5b430202573872d7f1e971f2aab67c912d2bba51f5d0976387cf9a840b51303dc883cb05d8b8ac9af8545dd0062d890342fc89faf5c258
+       source = 
python-python-discovery::git+https://github.com/tox-dev/python-discovery#tag=1.5.2
+       source = no-vermin.patch
+       sha512sums = 
edc97b94624c28ec7492df107a007abf81e3799eb37070cec6d50b6c78be2fc2ce4447e8449688b6435846efde12644463462f96bd7fcbfb9e06926e9ee36347
+       sha512sums = 
c9057e2e74dde6819b2f43cf6f29c6f0903da9f12784fc1e84fc24b972a8d114fb55c60630f65106cee1e2c02e043ddfff08f5729c98d3e35a32c0b83ec184cd
+       b2sums = 
36a90fff40b3f980990e17193f4cdadccb3fb6ad2554983b79d7ae931818906a96cb5d9c6b4e184d3956d56f58790838a78571df351b77aae37c85939dc48ec8
+       b2sums = 
e23fac44ff0fe6dc0eb4f19da9bef5410c0e4d03b2992d2f79eba45a4b69c81173c11feb13e84d8d440938b67aa65f3ada6fe6583f627f828a83fa70863ec507
 
 pkgname = python-python-discovery


=====================================
PKGBUILD
=====================================
@@ -1,7 +1,7 @@
 # Maintainer: George Rawlinson <[email protected]>
 
 pkgname=python-python-discovery
-pkgver=1.5.1
+pkgver=1.5.2
 pkgrel=1
 pkgdesc='Python interpreter discovery'
 arch=(any)
@@ -23,9 +23,21 @@ checkdepends=(
   python-pytest-mock
   python-setuptools
 )
-source=("$pkgname::git+https://github.com/tox-dev/python-discovery#tag=$pkgver";)
-sha512sums=('48e56c199308819a09cea4cdef18a944223f6bffad220d6033b11284c3de281e74647e6c4951c12b0da09ddd2227f49438b8c915eea809035f5b5317be79fc92')
-b2sums=('9ab7d447bedef9566f5b430202573872d7f1e971f2aab67c912d2bba51f5d0976387cf9a840b51303dc883cb05d8b8ac9af8545dd0062d890342fc89faf5c258')
+source=(
+  "$pkgname::git+https://github.com/tox-dev/python-discovery#tag=$pkgver";
+  no-vermin.patch
+)
+sha512sums=('edc97b94624c28ec7492df107a007abf81e3799eb37070cec6d50b6c78be2fc2ce4447e8449688b6435846efde12644463462f96bd7fcbfb9e06926e9ee36347'
+            
'c9057e2e74dde6819b2f43cf6f29c6f0903da9f12784fc1e84fc24b972a8d114fb55c60630f65106cee1e2c02e043ddfff08f5729c98d3e35a32c0b83ec184cd')
+b2sums=('36a90fff40b3f980990e17193f4cdadccb3fb6ad2554983b79d7ae931818906a96cb5d9c6b4e184d3956d56f58790838a78571df351b77aae37c85939dc48ec8'
+        
'e23fac44ff0fe6dc0eb4f19da9bef5410c0e4d03b2992d2f79eba45a4b69c81173c11feb13e84d8d440938b67aa65f3ada6fe6583f627f828a83fa70863ec507')
+
+prepare() {
+  cd "$pkgname"
+
+  # we don't want to detect old python versions
+  patch -p1 -i "$srcdir/no-vermin.patch"
+}
 
 build() {
   cd "$pkgname"


=====================================
REUSE.toml
=====================================
@@ -5,6 +5,7 @@ path = [
     "PKGBUILD",
     ".SRCINFO",
     ".nvchecker.toml",
+    "no-vermin.patch",
 ]
 SPDX-FileCopyrightText = "Arch Linux contributors"
 SPDX-License-Identifier = "0BSD"


=====================================
no-vermin.patch
=====================================
@@ -0,0 +1,27 @@
+diff --git a/tests/test_py_info_collect.py b/tests/test_py_info_collect.py
+index 8110dc7..292f3c0 100644
+--- a/tests/test_py_info_collect.py
++++ b/tests/test_py_info_collect.py
+@@ -11,7 +11,6 @@ from pathlib import Path
+ from typing import TYPE_CHECKING
+ 
+ import pytest
+-import vermin
+ 
+ import python_discovery
+ from python_discovery import PythonInfo
+@@ -25,14 +24,6 @@ if TYPE_CHECKING:
+ SCRIPT = Path(python_discovery.__file__).parent / "_py_info_collect.py"
+ 
+ 
+-def test_script_parses_down_to_python27() -> None:
+-    py2, py3 = vermin.detect(SCRIPT.read_text(encoding="utf-8"))
+-    assert py2 is not None, "script no longer parses on Python 2.7, the 
version gate cannot run there"
+-    assert py2 <= (2, 7)
+-    assert py3 is not None
+-    assert py3 <= (3, 6), "script grew a requirement newer than the 
collection floor"
+-
+-
+ def test_script_version_gate_precedes_imports() -> None:
+     body = ast.parse(SCRIPT.read_text(encoding="utf-8")).body
+     before_gate = takewhile(lambda node: not isinstance(node, ast.If), body)



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-python-discovery/-/commit/efe1291454efcc1b1082b399a5bfe9d1808abc7a

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-python-discovery/-/commit/efe1291454efcc1b1082b399a5bfe9d1808abc7a
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


Reply via email to