Skip to content

Commit

Permalink
Create package directories with index files
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed May 3, 2024
1 parent f44b94b commit 8c94214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pypi_index_builder/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def main():

template = env.get_template("package.html")
for name, entries in index_data.items():
with open(settings.output / f"{name}.html", "w") as package_file:
(settings.output / name).mkdir(exist_ok=True)
with open(settings.output / name / "index.html", "w") as package_file:
package_file.write(template.render(data=entries))


Expand Down

0 comments on commit 8c94214

Please sign in to comment.