Skip to content

Commit

Permalink
move everything into hydra_plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 committed Jan 19, 2022
1 parent 00717f0 commit 2ec13ab
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
global-exclude *.pyc
global-exclude __pycache__
recursive-include jz_hydra_submitit_launcher/* *.yaml
recursive-include hydra_plugins/* *.yaml
File renamed without changes.
3 changes: 3 additions & 0 deletions hydra_plugins/jz_hydra_submitit_launcher/resolvers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from omegaconf import OmegaConf

OmegaConf.register_new_resolver("multiply10", lambda x: x * 10)
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
# Remember to verify the config is packaged properly (build sdist and look inside,
# and verify MANIFEST.in is correct).
search_path.append(
provider="jz-hydra-submitit-launcher", path="pkg://jz_hydra_submitit_launcher"
provider="jz-hydra-submitit-launcher", path="pkg://hydra_plugins.jz_hydra_submitit_launcher"
)
Empty file.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
with open('requirements.txt') as open_file:
install_requires = open_file.read()

import jz_hydra_submitit_launcher
from hydra_plugins import jz_hydra_submitit_launcher

setuptools.setup(
name="jz-hydra-submitit-launcher",
Expand All @@ -31,5 +31,5 @@
python_requires='>=3.6',
include_package_data=True,
keywords=['hydra', 'submitit', 'jean-zay'],
scripts=['jz_hydra_submitit_launcher/bin/hydra-submitit-launch'],
scripts=['hydra_plugins/jz_hydra_submitit_launcher/bin/hydra-submitit-launch'],
)

0 comments on commit 2ec13ab

Please sign in to comment.