aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2026-04-18 21:18:20 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2026-04-18 21:18:20 +0000
commit7545b6d96a171cd220635ae77e2daece1886498a (patch)
tree886e4601abbe25fb69b3288b7de03e1185aca5e5
parentfca993c605fdeabd389c1b39054885bad2d2434d (diff)
devel/py-confection0: Add py-confection0 0.1.5 (copied from py-confection)
- Add PORTSCOUT
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-confection0/Makefile27
-rw-r--r--devel/py-confection0/distinfo3
-rw-r--r--devel/py-confection0/pkg-descr20
4 files changed, 51 insertions, 0 deletions
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.