summaryrefslogtreecommitdiff
path: root/science/py-asdf
diff options
context:
space:
mode:
Diffstat (limited to 'science/py-asdf')
-rw-r--r--science/py-asdf/Makefile19
-rw-r--r--science/py-asdf/distinfo6
-rw-r--r--science/py-asdf/files/patch-pyproject.toml11
3 files changed, 26 insertions, 10 deletions
diff --git a/science/py-asdf/Makefile b/science/py-asdf/Makefile
index f6c7539035f4..8efabf947d4c 100644
--- a/science/py-asdf/Makefile
+++ b/science/py-asdf/Makefile
@@ -1,12 +1,12 @@
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://asdf.readthedocs.io/en/latest/ \
+WWW= https://www.asdf-format.org/projects/asdf/en/latest/ \
https://github.com/asdf-format/asdf
LICENSE= BSD3CLAUSE
@@ -31,18 +31,23 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fsspec>=2022.8.2:filesystems/py-fsspec@${PY
# 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 <bsd.port.pre.mk>
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 = [