Skip to content

Commit

Permalink
Fix divvy, remove requirement for old package, ensure looper is using…
Browse files Browse the repository at this point in the history
… internal module #520
  • Loading branch information
donaldcampbelljr committed Aug 28, 2024
1 parent d0cffcb commit 165b183
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions looper/cli_pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
from pephubclient import PEPHubClient
from pydantic_argparse.argparse.parser import ArgumentParser

from divvy import select_divvy_config

from . import __version__

from .command_models.arguments import ArgumentEnum
Expand Down Expand Up @@ -354,6 +352,7 @@ def main(test_args=None) -> dict:

return run_looper(args, parser, test_args=test_args)


def main_cli() -> None:
main()

Expand Down
6 changes: 4 additions & 2 deletions looper/divvy.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,13 @@ def divvy_init(config_path, template_config_path):
_LOGGER.error("You must specify a template config file path.")
return

if not os.path.isabs(config_path):
config_path = os.path.abspath(config_path)

if config_path and not os.path.exists(config_path):
# dcc.write(config_path)
# Init should *also* write the templates.
dest_folder = os.path.dirname(config_path)
copytree(os.path.dirname(template_config_path), dest_folder)
copytree(os.path.dirname(template_config_path), dest_folder, dirs_exist_ok=True)
template_subfolder = os.path.join(dest_folder, "divvy_templates")
_LOGGER.info("Wrote divvy templates to folder: {}".format(template_subfolder))
new_template = os.path.join(
Expand Down
1 change: 0 additions & 1 deletion requirements/requirements-all.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
colorama>=0.3.9
divvy>=0.5.0
eido>=0.2.1
jinja2
logmuse>=0.2.0
Expand Down
2 changes: 1 addition & 1 deletion tests/divvytests/test_divvy_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from collections import OrderedDict

from yacman import YacAttMap
from divvy import select_divvy_config
from looper.divvy import select_divvy_config

# For interactive debugging:
# import logmuse
Expand Down

0 comments on commit 165b183

Please sign in to comment.