From nobody Mon Jan 30 13:04:47 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 4P57gh0nDkz3cY9g; Mon, 30 Jan 2023 13:04:48 +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 4P57gg4HKdz4LX1; Mon, 30 Jan 2023 13:04:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675083887; 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=j0OZTj5Vo1ZJUNNaL7G087bXhVutjnItniKj40vnJIo=; b=QJPN0JaD07eQnlbCyNrX2ehL/0US/EEJ1vjkrRvWe9+LW6r3bcMyzOXGlaqlApNp7x+dT5 BD66LjxfQNH/VrHlqVRLhOCUlQRcaKGpdYTyJOPU4AaJ3qAEUjTbCEOchNtXp7+ZVFHlBb VqZlI+JruvXSPwzSTK5cqfF4zDdL7BWn3BMjbjiZU8YGElGP4Oi9Ua4p/sVKn3KIfs92xR eRJD33NuYjgeVOK1kwzUFuammWG2o9n5vW3fx1CmiXme8AwHLieL0hXBmNrPsHWztnQ3DA Wt2YVuM9gR/C1DyK90XDCrzocoOgKdyVBY8DNLGsH5V0Vblg4gBmffZzpLtxMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675083887; 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=j0OZTj5Vo1ZJUNNaL7G087bXhVutjnItniKj40vnJIo=; b=vUJhdUsmimvoBX+BazjopAimAw0neCcOmfc9VZbmjcfyLs8GByFAVu81qUFlyU2VFvTAfI HJ/PJF31ALfb5mJbemV19VjejQnII3oqAy4oo5L2LqwuI4HKpvA++uYG6wulmU9o4VI2a8 4OGNCIYeEaWnMsYAjxCTrIOqlqhCZuTie8KFi5gjlp5INlV2DjNp69kn3/eAYOqDp4EAvk LvR0vUHEKx3H8J1n2yKKlobMGmamFgqde4NEHUtpcUlnb7iTi73Vx0TSJmJhbGNIs6LYgi sCgSv0KMFKVuMGZHzxgDOw79gXMsn1HHh4zOY5FnYZWXpAPolRZuO+AehJVwDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675083887; a=rsa-sha256; cv=none; b=omPM4hjSB2u9U33hofRMJtT+cL7viXLFyruLck1/FdlOn9od1qDi+nUOIvvkisDRytuVgH kdCa+vT/A/kYV945K903FAkYT7BBXPsr2WVjOUY0pMF1sLh7AJwka/uB4nMBCE60WsXgJv KqkUtFTl8B6VfyAecKliqbzoM8ntAo09XISnoT0PG1Tq64u6nekiYnvNDlnF7PajcVgLpp Yz+umOObSP51dTjnYo7XMvkgpyEkcHYCqjt/RUrZjOGq/hHfGxKT385Z25uMWYUchxYghY XD+fi5TKlxLz58U6i9G7OrclS+roppAApWzRsMXZyA8+DD5nwQPndaoBy/wJvA== 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 4P57gg38rcz18JB; Mon, 30 Jan 2023 13:04:47 +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 30UD4ldp051273; Mon, 30 Jan 2023 13:04:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30UD4lxe051272; Mon, 30 Jan 2023 13:04:47 GMT (envelope-from git) Date: Mon, 30 Jan 2023 13:04:47 GMT Message-Id: <202301301304.30UD4lxe051272@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: 3de77140327d - main - science/py-asdf-unit-schemas: Add py-asdf-unit-schemas 0.1.0 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: 3de77140327dc3ab3801f30ca226a4e295a9d7fe Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=3de77140327dc3ab3801f30ca226a4e295a9d7fe commit 3de77140327dc3ab3801f30ca226a4e295a9d7fe Author: Po-Chuan Hsieh AuthorDate: 2023-01-30 12:21:08 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-01-30 12:58:48 +0000 science/py-asdf-unit-schemas: Add py-asdf-unit-schemas 0.1.0 asdf-unit-schemas provides ASDF schemas for validating unit tags. Users should not need to install this directly; instead, install an implementation package such as asdf-astropy, which includes asdf-unit-schemas as a dependency. --- science/Makefile | 1 + science/py-asdf-unit-schemas/Makefile | 31 +++++++++++++++++++ science/py-asdf-unit-schemas/distinfo | 3 ++ science/py-asdf-unit-schemas/files/setup.py | 48 +++++++++++++++++++++++++++++ science/py-asdf-unit-schemas/pkg-descr | 3 ++ 5 files changed, 86 insertions(+) diff --git a/science/Makefile b/science/Makefile index d9f958844f24..fd813b9d88e6 100644 --- a/science/Makefile +++ b/science/Makefile @@ -298,6 +298,7 @@ SUBDIR += py-asdf SUBDIR += py-asdf-standard SUBDIR += py-asdf-transform-schemas + SUBDIR += py-asdf-unit-schemas SUBDIR += py-ase SUBDIR += py-atomium SUBDIR += py-avogadrolibs diff --git a/science/py-asdf-unit-schemas/Makefile b/science/py-asdf-unit-schemas/Makefile new file mode 100644 index 000000000000..c1d3b141bb6b --- /dev/null +++ b/science/py-asdf-unit-schemas/Makefile @@ -0,0 +1,31 @@ +PORTNAME= asdf-unit-schemas +PORTVERSION= 0.1.0 +CATEGORIES= science python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= asdf_unit_schemas-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= ASDF schemas for units +WWW= https://github.com/asdf-format/asdf-unit-schemas + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asdf-standard>=1.0.1:science/py-asdf-standard@${PY_FLAVOR} + +USES= python:3.8+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} < 30900 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=3:devel/py-importlib-resources@${PY_FLAVOR} +.endif + +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + +.include diff --git a/science/py-asdf-unit-schemas/distinfo b/science/py-asdf-unit-schemas/distinfo new file mode 100644 index 000000000000..a6791fc132bf --- /dev/null +++ b/science/py-asdf-unit-schemas/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1674588062 +SHA256 (asdf_unit_schemas-0.1.0.tar.gz) = 42b78d67213efe4ffd4529fb0e58d9c7a0dab5cbf8839b230f1bc0a446bff999 +SIZE (asdf_unit_schemas-0.1.0.tar.gz) = 50607 diff --git a/science/py-asdf-unit-schemas/files/setup.py b/science/py-asdf-unit-schemas/files/setup.py new file mode 100644 index 000000000000..6a6a4fa69815 --- /dev/null +++ b/science/py-asdf-unit-schemas/files/setup.py @@ -0,0 +1,48 @@ +#!/usr/bin/env python +# setup.py generated by flit for tools that don't yet use PEP 517 + +from distutils.core import setup + +packages = \ +['asdf_unit_schemas'] + +package_data = \ +{'': ['*']} + +package_dir = \ +{'': 'src'} + +install_requires = \ +['asdf-standard >= 1.0.1'] + +extras_require = \ +{':python_version<"3.9"': ['importlib_resources >= 3'], + 'docs': ['tomli', + 'sphinx', + 'sphinx-asdf >= 0.1.3', + 'sphinx-astropy', + 'astropy >= 5.0.4', + 'graphviz', + 'matplotlib', + 'docutils', + 'sphinx-rtd-theme'], + 'test': ['asdf >= 2.8.0', 'asdf-astropy', 'scipy', 'pytest']} + +entry_points = \ +{'asdf.resource_mappings': ['asdf_unit_schemas = ' + 'asdf_unit_schemas.integration:get_resource_mappings']} + +setup(name='asdf_unit_schemas', + version='%%PORTVERSION%%', + description='ASDF schemas for units', + author=None, + author_email='The ASDF Developers ', + url=None, + packages=packages, + package_data=package_data, + package_dir=package_dir, + install_requires=install_requires, + extras_require=extras_require, + entry_points=entry_points, + python_requires='>=3.8', + ) diff --git a/science/py-asdf-unit-schemas/pkg-descr b/science/py-asdf-unit-schemas/pkg-descr new file mode 100644 index 000000000000..ea73cd3a77df --- /dev/null +++ b/science/py-asdf-unit-schemas/pkg-descr @@ -0,0 +1,3 @@ +asdf-unit-schemas provides ASDF schemas for validating unit tags. Users should +not need to install this directly; instead, install an implementation package +such as asdf-astropy, which includes asdf-unit-schemas as a dependency.