question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cookiecutter with poetry

See original GitHub issue

i 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:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
SanketDGcommented, Apr 30, 2020

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.

1reaction
src-r-rcommented, Dec 9, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found