pypa / flit

Simplified packaging of Python modules
https://flit.pypa.io/
BSD 3-Clause "New" or "Revised" License
2.14k stars 130 forks source link

flit init namespace package name validation #679

Open 3kwa opened 4 months ago

3kwa commented 4 months ago

When calling flit init one is prompted for a package name.

The validation of the name uses str.identifier.

Since version 3.5 flit can distribute namespace packages.

str.identifier returns False when called with a valid namespace package name.

A workaround is to edit the pyproject.toml file and replace the name accepted by flit init with the namespace package name proper.