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

Upper case in the name of the Package blocks the generating system #584

Open
1 task done
luisaforozco opened this issue Aug 27, 2024 · 1 comment
Open
1 task done
Assignees

Comments

@luisaforozco
Copy link
Member

Checklist before submitting a bug report

  • I have checked the existing issues and couldn't find an issue about this bug.

Bug details

Describe the bug

I had a previous package named grainLearning and want to apply the template to it. When reaching the second question I am blocked because the name has an upper case L in the name. Github allows to have upper case letters in the name.

To Reproduce

Steps to reproduce the behavior:

  1. install copier using :
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install copier
  1. run copier copy -r HEAD https://github.com/nlesc/python-template.git ./
  2. Select a profile: Let me choose (decide each feature yourself)

Error Message
Package name must start with a letter, followed one or more letter, digits or underscores all lowercase.

Expected behavior

I cannot continue with the process. It should allow to pass if you are really sure of the name.

@fdiblen fdiblen self-assigned this Aug 28, 2024
@sverhoeven
Copy link
Member

PEP8 prefers lower case, see https://peps.python.org/pep-0008/#package-and-module-names .
To give the right example we should follow PEP8, and allow uppercase and give a warning.

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

3 participants