Skip to content

Commit

Permalink
clean up requirements-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Aug 18, 2023
1 parent ff4d1ea commit 9600794
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
7 changes: 2 additions & 5 deletions asdf/_tests/tags/core/tests/test_ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
5 changes: 3 additions & 2 deletions asdf/_tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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}>
Expand Down
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9600794

Please sign in to comment.