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

Support Python namespace packaging #95

Open
kylebarron opened this issue Apr 8, 2021 · 0 comments
Open

Support Python namespace packaging #95

kylebarron opened this issue Apr 8, 2021 · 0 comments

Comments

@kylebarron
Copy link

The current state of the cookiecutter doesn't support Python's namespace packaging. The cookiecutter assumes that the Python package name coincides with the directory to Python files. For namespace packages this is not true. The Python package name may be something like [namespace].[module_name] while the physical directory layout would be [namespace]/[module_name]/.

I think the way to fix this would be to separate the existing python_package_name cookiecutter argument into two arguments: python_package_name and python_directory_name. The latter could be pre-filled with the value of the former, but it would make it possible for consumers to easily override directory paths to support namespace packaging.

(Note: I actually used the TS cookiecutter, but posting the issue here since this repo seems to have greater visibility).

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

No branches or pull requests

1 participant