Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 2024 02:13:34 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c61b0cf326d9 - main - devel/py-pydantic-compat: New port: Compatibility layer for pydantic v1/v2
Message-ID:  <202412130213.4BD2DYSS090581@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit c61b0cf326d92081fe995fbdc47bca5dfd7961a8
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-12-13 01:41:08 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-12-13 02:13:29 +0000

    devel/py-pydantic-compat: New port: Compatibility layer for pydantic v1/v2
---
 devel/Makefile                     |  1 +
 devel/py-pydantic-compat/Makefile  | 26 ++++++++++++++++++++++++++
 devel/py-pydantic-compat/distinfo  |  3 +++
 devel/py-pydantic-compat/pkg-descr |  1 +
 4 files changed, 31 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index a650012f1e69..9352a3ff47c2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5515,6 +5515,7 @@
     SUBDIR += py-pycrdt
     SUBDIR += py-pycrdt-websocket
     SUBDIR += py-pydantic
+    SUBDIR += py-pydantic-compat
     SUBDIR += py-pydantic-core
     SUBDIR += py-pydantic-extra-types
     SUBDIR += py-pydantic-settings
diff --git a/devel/py-pydantic-compat/Makefile b/devel/py-pydantic-compat/Makefile
new file mode 100644
index 000000000000..b10e2ca9dfbd
--- /dev/null
+++ b/devel/py-pydantic-compat/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	pydantic-compat
+DISTVERSION=	0.1.2
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Compatibility layer for pydantic v1/v2
+WWW=		https://github.com/pyapp-kit/pydantic-compat
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pydantic2>0:devel/py-pydantic2@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pydantic-compat/distinfo b/devel/py-pydantic-compat/distinfo
new file mode 100644
index 000000000000..9a325952d772
--- /dev/null
+++ b/devel/py-pydantic-compat/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1734053501
+SHA256 (pydantic_compat-0.1.2.tar.gz) = c5c5bca39ca2d22cad00c02898e400e1920e5127649a8e860637f15566739373
+SIZE (pydantic_compat-0.1.2.tar.gz) = 12838
diff --git a/devel/py-pydantic-compat/pkg-descr b/devel/py-pydantic-compat/pkg-descr
new file mode 100644
index 000000000000..3e33d5a3f2aa
--- /dev/null
+++ b/devel/py-pydantic-compat/pkg-descr
@@ -0,0 +1 @@
+Compatibility layer for pydantic v1/v2.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412130213.4BD2DYSS090581>