Skip to content

change default name of project #211

Closed

Description

@eriktks

Currently cookiecutter poposes my-python-project as project name when asking for the name. I would be more helpful for the user to have the package name as default.

This is the current output of cookiecutter:

$ cookiecutter https://github.com/nlesc/python-template.git
package_name [my_python_package]: ThisIsMyPreferredPackageName
project_name [my-python-project]: 

The second question of cookiecutter confuses me. I presume that the package is the name of the future directory with my stuff on Github and the project name is the name in the main heading in the README file? I am not sure but if that assumption is correct these two will often be the same, at least for me. In that case I would like cookiecutter to propose the entered package name as project name, like this:

$ cookiecutter https://github.com/nlesc/python-template.git
package_name [my_python_package]: ThisIsMyPreferredPackageName
project_name [ThisIsMyPreferredPackageName]: 

This helps the confused user who still might not know the difference between a package and a project but at least does not have to think about whether their names can be the same or should be different.

Activity

  1. added
    template
    on Apr 21, 2021
  2. modified the milestone: on Apr 21, 2021
  3. added this to the milestone on Apr 28, 2021
  4. self-assigned this
    on Apr 30, 2021
  5. jspaaks commented on May 3, 2021

    @jspaaks

    To me it seems like a bad idea to use the same name for conceptually different things. People use different names for things so they can tell them apart.

    Users who are confused should take a peek at the directory tree from the README

    my-python-project/
    ├── CHANGELOG.md
    ├── CITATION.cff
    ├── CODE_OF_CONDUCT.md
    ├── CONTRIBUTING.md
    ├── docs
    │   ├── conf.py
    │   ├── index.rst
    │   ├── make.bat
    │   ├── Makefile
    │   ├── _static
    │   │   └── theme_overrides.css
    │   └── _templates
    ├── LICENSE
    ├── MANIFEST.in
    ├── my_python_package
    │   ├── __init__.py
    │   ├── my_module.py
    │   └── __version__.py
    ├── NOTICE
    ├── project_setup.md
    ├── README.md
    ├── setup.cfg
    ├── setup.py
    └── tests
        ├── __init__.py
        └── test_my_module.py
    
  6. fdiblen commented on May 3, 2021

    @fdiblen
    Member
  7. modified the milestones: , 0.4.0 on May 3, 2021
  8. removed their assignment
    on May 3, 2021
  9. self-assigned this
    on May 3, 2021
  10. fdiblen commented on May 3, 2021

    @fdiblen
    Member

    fixed in #278

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

Metadata

Metadata

Assignees

Labels

template

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions