Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Daniel Roy Greenfeld
    @pydanny
    What @luzfcb said: If a Cookiecutter template doesn't have a cookiecutter.json file in the root of the project, then it's not a Cookiecutter template.
    Mykhailo Havelia
    @Arfey
    thx
    Sylvain Corlay
    @SylvainCorlay
    Hello!
    I use cookiecutter to generate template projects for Julia.
    One requirement for Julia packages is that the package is a git repository, and I always have to do a git init, git add, git commit to include all files generated by cookiecutter in the first commit...
    Is there a means with cookiecutter to have scripted actions done besides generating the content of the directory?
    Thanks!
    Chris Smith
    @smitty1eGH
    I'm sort of tackling the same concern of setting up the venv, and will want to do my first commit, here => https://github.com/smitty1eGH/cookiedough/blob/master/cookiedough.py
    Sylvain Corlay
    @SylvainCorlay
    Thanks @smitty1eGH this is exactly what I was looking for!
    Lucas Werkmeister
    @lucaswerkmeister
    Hi all! I’m working on my first cookiecutter template, but I’m stuck on the question of which license to choose for the template itself
    projects created with the template will use AGPLv3 by default, but I’d like to allow users to choose a different license if they want to, so I’m not sure if such a restrictive license is appropriate for the template itself
    I tried looking at some other cookiecutter templates for comparison, but most of them don’t seem to have any license on the template level :) any advice?
    Lucas Werkmeister
    @lucaswerkmeister
    MIT license sounds like it could work as long as I clarify in the (template) README that created projects are not considered “substantial portions of the Software”… I’ll go with that for now
    Chris Smith
    @smitty1eGH
    @lucaswerkmeister I should probably feel more passionate about licensing than I do.
    Mohammed Shahid
    @MDShahidnawaz_twitter
    Hi I am new to both python and cookiecutter. I have installed PIP on my Windows 10 system, and also installer cookiecutter uings the command pip install --user cookiecutter
    I am now unable to run cookiecutter command, on windows10 saying command not found and unrecognizable. Requesting help here
    Burhan Khalid
    @burhan
    You need to add the Scripts folder to your PATH
    Mohammed Shahid
    @MDShahidnawaz_twitter
    i have added the scripts folder already, due to which PIP command started working
    AppData\Local\Programs\Python\Python37-32\Scripts
    this is it in System variables path
    can anyone help me here?
    Burhan Khalid
    @burhan
    Did you refresh your prompt after modifying the path?
    Mohammed Shahid
    @MDShahidnawaz_twitter
    yes, i restarted the prompt
    Burhan Khalid
    @burhan
    did you run the command prompt as administrator?
    Mohammed Shahid
    @MDShahidnawaz_twitter
    yes i tried that too
    same result
    Burhan Khalid
    @burhan
    it makes a difference. When you install as administrator, it will install the the Program Files folder, so you have to add that to your PATH as well.
    Mohammed Shahid
    @MDShahidnawaz_twitter
    i have installed as pip install --user cookiecutter, and it had installed successfully. are you telling me to reinstall as a Admin and then give a try?
    Michele
    @michelepagot
    hi all
    I'm new here
    I'm on Debian
    uname -a
    Linux jervis02 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
    and have python 2.7
    python --version
    Python 2.7.13
    I just install cookiecutter like
    sudo pip install cookiecutter
    but if I try to start it ...
    cookiecutter --help
    Traceback (most recent call last):
    File "/usr/local/bin/cookiecutter", line 7, in <module>
    from cookiecutter.main import main
    File "/usr/local/lib/python2.7/dist-packages/cookiecutter/main.py", line 5, in <module>
    from .cli import main
    File "/usr/local/lib/python2.7/dist-packages/cookiecutter/cli.py", line 13, in <module>
    from cookiecutter.main import cookiecutter
    File "/usr/local/lib/python2.7/dist-packages/cookiecutter/main.py", line 15, in <module>
    from .generate import generate_context, generate_files
    File "/usr/local/lib/python2.7/dist-packages/cookiecutter/generate.py", line 15, in <module>
    from jinja2 import FileSystemLoader
    ImportError: No module named jinja2
    Michele
    @michelepagot
    from the log of pip install I can see
    Collecting jinja2-time>=0.1.0 (from cookiecutter)
    Downloading https://files.pythonhosted.org/packages/6a/a1/d44fa38306ffa34a7e1af09632b158e13ec89670ce491f8a15af3ebcb4e4/jinja2_time-0.2.0-py2.py3-none-any.whl
    Collecting click>=5.0 (from cookiecutter)
    Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
    100% |████████████████████████████████| 81kB 264kB/s
    Michele
    @michelepagot
    and
    sudo pip install jinja2
    Requirement already satisfied: jinja2 in /root/.local/lib/python2.7/site-packages (2.10)
    Requirement already satisfied: MarkupSafe>=0.23 in /root/.local/lib/python2.7/site-packages (from jinja2) (1.0)
    :-(
    forget about me ...
    Eliot Blennerhassett
    @eliotb
    Is there a recommended way of using templates installed from pypi? https://pypi.org/search/?q=cookiecutter
    Or should I seek out the git repo of the template I'm interested in and use that in the cookiecutter invocation?
    Fábio C. Barrionuevo da Luz
    @luzfcb
    @eliotb cookiecutter templates is not available from pypi at all. Use a url to a git repository
    I think these packages only exist in pypi simply to retain the package name
    Jakub Konieczny
    @kubadotka
    Hello,
    I want to automatize deploying cookiecutters ( from github ) but I want to pass arguments from bash variables (I am getting them from Jira). How can I achieve it?
    For example:
    cookiecutter github_link_to_cc_template
    and now it's asking if I want my file to have name .... etc. from json