From 8b464d3f7b93b36b69d03150bdbd4ef25bfe4362 Mon Sep 17 00:00:00 2001 From: JosePizarro3 Date: Mon, 3 Jun 2024 14:21:36 +0200 Subject: [PATCH] Trying changing name of entry point to nomad_simulations_pkg --- pyproject.toml | 2 +- src/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ee501125..5292c601 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -99,4 +99,4 @@ package-dir = { "" = "src" } where = ["src"] [project.entry-points.'nomad.plugin'] -nomad_simulations = "nomad_simulations:nomad_simulations" +nomad_simulations = "nomad_simulations:nomad_simulations_pkg" diff --git a/src/__init__.py b/src/__init__.py index 024bba62..b5e05282 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -25,14 +25,14 @@ class NomadSimulationsPackageEntryPoint(SchemaPackageEntryPoint): # parameter: int = Field(0, description='Custom configuration parameter') def load(self): - from nomad_simulations.schema import ( + from .schema import ( m_package, ) return m_package -nomad_simulations = NomadSimulationsPackageEntryPoint( +nomad_simulations_pkg = NomadSimulationsPackageEntryPoint( name='NomadSimulations', description='Schema package defined for simulations.', )