diff --git a/asdf/_tests/tags/core/tests/test_ndarray.py b/asdf/_tests/tags/core/tests/test_ndarray.py index d0aac5d8a..13a0aa958 100644 --- a/asdf/_tests/tags/core/tests/test_ndarray.py +++ b/asdf/_tests/tags/core/tests/test_ndarray.py @@ -180,24 +180,21 @@ def __init__(self, array): def array(self): return np.array(self._array) - class NDArrayContainerConverter: tags = ["http://somewhere.org/tags/foo-1.0.0"] types = [NDArrayContainer] def to_yaml_tree(self, obj, tag, ctx): - return {'array': obj.array} + return {"array": obj.array} def from_yaml_tree(self, node, tag, ctx): - return NDArrayContainer(node['array']) - + return NDArrayContainer(node["array"]) class NDArrayContainerExtension: tags = NDArrayContainerConverter.tags converters = [NDArrayContainerConverter()] extension_uri = "http://somewhere.org/extensions/foo-1.0.0" - container = NDArrayContainer([[1, 2], [3, 4]]) tree = {"test": container} diff --git a/asdf/_tests/test_schema.py b/asdf/_tests/test_schema.py index f868b82d0..c2d50a398 100644 --- a/asdf/_tests/test_schema.py +++ b/asdf/_tests/test_schema.py @@ -41,7 +41,8 @@ class Scalar: def __init__(self, value): self.value = value - scalar_tag = 'http://somewhere.org/tags/scalar-1.0.0' + scalar_tag = "http://somewhere.org/tags/scalar-1.0.0" + class ScalarConverter: tags = [scalar_tag] types = [Scalar] @@ -55,7 +56,7 @@ def from_yaml_tree(self, node, tag, ctx): class ScalarExtension: tags = [scalar_tag] converters = [ScalarConverter()] - extension_uri = 'http://somewhere.org/extensions/scalar-1.0.0' + extension_uri = "http://somewhere.org/extensions/scalar-1.0.0" yaml = f""" tagged: !<{scalar_tag}> diff --git a/requirements-dev.txt b/requirements-dev.txt index 34a857c96..4f8b48f5b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,14 +1,14 @@ -git+https://github.com/astropy/asdf-astropy git+https://github.com/asdf-format/asdf-coordinates-schemas git+https://github.com/asdf-format/asdf-standard git+https://github.com/asdf-format/asdf-transform-schemas git+https://github.com/asdf-format/asdf-unit-schemas.git git+https://github.com/asdf-format/asdf-wcs-schemas -git+https://github.com/astropy/astropy -git+https://github.com/spacetelescope/gwcs #git+https://github.com/yaml/pyyaml.git # jsonschema 4.18 contains incompatible changes: https://github.com/asdf-format/asdf/issues/1485 #git+https://github.com/python-jsonschema/jsonschema numpy>=0.0.dev0 +# although we don't use scipy, we include it here so that any dependency +# that uses it during these tests will use the development version +# which is more likely to work with the above development version of numpy scipy>=0.0.dev0