diff --git a/science/py-asdf/Makefile b/science/py-asdf/Makefile index f5f730bff202..8efabf947d4c 100644 --- a/science/py-asdf/Makefile +++ b/science/py-asdf/Makefile @@ -1,53 +1,58 @@ PORTNAME= asdf -PORTVERSION= 4.1.0 +PORTVERSION= 4.2.0 CATEGORIES= science python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Python tools to handle ASDF files WWW= https://www.asdf-format.org/projects/asdf/en/latest/ \ https://github.com/asdf-format/asdf LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=60:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asdf-standard>=1.1.0:science/py-asdf-standard@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}asdf-transform-schemas>=0.3:science/py-asdf-transform-schemas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}attrs>=22.2.0:devel/py-attrs@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jmespath>=0.6.2:devel/py-jmespath@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}numpy>=1.22,1:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>=19:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyyaml>=5.4.1:devel/py-pyyaml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}semantic-version>=2.8:devel/py-semantic-version@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fsspec>=2022.8.2:filesystems/py-fsspec@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}lz4>=0.10:archivers/py-lz4@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-doctestplus>=0:devel/py-pytest-doctestplus@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-remotedata>=0:devel/py-pytest-remotedata@${PY_FLAVOR} # fsspec[http] TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}aiohttp>=0:www/py-aiohttp@${PY_FLAVOR} -USES= python:3.9+ shebangfix +USES= python shebangfix USE_PYTHON= autoplist concurrent pep517 pytest NO_ARCH= yes SHEBANG_FILES= asdf/_jsonschema/json/bin/jsonschema_suite -OPTIONS_DEFINE= ALL -OPTIONS_DEFAULT=ALL -ALL_DESC= Lz4 compression algorithm support +OPTIONS_DEFINE= ALL HTTP LZ4 +OPTIONS_DEFAULT=ALL HTTP LZ4 +ALL_IMPLIES= HTTP LZ4 +ALL_DESC= All optional dependencies +HTTP_DESC= HTTP support via fsspec +LZ4_DESC= Lz4 compression algorithm support -ALL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lz4>=0.10:archivers/py-lz4@${PY_FLAVOR} +HTTP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=0:www/py-aiohttp@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}fsspec>=2022.8.2:filesystems/py-fsspec@${PY_FLAVOR} +LZ4_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lz4>=0.10:archivers/py-lz4@${PY_FLAVOR} .include .if ${PYTHON_REL} < 31100 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4.11.4:devel/py-importlib-metadata@${PY_FLAVOR} .endif .include diff --git a/science/py-asdf/distinfo b/science/py-asdf/distinfo index 32ed0b5a80d7..6de3b3412bd5 100644 --- a/science/py-asdf/distinfo +++ b/science/py-asdf/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1738606491 -SHA256 (asdf-4.1.0.tar.gz) = 0ff44992c85fd768bd9a9512ab7f012afb52ddcee390e9caf67e30d404122da1 -SIZE (asdf-4.1.0.tar.gz) = 905128 +TIMESTAMP = 1748831252 +SHA256 (asdf-4.2.0.tar.gz) = cba00a10cde18deb20100e001fe41022f5c0cda02720dda9f716fb2150a46cf7 +SIZE (asdf-4.2.0.tar.gz) = 892353 diff --git a/science/py-asdf/files/patch-pyproject.toml b/science/py-asdf/files/patch-pyproject.toml new file mode 100644 index 000000000000..be3ddaa30ee5 --- /dev/null +++ b/science/py-asdf/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2025-05-30 20:49:07 UTC ++++ pyproject.toml +@@ -2,7 +2,7 @@ readme = 'README.rst' + name = "asdf" + description = "Python implementation of the ASDF Standard" + readme = 'README.rst' +-license-files = ['LICENSE'] ++license = { file = 'LICENSE' } + authors = [{ name = 'The ASDF Developers', email = 'help@stsci.edu' }] + requires-python = '>=3.9' + classifiers = [