git: 4f672382f48f - main - devel/py-cons: update 0.4.6 → 0.4.7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Jun 2026 06:28:28 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4f672382f48fa8bf53cadb624c43ab1117017769
commit 4f672382f48fa8bf53cadb624c43ab1117017769
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-08 01:59:58 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-08 06:28:11 +0000
devel/py-cons: update 0.4.6 → 0.4.7
---
devel/py-cons/Makefile | 13 +++++++++----
devel/py-cons/distinfo | 6 +++---
devel/py-cons/files/patch-pyproject.toml | 19 +++++++++++++++++++
3 files changed, 31 insertions(+), 7 deletions(-)
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,7 +1,6 @@
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}
@@ -13,11 +12,15 @@ 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
@@ -25,4 +28,6 @@ GH_PROJECT= python-cons
NO_ARCH= yes
+# tests as of 0.4.7: 8 passed in 0.35s
+
.include <bsd.port.mk>
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" },
+ ]