11 ms·
Just use Poetry [1]. It's popular and works well. [1] https://python-poetry.org/ https://python-poetry.org/
by neolog 6y ago
Just use Poetry [1]. It's popular and works well.
[1] https://python-poetry.org/ https://python-poetry.org/
- icy 6y agoYup, was surprised to see no mention of Poetry. Hands down, the best package manager for Python.
- santiagobasulto 6y ago+1 for poetry. It also includes deterministic dependency resolution with a lock file. I just published a repo today[0] using Poetry and it didn’t take me more than 5 minutes. Poetry build && poetry publish [0] https://github.com/santiagobasulto/hyper-inspector https://github.com/santiagobasulto/hyper-inspector
- rahimnathwani 6y agoThis looks cool. I had never come across rich[0] before. [0] https://github.com/willmcgugan/rich https://github.com/willmcgugan/rich
- void_mint 6y agoHoly crap, for some reason I never thought to consider another package manager than Pip, which I loathe.
- sergiomattei 6y agoHuge thumbs up to Poetry. It's drastically simplified package management for me and replaced Pipenv (which I simply dreaded working with due to performance and DX issues). I no longer start Python projects without Poetry. It's really good. EDIT: Also, it's being integrated to most PaaS as well. I deploy to Render.com with Poetry now.
- tcbasche 6y agoHow does it compare to pipenv?
- neolog 6y agoPoetry is better.
- tcbasche 6y agoWell that settles it
- acdanger 6y agoI think pipenv is better for managing non-published Python environments, so there.
- deleted 6y ago[deleted]
- bliteben 6y agopipenv has slightly better support in vscode
- neolog 6y ago> Support for poetry environments is currently our highest upvoted feature request on GitHub. https://github.com/microsoft/vscode-python/wiki/Support-poetry-virtual-environments https://github.com/microsoft/vscode-python/wiki/Support-poet...
- deleted 6y ago[deleted]
- smnrchrds 6y agoPipenv 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.
- person_of_color 6y agoDo any big projects actually use it?
- neolog 6y agoIt's only three years old, I can't think of many big projects created in that timespan.
- say_it_as_it_is 6y agoUnless Instagram found migrating to it valuable enough to fund the effort
- marban 6y agoFor poetry, it makes sense to use `poetry self update --preview` — I often come across weird bugs that take too long to get fixed in the current release.
- guggle 6y agoThat's a 72MB download, and yet another way to fragment the ecosystem. Not something I'd get just to make a package when a default Python setup has recommended tools and everything I need to make and/or install packages.
- anaganisk 6y agoDefault way is pip freeze which I feel is too verbose, is tracking every dependency of django worth it?
- tomwojcik 6y agoYes. Also, check pip-tools by jazzband.
- 1337shadow 6y agoWhich, like any jazzband project, you must not use for a commercial project, as stated by their CoC, the Contributor Covenant with a vague & bizarre modification about ethical use at the end. You are simply not allowed to contribute in any way on any kind of paid time, nor are you allowed to pay someone to contribute. This is of course not advertised for when they tell you to give them your OSS projects, for which you have already chosen a license and maybe even a CoC for. For this reason, despite the many non profit projects I maintain, I stay away from jazzband.
- bpeebles 6y agoDo you mean > Other unethical or unprofessional conduct from https://jazzband.co/about/conduct https://jazzband.co/about/conduct ? Or something else?
- guggle 6y agoThat's if you want to pin transitive dependencies, which is the de facto standard in JS world but not always true in Python world, depending on your context.
- 6y ago
- fctorial 6y agoThere are at least 5 comments in this thread saying "just use the tool I use"
- kuu 6y agoMandatory: https://xkcd.com/927/ https://xkcd.com/927/
- beaugunderson 6y ago`poetry` and `pipenv` are both so much slower than `pip-compile` for me (there are many open issues for both complaining about lock speed), and manage to update locked dependencies half the time despite me asking them not to with e.g. `poetry lock --no-update`.