-
Notifications
You must be signed in to change notification settings - Fork 145
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
Comparison with cookiecutter #10
Comments
Agreed. This one is supposed to be more of an instructional tool, and a On Thu, Dec 10, 2015 at 7:45 AM, Yaser Martinez Palenzuela <
|
A small note for newbies like me: looks like https://github.com/audreyr/cookiecutter-pypackage may be more directly comparable to shablona; I think cookiecutter is an entire framework for supporting project templates, across languages.. |
Why no to convert this in a cookiecutter template? If so, the whole "use shablona as your template" would be |
That potentially sounds like a good idea. What would it take? |
As a start maybe all the actions listed under https://github.com/uwescience/shablona#using-shablona-as-a-template can be automated via cookiecutter. This would mainly involve replacing project variables specific to this template such as repo name into a generic cookiecutter variable. See the https://github.com/mkrapp/cookiecutter-reproducible-science & https://github.com/mnarayan/cookiecutter-data-science |
Again, I haven't used cookiecutter, so I don't entirely understand what it would take. How am I supposed to read the following file? https://github.com/mkrapp/cookiecutter-reproducible-science/blob/master/cookiecutter.json I think that the best way for me to understand what it entails would to write a PR that does this, including the change you propose to the instructions. You make it sound like it's straightforward. Thanks! |
I took a rough stab at cookiecutterizing this project. You will need to first install cookiecutter When you run If you stick with the default variables, the end result is a directory
More generally, all cookiecutter variables will be customized. A quick example for directories
A few things to note:
I haven't contributed to other people's projects that often, so apologies in advance for deviating from any expected conventions. If those experienced with cookiecutter (@mgaitan or @elyase) have any thoughts on how to restructure documentation or deal with the sphinx hiccups, please comment here Thanks! |
Interesting. Thanks for creating this! It looks like this mostly takes care of the last step of using the template, by cleanly replacing the name of the package. Does it do anything else? I don't see any problem eliminating me from the resulting thing, by the way. I expect that users of the template will want to do this anyway (for example, see richford/cloudknot-fork@42f05ff) |
Thanks, @arokem. Right now I've mainly used the cookiecutter to cleanly replace package name, author name, github repo name and so forth. I suspect cookiecutter could automate a few other things, but it didn't seem like there was much else to be done to re-use this project as a template. I can initiate a PR when I get back to this. One thing I would additionally change would be to move your current README which explains how to use the template one level up from the `{{ cookiecutter.repo-name }} folder which would contain everything templateable and perhaps contain a more barebones README template. |
https://github.com/MolSSI/cookiecutter-cms This one might be a great example for to setting up shablona to be used with cookiecutter. This one is also from the developers of cookiecutter. |
It would be great to have a comparison with cookiecutter. Pros/cons, when it is more appropriate to use a project over the other, etc
The text was updated successfully, but these errors were encountered: