update to py3-distro-1.8.0, patch to enable many tests skipped on non-linux
This commit is contained in:
parent
0b02efa3e9
commit
7305cd0572
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
12
sysutils/py-distro/patches/patch-tests_test_distro_py
Normal file
12
sysutils/py-distro/patches/patch-tests_test_distro_py
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user