From e8f84832cda957d82e5975347f5277996513293d Mon Sep 17 00:00:00 2001 From: Alzbeta Pokorna Date: Fri, 31 Jan 2025 15:29:23 +0100 Subject: [PATCH 1/2] get options --- src/nrp_devtools/commands/model/compile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nrp_devtools/commands/model/compile.py b/src/nrp_devtools/commands/model/compile.py index 8c23a68..11fad25 100644 --- a/src/nrp_devtools/commands/model/compile.py +++ b/src/nrp_devtools/commands/model/compile.py @@ -166,12 +166,12 @@ def add_requirements_and_entrypoints( # load setup.cfg via configparser config_parser = configparser.ConfigParser() config_parser.read(setup_cfg) - dependencies = config_parser["options"].get("install_requires", "").split("\n") + dependencies = config_parser.get("options", {}).get("install_requires", "").split("\n") test_depedencies = ( - config_parser["options.extras_require"].get("tests", "").split("\n") + config_parser.get("options.extras_require", {}).get("tests", "").split("\n") ) entrypoints = {} - for ep_name, ep_values in config_parser["options.entry_points"].items(): + for ep_name, ep_values in config_parser.get("options.entry_points", {}).items(): entrypoints[ep_name] = ep_values.split("\n") pyproject = PyProject(config.repository_dir / "pyproject.toml") From 0e14c7f383b3c7c47e4427d3126e02cc3acf9ced Mon Sep 17 00:00:00 2001 From: Alzbeta Pokorna Date: Fri, 31 Jan 2025 15:29:42 +0100 Subject: [PATCH 2/2] version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8e37e35..85b46ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nrp-devtools" -version = "1.0.22" +version = "1.0.23" description = "NRP repository development tools" readme = "README.md" authors = [{ name = "Miroslav Simek", email = "miroslav.simek@cesnet.cz" }]