Skip to content

Commit

Permalink
internal(dev): Local development environment alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachiNachshon committed Mar 29, 2024
1 parent 56c995f commit 659bccd
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 33 deletions.
28 changes: 1 addition & 27 deletions provisioner_examples_plugin/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@
ENV_VAR_LOCAL_DEV_MODE = "PROVISIONER_LOCAL_DEV"
debug_pre_init = os.getenv(key=ENV_VAR_ENABLE_PRE_INIT_DEBUG, default=False)

if not debug_pre_init:
logger.remove()

app = EntryPoint.create_typer(
title="Provision Everything Anywhere (install plugins from https://zachinachshon.com/provisioner)",
config_resolver_fn=lambda: ConfigManager.instance().load(
example_plugin_main.CONFIG_INTERNAL_PATH, CONFIG_USER_PATH, ProvisionerConfig, debug=debug_pre_init
example_plugin_main.CONFIG_INTERNAL_PATH, CONFIG_USER_PATH, ProvisionerConfig
),
)

Expand Down
1 change: 0 additions & 1 deletion provisioner_examples_plugin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ python-hosts = "^1.0.3"
# USED ONLY FOR PLUGIN DEVELOPMENT
# When building for production and/or before pip install, remember to comment out this line
# provisioner = { path = "../../provisioner", develop = true }
# provisioner_features_lib = { path = "../../provisioner_features_lib", develop = true }
####################################################

[tool.poetry.dev-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@
ENV_VAR_LOCAL_DEV_MODE = "PROVISIONER_LOCAL_DEV"
debug_pre_init = os.getenv(key=ENV_VAR_ENABLE_PRE_INIT_DEBUG, default=False)

if not debug_pre_init:
logger.remove()

app = EntryPoint.create_typer(
title="Provision Everything Anywhere (install plugins from https://zachinachshon.com/provisioner)",
config_resolver_fn=lambda: ConfigManager.instance().load(
installers_plugin_main.CONFIG_INTERNAL_PATH, CONFIG_USER_PATH, ProvisionerConfig, debug=debug_pre_init
installers_plugin_main.CONFIG_INTERNAL_PATH, CONFIG_USER_PATH, ProvisionerConfig
),
)

Expand Down
1 change: 0 additions & 1 deletion provisioner_installers_plugin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ python-hosts = "^1.0.3"
# USED ONLY FOR PLUGIN DEVELOPMENT
# When building for production and/or before pip install, remember to comment out this line
# provisioner = { path = "../../provisioner", develop = true }
# provisioner_features_lib = { path = "../../provisioner_features_lib", develop = true }
####################################################

[tool.poetry.dev-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@
ENV_VAR_LOCAL_DEV_MODE = "PROVISIONER_LOCAL_DEV"
debug_pre_init = os.getenv(key=ENV_VAR_ENABLE_PRE_INIT_DEBUG, default=False)

if not debug_pre_init:
logger.remove()

app = EntryPoint.create_typer(
title="Provision Everything Anywhere (install plugins from https://zachinachshon.com/provisioner)",
config_resolver_fn=lambda: ConfigManager.instance().load(
single_board_plugin_main.CONFIG_INTERNAL_PATH, CONFIG_USER_PATH, ProvisionerConfig, debug=debug_pre_init
single_board_plugin_main.CONFIG_INTERNAL_PATH, CONFIG_USER_PATH, ProvisionerConfig
),
)

Expand Down
1 change: 0 additions & 1 deletion provisioner_single_board_plugin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ python-hosts = "^1.0.3"
# USED ONLY FOR PLUGIN DEVELOPMENT
# When building for production and/or before pip install, remember to comment out this line
# provisioner = { path = "../../provisioner", develop = true }
# provisioner_features_lib = { path = "../../provisioner_features_lib", develop = true }
####################################################

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit 659bccd

Please sign in to comment.