Skip to content

Commit

Permalink
Merge pull request #40 from toshihikoyanase/provide-requirements-at-hub
Browse files Browse the repository at this point in the history
Provide `requirements.txt` at hub.optuna.org
  • Loading branch information
y0z authored Aug 28, 2024
2 parents 16143f4 + 909a42b commit 3c0825b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hugo_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def main() -> None:
if os.path.exists(imgdir):
shutil.copytree(imgdir, f"{hugo_dir}/images", dirs_exist_ok=True)

# Copy requirements.txt if exists.
reqfile = f"{registry_dir}/{c}/{p}/requirements.txt"
if os.path.exists(reqfile):
shutil.copy2(reqfile, hugo_dir)

# Read README.md and create index.md from it with modifications.
with open(f"{registry_dir}/{c}/{p}/README.md", "r") as readme_md:
contents = frontmatter.load(readme_md)
Expand Down

0 comments on commit 3c0825b

Please sign in to comment.