Skip to content

Commit 8c94214

Browse files
committed
Create package directories with index files
1 parent f44b94b commit 8c94214

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pypi_index_builder/build.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def main():
2626

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

3233

0 commit comments

Comments
 (0)