[project.scripts] with greeter = "greeter:main" makes the installer create a greeter command that calls greeter.main().