Skip to content

Commit

Permalink
feat: change owners to maintainers
Browse files Browse the repository at this point in the history
  • Loading branch information
IronCore864 committed Sep 5, 2024
1 parent 983fc62 commit 39e88e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions interface_tester/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class _InterfacesDotYamlSpec(TypedDict):

providers: List[_CharmTestConfig]
requirers: List[_CharmTestConfig]
owners: List[str]
maintainers: str


class _RoleTestSpec(TypedDict):
Expand All @@ -82,7 +82,7 @@ class InterfaceTestSpec(TypedDict):

provider: _RoleTestSpec
requirer: _RoleTestSpec
owners: List[str]
maintainers: str


def get_schema_from_module(module: object, name: str) -> Type[pydantic.BaseModel]:
Expand Down Expand Up @@ -175,7 +175,7 @@ def _gather_charms_for_version(version_dir: Path) -> Optional[_InterfacesDotYaml

providers = charms.get("providers") or []
requirers = charms.get("requirers") or []
owners = charms.get("owners") or []
maintainers = charms.get("maintainers", "")

if not isinstance(providers, list) or not isinstance(requirers, list):
raise TypeError(
Expand All @@ -202,7 +202,7 @@ def _gather_charms_for_version(version_dir: Path) -> Optional[_InterfacesDotYaml
spec: _InterfacesDotYamlSpec = {
"providers": provider_configs,
"requirers": requirer_configs,
"owners": owners,
"maintainers": maintainers,
}
return spec

Expand Down Expand Up @@ -277,7 +277,7 @@ def gather_test_spec_for_version(
"schema": schemas.get("requirer"),
"charms": charms.get("requirers", []) if charms else [],
},
"owners": charms.get("owners") or [] if charms else [],
"maintainers": charms.get("maintainers", "") if charms else "",
}


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "pytest-interface-tester"

version = "3.1.0"
version = "3.1.1"
authors = [
{ name = "Pietro Pasotti", email = "[email protected]" },
]
Expand Down

0 comments on commit 39e88e1

Please sign in to comment.