diff --git a/main.py b/main.py index abe67e8..5d539dd 100644 --- a/main.py +++ b/main.py @@ -313,6 +313,11 @@ def generate_package_files( ) (output_dir / "README.md").write_text(readme) + # Copy LICENSE file from the project root + license_src = SCRIPT_DIR / "LICENSE" + if license_src.exists(): + shutil.copy2(license_src, output_dir / "LICENSE") + # Add py.typed marker to each top-level package so mypy recognizes the stubs for pkg in top_level_packages: (output_dir / pkg / "py.typed").touch()