You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @hampusnasstrom, thanks for creating this plugin, this is certainly something that's quite helpful the bigger the ecosystem grows.
During your presentation, I noticed that for some of the plugins we are devloping, the boolean flags don't seem to match my expectations.
pynxtools is present on both central and test-oasis
pynxtools-igor is present on the test-oasis
See for comparison screenshots from the production deployment:
and the test-oasis:
May this be related to how we are installing the plugins in the pyproject.toml file? For some of the pynxtools-adjacent plugins, we are not explicitly stating them in the nomad-distro pyproject.toml, but rather we install them using the convert extra to the pynxtools installation, see e.g. https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-distro/-/blob/test-oasis/pyproject.toml?ref_type=heads#L30. I guess the crawler does not resolve these right? In that case, it probably makes sense to omit the convert extra and just state all of the pynxtools-* plugins individually.
Thanks!
The text was updated successfully, but these errors were encountered:
defin_distribution_toml(plugin_name: str, pyproject_data: dict) ->bool:
""" Checks if a given plugin name is listed in the plugin dependencies of a pyproject.toml file. Args: plugin_name (str): The name of the plugin to check for. toml_data (dict): An dictionary containing the pyproject toml data. Returns: bool: True if the plugin name is found in the optional dependencies, False otherwise. """name_pattern=re.compile(r'^[^;>=<\s]+')
plugin_dependencies=pyproject_data['project']['optional-dependencies']['plugins']
returnplugin_namein [name_pattern.match(d).group() fordinplugin_dependencies]
plugins depending on other plugins would definitely be an issue. The quick fix is of course to change how they are listed but ideally the crawler could somehow figure this out. I'll have to think a bit on how this could be done.
Hi @hampusnasstrom, thanks for creating this plugin, this is certainly something that's quite helpful the bigger the ecosystem grows.
During your presentation, I noticed that for some of the plugins we are devloping, the boolean flags don't seem to match my expectations.
See for comparison screenshots from the production deployment:
and the test-oasis:
May this be related to how we are installing the plugins in the pyproject.toml file? For some of the pynxtools-adjacent plugins, we are not explicitly stating them in the nomad-distro pyproject.toml, but rather we install them using the
convert
extra to the pynxtools installation, see e.g. https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-distro/-/blob/test-oasis/pyproject.toml?ref_type=heads#L30. I guess the crawler does not resolve these right? In that case, it probably makes sense to omit theconvert
extra and just state all of thepynxtools-*
plugins individually.Thanks!
The text was updated successfully, but these errors were encountered: