Hatch crashes if plugin namespace has dots in entry points
See original GitHub issueIn my pyproject.toml
I have the following entry point:
[project.entry-points.iqe.click_commands]
requirements-report = "iqe_requirements.cli:requirements"
When I do hatch build
, hatch
crashes with the traceback:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/tmpxtz_mwbc/Xc48/lib/python3.8/site-packages/hatchling/__main__.py", line 6, in <module>
sys.exit(hatchling())
File "/tmp/tmpxtz_mwbc/Xc48/lib/python3.8/site-packages/hatchling/cli/__init__.py", line 26, in hatchling
command(**kwargs)
File "/tmp/tmpxtz_mwbc/Xc48/lib/python3.8/site-packages/hatchling/cli/build/__init__.py", line 64, in build_impl
for artifact in builder.build(
File "/tmp/tmpxtz_mwbc/Xc48/lib/python3.8/site-packages/hatchling/builders/plugin/interface.py", line 77, in build
self.metadata.core.validate_fields()
File "/tmp/tmpxtz_mwbc/Xc48/lib/python3.8/site-packages/hatchling/metadata/core.py", line 1119, in validate_fields
getattr(self, attribute)
File "/tmp/tmpxtz_mwbc/Xc48/lib/python3.8/site-packages/hatchling/metadata/core.py", line 955, in entry_points
raise TypeError(
TypeError: Object reference `click_commands` of field `project.entry-points.iqe` must be a string
Looks like hatch
doesn’t expect a string with dots in plugin-namespace
.
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
crash when calling functions from plugins that have dots ...
I use a plugin whose name has dots inside. The program that uses this plugin crashes when a function from the plugin is...
Read more >Crash or freeze while using the HATCH command in AutoCAD
When using the HATCH command in AutoCAD, the program crashes or freezes right away or while previewing the hatch.
Read more >Build an esbuild plugin - Learn With Jason
Chance Strickland will teach us how to extend esbuild with custom plugins in this episode. ... Build function takes care, you've got an...
Read more >Changelog - QCAD
If unchecked: always render points as dots or with chosen point mode (cross, etc.) and thin lines; Add preference "Maximum selected entities ...
Read more >Change log for 4.8.43
... Bug 1868755: vsphereprivate: tf plugin to no longer error if no network ... Bug 2053223: Fix mirroring images that have dots in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
is this a “under-spec” issue, in PEP-621
as far as i understood it may be necessary to make the key
[project.entry-points."iqe.click_commands"]
I’ll fix, thanks!