News for hackers. Stuff that matters.
Re:Python Is Eating the World by ad404b8a372f2b9 on Monday August 12, 2019 @08:43AM (#20674866)
Could you give some details as to why it's better than other more commonly used tools (pip, venv, ...)?

Looking at the home page it's not immediately obvious to me. For example, the lock file it creates seems to be the equivalent of writing `pip freeze` to the requirements file. I see a quick mention of isolation at the end, it seems to use virtual environments, does it make it more seamless? What's the advantage over using virtualenv for example?

Re:Python Is Eating the World by curryst on Monday August 12, 2019 @05:21PM (#20680145)
I'm not an expert on the internals, but virtualenv interactions feel more seamless. When you run poetry, it activates the virtualenv before it runs whatever you wanted.

So `poetry add` (it's version of pip install) doesn't require you to have the virtualenv active. It will activate it, run the install, and update your dependency specifications in pyproject.toml. You can also do `poetry run` and it will activate the virtualenv before it runs whatever shell command comes after. Or you can do `poetry shell` to run a shell inside the virtualenv.

I like the seamless integration, personally.

Re:Python Is Eating the World by trogdc on Monday August 12, 2019 @06:46PM (#20680898)
Sounds about the same as pipenv's functionality.
Re:Python Is Eating the World by j88439h84 on Tuesday August 13, 2019 @02:30AM (#20683294)
Pipenv still needs setup.py and MANIFEST.in. Poetry replaces both.