Skip to content

Commit 91a56b4

Browse files
committed
Add repro as published in #253
0 parents  commit 91a56b4

File tree

6 files changed

+33
-0
lines changed

6 files changed

+33
-0
lines changed

hydra_plugins/dummy_plugin.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from hydra.core.config_search_path import ConfigSearchPath
2+
from hydra.plugins.search_path_plugin import SearchPathPlugin
3+
4+
5+
class Dummy(SearchPathPlugin):
6+
def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
7+
search_path.append(provider="dummy-search-path-plugin", path="pkg://test/config")

setup.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[metadata]
2+
name = test
3+
4+
[options]
5+
python_requires = >= 3.8
6+
packages = test
7+
install_requires =
8+
hydra-core==1.1.0
9+
hydra-joblib-launcher==1.1.5
10+
importlib_resources==5.8.0

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python
2+
3+
import setuptools
4+
5+
if __name__ == "__main__":
6+
setuptools.setup()

test/__init__.py

Whitespace-only changes.

test/config/run.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
defaults:
2+
- override hydra/launcher: joblib

test/test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import hydra
2+
3+
@hydra.main(config_path='.', config_name='run')
4+
def test(cfg):
5+
pass
6+
7+
if __name__ == "__main__":
8+
test()

0 commit comments

Comments
 (0)