From nobody Wed Aug 16 18:30:23 2023 X-Original-To: dev-commits-ports-main@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 4RQxX00MTmz4qxFF; Wed, 16 Aug 2023 18:30:24 +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 4RQxWz6WSqz4PT8; Wed, 16 Aug 2023 18:30:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692210623; 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=KfwK+P6FbQTpa+GkEx0V3vjvsButKJ4XxiQW7cV7AZk=; b=qWFvqfuT3Q+4yAdLtzhC+p14CTX/iZ/ufoB3JNX2ACfavqj824dPsFs1JL6XfPhLqkwWHl lo2TTDVMClEWSfh48QsyoskNfnBZ3hRr2P4YEbNzZkrQft5kK4YcK4TO1Zp3ycHpI+URAM gRByrURl8sNf2rrM0dLuTy0WM67wssns3xcduMeqoiQsmwTgMHnInXKSmztb3L4PThp+5l ZsP8Au7ghaVzzYA9kTmxOKrejJ/tFsZrOmnaNkvTqOgt91K+AVrx7kqz1QlCyfx9FNBSgG 62rD7sgSIJ0Aj6HhOSJ1NN45Cn2G+8MmlCGzkT9iMqFxzbUykAykuGQQUGUvHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692210623; 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=KfwK+P6FbQTpa+GkEx0V3vjvsButKJ4XxiQW7cV7AZk=; b=vJIlFBQpRyC3pU27HCeBdEiTjYieJq7wb/fdZN7eOQgaHoMKO/0u79QXz2ebs1pindh6op pjHhS5gcDsVepHY+yJ+6D3yLaihlWr7wLXBvH+8UiM9X6IQlZ8Xq8dEd3mtegRZId+aUFF UidtaTu13XBzhK+FjZ33v5+gCQY+QqHo0ya/+sqKQOYyr4TBIy9Y7GZETNvgJcPXFrYNAq qT6/3A6j7cbTXJkh1hE/ysR8pzJNljgL2DFThGpKBCF6/NXzqvcXp1eW25MOKr8qZ0YYtu gqy9cId+ID2TJIOkkDjIH1j3csVegmipJRF2LbSQBW7YdWIQCNvM79up6cmXjA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692210623; a=rsa-sha256; cv=none; b=iZdmLQo+FpH19sWWjFBj6dRWNQyiLUFD1900hMqceyByRrBXvotiusbiCgCxzGo2aPe9mW wDYZ3p76y4Yu/A4s2pD1Og6ENAWjt9KfEX7mm4E7iUdL0eZtZV3QElHDZDL2LuK3f+Xm7c m4kyssAd4HGtdPJpSqCYj8hJwZQrWk+8H5io9eaJolsqtMWTPAxoVx+EYZJGr9CCVDGl8d sbf15d2XhxX1UOlW3lmdzySJ+ne35IUV+YjNMDyB8GGImBx2RDf0nTi/U4IbURmw0YGv9a 2+5YhartBEy8+BEdsF2zPXXyYhy+KpFLN5JiVVEDXb4lC7BsLRlWIWAIANNCwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RQxWz56jZz11XR; Wed, 16 Aug 2023 18:30:23 +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 37GIUN1Z023232; Wed, 16 Aug 2023 18:30:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37GIUN5X023228; Wed, 16 Aug 2023 18:30:23 GMT (envelope-from git) Date: Wed, 16 Aug 2023 18:30:23 GMT Message-Id: <202308161830.37GIUN5X023228@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: f484396210f0 - main - devel/py-pycocotools: Add py-pycocotools 2.0.6 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: f484396210f0f4e9725fac690350f1fafcba801e Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f484396210f0f4e9725fac690350f1fafcba801e commit f484396210f0f4e9725fac690350f1fafcba801e Author: Po-Chuan Hsieh AuthorDate: 2023-08-16 18:06:35 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-08-16 18:25:06 +0000 devel/py-pycocotools: Add py-pycocotools 2.0.6 pycocotools is a fork of the original cocoapi, with bug fixes and packaging improvements. Changes in this fork include: - Add CircleCI tests - Support pip-installation correctly - Support windows - Don't import matplotlib unless needed - Close file handle after openning - Fix a small bug in rleToBbox - Fix a segfault in RLE decoding - Fix deprecated usage of other libraries For compatibility, we will not make any API changes or non-bug behavior changes to the existing APIs of the official cocoapi. --- devel/Makefile | 1 + devel/py-pycocotools/Makefile | 25 +++++++++++++++++++++++++ devel/py-pycocotools/distinfo | 3 +++ devel/py-pycocotools/files/patch-pyproject.toml | 11 +++++++++++ devel/py-pycocotools/pkg-descr | 15 +++++++++++++++ 5 files changed, 55 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 0d8973db6a7b..741bb7fff9fc 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5240,6 +5240,7 @@ SUBDIR += py-pycapsicum SUBDIR += py-pycerberus SUBDIR += py-pycmd + SUBDIR += py-pycocotools SUBDIR += py-pycodeexport SUBDIR += py-pycodestyle SUBDIR += py-pycognito diff --git a/devel/py-pycocotools/Makefile b/devel/py-pycocotools/Makefile new file mode 100644 index 000000000000..cb396b665965 --- /dev/null +++ b/devel/py-pycocotools/Makefile @@ -0,0 +1,25 @@ +PORTNAME= pycocotools +PORTVERSION= 2.0.6 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Official APIs for the MS-COCO dataset +WWW= https://github.com/ppwwyyxx/cocoapi/tree/master/PythonAPI + +LICENSE= BSD2CLAUSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=43.0.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=2.1.0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent cython pep517 + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/devel/py-pycocotools/distinfo b/devel/py-pycocotools/distinfo new file mode 100644 index 000000000000..2debc1a8cf66 --- /dev/null +++ b/devel/py-pycocotools/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691069896 +SHA256 (pycocotools-2.0.6.tar.gz) = 7fe089b05cc18e806dcf3bd764708d86dab922a100f3734eb77fb77a70a1d18c +SIZE (pycocotools-2.0.6.tar.gz) = 24100 diff --git a/devel/py-pycocotools/files/patch-pyproject.toml b/devel/py-pycocotools/files/patch-pyproject.toml new file mode 100644 index 000000000000..99b5925c9fe1 --- /dev/null +++ b/devel/py-pycocotools/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2022-11-04 06:39:37 UTC ++++ pyproject.toml +@@ -1,7 +1,7 @@ + [build-system] + requires = [ + "cython>=0.27.3", +- "oldest-supported-numpy", ++ "numpy", + "setuptools>=43.0.0", + "wheel", + ] diff --git a/devel/py-pycocotools/pkg-descr b/devel/py-pycocotools/pkg-descr new file mode 100644 index 000000000000..a36f506b80db --- /dev/null +++ b/devel/py-pycocotools/pkg-descr @@ -0,0 +1,15 @@ +pycocotools is a fork of the original cocoapi, with bug fixes and packaging +improvements. + +Changes in this fork include: +- Add CircleCI tests +- Support pip-installation correctly +- Support windows +- Don't import matplotlib unless needed +- Close file handle after openning +- Fix a small bug in rleToBbox +- Fix a segfault in RLE decoding +- Fix deprecated usage of other libraries + +For compatibility, we will not make any API changes or non-bug behavior changes +to the existing APIs of the official cocoapi.