#917 - Fixed primaite_config.yaml issue in cli.py

- Added kaleido to deps in pyproject.toml
This commit is contained in:
Chris McCarthy
2023-06-30 11:40:26 +01:00
parent d5402cdce8
commit 203cc98494
2 changed files with 7 additions and 9 deletions

View File

@@ -26,6 +26,7 @@ classifiers = [
dependencies = [
"gym==0.21.0",
"jupyterlab==3.6.1",
"kaleido==0.2.1",
"matplotlib==3.7.1",
"networkx==3.1",
"numpy==1.23.5",

View File

@@ -124,8 +124,6 @@ def setup(overwrite_existing: bool = True):
app_dirs = PlatformDirs(appname="primaite")
app_dirs.user_config_path.mkdir(exist_ok=True, parents=True)
user_config_path = app_dirs.user_config_path / "primaite_config.yaml"
build_config = overwrite_existing or (not user_config_path.exists())
if build_config:
pkg_config_path = Path(
pkg_resources.resource_filename(
"primaite", "setup/_package_data/primaite_config.yaml"
@@ -146,7 +144,6 @@ def setup(overwrite_existing: bool = True):
_LOGGER.info("Performing the PrimAITE first-time setup...")
if build_config:
_LOGGER.info("Building primaite_config.yaml...")
_LOGGER.info("Building the PrimAITE app directories...")