From nobody Sat Sep 07 06:25:04 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 4X13412rtwz5Tj5t; Sat, 07 Sep 2024 06:25:05 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X13410b4Bz43Fn; Sat, 7 Sep 2024 06:25:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725690305; 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=WzpTds0qMs73tejnYZhN9TMou+Ltuh8PPmP70mP0SGk=; b=OjySL0Vss1cbbTuBQlqysVrR9zv5+jM+2ooHLa2BWavcDplMs0ueYITGtTppzab/HO+JkI iQ3E6zDmTzwftlPSJFEeDRRJaEveEnPgoHSMUkjYfVuqZi2seyb7x58bfjFEEco9gwdfoz x2Q/Cxv+juPAM5RS0mHDHDc22qchXw3kebPw9eE5qed5polXjy/kGJWokINON2jc3lJXMS qWeBGnE024mbEJd4DPAkFHO15wefa7FyWNf6ZTapIY68MJ/HhKg1eOt6DnKeB3GbYGsi1Q TJhAE6maY9p9N9LSWNAwLmO2KGDV1NHhfPi0XLXjuHxobqVgu7JQEpAGsAvTUA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725690305; a=rsa-sha256; cv=none; b=PJKI6pOGIPSCXQ0xJYKupyc2ZYUZ/iwEnq4dO5QhHNEABjsKghL/UQLWZrDuPEf8lxGAhO 3ebK6VOhjk/8oiPSJS0y8ji5O4WvS89CwMcfU2HjO21X54LXzTOb1tc8M3pKx+5n8DcSKQ j2Pxb0FzpHvuOZI+xVJ8Nh4vXFK+4p+SxWCSvDUloCgzzv2b3UwBqB6y4UI96w7W/i5DBP q5wbrR6T/qqmqH7vNkIrdUeGAlrcZ9wEZoabq+5MxysMpO2MvycHlQTs8Af8XbHI53Tq5W 5GWIyIk3WgFPRDHC1pJnkt5NM8wYBvu57vrhjqaFHgEusKfxlFGJFtnk67+FTw== 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=1725690305; 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=WzpTds0qMs73tejnYZhN9TMou+Ltuh8PPmP70mP0SGk=; b=YaR8lwqTF2o+eczKE/kiXUq4rnuCy0CVGb+KiZAVRFHY53QnLDYvSmEv031imRcUH/CDtw s7ahNh16EQf6mn8ktZ0PKEo/Wlr5HpTOGcvuJFBUXs3AHjfVP4FTPUPXHNFEruT7ohPqwM rwl7SHcg/KMCPv+Ga37tJNmsAKy0yMoZQu+1wo/qEtIEoOs5Fo2YAGohHRBAE/QaxoFvlo r0+Z4N65QELO2kUOIfrwyBQanpBzvPINyYzuq7z4y1+ULa9Jb2leu/CptyWoYWoCIs111N jTkUMCJBwPLmAaXIvmjDf9rtPkO1OIoMQN6SsiwcsPXdVntSVLb/5s0JD0wzig== 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 4X13406mVtzPKJ; Sat, 7 Sep 2024 06:25:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4876P4pU019846; Sat, 7 Sep 2024 06:25:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4876P46n019843; Sat, 7 Sep 2024 06:25:04 GMT (envelope-from git) Date: Sat, 7 Sep 2024 06:25:04 GMT Message-Id: <202409070625.4876P46n019843@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: c42c6b09c4ec - main - misc/py-cmap: New port: Scientific colormaps for python, without dependencies 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c42c6b09c4ec0a7160deaa9416cb8e58f6946b69 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c42c6b09c4ec0a7160deaa9416cb8e58f6946b69 commit c42c6b09c4ec0a7160deaa9416cb8e58f6946b69 Author: Yuri Victorovich AuthorDate: 2024-09-07 04:35:42 +0000 Commit: Yuri Victorovich CommitDate: 2024-09-07 06:24:09 +0000 misc/py-cmap: New port: Scientific colormaps for python, without dependencies --- misc/Makefile | 1 + misc/py-cmap/Makefile | 37 +++++++++++++++++++++++++++++++++++++ misc/py-cmap/distinfo | 3 +++ misc/py-cmap/pkg-descr | 8 ++++++++ 4 files changed, 49 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index f9ccebe31387..ad49342f685a 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -418,6 +418,7 @@ SUBDIR += py-ast-comments SUBDIR += py-boost-histogram SUBDIR += py-censys + SUBDIR += py-cmap SUBDIR += py-codecarbon SUBDIR += py-colorbrewer SUBDIR += py-colored diff --git a/misc/py-cmap/Makefile b/misc/py-cmap/Makefile new file mode 100644 index 000000000000..ce825ec34e31 --- /dev/null +++ b/misc/py-cmap/Makefile @@ -0,0 +1,37 @@ +PORTNAME= cmap +DISTVERSION= 0.3.0 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Scientific colormaps for python, without dependencies +WWW= https://cmap-docs.readthedocs.io/en/stable/ + +LICENSE= BSD2CLAUSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYNUMPY} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bokeh>0:www/py-bokeh@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}colorspacious>0:devel/py-colorspacious@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}colour>0:graphics/py-colour@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numba>0:devel/py-numba@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}plotly>0:graphics/py-plotly@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic-extra-types>=2:devel/py-pydantic-extra-types@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic2>0:devel/py-pydantic2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyqtgraph>0:graphics/py-pyqtgraph@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-qt>0:devel/py-pytest-qt@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}vispy>=0.14:graphics/py-vispy@${PY_FLAVOR} + # TEST_DEPENDS also needs napari, pygfx, viscm + +USES= python +USE_PYTHON= pep517 autoplist pytest # 3 tests fail because the $DISPLAY variable is missing + +NO_ARCH= yes + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +.include diff --git a/misc/py-cmap/distinfo b/misc/py-cmap/distinfo new file mode 100644 index 000000000000..05c9c3c44716 --- /dev/null +++ b/misc/py-cmap/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1725678559 +SHA256 (cmap-0.3.0.tar.gz) = 01ddd3f7b3abc42c3c126d2a590e8c03615a32be2b184ba68a69a2798f4fe460 +SIZE (cmap-0.3.0.tar.gz) = 591030 diff --git a/misc/py-cmap/pkg-descr b/misc/py-cmap/pkg-descr new file mode 100644 index 000000000000..53d3238b7819 --- /dev/null +++ b/misc/py-cmap/pkg-descr @@ -0,0 +1,8 @@ +cmap is a work-in-progress colormap library for python, providing all of the +colormaps in matplotlib, vispy, cmocean, (and more), with no dependencies +beyond numpy. + +Mapping scalar values to colors is a very common procedure in scientific +visualization; as such, many visualization libraries (e.g. matplotlib, vispy, +napari, etc...) have some need for and some internal representation of colors +and colormaps.