diff --git a/devel/py-cons/Makefile b/devel/py-cons/Makefile index cbd6ed6f66cb..4350f7048af2 100644 --- a/devel/py-cons/Makefile +++ b/devel/py-cons/Makefile @@ -1,28 +1,33 @@ PORTNAME= cons DISTVERSIONPREFIX= v -DISTVERSION= 0.4.6 -PORTREVISION= 1 +DISTVERSION= 0.4.7 #MASTER_SITES= PYPI # no tests CATEGORIES= devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Implementation of Lisp/Scheme-like cons in Python WWW= https://github.com/pythological/python-cons/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}versioneer>=0:devel/py-versioneer@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}logical-unification>=0.4.0:math/py-logical-unification@${PY_FLAVOR} USES= python -USE_PYTHON= distutils autoplist pytest # tests fail intermittently, see https://github.com/pythological/python-cons/issues/15 +USE_PYTHON= pep517 autoplist pytest # tests fail intermittently, see https://github.com/pythological/python-cons/issues/15 + +MAKE_ENV= SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION} USE_GITHUB= yes GH_ACCOUNT= pythological GH_PROJECT= python-cons NO_ARCH= yes +# tests as of 0.4.7: 8 passed in 0.35s + .include diff --git a/devel/py-cons/distinfo b/devel/py-cons/distinfo index 85e1ea39a8ed..21687bf02b74 100644 --- a/devel/py-cons/distinfo +++ b/devel/py-cons/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1687590652 -SHA256 (pythological-python-cons-v0.4.6_GH0.tar.gz) = e12d720e6d02dc95983c039e393dec78323f5791fa992d58d5b7c98607b62755 -SIZE (pythological-python-cons-v0.4.6_GH0.tar.gz) = 40414 +TIMESTAMP = 1780882036 +SHA256 (pythological-python-cons-v0.4.7_GH0.tar.gz) = 261d38972a4788160abc089e686b4f9fec3e3922ce9d76b51e45f678e74c441c +SIZE (pythological-python-cons-v0.4.7_GH0.tar.gz) = 17476 diff --git a/devel/py-cons/files/patch-pyproject.toml b/devel/py-cons/files/patch-pyproject.toml new file mode 100644 index 000000000000..4a6d0e650f16 --- /dev/null +++ b/devel/py-cons/files/patch-pyproject.toml @@ -0,0 +1,19 @@ +-- Relax setuptools requirement and remove license-files for older setuptools compatibility. + +--- pyproject.toml.orig 2026-06-08 01:39:29 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools>=77.0.0", "setuptools-scm"] ++requires = ["setuptools>=63.1.0", "setuptools-scm"] + build-backend = "setuptools.build_meta" + + [project] +@@ -7,7 +7,6 @@ readme = "README.md" + dynamic = ["version"] + description = "An implementation of Lisp/Scheme-like cons in Python." + readme = "README.md" +-license-files = ["LICENSE.txt"] + authors = [ + { name = "Brandon T. Willard", email = "brandonwillard+cons@gmail.com" }, + ]