npe2 0.7.4__tar.gz → 0.7.5rc0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {npe2-0.7.4 → npe2-0.7.5rc0}/.github/workflows/ci.yml +3 -1
- {npe2-0.7.4 → npe2-0.7.5rc0}/PKG-INFO +2 -2
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/_package_metadata.py +4 -2
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_conversion.py +8 -2
- {npe2-0.7.4 → npe2-0.7.5rc0}/.github/ISSUE_TEMPLATE.md +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/.github/dependabot.yml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/.github/workflows/test_all_plugins.yml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/.github/workflows/test_conversion.yml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/.github/workflows/update_changelog.yml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/.github_changelog_generator +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/.gitignore +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/.pre-commit-config.yaml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/CHANGELOG.md +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/LICENSE +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/Makefile +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/README.md +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/example_manifest.yaml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/example_plugin/__init__.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/example_plugin/some_module.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/render.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_contributions.md.jinja +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_manifest.md.jinja +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_readers_guide.md.jinja +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_sample_data_guide.md.jinja +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_widgets_guide.md.jinja +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_writers_guide.md.jinja +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/codecov.yml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/docs/_config.yml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/docs/_toc.yml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/docs/index.md +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/docs/requirements.txt +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/pyproject.toml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/__init__.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/__main__.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_command_registry.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_dynamic_plugin.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/__init__.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/_compile.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/_fetch.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/_from_npe1.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/_setuputils.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/_visitors.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_plugin_manager.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_pydantic_compat.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_pytest_plugin.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_setuptools_plugin.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/cli.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/implements.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/implements.pyi +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/io_utils.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/__init__.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/_bases.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/_npe1_adapter.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/_validators.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/__init__.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_commands.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_configuration.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_contributions.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_icon.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_json_schema.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_keybindings.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_menus.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_readers.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_sample_data.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_submenu.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_themes.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_widgets.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_writers.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/menus.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/package_metadata.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/schema.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/utils.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/plugin_manager.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/py.typed +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/types.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/conftest.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/fixtures/my-compiled-plugin/my_module/__init__.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/fixtures/my-compiled-plugin/my_module/_a.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/fixtures/my-compiled-plugin/my_module/_b.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/fixtures/my-compiled-plugin/setup.cfg +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/npe1-plugin-0.0.1.dist-info/METADATA +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/npe1-plugin-0.0.1.dist-info/RECORD +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/npe1-plugin-0.0.1.dist-info/entry_points.txt +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/npe1-plugin-0.0.1.dist-info/top_level.txt +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/npe1_module/__init__.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/setup.cfg +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/_with_decorators.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/my_plugin/__init__.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/my_plugin/napari.yaml +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/my_plugin-1.2.3.dist-info/METADATA +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/my_plugin-1.2.3.dist-info/entry_points.txt +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/my_plugin-1.2.3.dist-info/top_level.txt +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test__io_utils.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_all_plugins.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_cli.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_compile.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_config_contribution.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_contributions.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_docs.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_fetch.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_implements.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_manifest.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_npe1_adapter.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_package_meta.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_plugin_manager.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_pm_module.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_pytest_plugin.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_setuptools_plugin.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_tmp_plugin.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_utils.py +0 -0
- {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_validations.py +0 -0
|
@@ -12,7 +12,7 @@ from npe2._pydantic_compat import (
|
|
|
12
12
|
|
|
13
13
|
# https://packaging.python.org/specifications/core-metadata/
|
|
14
14
|
|
|
15
|
-
MetadataVersion = Literal["1.0", "1.1", "1.2", "2.0", "2.1", "2.2"]
|
|
15
|
+
MetadataVersion = Literal["1.0", "1.1", "1.2", "2.0", "2.1", "2.2", "2.3"]
|
|
16
16
|
_alphanum = "[a-zA-Z0-9]"
|
|
17
17
|
PackageName = constr(regex=f"^{_alphanum}[a-zA-Z0-9._-]*{_alphanum}$")
|
|
18
18
|
|
|
@@ -30,7 +30,9 @@ class PackageMetadata(BaseModel):
|
|
|
30
30
|
class Config:
|
|
31
31
|
extra = Extra.ignore
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
# allow str as a fallback in case the metata-version specification has been
|
|
34
|
+
# updated and we haven't updated the code yet
|
|
35
|
+
metadata_version: Union[MetadataVersion, str] = Field(
|
|
34
36
|
"1.0", description="Version of the file format"
|
|
35
37
|
)
|
|
36
38
|
name: PackageName = Field( # type: ignore
|
|
@@ -140,12 +140,18 @@ setup(
|
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
def test_conversion_missing():
|
|
143
|
-
with pytest.raises(
|
|
143
|
+
with pytest.raises(
|
|
144
|
+
PackageNotFoundError,
|
|
145
|
+
match="No package or entry point found with name",
|
|
146
|
+
):
|
|
144
147
|
manifest_from_npe1("does-not-exist-asdf6as987")
|
|
145
148
|
|
|
146
149
|
|
|
147
150
|
def test_conversion_package_is_not_a_plugin():
|
|
148
|
-
with pytest.raises(
|
|
151
|
+
with pytest.raises(
|
|
152
|
+
PackageNotFoundError,
|
|
153
|
+
match="No package or entry point found with name",
|
|
154
|
+
):
|
|
149
155
|
manifest_from_npe1("pytest")
|
|
150
156
|
|
|
151
157
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|