diff --git a/devel/py-ubelt/Makefile b/devel/py-ubelt/Makefile index 425f1b7a9485..7e2b342e77db 100644 --- a/devel/py-ubelt/Makefile +++ b/devel/py-ubelt/Makefile @@ -1,35 +1,35 @@ PORTNAME= ubelt DISTVERSIONPREFIX= v -DISTVERSION= 1.4.0 +DISTVERSION= 1.4.1 CATEGORIES= devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Python utility belt containing simple tools WWW= https://github.com/Erotemic/ubelt LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} \ cmake:devel/cmake-core TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=3.0.0:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-timeout>=1.4.2:devel/py-pytest-timeout@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=2.25.1:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xdoctest>=1.1.5:devel/py-xdoctest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xxhash>0:devel/py-xxhash@${PY_FLAVOR} USES= python USE_PYTHON= distutils autoplist pytest USE_GITHUB= yes GH_ACCOUNT= Erotemic NO_ARCH= yes BINARY_ALIAS= python=${PYTHON_CMD} # tests as of 1.4.0: 238 passed, 6 skipped in 8.76 .include diff --git a/devel/py-ubelt/distinfo b/devel/py-ubelt/distinfo index 59900af1bdce..eb4a167745bf 100644 --- a/devel/py-ubelt/distinfo +++ b/devel/py-ubelt/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1755504199 -SHA256 (Erotemic-ubelt-v1.4.0_GH0.tar.gz) = 0dd05b81adc4353334e7edcad91031c6da8c7375c738a29979f27ccd85bf4f51 -SIZE (Erotemic-ubelt-v1.4.0_GH0.tar.gz) = 376453 +TIMESTAMP = 1770693146 +SHA256 (Erotemic-ubelt-v1.4.1_GH0.tar.gz) = cf6ccb3729b964cfd5e0198b513aae39b292beb397b276a8107bdbf9e6c0da34 +SIZE (Erotemic-ubelt-v1.4.1_GH0.tar.gz) = 385376 diff --git a/devel/py-ubelt/files/patch-ubelt_util__platform.py b/devel/py-ubelt/files/patch-ubelt_util__platform.py index c783ff1fdedf..20c6e493567a 100644 --- a/devel/py-ubelt/files/patch-ubelt_util__platform.py +++ b/devel/py-ubelt/files/patch-ubelt_util__platform.py @@ -1,29 +1,28 @@ ---- ubelt/util_platform.py.orig 2022-12-03 05:15:05 UTC +--- ubelt/util_platform.py.orig 2026-02-08 23:19:13 UTC +++ ubelt/util_platform.py -@@ -42,7 +42,7 @@ from os.path import exists, join, isdir, expanduser, n - - +@@ -53,6 +53,7 @@ __all__ = [ __all__ = [ -- 'WIN32', 'LINUX', 'DARWIN', 'POSIX', -+ 'WIN32', 'FREEBSD', 'LINUX', 'DARWIN', 'POSIX', - 'find_exe', 'find_path', - 'ensure_app_cache_dir', 'ensure_app_config_dir', 'ensure_app_data_dir', - 'get_app_cache_dir', 'get_app_config_dir', 'get_app_data_dir', -@@ -67,6 +67,8 @@ def platform_data_dir(): + 'WIN32', + 'LINUX', ++ 'FREEBSD', + 'DARWIN', + 'POSIX', + 'find_exe', +@@ -86,6 +87,8 @@ def platform_data_dir() -> str: """ if POSIX: # nocover dpath_ = os.environ.get('XDG_DATA_HOME', '~/.local/share') + elif FREEBSD: # nocover + dpath_ = os.environ.get('XDG_DATA_HOME', '~/.local/share') elif DARWIN: # nocover - dpath_ = '~/Library/Application Support' + dpath_ = '~/Library/Application Support' elif WIN32: # nocover -@@ -86,6 +88,8 @@ def platform_config_dir(): +@@ -105,6 +108,8 @@ def platform_config_dir() -> str: str : path to the cache dir used by the current operating system """ if POSIX: # nocover + dpath_ = os.environ.get('XDG_CONFIG_HOME', '~/.config') + elif FREEBSD: # nocover dpath_ = os.environ.get('XDG_CONFIG_HOME', '~/.config') elif DARWIN: # nocover - dpath_ = '~/Library/Application Support' + dpath_ = '~/Library/Application Support'