Skip to content

Commit bf1ca99

Browse files
authored
Make custom_bms more generic for different repos. (#59)
1 parent f5ba2f2 commit bf1ca99

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

templates/benchmarks/custom_bms/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# REPONAME custom benchmarks
1+
# SciTools custom benchmarks
22

33
To be recognised by ASV, these benchmarks must be packaged and installed in
44
line with the

templates/benchmarks/custom_bms/install.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717

1818

1919
def package_files(new_dir: Path) -> None:
20-
"""Package REPONAME's custom benchmarks for detection by ASV.
20+
"""Package SciTools' custom benchmarks for detection by ASV.
2121
2222
Parameters
2323
----------
2424
new_dir : Path
2525
The directory to package the custom benchmarks in.
2626
"""
27-
asv_bench_REPONAME = new_dir / "asv_bench_REPONAME"
28-
benchmarks = asv_bench_REPONAME / "benchmarks"
27+
asv_bench_scitools = new_dir / "asv_bench_scitools"
28+
benchmarks = asv_bench_scitools / "benchmarks"
2929
benchmarks.mkdir(parents=True)
30-
(asv_bench_REPONAME / "__init__.py").touch()
30+
(asv_bench_scitools / "__init__.py").touch()
3131

3232
for py_file in this_dir.glob("*.py"):
3333
if py_file != Path(__file__):
@@ -39,7 +39,7 @@ def package_files(new_dir: Path) -> None:
3939
py_project.write_text(
4040
"""
4141
[project]
42-
name = "asv_bench_REPONAME"
42+
name = "asv_bench_scitools"
4343
version = "0.1"
4444
"""
4545
)
@@ -52,4 +52,4 @@ def main():
5252

5353

5454
if __name__ == "__main__":
55-
main()
55+
main()

0 commit comments

Comments
 (0)