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.
Files changed (111) hide show
  1. {npe2-0.7.4 → npe2-0.7.5rc0}/.github/workflows/ci.yml +3 -1
  2. {npe2-0.7.4 → npe2-0.7.5rc0}/PKG-INFO +2 -2
  3. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/_package_metadata.py +4 -2
  4. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_conversion.py +8 -2
  5. {npe2-0.7.4 → npe2-0.7.5rc0}/.github/ISSUE_TEMPLATE.md +0 -0
  6. {npe2-0.7.4 → npe2-0.7.5rc0}/.github/dependabot.yml +0 -0
  7. {npe2-0.7.4 → npe2-0.7.5rc0}/.github/workflows/test_all_plugins.yml +0 -0
  8. {npe2-0.7.4 → npe2-0.7.5rc0}/.github/workflows/test_conversion.yml +0 -0
  9. {npe2-0.7.4 → npe2-0.7.5rc0}/.github/workflows/update_changelog.yml +0 -0
  10. {npe2-0.7.4 → npe2-0.7.5rc0}/.github_changelog_generator +0 -0
  11. {npe2-0.7.4 → npe2-0.7.5rc0}/.gitignore +0 -0
  12. {npe2-0.7.4 → npe2-0.7.5rc0}/.pre-commit-config.yaml +0 -0
  13. {npe2-0.7.4 → npe2-0.7.5rc0}/CHANGELOG.md +0 -0
  14. {npe2-0.7.4 → npe2-0.7.5rc0}/LICENSE +0 -0
  15. {npe2-0.7.4 → npe2-0.7.5rc0}/Makefile +0 -0
  16. {npe2-0.7.4 → npe2-0.7.5rc0}/README.md +0 -0
  17. {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/example_manifest.yaml +0 -0
  18. {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/example_plugin/__init__.py +0 -0
  19. {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/example_plugin/some_module.py +0 -0
  20. {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/render.py +0 -0
  21. {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_contributions.md.jinja +0 -0
  22. {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_manifest.md.jinja +0 -0
  23. {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_readers_guide.md.jinja +0 -0
  24. {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_sample_data_guide.md.jinja +0 -0
  25. {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_widgets_guide.md.jinja +0 -0
  26. {npe2-0.7.4 → npe2-0.7.5rc0}/_docs/templates/_npe2_writers_guide.md.jinja +0 -0
  27. {npe2-0.7.4 → npe2-0.7.5rc0}/codecov.yml +0 -0
  28. {npe2-0.7.4 → npe2-0.7.5rc0}/docs/_config.yml +0 -0
  29. {npe2-0.7.4 → npe2-0.7.5rc0}/docs/_toc.yml +0 -0
  30. {npe2-0.7.4 → npe2-0.7.5rc0}/docs/index.md +0 -0
  31. {npe2-0.7.4 → npe2-0.7.5rc0}/docs/requirements.txt +0 -0
  32. {npe2-0.7.4 → npe2-0.7.5rc0}/pyproject.toml +0 -0
  33. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/__init__.py +0 -0
  34. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/__main__.py +0 -0
  35. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_command_registry.py +0 -0
  36. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_dynamic_plugin.py +0 -0
  37. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/__init__.py +0 -0
  38. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/_compile.py +0 -0
  39. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/_fetch.py +0 -0
  40. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/_from_npe1.py +0 -0
  41. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/_setuputils.py +0 -0
  42. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_inspection/_visitors.py +0 -0
  43. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_plugin_manager.py +0 -0
  44. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_pydantic_compat.py +0 -0
  45. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_pytest_plugin.py +0 -0
  46. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/_setuptools_plugin.py +0 -0
  47. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/cli.py +0 -0
  48. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/implements.py +0 -0
  49. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/implements.pyi +0 -0
  50. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/io_utils.py +0 -0
  51. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/__init__.py +0 -0
  52. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/_bases.py +0 -0
  53. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/_npe1_adapter.py +0 -0
  54. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/_validators.py +0 -0
  55. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/__init__.py +0 -0
  56. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_commands.py +0 -0
  57. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_configuration.py +0 -0
  58. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_contributions.py +0 -0
  59. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_icon.py +0 -0
  60. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_json_schema.py +0 -0
  61. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_keybindings.py +0 -0
  62. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_menus.py +0 -0
  63. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_readers.py +0 -0
  64. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_sample_data.py +0 -0
  65. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_submenu.py +0 -0
  66. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_themes.py +0 -0
  67. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_widgets.py +0 -0
  68. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/contributions/_writers.py +0 -0
  69. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/menus.py +0 -0
  70. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/package_metadata.py +0 -0
  71. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/schema.py +0 -0
  72. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/manifest/utils.py +0 -0
  73. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/plugin_manager.py +0 -0
  74. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/py.typed +0 -0
  75. {npe2-0.7.4 → npe2-0.7.5rc0}/src/npe2/types.py +0 -0
  76. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/conftest.py +0 -0
  77. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/fixtures/my-compiled-plugin/my_module/__init__.py +0 -0
  78. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/fixtures/my-compiled-plugin/my_module/_a.py +0 -0
  79. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/fixtures/my-compiled-plugin/my_module/_b.py +0 -0
  80. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/fixtures/my-compiled-plugin/setup.cfg +0 -0
  81. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/npe1-plugin-0.0.1.dist-info/METADATA +0 -0
  82. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/npe1-plugin-0.0.1.dist-info/RECORD +0 -0
  83. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/npe1-plugin-0.0.1.dist-info/entry_points.txt +0 -0
  84. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/npe1-plugin-0.0.1.dist-info/top_level.txt +0 -0
  85. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/npe1_module/__init__.py +0 -0
  86. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/npe1-plugin/setup.cfg +0 -0
  87. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/_with_decorators.py +0 -0
  88. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/my_plugin/__init__.py +0 -0
  89. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/my_plugin/napari.yaml +0 -0
  90. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/my_plugin-1.2.3.dist-info/METADATA +0 -0
  91. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/my_plugin-1.2.3.dist-info/entry_points.txt +0 -0
  92. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/sample/my_plugin-1.2.3.dist-info/top_level.txt +0 -0
  93. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test__io_utils.py +0 -0
  94. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_all_plugins.py +0 -0
  95. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_cli.py +0 -0
  96. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_compile.py +0 -0
  97. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_config_contribution.py +0 -0
  98. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_contributions.py +0 -0
  99. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_docs.py +0 -0
  100. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_fetch.py +0 -0
  101. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_implements.py +0 -0
  102. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_manifest.py +0 -0
  103. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_npe1_adapter.py +0 -0
  104. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_package_meta.py +0 -0
  105. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_plugin_manager.py +0 -0
  106. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_pm_module.py +0 -0
  107. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_pytest_plugin.py +0 -0
  108. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_setuptools_plugin.py +0 -0
  109. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_tmp_plugin.py +0 -0
  110. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_utils.py +0 -0
  111. {npe2-0.7.4 → npe2-0.7.5rc0}/tests/test_validations.py +0 -0
@@ -148,7 +148,9 @@ jobs:
148
148
  needs: test
149
149
  if: "success() && startsWith(github.ref, 'refs/tags/')"
150
150
  runs-on: ubuntu-latest
151
-
151
+ permissions:
152
+ contents: write
153
+ id-token: write
152
154
  steps:
153
155
  - uses: actions/checkout@v4
154
156
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: npe2
3
- Version: 0.7.4
3
+ Version: 0.7.5rc0
4
4
  Summary: napari plugin engine v2
5
5
  Project-URL: homepage, https://github.com/napari/npe2
6
6
  Project-URL: repository, https://github.com/napari/npe2
@@ -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
- metadata_version: MetadataVersion = Field(
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(ModuleNotFoundError), pytest.warns(UserWarning):
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(PackageNotFoundError):
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