'-' in package name
q-b opened this issue · comments
Hi,
My first package was named morepath-something
, I had to change the -
to _
manually, else calling pip
failed with a cryptic error message.
console_scripts=[
'run-app = morepath_something.__main__:run',
^
here
],
Thank you anyway for the template!
@href, AFAICS the easiest way to prevent this kind of problem from arising again is to validate the package_name
following the example in the docs.
A more sophisticated solution might be to have two separate variables, say project_name
and package_name
, the latter having as default value a regex'ed version of the former to make it Python friendly.
+1 on not trying to be smart and just not accept it