update to py3-distro-1.8.0, patch to enable many tests skipped on non-linux

This commit is contained in:
sthen 2022-12-07 08:44:03 +00:00
parent 0b02efa3e9
commit 7305cd0572
3 changed files with 15 additions and 4 deletions

View File

@ -1,9 +1,8 @@
COMMENT= provide information about the OS platform
MODPY_EGG_VERSION= 1.7.0
MODPY_EGG_VERSION= 1.8.0
DISTNAME= distro-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
REVISION= 1
CATEGORIES= sysutils

View File

@ -1,2 +1,2 @@
SHA256 (distro-1.7.0.tar.gz) = FRrsz2DCFkApMrUuQO5HepOfjViJiSc3igKrvoUsHDk=
SIZE (distro-1.7.0.tar.gz) = 58164
SHA256 (distro-1.8.0.tar.gz) = AuER0dxqUKu47ta/McPkjtiwgw0eoqG3jGF2XCUT/dg=
SIZE (distro-1.8.0.tar.gz) = 59428

View File

@ -0,0 +1,12 @@
Index: tests/test_distro.py
--- tests/test_distro.py.orig
+++ tests/test_distro.py
@@ -31,7 +31,7 @@ SPECIAL = os.path.join(RESOURCES, "special")
DISTROS = [dist for dist in os.listdir(DISTROS_DIR) if dist != "__shared__"]
-IS_LINUX = sys.platform.startswith("linux")
+IS_LINUX = sys.platform.startswith("linux") or sys.platform.startswith("openbsd")
if IS_LINUX:
from distro import distro