Up to [cvs.NetBSD.org] / pkgsrc / math / py-asdf
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Forget Python 3.10
*: limit Python versions due to py-numpy dropping Python 3.11 support
py-asdf: updated to 5.1.0 5.1.0 (2025-11-06) Bugfix - Fix but preventing extension checking when opening a file with lazy_tree enabled. Feature - Add support for registering unstable/development versions of core extensions if the ASDF_UNSTABLE_CORE_SCHEMAS environment variable is set. Writing files with unstable/development extensions is discouraged as schema changes may make these files unreable in the future. - Add ``warn_on_failed_conversion`` to ``AsdfConfig``. Enabling this option will convert any exceptions raised during conversion to warnings. This can be helpful when opening old files with unsupported tags. 5.0.0 (2025-09-10) Removal - Remove deprecated refresh_extension_manager argument to ``AsdfFile.schema_info`` and ``AsdfFile.info``. Remove deprecated url_mapping argument to ``get_validator``. Remove deprecated resolver argument to ``load_schema``. Remove deprecated ``AsdfConfig.convert_unknown_ndarray_subclasses``. Remove deprecated application of ndarray specific validators to non-ndarrays. Remove deprecated opening of "http://" uris (unless fsspec is installed). Remove deprecated pytest_asdf plugin.
*: remove reference to (removed) Python 3.9
*: py-numpy needs Python >= 3.11 now
py-asdf: updated to 4.2.0 4.2.0 (2025-05-30) Bugfix - Allow extra keywords in structured datatype validation. - yield instead of raise ValidationError in validate_datatype to allow use in schema combiners - Support recursive tagged nodes in load_yaml. - Allow non-null bytes before the first byte. - Fix deepcopy of lazy tree. Doc - Improve documentation based on review feedback. Feature - Optionally use fsspec for urls (like those for s3 resources) provided to asdf.open. - Load block index with CSafeLoader if available. Removal - Deprecate opening http uris unless fsspec is installed.
Fix PLIST after py-setuptools update; bump depends and revision
py-asdf: updated to 4.1.0 4.1.0 (2025-01-31) Bugfix - Improve ``schema_info`` handling of schemas with combiners (allOf, anyOf, etc). - While walking schema for info/search/schema_info walk into nodes with __asdf_traverse__ if the parent node has a schema. - Don't infinitely loop on recursive lists during info/search/schema_info. - Use extension_manager of associated AsdfFile in info/search/schema_info. - Only use ANSI format codes when supported by stdout. Doc - Fix typos in search documentation. - updates docs theme to be consistent with asdf subprojects Feature - Add ``Converter.to_info`` to allow customizing ``info`` output.
py-asdf: updated to 4.0.0 4.0.0 (2024-11-19) Feature - Switch default ASDF standard to 1.6.0. - Raise RuntimeError if a Convert subclass supports multiple tags but doesn't implement select_tag. General - Set ``memmap=False`` to default for ``asdf.open`` and ``AsdfFile.__init__``. Removal - remove ``copy_arrays`` (replaced by ``memmap``) - Remove deprecated API. See docs for full details. - Switch default convert_unknown_ndarray_subclasses to False and issue deprecation warning if it is enabled.
py-*: remove unused tool dependency py-setuptools includes the py-wheel functionality nowadays
py-asdf: updated to 3.5.0 3.5.0 (2024-10-02) Bugfix - Allow ``asdf.util.load_yaml`` to handle recursive objects Doc - added issue links to changelog entries - Change asdf standard changelog entries to notes to ease transition to towncrier General - fix changelog checker to remove brackets Removal - Deprecate ``ignore_version_mismatch``. This option has done nothing since asdf 3.0.0 and will be removed in an upcoming asdf version
*: clean-up after python38 removal
py-asdf: updated to 3.4.0 3.4.0 (2024-08-04) - Fix issue where roundtripping a masked array with no masked values removes the mask - Use a custom exception ``AsdfSerializationError`` to indicate when an object in the tree fails to be serialized by asdf (and by yaml). This exception currently inherits from ``yaml.representer.RepresenterError`` to provide backwards compatibility. However this inheritance may be dropped in a future asdf version. Please migrate to the new ``AsdfSerializationError``. - Drop ``importlib_metadata`` as a dependency on Python 3.12 and newer - Bumped minimal requirement on ``attrs`` from ``20.1.0`` to ``22.2.0``
py-asdf: updated to 3.3.0 3.3.0 (2024-07-12) - Fix ``__asdf_traverse__`` for non-tagged objects - Deprecate ``asdf.testing.helpers.format_tag`` - Deprecate ``asdf.versioning.AsdfSpec`` - Deprecate ``asdf.util.filepath_to_url`` use ``pathlib.Path.to_uri`` - Record package providing manifest for extensions used to write a file and ``AsdfPackageVersionWarning`` when installed extension/manifest package does not match that used to write the file - Fix bug where a dictionary containing a key ``id`` caused any contained references to fail to resolve - Issue a ``AsdfManifestURIMismatchWarning`` during write if a used extension was created from a manifest registered with a uri that does not match the id in the manifest - Allow converters to provide types as strings that can resolve to public classes (even if the class is implemented in a private module). - Add options to control saving the base array when saving array views controlled via ``AsdfConfig.default_array_save_base``, ``AsdfFile.set_array_save_base`` and ``SerializationContext.set_array_save_base`` - Deprecate ``ignore_implicit_conversion`` and "implicit conversion" - Add ``lazy_tree`` option to ``asdf.open`` and ``asdf.config`` to allow lazy deserialization of ASDF tagged tree nodes to custom objects.
py-asdf: updated to 3.2.0 3.2.0 (2024-04-05) - Deprecate ``AsdfFile.version_map`` - Fix ``numpy.ma.MaskedArray`` saving for numpy 2.x - Add ``float16`` support - Removed unused ``asdf-unit-schemas`` dependency
py-asdf: updated to 3.1.0 3.1.0 (2024-02-27) The ASDF Standard is at v1.6.0 - Cleanup ``asdf.util`` including deprecating: ``human_list`` ``resolve_name`` ``minversion`` and ``iter_subclasses`` - Deprecate validation on ``AsdfFile.tree`` assignment. Please use ``AsdfFile.validate`` to validate the tree - Deprecate validation during ``AsdfFile.resolve_references``. Please use ``AsdfFile.validate`` to validate the tree - Deprecate ``asdf.asdf`` and ``AsdfFile.resolve_and_inline`` - Deprecate automatic calling of ``AsdfFile.find_references`` during ``AsdfFile.__init__`` and ``asdf.open`` - Allow views of memmapped arrays to keep the backing mmap open to avoid segfaults - Introduce ``memmap`` argument to ``asdf.open`` that overrides ``copy_arrays`` with documentation that describes that the default for ``memmap`` when ``copy_arrays`` is removed in an upcoming asdf release will be ``False`` and asdf will no longer by-default memory map arrays. - Introduce ``asdf.util.load_yaml`` to load just the YAML contents of an ASDF file (with the option ``tagged`` to load the contents as a tree of ``asdf.tagged.Tagged`` instances to preserve tags) - Require pytest 7+ and update asdf pytest plugin to be compatible with the current development version of pytest (8.1) - Eliminate the use of the legacy ``tmpdir`` fixture in favor of the new ``tmp_path`` fixture for temporary directory creation. - Remove conversion of warnings to errors in asdf pytest plugin. This prevented other warning filters (like those provided with ``-W``) from working. If you want these warnings to produce errors you can now add your own warning filter - Only show ``str`` representation during ``info`` and ``search`` if it contains a single line (and does not fail)
py-asdf: updated to 3.0.1 3.0.1 (2023-10-30) ------------------ The ASDF Standard is at v1.6.0 - Fix bug in ``asdftool diff`` for arrays within a list 3.0.0 (2023-10-16) ------------------ The ASDF Standard is at v1.6.0 - Drop support for ASDF-in-FITS. - Add ``all_array_storage``, ``all_array_compression`` and ``all_array_compression_kwargs`` to ``asdf.config.AsdfConfig`` - Move built-in tags to converters (except ndarray and integer). - Add block storage support to Converter - Remove deprecated legacy extension API - Fix issue opening files that don't support ``fileno`` - Allow Converters to defer conversion to other Converters by returning ``None`` in ``Converter.select_tag`` - Remove deprecated tests.helpers - Remove deprecated load_custom_schema - Remove deprecated TagDefinition.schema_uri - Removed deprecated AsdfFile.open and deprecated asdf.open AsdfFile.write_to and AsdfFile.update kwargs - Fix ``AsdfFile.info`` loading all array data - Blank out AsdfFile.tree on close - Move ndarray to a converter, add ``convert_unknown_ndarray_subclasses`` to ``asdf.config.AsdfConfig``, move ``asdf.Stream`` to ``asdf.tags.core.Stream``, update block storage support for Converter and update internal block API - Remove deprecated resolve_local_refs argument to load_schema - Move IntegerType to converter and drop cache of converted values. - Remove legacy extension API - Fix bug that left out the name of the arrays that differed for ``asdftool diff`` comparisons
python/wheel.mk: simplify a lot, and switch to 'installer' for installation This follows the recommended bootstrap method (flit_core, build, installer). However, installer installs different files than pip, so update PLISTs for all packages using wheel.mk and bump their PKGREVISIONs.
py-asdf: updated to 2.15.2 2.15.2 (2023-09-29) The ASDF Standard is at v1.6.0 - Add support for python 3.12
py-asdf: updated to 2.15.1 2.15.1 (2023-08-07) ------------------- The ASDF Standard is at v1.6.0 - Drop Python 3.8 support - Drop NumPy 1.20, 1.21 support - Convert numpy scalars to python types during yaml encoding to handle NEP51 changes for numpy 2.0 - Vendorize jsonschema 4.17.3 2.15.0 (2023-03-28) ------------------- The ASDF Standard is at v1.6.0 - Require numpy<1.25 for python 3.8 - Add AsdfProvisionalAPIWarning to warn developers of new features that may undergo breaking changes but are likely to be included as stable features (without this warning) in a future version of ASDF - Add AsdfDeprecationWarning to AsdfFile.blocks - Document policy for ASDF release cycle including when support for ASDF versions end. Also document dependency support policy. - Update lower pins on ``numpy`` (per release policy), ``packaging``, and ``pyyaml`` to ones that we can successfully build and test against. - Provide more informative filename when failing to open a file - Add new plugin type for custom schema validators. - Add AsdfDeprecationWarning to `~asdf.types.CustomType` - Throw more useful error when provided with a path containing an extra leading slash - Add AsdfDeprecationWarning to AsdfInFits. Support for reading and writing ASDF in fits files is being moved to `stdatamodels <https://github.com/spacetelescope/stdatamodels>`_. - Add AsdfDeprecationWarning to asdf.resolver - Add AsdfDeprecationWarning to asdf.tests.helpers.assert_extension_correctness - Add AsdfDeprecationWarning to asdf.type_index - Add warning to use of asdftool extract and remove-hdu about deprecation and impending removal - Deprecate AsdfFile attributes that use the legacy extension api - Add AsdfDeprecationWarning to asdf.types - deprecate default_extensions, get_default_resolver and get_cached_asdf_extension_list in asdf.extension - move asdf.types.format_tag to asdf.testing.helpers.format_tag - Deprecate AsdfExtenion, AsdfExtensionList, BuiltinExtension - Add AsdfDeprecationWarning to asdf_extensions entry point - Deprecate asdf.tests.helpers - respect umask when determining file permissions for written files - rename master branch to main
*: remove more references to Python 3.7
*: restrict py-numpy users to 3.9+ in preparation for update
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/. Almost all uses, if not all of them, are wrong, according to the semantics of BUILD_DEPENDS (packages built for target available for use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for host available for use _as_ tools at build-time). No change to BUILD_DEPENDS as used correctly inside buildlink3. As proposed on tech-pkg: https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
*: use PYTHON_VERSION instead of _PYTHON_VERSION
devel/py-asdf: import 2.11.0 from wip 2.11.0 (2022-03-15) ------------------- - Update minimum jsonschema version to 4.0.1. [#1105] 2.10.1 (2022-03-02) ------------------- - Bugfix for circular build dependency for asdf. [#1094] - Fix small bug with handling multiple schema uris per tag. [#1095] 2.10.0 (2022-02-17) ------------------- - Replace asdf-standard submodule with pypi package. [#1079] 2.9.2 (2022-02-07) ------------------ - Fix deprecation warnings stemming from the release of pytest 7.0.0. [#1075] - Fix bug in pytest plugin when schemas are not in a directory named "schemas". [#1076] 2.9.1 (2022-02-03) ------------------ - Fix typo in testing module ``__init__.py`` name. [#1071] 2.9.0 (2022-02-02) ------------------ - Added the capability for tag classes to provide an interface to asdf info functionality to obtain information about the class attributes rather than appear as an opaque class object. [#1052 #1055] - Fix tag listing when extension is not fully implemented. [#1034] - Drop support for Python 3.6. [#1054] - Adjustments to compression plugin tests and documentation. [#1053] - Update setup.py to raise error if "git submodule update --init" has not been run. [#1057] - Add ability for tags to correspond to multiple schema_uri, with an implied allOf among the schema_uris. [#1058, #1069] - Add the URL of the file being parsed to ``SerializationContext``. [#1065] - Add ``asdf.testing.helpers`` module with simplified versions of test helpers previously available in ``asdf.tests.helpers``. [#1067]
python: egg.mk: add USE_PKG_RESOURCES flag This flag should be set for packages that import pkg_resources and thus need setuptools after the build step. Set this flag for packages that need it and bump PKGREVISION.
*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS
Forget about Python 3.6
py-asdf: updated to 2.8.3 2.8.3 (2021-12-13) ------------------ - Fix more use of 'python' where 'python3' is intended. 2.8.2 (2021-12-06) ------------------ - Update documentation to reflect new 2.8 features. - Fix array compression for non-native byte order - Fix use of 'python' where 'python3' is intended. - Fix schema URI resolving when the URI prefix is also claimed by a legacy extension. - Remove 'name' and 'version' attributes from NDArrayType instances. 2.8.1 (2021-06-09) ------------------ - Fix bug in block manager when a new block is added to an existing file without a block index. 2.8.0 (2021-05-12) ------------------ - Add ``yaml_tag_handles`` property to allow definition of custom yaml ``%TAG`` handles in the asdf file header. - Add new resource mapping API for extending asdf with additional schemas. - Add global configuration mechanism. - Drop support for automatic serialization of subclass attributes. - Support asdf:// as a URI scheme. - Include only extensions used during serialization in a file's metadata. - Drop support for Python 3.5. - Add new extension API to support versioned extensions. - Permit wildcard in tag validator URIs. - Implement support for ASDF Standard 1.6.0. This version of the standard limits mapping keys to string, integer, or boolean. - Stop removing schema defaults for all ASDF Standard versions, and automatically fill defaults only for versions <= 1.5.0. - Stop removing keys with ``None`` values from the tree on write. This fixes a long-standing issue where the tree structure is not preserved on write, but will break ``ExtensionType`` subclasses that depend on this behavior. Extension developers will need to modify their ``to_tree`` methods to check for ``None`` before adding a key to the tree (or modify the schema to permit nulls, if that is the intention). - Deprecated the ``auto_inline`` argument to ``AsdfFile.write_to`` and ``AsdfFile.update`` and added ``AsdfConfig.array_inline_threshold``. - Add ``edit`` subcommand to asdftool for efficient editing of the YAML portion of an ASDF file. - Increase limit on integer literals to signed 64-bit. - Remove the ``asdf.test`` method and ``asdf.__githash__`` attribute. - Add support for custom compression via extensions. - Remove unnecessary ``.tree`` from search result paths. - Drop support for bugs in older operating systems and Python versions. - Add argument to ``asdftool diff`` that ignores tree nodes that match a JMESPath expression. - Fix behavior of ``exception`` argument to ``GenericFile.seek_until``. - Fix issues in file type detection to allow non-seekable input and filenames without recognizable extensions. Remove the ``asdf.asdf.is_asdf_file`` function. - Update ``asdftool extensions`` and ``asdftool tags`` to incorporate the new extension API. - Add ``AsdfSearchResult.replace`` method for assigning new values to search results. - Search for block index starting from end of file. Fixes rare bug when a data block contains a block index. - Update asdf-standard to 1.6.0 tag. 2.7.5 (2021-06-09) ------------------ - Fix bug in ``asdf.schema.check_schema`` causing relative references in metaschemas to be resolved incorrectly. - Fix bug in block manager when a new block is added to an existing file without a block index. 2.7.4 (2021-04-30) ------------------ - Fix pytest plugin failure under older versions of pytest. - Copy array views when the base array is non-contiguous. - Prohibit views over FITS arrays that change dtype. - Add support for HTTPS URLs and following redirects. - Prevent astropy warnings in tests when opening known bad files.
py-numpy: "Python version >= 3.7 required."
py-asdf: updated to 2.7.3 2.7.3 (2021-02-25) ------------------ - Add pytest plugin options to skip and xfail individual tests and xfail the unsupported ndarray-1.0.0 example. - Fix bug resulting in invalid strides values for views over FITS arrays. 2.7.2 (2021-01-15) ------------------ - Fix bug causing test collection failures in some environments. - Fix bug when decompressing arrays with numpy 1.20
(math/py-asdf) import py38-asdf-2.7.1 Based on PR pkg/55863 by Daisuke Kinoshita The Advanced Scientific Data Format (ASDF) is a next-generation interchange format for scientific data.