Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Apr 2026 22:00:46 +0000
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7545b6d96a17 - main - devel/py-confection0: Add py-confection0 0.1.5 (copied from py-confection)
Message-ID:  <69e3ff0e.33a12.724fc688@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7545b6d96a171cd220635ae77e2daece1886498a

commit 7545b6d96a171cd220635ae77e2daece1886498a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-04-18 21:18:20 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-04-18 21:18:20 +0000

    devel/py-confection0: Add py-confection0 0.1.5 (copied from py-confection)
    
    - Add PORTSCOUT
---
 devel/Makefile                 |  1 +
 devel/py-confection0/Makefile  | 27 +++++++++++++++++++++++++++
 devel/py-confection0/distinfo  |  3 +++
 devel/py-confection0/pkg-descr | 20 ++++++++++++++++++++
 4 files changed, 51 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 4b7c4ab52157..e75e02ac56b8 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4757,6 +4757,7 @@
     SUBDIR += py-condense-json
     SUBDIR += py-conditional
     SUBDIR += py-confection
+    SUBDIR += py-confection0
     SUBDIR += py-configargparse
     SUBDIR += py-configobj
     SUBDIR += py-configparser
diff --git a/devel/py-confection0/Makefile b/devel/py-confection0/Makefile
new file mode 100644
index 000000000000..0a4353bce122
--- /dev/null
+++ b/devel/py-confection0/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	confection
+PORTVERSION=	0.1.5
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX=	0
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Sweetest config system for Python
+WWW=		https://github.com/explosion/confection
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pydantic2>=1.7.4<3.0.0:devel/py-pydantic2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}srsly>=2.4.0<3.0.0:devel/py-srsly@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+PORTSCOUT=	limit:^0\.
+
+.include <bsd.port.mk>
diff --git a/devel/py-confection0/distinfo b/devel/py-confection0/distinfo
new file mode 100644
index 000000000000..b36f2bbf9248
--- /dev/null
+++ b/devel/py-confection0/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1717245761
+SHA256 (confection-0.1.5.tar.gz) = 8e72dd3ca6bd4f48913cd220f10b8275978e740411654b6e8ca6d7008c590f0e
+SIZE (confection-0.1.5.tar.gz) = 38924
diff --git a/devel/py-confection0/pkg-descr b/devel/py-confection0/pkg-descr
new file mode 100644
index 000000000000..5d85e5172784
--- /dev/null
+++ b/devel/py-confection0/pkg-descr
@@ -0,0 +1,20 @@
+confection is a lightweight library that offers a configuration system letting
+you conveniently describe arbitrary trees of objects.
+
+Configuration is a huge challenge for machine-learning code because you may want
+to expose almost any detail of any function as a hyperparameter. The setting you
+want to expose might be arbitrarily far down in your call stack, so it might
+need to pass all the way through the CLI or REST API, through any number of
+intermediate functions, affecting the interface of everything along the way. And
+then once those settings are added, they become hard to remove later. Default
+values also become hard to change without breaking backwards compatibility.
+
+To solve this problem, confection offers a config system that lets you easily
+describe arbitrary trees of objects. The objects can be created via function
+calls you register using a simple decorator syntax. You can even version the
+functions you create, allowing you to make improvements without breaking
+backwards compatibility. The most similar config system we're aware of is Gin,
+which uses a similar syntax, and also allows you to link the configuration
+system to functions in your code using a decorator. confection's config system
+is simpler and emphasizes a different workflow via a subset of Gin's
+functionality.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e3ff0e.33a12.724fc688>