cookiecutter with poetry
See original GitHub issuei am trying to use Cookiecutter with django template by pydanny. Im using poetry to manage my python project and i don’t know how to do it.
Normally using pip and a virtual environment, all required packages are installed with:
pip install -r requirements/local.txt
But in poetry i can’t install dependencies from ‘.txt’ file. What do I have to do?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
johanvergeer/cookiecutter-poetry - GitHub
Cookiecutter template for a Python package. Contribute to johanvergeer/cookiecutter-poetry development by creating an account on GitHub.
Read more >cookiecutter-poetry - PyPI
A python cookiecutter application to create a new python project that uses poetry to manage its dependencies.
Read more >User Guide — Hypermodern Python Cookiecutter ...
The Hypermodern Python Cookiecutter uses the poetry export command to convert Poetry's lock file to a requirements file, for consumption by Safety.
Read more >Poetry-driven python project template with cookiecutter
Poetry -driven python project template with cookiecutter. My python toolchain for small projects does not change often.
Read more >Tutorial - cookiecutter-poetry - GitHub Pages
pip install cookiecutter-poetry. Within the directory in which you want to create your project, run: ccp. For an explanation of the prompt arguments, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
After going through #663 and #2135, and realizing this is the only issue that is open, I think poetry should atleast provide some direction for new users when they are converting from other formats.
Let’s just say
requirements.txt
is the most ubiquitous form of specifying requirements in the Python ecosystem.Not providing any information on this would stray away a lot of new users.
It could be as simple as redirecting to https://dephell.readthedocs.io/cmd-deps-convert.html in the documentation. This needs to happen in the least.
Maintainers of poetry, please provide some insight on this.
Dephell is archived, unfortunately.
I’ll admit I got a little impatient, so I created this Python tool to do just this (called stanza…get it?). Parses requirements.txt files and automatically names and versions your project. It even allows for referenced requirements “e.g.
-r ...
”https://github.com/src-r-r/python-stanza
I created it in a rush (but still tested it), so contributions welcome!