Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

cookiecutter with poetry #2055

Closed
lecrami opened this issue Feb 18, 2020 · 6 comments
Closed

cookiecutter with poetry #2055

lecrami opened this issue Feb 18, 2020 · 6 comments
Labels
kind/feature Feature requests/implementations

Comments

@lecrami
Copy link

lecrami commented Feb 18, 2020

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?

@lecrami lecrami added the kind/feature Feature requests/implementations label Feb 18, 2020
@danmur
Copy link

danmur commented Feb 23, 2020

Poetry can export a requirements.txt but as far as I know it can't import one. If it were me I'd just call poetry add ... for each of the requirements by hand, or if there were a lot, script it. You only need to do it once.

@hemanta212
Copy link
Contributor

Related #663 and #46

It's highly unlikely to be added.

@etijskens
Copy link

etijskens commented Mar 2, 2020 via email

@danmur
Copy link

danmur commented Mar 2, 2020

Hey I lost this issue, but here it is again! dephell might do the job (https://dephell.org/).

@SanketDG
Copy link
Contributor

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.

@src-r-r
Copy link

src-r-r commented 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!

@python-poetry python-poetry locked and limited conversation to collaborators Oct 20, 2022
@finswimmer finswimmer converted this issue into discussion #6851 Oct 20, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

6 participants