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

Check project name for special chars (#72) #77

Closed
wants to merge 1 commit into from

Conversation

arky
Copy link

@arky arky commented May 27, 2022

A quick and dirty fix to check for any special characters in the given name of the package.

Enhancement required for fixing #72

@@ -81,6 +81,8 @@ def create(context, template, name):
raise NoSuchValue(
context.command.name, template, possibilities=reg.get_templates()
)
if set(name).intersection(set(string.punctuation)):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As i mentioned, a dash or a underscore is a legal sign for a Python Project name.
What we need to do is, to normalizes it for the module names and in ZCML.
For now you can add a note to the docs, as you suggested.

@arky arky closed this May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants