diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f5a3e9a5b..42201ae96 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -105,10 +105,6 @@ jobs: - os: ubuntu-latest python: '3.12' pyproject_metadata: '==0.8.0' - # Tets with pyproject-metadata release candidate - - os: ubuntu-latest - python: '3.12' - pyproject_metadata: '==0.9.0rc1' steps: - name: Checkout diff --git a/mesonpy/__init__.py b/mesonpy/__init__.py index b0ed1eac6..476957c5b 100644 --- a/mesonpy/__init__.py +++ b/mesonpy/__init__.py @@ -240,7 +240,7 @@ def __init__(self, name: str, *args: Any, **kwargs: Any): super().__init__(name, *args, **kwargs) @classmethod - def from_pyproject( + def from_pyproject( # type: ignore[override] cls, data: Mapping[str, Any], project_dir: Path = os.path.curdir, @@ -345,7 +345,7 @@ def _libs_dir(self) -> str: @property def _license_file(self) -> Optional[pathlib.Path]: license_ = self._metadata.license - if license_: + if license_ and isinstance(license_, pyproject_metadata.License): return license_.file return None