-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flit new
CLI
#597
Comments
FWIW, how would this be different from flit init? |
|
I can see the attraction of the idea, but I think this kind of project setup & automation should be done in a separate tool, not as part of Flit itself. cookiecutter is one such tool, and there's nothing to stop anyone making a 'Python project with Flit packaging' template for that. Maybe someone already has? Cookiecutter has never entirely clicked for me, though, because I like to start with an empty folder and add bits like packaging, tests, docs, CI when I'm ready for them. I'd be interested to see a tool based around adding pieces like that onto an existing project, like a more advanced cousin of Of course, there's also value in keeping things simple and not forcing people to learn many different tools. That's why |
Tis true that initializing a project structure might be outside the scope of flit, however even the python.org manual on managing python packing only supplies a 'suggested' folder structure. And if you search around, there are hundreds of opinions. So, for the new python user, a tool to setup a new project would be a huge benefit. Why not flit? It has a certain expectations on the structure. |
Currently poetry has a
poetry new my_package
command which create a new folder containing the minimal required files to publish a project to PyPI.This is very convenient because I can publish a new PyPI project directly from the CLI:
poetry new my_project cd my_project poetry build poetry publish
However this is currently not possible with
flit
because the lack ofnew
command. Like everything in flit, the default template could be something minimal, like:The text was updated successfully, but these errors were encountered: