Skip to content

Commit

Permalink
feat!: migrate example models to tests/ and remove example extension …
Browse files Browse the repository at this point in the history
…from package
  • Loading branch information
ketozhang committed Nov 17, 2024
1 parent 5cbeb18 commit 6b7d17e
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 29 deletions.
Empty file removed asdf_pydantic/examples/__init__.py
Empty file.
19 changes: 0 additions & 19 deletions asdf_pydantic/examples/extensions.py

This file was deleted.

3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ Documentation = "https://asdf-pydantic.readthedocs.io"
Issues = "https://github.com/ketozhang/asdf-pydantic/issues"
Source = "https://github.com/ketozhang/asdf-pydantic"

[project.entry-points]
'asdf.extensions' = { asdf_pydantic_extension = 'asdf_pydantic.examples.extensions:get_extensions' }

[tool.hatch.version]
source = "vcs"

Expand Down
File renamed without changes.
9 changes: 2 additions & 7 deletions tests/examples/test_rectangle.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
import yaml
from asdf.extension import Extension

from asdf_pydantic import AsdfPydanticConverter, AsdfPydanticModel


class AsdfRectangle(AsdfPydanticModel):
_tag = "asdf://asdf-pydantic/examples/tags/rectangle-1.0.0"
width: float
height: float
from asdf_pydantic import AsdfPydanticConverter
from tests.examples.shapes import AsdfRectangle


@pytest.fixture()
Expand Down
File renamed without changes.

0 comments on commit 6b7d17e

Please sign in to comment.