diff --git a/sysutils/py-ansible-compat/Makefile b/sysutils/py-ansible-compat/Makefile index d5ca91c01f97..8c4d77c303cc 100644 --- a/sysutils/py-ansible-compat/Makefile +++ b/sysutils/py-ansible-compat/Makefile @@ -1,36 +1,38 @@ PORTNAME= ansible-compat -PORTVERSION= 4.1.2 -PORTREVISION= 1 +PORTVERSION= 26.3.0 CATEGORIES= sysutils python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= ansible_compat-${PORTVERSION}${EXTRACT_SUFX} -MAINTAINER= matthew@FreeBSD.org +MAINTAINER= cy@FreeBSD.org COMMENT= Ansible compatibility goodies WWW= https://github.com/ansible-community/ansible-compat LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=7.0.0:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ansible-core>=2.12:sysutils/py-ansible-core@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}subprocess-tee>=0.4.1:devel/py-subprocess-tee@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jsonschema>=4.6.0:devel/py-jsonschema@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pip-tools>0:devel/py-pip-tools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest>=7.2.0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-plus>0:devel/py-pytest-plus@${PY_FLAVOR} USES= python USE_PYTHON= autoplist pep517 pytest +WRKSRC= ${WRKDIR}/ansible_compat-${PORTVERSION} + TEST_ENV= LC_ALL=C.UTF-8 PYTHONPATH=${WRKSRC}/src TMPDIR=${WRKDIR}/ NO_ARCH= yes .include diff --git a/sysutils/py-ansible-compat/distinfo b/sysutils/py-ansible-compat/distinfo index fecdfcafb181..2ae63c47b75f 100644 --- a/sysutils/py-ansible-compat/distinfo +++ b/sysutils/py-ansible-compat/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1685691160 -SHA256 (ansible-compat-4.1.2.tar.gz) = 696162dbc1223c0b474136a61662b3fe44115d490de8da606b149cee572b01ed -SIZE (ansible-compat-4.1.2.tar.gz) = 66934 +TIMESTAMP = 1776095121 +SHA256 (ansible_compat-26.3.0.tar.gz) = 15f0ea5ff6fcc5587b6b11a4a436fdeefd0fd4a46afe92d4e483c28370082ae0 +SIZE (ansible_compat-26.3.0.tar.gz) = 216754 diff --git a/sysutils/py-ansible-compat/files/patch-pyproject.toml b/sysutils/py-ansible-compat/files/patch-pyproject.toml new file mode 100644 index 000000000000..f08e056e9ab7 --- /dev/null +++ b/sysutils/py-ansible-compat/files/patch-pyproject.toml @@ -0,0 +1,21 @@ +--- pyproject.toml.orig 2026-03-31 08:47:26.000000000 -0700 ++++ pyproject.toml 2026-04-13 08:48:41.665292000 -0700 +@@ -6,7 +6,8 @@ + readme = "README.md" + # https://peps.python.org/pep-0621/#readme + requires-python = ">=3.10" +-license = "MIT" ++# FreeBSD's py-setuptools 63.1.0 cannot handle the license expression ++# license = "MIT" + authors = [{ "name" = "Sorin Sbarnea", "email" = "ssbarnea@redhat.com" }] + maintainers = [{ "name" = "Sorin Sbarnea", "email" = "ssbarnea@redhat.com" }] + keywords = ["ansible"] +@@ -76,7 +77,7 @@ + [build-system] + requires = [ + "setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme +- "setuptools >= 65.3.0", # required by pyproject+setuptools_scm integration and editable installs ++ "setuptools >= 63.1.0", # required by pyproject+setuptools_scm integration and editable installs + ] + build-backend = "setuptools.build_meta" +