Skip to content

Commit e50b51f

Browse files
committed
copy json path
1 parent ec235c6 commit e50b51f

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

tasks.py

+3-14
Original file line numberDiff line numberDiff line change
@@ -70,30 +70,19 @@ def minimum(c):
7070
unit(c)
7171

7272

73-
def add_paths():
74-
base_path = Path(os.path.join(os.getcwd(), 'sigllm'))
75-
primitives_path = os.path.join(base_path, 'primitives', 'jsons')
76-
pipeline_paths = [
77-
os.path.join(base_path, 'pipelines', 'detector'),
78-
os.path.join(base_path, 'pipelines', 'prompter')
79-
]
80-
add_primitives_path(primitives_path)
81-
for pipeline_path in pipeline_paths:
82-
add_pipelines_path(pipeline_path)
83-
84-
8573
@task
8674
def readme(c):
87-
print(os.walk(os.getcwd()))
88-
add_paths()
75+
pipeline_path = 'sigllm/pipelines/detector/gpt_detector.json'
8976
test_path = Path('tests/readme_test')
9077
if test_path.exists() and test_path.is_dir():
9178
shutil.rmtree(test_path)
9279

9380
cwd = os.getcwd()
9481
os.makedirs(test_path, exist_ok=True)
82+
os.makedirs(test_path / 'mlpipelines', exist_ok=True)
9583
shutil.copy('README.md', test_path / 'README.md')
9684
shutil.copy('tutorials/data.csv', test_path / 'data.csv')
85+
shutil.copy(pipeline_path, test_path / 'mlpipelines' / 'gpt_detector.json')
9786
os.chdir(test_path)
9887
c.run('rundoc run --single-session python3 -t python3 README.md')
9988
os.chdir(cwd)

0 commit comments

Comments
 (0)