From nobody Fri Apr 5 00:44:30 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V9frb1R0gz5GPfM; Fri, 5 Apr 2024 00:44:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V9frb0dwbz4g45; Fri, 5 Apr 2024 00:44:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712277871; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IhjqKC2L6UzGztFbP0PL88/xXOFBDTMaRqRcrQWf4CI=; b=SHtEFccixVTgCn1iLbIugXfibkV1o7TbNAIAigOYSeO/GVUZYgy69ZUTrUNbxVqkr3M2bq /IEi9mO2/O3daO6znm1+U/u46g1JYhcfaiA5c5lIm8F2VmB8Ym44AarweiyXYDg8Q4xg2v pVvmd2ZSyrjbHaWP0VkcjqnXJ/200+HNm9+l9qTw1FYjjO+83BWxcWN/J2thZztCWHnfEZ TglKpOlbgjb+AeLIvMW3z4fTFG93EjQ8PzguRvjOVuPLPnpU669CfskQ0n6tryO7GVYAmy U9d7HRJueKE+aLPNrOB9SMiryKN1Euv29NliwJYgOXL8zMUzr9HqDAwr1Zv+HQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712277871; a=rsa-sha256; cv=none; b=K3rdgCYVmdNWfLjkIbkBQ5whE+vl47rD7Nq25arI+Vh2wJB5udhTh/NidItrA+4uFvDRQY WzfGO1vn/3hvI5XJzDZJ4s3/5GVL9grdrH0KL0odh2J/77QRYCrjAPcXqbFwtIL2ur9/xm XrL0XUvOB1jsPKn/shWKIV/pqLkJGPpERNc5oNCNmNzPRgNn9E8spEg+/Kq64Zaaqt8gT3 R/d4NionNhDYa9O6PesDm6p2KFIX1bMK4ESH2gizP1Nd73se/pETv1UJdJWacn1L7PIT39 NiRofulGiJSCxDYPA0iftD0plXdtlS1GH6EfHTr1furGaey4E6xj/MqQ64TlQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712277871; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IhjqKC2L6UzGztFbP0PL88/xXOFBDTMaRqRcrQWf4CI=; b=Arq8UkRkl3p/farYOGNG77zX2SExhep6zFTWxTqnqcFp19f6W9Ce7o0qruXn5YlbUV0vha zObx6h8Y+VWl/mbSRRyA8RybiLJL4IZ/r2kv1THmXJQkRcCX2/w9k1NaLuMkyEwixl/UVD HrCxRZqCOlSF5XOCeyK1m1PcGs86U2E6tBWTcq4gaolvYNqWa47ol43QjMOQ37PhSCnlIE f2gwIasYMWTs8BZW0n9zBKg7YfzNRCeuj1nH1SILGOS0aGcwdSxO0YJrqZbpfqXNkktBis tkHCp23kPfgu9seaLVP2tzNqAb9B3bONA+DG+OYO38iG1b004C7+pirTaiN2vw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V9frb0FVpzfRQ; Fri, 5 Apr 2024 00:44:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4350iUjJ099603; Fri, 5 Apr 2024 00:44:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4350iUak099600; Fri, 5 Apr 2024 00:44:30 GMT (envelope-from git) Date: Fri, 5 Apr 2024 00:44:30 GMT Message-Id: <202404050044.4350iUak099600@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: e6ffc0453c74 - main - devel/py-msgspec: Add py-msgspec 0.18.6 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e6ffc0453c74f48031c7820db5dc43018e043151 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=e6ffc0453c74f48031c7820db5dc43018e043151 commit e6ffc0453c74f48031c7820db5dc43018e043151 Author: Po-Chuan Hsieh AuthorDate: 2024-04-05 00:36:56 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-04-05 00:36:56 +0000 devel/py-msgspec: Add py-msgspec 0.18.6 msgspec is a fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML. It features: - High performance encoders/decoders for common protocols. The JSON and MessagePack implementations regularly benchmark as the fastest options for Python. - Support for a wide variety of Python types. Additional types may be supported through extensions. - Zero-cost schema validation using familiar Python type annotations. In benchmarks msgspec decodes and validates JSON faster than orjson can decode it alone. - A speedy Struct type for representing structured data. If you already use dataclasses or attrs, structs should feel familiar. However, they're 5-60x faster for common operations. All of this is included in a lightweight library with no required dependencies. --- devel/Makefile | 1 + devel/py-msgspec/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ devel/py-msgspec/distinfo | 3 +++ devel/py-msgspec/pkg-descr | 15 +++++++++++++++ 4 files changed, 57 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index b11e93c47356..c35e7bca0246 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5059,6 +5059,7 @@ SUBDIR += py-msal SUBDIR += py-msal-extensions SUBDIR += py-msgpack + SUBDIR += py-msgspec SUBDIR += py-mulpyplexer SUBDIR += py-multi_key_dict SUBDIR += py-multipart diff --git a/devel/py-msgspec/Makefile b/devel/py-msgspec/Makefile new file mode 100644 index 000000000000..ad36cdd42ab1 --- /dev/null +++ b/devel/py-msgspec/Makefile @@ -0,0 +1,38 @@ +PORTNAME= msgspec +PORTVERSION= 0.18.6 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Fast serialization and validation library +WWW= https://jcristharif.com/msgspec/ \ + https://github.com/jcrist/msgspec + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +#NO_ARCH= yes + +OPTIONS_DEFINE= TOML YAML +OPTIONS_DEFAULT=TOML YAML + +TOML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tomli-w>=0:textproc/py-tomli-w@${PY_FLAVOR} +YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} + +.include + +.if ${PORT_OPTIONS:MTOML} && ${PYTHON_REL} < 31100 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR} +.endif + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/devel/py-msgspec/distinfo b/devel/py-msgspec/distinfo new file mode 100644 index 000000000000..b8fdd0eb5d47 --- /dev/null +++ b/devel/py-msgspec/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1712084448 +SHA256 (msgspec-0.18.6.tar.gz) = a59fc3b4fcdb972d09138cb516dbde600c99d07c38fd9372a6ef500d2d031b4e +SIZE (msgspec-0.18.6.tar.gz) = 216757 diff --git a/devel/py-msgspec/pkg-descr b/devel/py-msgspec/pkg-descr new file mode 100644 index 000000000000..77f2ce419469 --- /dev/null +++ b/devel/py-msgspec/pkg-descr @@ -0,0 +1,15 @@ +msgspec is a fast serialization and validation library, with builtin support for +JSON, MessagePack, YAML, and TOML. It features: +- High performance encoders/decoders for common protocols. The JSON and + MessagePack implementations regularly benchmark as the fastest options for + Python. +- Support for a wide variety of Python types. Additional types may be supported + through extensions. +- Zero-cost schema validation using familiar Python type annotations. In + benchmarks msgspec decodes and validates JSON faster than orjson can decode it + alone. +- A speedy Struct type for representing structured data. If you already use + dataclasses or attrs, structs should feel familiar. However, they're 5-60x + faster for common operations. + +All of this is included in a lightweight library with no required dependencies.