From nobody Tue Mar 21 19:23:50 2023 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 4Ph1jy707Xz40gmt; Tue, 21 Mar 2023 19:23:50 +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 4Ph1jy6Mmqz49gj; Tue, 21 Mar 2023 19:23:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679426630; 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=RTPNV+c8Q4RnfkxQDbHPL3DBo2nwO7HTnnsOqjgHXdk=; b=B2TkmEd2Fs6A6DLZCMh6DeNdCQmTdE/sun/zcWyaQ1E67KJg4JTGv0uf+y4yNC9Ht7s5v8 0kgKgHajUbXCtLhL5IAkEur4VynQZaxlbH07g3VD8oqqfQBQzE1K7NTizSNwtaortRrqvj GqfT0xXu16ivyBoH84AOU/fIV18oVOk1xbFMRCeNNg8tnNVWp2aYtv5LSkmTUyuCBK3on7 2ddendbevKPoRZROWpaKLpld0T2cF394+rEuhWuKuUcRcl5F16rPDfVdALT46zlJrbyTZN Yj55EzgskYvBBZnm+FPWDOt7PQoe4pm3H/QyJubt/sgm/g+577966tPQFge3hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679426630; 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=RTPNV+c8Q4RnfkxQDbHPL3DBo2nwO7HTnnsOqjgHXdk=; b=KkCX56p1R4O3cBo3UnLKBo/I6PeTY1dQrwXUXqzI3mwAezxDOkKwZgzGAOUi9ggIPEwyQh aJI4j5qjSVlqRZII22+ySf3hJBNQGCRLd+HZ0eyLCIo781jgBnc4xGJCyvBmn/ciSHag3I 52c3xK1OIOm+tXZ2vN93eLuvDuXjVi5gBYFNEp/09SmsLopgXXW6FY64Ux/d8D+aK9ucRo LXmBgPfeVLDA4cV66ptFuSNWM1hkwOfWET4lTIKD5vcQ/mG0MHXTh3D0zAWwnLqlk6NDLw uRd82G2lRd+dwMxGXLC0rfb6dWOBDFpo9f0J2xOLuq8FjO+6y4ldA5chPm0MGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679426630; a=rsa-sha256; cv=none; b=rNrc+lTtoS2U6lwZcT7LWXWOBZ0dlacebruKDdhkTV7wk/ZZ5MPXeoPRlnoWKhnj9lyfKZ TFsk2nNc0fMH7K4si5BJul0in6BR/t+sKatcOol5gJ7ggYiPGiZLDRgYygwHd5KrYQMJmT bOcfYlNL0/5MVb1drsF30+3BN/lgbwsmt101nVV+N8Ml+CCyBFED5gGFuaV6mqG/xfpcll +kRI7fmTvBQWZmeEIRNmzfeA3bacNSnZYaFa8ZPyIY4W8Tga5pqjdErqZJIOUzNtBT7W6i s1MGsLiBTSJ0MD4yP492Vv4mR3wmM3qAHTv1/k6rquyUedV2Yd0Y/Ynj0C/u4w== 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 4Ph1jy59BzzPVB; Tue, 21 Mar 2023 19:23:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32LJNoce026765; Tue, 21 Mar 2023 19:23:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32LJNoa3026764; Tue, 21 Mar 2023 19:23:50 GMT (envelope-from git) Date: Tue, 21 Mar 2023 19:23:50 GMT Message-Id: <202303211923.32LJNoa3026764@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: 66e0f308ab5d - main - devel/py-isoduration: Add py-isoduration 20.11.0 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: 66e0f308ab5de0144a198cd6cf410a2dc1c6b8a7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=66e0f308ab5de0144a198cd6cf410a2dc1c6b8a7 commit 66e0f308ab5de0144a198cd6cf410a2dc1c6b8a7 Author: Po-Chuan Hsieh AuthorDate: 2023-03-21 18:35:09 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-03-21 19:19:51 +0000 devel/py-isoduration: Add py-isoduration 20.11.0 ISO 8601 is most commonly known as a way to exchange datetimes in textual format. A lesser known aspect of the standard is the representation of durations. They have a shape similar to this: P3Y6M4DT12H30M5S This string represents a duration of 3 years, 6 months, 4 days, 12 hours, 30 minutes, and 5 seconds. The state of the art of ISO 8601 duration handling in Python is more or less limited to what's offered by isodate. What we are trying to achieve here is to address the shortcomings of isodate (as described in their own Limitations section), and a few of our own annoyances with their interface, such as the lack of uniformity in their handling of types, and the use of regular expressions for parsing. --- devel/Makefile | 1 + devel/py-isoduration/Makefile | 21 +++++++++++++++++++++ devel/py-isoduration/distinfo | 3 +++ devel/py-isoduration/pkg-descr | 13 +++++++++++++ 4 files changed, 38 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 00f20e6c239e..45e3b4421efb 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4746,6 +4746,7 @@ SUBDIR += py-ipywidgets SUBDIR += py-iso8601 SUBDIR += py-isodate + SUBDIR += py-isoduration SUBDIR += py-isort SUBDIR += py-itanium_demangler SUBDIR += py-itemadapter diff --git a/devel/py-isoduration/Makefile b/devel/py-isoduration/Makefile new file mode 100644 index 000000000000..f8144ce71f4f --- /dev/null +++ b/devel/py-isoduration/Makefile @@ -0,0 +1,21 @@ +PORTNAME= isoduration +PORTVERSION= 20.11.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Operations with ISO 8601 durations +WWW= https://github.com/bolsote/isoduration + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arrow>=0.15.0:devel/py-arrow@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-isoduration/distinfo b/devel/py-isoduration/distinfo new file mode 100644 index 000000000000..f06beacdee9c --- /dev/null +++ b/devel/py-isoduration/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1677770929 +SHA256 (isoduration-20.11.0.tar.gz) = ac2f9015137935279eac671f94f89eb00584f940f5dc49462a0c4ee692ba1bd9 +SIZE (isoduration-20.11.0.tar.gz) = 11649 diff --git a/devel/py-isoduration/pkg-descr b/devel/py-isoduration/pkg-descr new file mode 100644 index 000000000000..bea78f28a3d7 --- /dev/null +++ b/devel/py-isoduration/pkg-descr @@ -0,0 +1,13 @@ +ISO 8601 is most commonly known as a way to exchange datetimes in textual +format. A lesser known aspect of the standard is the representation of +durations. They have a shape similar to this: + P3Y6M4DT12H30M5S +This string represents a duration of 3 years, 6 months, 4 days, 12 hours, 30 +minutes, and 5 seconds. + +The state of the art of ISO 8601 duration handling in Python is more or less +limited to what's offered by isodate. What we are trying to achieve here is to +address the shortcomings of isodate (as described in their own Limitations +section), and a few of our own annoyances with their interface, such as the lack +of uniformity in their handling of types, and the use of regular expressions for +parsing.