Skip to content
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

Support multiple kinds of project templates #26

Open
bitmensch opened this issue Aug 14, 2013 · 3 comments
Open

Support multiple kinds of project templates #26

bitmensch opened this issue Aug 14, 2013 · 3 comments

Comments

@bitmensch
Copy link
Collaborator

I have different kind of python projects in mind that require slightly different templates:

  • lib (library that is used in other Python projects),
  • cli (application that is used -- probably interactively -- from command line),
  • daemon (application that is prepared to run as a daemon, including init.d scripts, etc.)

I'm already working on a prototype that uses Jinja (on which we already depend through Sphinx) together with template inheritance to support multiple project templates without (too much) code duplication.

Also it would be nice to get this template generation process integrated with virtualenvwrapper's mkproject command. Ideas and thoughts about this probably should go into a separate ticket.

@seanfisk
Copy link
Owner

This is a great idea. I especially like the idea of adding a command which just creates a project inside a directory. That specially is something that I have been thinking about for a while.

If we do create a command, it would be nice for PPT to be an installable Python module. The difficult part is that it would significantly change the layout of the template project.

@bitmensch
Copy link
Collaborator Author

Yes, PPT needs to be installed as a Python module itself then.

It will significantly change project layout, but makes also a lot of things cleaner as no removing of files is necessary anymore -- just an example.

@seanfisk
Copy link
Owner

I agree. I think that this is the eventual path of PPT anyway, so we might as well get started. In fact, most of the files can be kept, but they will need to be moved into a "data directory" that gets included with the PPT package. We can even use PPT recursively to create a project for itself :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants