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

Improve base dependencies context #28

Open
sveetch opened this issue Mar 27, 2023 · 0 comments
Open

Improve base dependencies context #28

sveetch opened this issue Mar 27, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@sveetch
Copy link
Owner

sveetch commented Mar 27, 2023

Currently each dependency is stored as its own variable in context. It was simple enough but it growed a little and it is not easy to distinguish the ones for bireli, backend or frontend.

New variables _backend_stack and _frontend_stack have been added to resolve this but this not efficient.

A new simpler way have to be done. The best is just to replace current variables with a one for bireli, another for backend and one for frontend.

A search in template(s) for current variables have to be done before to replace them with their new names.

This should results to something like:

"_backend_stack": {
    "python": ">=3.10",
}

And in template files we would use it like {{ cookiecutter._backend_stack.python }}.

Finally, current sphinx directive to output the stack will have to be modified to work with this.

@sveetch sveetch added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant