News for hackers. Stuff that matters.
Re:How to make a Python package in 2021 by tcbasche on Wednesday April 07, 2021 @11:20PM (#26734748)
How does it compare to pipenv?
Re:How to make a Python package in 2021 by smnrchrds on Thursday April 08, 2021 @12:06AM (#26734993)
Pipenv only targets applications; Poetry targets both applications and libraries. Pipenv has quite some drama behind it that I do not want to get into; in contrast, Poetry's development has been quite professional. Pipenv enjoys better tool support, e.g. it is recognized and supported by VS Code; but Poetry does not have the same level of support.
Re:How to make a Python package in 2021 by monsieurbanana on Thursday April 08, 2021 @12:55AM (#26735224)
I don't know anything about pipenv drama, so by morbid curiosity I looked for it and this is the first thing I found:

https://github.com/pypa/pipenv/issues/2228

This is one of the most ridiculous issues I've read. If the rest of the "drama" is like that, then eh.

Re:How to make a Python package in 2021 by smnrchrds on Thursday April 08, 2021 @01:32AM (#26735390)
The drama was surrounding false advertising so to speak. Pipenv promised a lot but did not quite deliver, much like the earlier days of MongoDB. But more importantly, it pretended or at least heavily implied it was an official PSF-affiliated project, when it was not. How that claim was substantiated was also subject to drama.
Re:How to make a Python package in 2021 by ric2b on Thursday April 08, 2021 @01:37PM (#26741576)
It also had no releases for over a year, even though the master branch was getting frequent updates and the performance of the last release was atrocious (and I'm not sure if it has improved much).

I did like the emojis in the logs though.

Re:How to make a Python package in 2021 by kbd on Thursday April 08, 2021 @12:19AM (#26735039)
FWIW here's VSCode's issue for supporting Poetry[1] and here's their plan to support it[2]:

[1] https://github.com/microsoft/vscode-python/issues/8372

[2] https://github.com/microsoft/vscode-python/wiki/Support-poet...

Re:How to make a Python package in 2021 by spondyl on Thursday April 08, 2021 @12:26AM (#26735076)
From memory, there was a whole thing where pipenv, created by Kenneth Reitz of requests fame, was misaccurately portrayed as the official successor to pip when that wasn't true
Re:How to make a Python package in 2021 by tcbasche on Thursday April 08, 2021 @03:36AM (#26736082)
I recall this, but I wasn’t quite clear on what the issue was with pipenv itself (other than questionable behaviour from the author)
Re:How to make a Python package in 2021 by pseudalopex on Thursday April 08, 2021 @04:00AM (#26736219)
It was buggy. It was slow. It didn't even try to support developing libraries.
Re:How to make a Python package in 2021 by tcbasche on Thursday April 08, 2021 @04:28AM (#26736394)
Now it’s all coming back to me. I remember it half supporting in-house pip repositories but not quite
Re:How to make a Python package in 2021 by losvedir on Thursday April 08, 2021 @09:15AM (#26738287)
I just moved a project from pipenv to poetry at work. My biggest issue with pipenv is that you can't selectively upgrade dependencies. Trying to `pipenv update xyz` basically blows away your lockfile and updates everything. There's a command line flag to be more selective but it doesn't work. I found an open GitHub issue about it that's years old.

Poetry by contrast works pretty much like any modern dependency system you'd be familiar with from another language like cargo, npm, or hex.

Re:How to make a Python package in 2021 by skrtskrt on Thursday April 08, 2021 @12:14PM (#26740573)
In addition to everything else already said, pipenv is mind-bogglingly slow and buggy. Like 30 minutes and a timeout error to install pyspark.
Re:How to make a Python package in 2021 by neolog on Wednesday April 07, 2021 @11:24PM (#26734771)
Poetry is better.
Re:How to make a Python package in 2021 by tcbasche on Wednesday April 07, 2021 @11:25PM (#26734785)
Well that settles it
Re:How to make a Python package in 2021 by acdanger on Wednesday April 07, 2021 @11:30PM (#26734818)
I think pipenv is better for managing non-published Python environments, so there.
Re:How to make a Python package in 2021 by bliteben on Thursday April 08, 2021 @12:04AM (#26734981)
pipenv has slightly better support in vscode
Re:How to make a Python package in 2021 by neolog on Thursday April 08, 2021 @12:27AM (#26735079)
> Support for poetry environments is currently our highest upvoted feature request on GitHub.

https://github.com/microsoft/vscode-python/wiki/Support-poet...