Тёмный

why I will never use python-poetry 

anthonywritescode
Подписаться 39 тыс.
Просмотров 56 тыс.
50% 1

innovative strides in deprecation policies!
==========
twitch: / anthonywritescode
dicsord: / discord
twitter: / codewithanthony
github: github.com/asottile
stream github: github.com/anthonywritescode
I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!

Наука

Опубликовано:

 

29 сен 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 110   
@chrisharrel8837
@chrisharrel8837 Год назад
I think this naturally calls for a video on piptools now
@DavidDellsperger
@DavidDellsperger Год назад
As someone who continually has to deal with issues that only happen intermittently and seemingly with the same inputs having different behavior, this would 100% annoy the heck out of me. I can't believe that a fellow developer would think that this is an acceptable behavior to add, ESPECIALLY in a CI environment.
@NostraDavid2
@NostraDavid2 Год назад
Tell me how a creator isn't using their own tools, without telling me they're not using their own tools. At least not in a CI environment in any meaningful capacity. ¯\_(ツ)_/¯
@OrCarmi
@OrCarmi Год назад
That random in CI stuff is... something. Shows that the people behind this project haven't got a good understanding of how people build stuff in the wild, which is indeed disconcerting
@AceofSpades5757
@AceofSpades5757 Год назад
I've never seen someone do something like before. And it seems like it was a very poor decision to do so. Why would I ever use a project where it's the intention to randomly fail? Never. I would never use it and would never have any confidence in using it.
@OrCarmi
@OrCarmi Год назад
@@AceofSpades5757 as an open source maintainer myself I don't like to resort to that kind of language and I'm sure that their motives were good, but it does raise concerns for the level of proficiency to be expected from the project
@AceofSpades5757
@AceofSpades5757 Год назад
@@OrCarmi That's fair. I will update my wording to avoid insulting anyone. I meant it to convey how I felt on the matter, but that was a bit harsh on my part.
@xFrez
@xFrez Год назад
BROWNOUT_CHANCE = 5 GET_RID_OF_POETRY_CHANCE = 95
@josesebastiancolaneri7125
@josesebastiancolaneri7125 Месяц назад
couldn't agree with you more
@Kralnor
@Kralnor 9 месяцев назад
A 5% chance to randomly fail in CI is ridiculous, as is the overnight deprecation and removal. I was looking into using poetry but your thoughts have definitely made me reconsider.
@jamesmunroe6558
@jamesmunroe6558 Год назад
As someone who's dabbled in Poetry and really liked it, I found your video so informative that it got you my subscription. I'm really looking forward to watching some of your other videos!
@AceofSpades5757
@AceofSpades5757 Год назад
I had not heard of pip-tools but a brief look at it makes me think it could solve some problems I've had with dependency management. Thanks for introducing me to it!
@tandavme
@tandavme Год назад
Great video Anthony, thanks! It would be nice to watch a video about pip-tools
@saurabhchopra
@saurabhchopra Год назад
+1
@DiogoBaeder
@DiogoBaeder 9 месяцев назад
I'm still a big fan of Poetry and will keep using it; However, your arguments here are very good, and I actually agree with them - it's bad to automatically update deps within major versions by default (because it's quite common to reach breaking changes between different minor versions), and it's SUPER BAD to introduce random breakages in CI builds just to "force" people to stop using some deprecated feature. Thanks for the video, you got a new subscriber 🙂
@justinfuruness7954
@justinfuruness7954 9 месяцев назад
wow, best breakdown I've seen thus far on actual technical reasons as to why not to use poetry. Great job! Loving your vids
@buck3213
@buck3213 Год назад
Interesting way to tell users that it’s time to fork or find something else
@hunorportik5618
@hunorportik5618 Год назад
Wow, ty for sharing this! Not that long ago we've just dealt with flask lib, that had something similar where they simply changed the default behavior, although wasn't even intended to be removed at the end. I went crazy about it. You should do another video about how flask.request.json changed from version ~1.X -> 2.2.X it's default behav.
@anthonywritescode
@anthonywritescode Год назад
to be fair, flask had been warning about that change for a very long time
@petermoore8811
@petermoore8811 Год назад
I thought the video was clickbait and you were actually going to like it in the end but wow ok. I just started looking at poetry this morning because setuptools which i build pypi wheels in is so hard to manage. So what is the best practice to make pypi projects?
@anthonywritescode
@anthonywritescode Год назад
I don't do click bait
@gwrgrw4077
@gwrgrw4077 10 месяцев назад
@@anthonywritescode you in fact do clickbait, but actually make the video about what people clicked for, so it's good clickbait
@Quarky_
@Quarky_ Год назад
Adding randomness is pure evil. Must have caused so much head-scratching and aggravation to people who were on this version. Edit: thanks about the pip-tools suggestion :)
@alimulhasan8063
@alimulhasan8063 6 месяцев назад
After watching this video, another video about pip-tools is must right?
@tomgivoly6748
@tomgivoly6748 Год назад
Hi, I have a small question. My project has quite too many dependencies and of course I would want to decrease the number of dependencies but right now every time a package I am using is getting upgraded and it breaks my Code the I need to lock its version. What would you advise me to do? Lock all versions of outside packages so I my code wont have problems so often? Or is it better to always upgrade the external packages? Thanks!
@anthonywritescode
@anthonywritescode Год назад
I tend to: - reduce deps wherever possible - lock everything in applications - be proactive about upgrading
@anthonywritescode
@anthonywritescode Год назад
I'll actually have a video coming out either later this week or next week which goes into further details about my strategy here
@tomgivoly6748
@tomgivoly6748 Год назад
Thank you very much! Much appreciated🙏
@ssbarnea
@ssbarnea Год назад
Thanks for doing this one, now I can send others asking about poetry to your video. Much easier than having endless debates about why some feel the need for Vogon poetry. There are also other reasons, but if I remember well they would fit in the same category as your example regarding making deliberate decisions that disconsider the user-base. That kind of aggressiveness around deprecations I unacceptable, at least in my view. I was even upset about how aggressive was pip around reporting that is outdated, but what poetry did took it a new level.
@sillybuttons925
@sillybuttons925 Год назад
Ekk. I did use setup-py-upgrade as part of converting 10's of poetry pyproject.toml's to setup.cfg's so thanks for making that.
@joemckoy8332
@joemckoy8332 Год назад
Sorry this is off topic, it's my first time seeing a video of yours. I just gotta know, what keyboard is that?
@anthonywritescode
@anthonywritescode Год назад
it's the kinesis freestyle pro -- here's my review of it and more details: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-DZgCUWf9DZM.html
@joemckoy8332
@joemckoy8332 Год назад
Thanks!
@Beat0X
@Beat0X Год назад
The greatest value for me in poetry is how it helps manage and hence democratize the use of pyproject.toml. This really helped set our team on a journey to sane packaging and dependency management. The randomness in CI is wild though and we've definitely ran into weird stuff with poetry also the change in how hashes are handled before 1.2 compared to after which also broke our CI.
@rcracer1991
@rcracer1991 Год назад
I'm a big proponent of pyproject.toml as well. if someone isn't happy about using Poetry there's alternatives available like Flit.
@riccardotonini4337
@riccardotonini4337 9 месяцев назад
Ironically Poetry does not comply with PEP-621
@DaveParr
@DaveParr Год назад
Did you need to install poetry inside a venv? Isn't it designed to be installed at system level, and then it effectively creates a venv?
@anthonywritescode
@anthonywritescode Год назад
I install nothing globally ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-O390_abzo08.html
@anthonywritescode
@anthonywritescode 5 месяцев назад
did you click the link?
@user-yw1ux6zk3z
@user-yw1ux6zk3z 8 месяцев назад
Thanks Anthony for all of your great videos. As a new Python coder, I find Poetry is easier than Venv or pip-tools. Poetry documentation is easier to follow. Maybe when I am more advance user, things will change.
@JorgeAnais
@JorgeAnais 8 дней назад
I typically watch videos at 2x speed, but this time I'm watching at 0.5x speed.
@anthonywritescode
@anthonywritescode 8 дней назад
.5x speed but only 5% of the time?
@TotalImmort7l
@TotalImmort7l Месяц назад
I'd love to hear your opinion on PDM. It's PEP standards friendly and it's dependency resolver is much more robust.
@anthonywritescode
@anthonywritescode Месяц назад
a few other comments have asked below vvv
@ArthurKhazbs
@ArthurKhazbs 8 месяцев назад
What about pipenv? Have you tried it, is the experience any different?
@anthonywritescode
@anthonywritescode 8 месяцев назад
some of the same reasons as poetry (slow, yagni) but also I won't use it due to the original author
@soklagenhet
@soklagenhet Год назад
Why do you use virtualenv and not venv? habbit, or actual reasons?
@valtterihuuskonen4207
@valtterihuuskonen4207 Год назад
Anthony has made a video about it: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MGTX5qI2Jts.html
@anthonywritescode
@anthonywritescode Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MGTX5qI2Jts.html
@StephenBuergler
@StephenBuergler Год назад
What happened to easy install?
@mrswats
@mrswats Год назад
It's a very WTF decision. I moved away from poetry as well. now I need to convince work to do the same, but it'll be... hard given we migrated into poetry not that long ago...
@lonterel4704
@lonterel4704 Год назад
Pip-tools is great
@mrswats
@mrswats Год назад
@@lonterel4704 I migrated to pip tools indeed
@NostraDavid2
@NostraDavid2 Год назад
I'm in the same boat :(
@dmytroparfeniuk2670
@dmytroparfeniuk2670 10 месяцев назад
true! what about pipenv?
@user-cq7yg1qq2x
@user-cq7yg1qq2x Месяц назад
I'd be interested in your take on PDM as I swapped from poetry to PDM ages ago and still use it
@anthonywritescode
@anthonywritescode Месяц назад
pdm used to do really really strange and scary ways of putting things on sys.path -- though they recently switched to just being a virtualenv creator and dependency manager which at that point what are you gaining over just using the vanilla tools (ok maybe a slightly centralized interface? but also a whole other place for bugs) -- nothing imo so it sits firmly in yagni territory
@voidvector
@voidvector 5 месяцев назад
As someone whose primary language is not Python, I found poetry makes project maintenance a lot easier. Having to manually manage venv and fiddle with requirements.txt just to bump minor versions for security patches is too much overhead.
@Kyuubi840
@Kyuubi840 Год назад
I thought the "percent change to randomly fail" was just a hyperbole for the thumbnail. But they actually did it for real... wtf
@chiragjn101
@chiragjn101 Год назад
I can think of some shenanigans based on the implementation 😂 since they are using the global implicit random instance, what if I set random.seed to something that would never cause a brownout failure.
@DMSBrian24
@DMSBrian24 10 месяцев назад
they did... what......
@michaelschmidt850
@michaelschmidt850 Год назад
It is best practice to make changes to the interface just in major version changes, so it makes absolut sense to default to be compatible just to the same major version of a dependency
@anthonywritescode
@anthonywritescode Год назад
that mentality is harmful. yes breaking changes _may_ occur but they're unlikely to affect the core use of a library and without notice
@NostraDavid2
@NostraDavid2 Год назад
Easy ("temp") fix for poetry: pin the version to something pre-1.2.0
@walkdead94
@walkdead94 Год назад
Going from completely fine to breaking due to safety reasons is not that bad, but adding 5% chance error is comic and overthetop! Hahaha that is mess up!! Hahah
@float32
@float32 Год назад
There were some serious red flags, in the poetry issues page, and this just cements my decision to undo a weeks worth of work in converting my projects to poetry. I hate python.
@IDRIVE-mk1lv
@IDRIVE-mk1lv 3 месяца назад
Thank you for the detailed video, not going to use poetry.
@pedr0psb
@pedr0psb Год назад
What about pipenv?
@anthonywritescode
@anthonywritescode Год назад
maybe if I wanted to make every operation slower for no reason. I also won't use any software written by the original author on principle
@SanixDarker
@SanixDarker 8 месяцев назад
after 1year, do you think this is still true please ?
@anthonywritescode
@anthonywritescode 8 месяцев назад
if I didn't I would have issued a correction and taken down the video
@thexames3
@thexames3 Год назад
Anthony, what's up with the thumbnails😚? Looks good though 😎
@maksimon519
@maksimon519 Год назад
something to manage tons of packages, cannot be a tons of packages itself
@maksimon519
@maksimon519 Год назад
i use git submodule to 'install' a package manage module written by myself based on venv. it has no third party dependencies except stdlib
@ccos218
@ccos218 5 дней назад
PDM is the way
@Michallote
@Michallote 9 месяцев назад
WTF is going on with 5 percent chance of throwing an error?!? Did they ever justify or provided their thought process?
@amir.hessam
@amir.hessam Год назад
Poetry is still pretty good for mono-repo projects where you have 100 independent venvs; v1.2 has a lot of breaking changes; I agree they had to communicate better, but I guess poetry plays a big role in the future; especially in ML/DS world where side projects like `poetry-kernel` makes the venv management way easier
@lonterel4704
@lonterel4704 Год назад
Use pants for monorepo
@anthonywritescode
@anthonywritescode Год назад
my point is "venv management isn't hard and poetry somehow makes it more complicated"
@TheAulto
@TheAulto Год назад
For ML/DS we’re stuck with conda. Mostly for the package repository.
@robertopro18
@robertopro18 3 месяца назад
I don't have any issues with that tbh
@BryanChance
@BryanChance 7 месяцев назад
What does "poetry"? i can't tell by the name at all. and all "beautiful soup"?
@AceofSpades5757
@AceofSpades5757 Год назад
I've heard a lot of good things about poetry, but have had a stack of problems when using it that made me avoid it for all my projects.
@AceofSpades5757
@AceofSpades5757 Год назад
Tbf, it's closest relative, pipenv, is blocklisted for all my projects and gets gutted for any older projects that I spot.
@NostraDavid2
@NostraDavid2 Год назад
@@AceofSpades5757 How so? I never used pipenv, so I won't mind the information :)
@AceofSpades5757
@AceofSpades5757 Год назад
@@NostraDavid2 TLDR A developed lack of confidence over the years. Too bad because I really liked the interface. Due to its ergonomics, I used it for most of my projects. Over the years it's had problem after problem after problem. Serious performance issues and difficult to diagnose bugs, which I usually thought was the code base but just turned out to be pipenv, have forced me to purge it from all my projects. P.S. For my next project, I'm going to try out pip-tools. Sounds like it would be a great complement to virtualenv.
@APK-jay
@APK-jay 6 месяцев назад
Wait, did I understand correctly that this was only ever added to an alpha? This appears to make this a non-issue to me
@anthonywritescode
@anthonywritescode 6 месяцев назад
it was added in an alpha and then released to everyone because it was through a website and not through normal mechanisms
@APK-jay
@APK-jay 6 месяцев назад
@@anthonywritescode That actually seems worse somehow... Oh gosh...
@saeedgnu
@saeedgnu 9 месяцев назад
Wait this guy works for docker??? That is unsettling!!
@iandthopper
@iandthopper Год назад
I love/hate poetry. It is great until it is suddenly terrible.
@rolandovillcaarias5112
@rolandovillcaarias5112 Месяц назад
Hi Antony, after one year of your video, still thinking you will not use poetry?
@anthonywritescode
@anthonywritescode Месяц назад
have the reasons in the video changed?
@anthonywritescode
@anthonywritescode Месяц назад
does "never" not include 2024?
@user-yv2bc4qr8z
@user-yv2bc4qr8z 2 месяца назад
I agree, but my pro-poetry colleague won the argument, considering hashing and sources URI
@anthonywritescode
@anthonywritescode 2 месяца назад
you can do that directly with requirements.txt fwiw
@jajejijoju7874
@jajejijoju7874 Год назад
Seems that the problem is the requests library, not poetry
@anthonywritescode
@anthonywritescode Год назад
did you watch the video? this has nothing to do with requests?
@atugushev
@atugushev Год назад
I feel your pain!
@nadavcohen9493
@nadavcohen9493 Год назад
5% chance to fail XDD tf is this Pokemon??
@DouglasFurlong
@DouglasFurlong 5 месяцев назад
I certainly agree that on deprecation, there should be a grace period to allow people to migrate, and this doesn't appear to allow for that. Regarding the 5% failure, I kinda get where they were coming from, the likely hood of people looking at deprecation warnings in succeeding CI jobs is pretty slim, so they wanted to make a little noise, to draw people's attention to the fact that some thing has been deprecated, but not cause an outright failure suggesting code breakage. That being said, I can certainly see why that would irk some one.
@anthonywritescode
@anthonywritescode 5 месяцев назад
but it did cause an outright failure, at 5%
@AllExistence
@AllExistence Месяц назад
how disgusting...
@bkahlerventer
@bkahlerventer Месяц назад
Nice video, I am for giving people their choices. As a developer, I want a dependency manager that is opinionated and does not stray too far from selected apis. For me pip freeze bundles dependencies of dependencies, ignores missing/broken dependencies. Chances I no longer want to use that library as it is not well maintained or old. For projects like ansible-lint to deliberately break poetry support 100% of the time is childish.
@anthonywritescode
@anthonywritescode Месяц назад
? if poetry is that fragile and the official packaging tool can handle it surely poetry is the problem
@user-gh4lv2ub2j
@user-gh4lv2ub2j 2 месяца назад
pipenv vs poetry makes my head hurt
@deadwarrior9866
@deadwarrior9866 8 месяцев назад
poetry is xxxx trash for sure dont run it so many bug
Далее
How to Use Poetry in Python to avoid Dependency Hell
20:21
The most important Python script I ever wrote
19:58
Просмотров 168 тыс.
Which Python Package Manager Should You Use?
5:06
Просмотров 153 тыс.
Is UV the FUTURE of Python PACKAGING? 🐍📦
17:52
Смело ставь iOS 18
0:57
Просмотров 313 тыс.
Battery  low 🔋 🪫
0:10
Просмотров 11 млн
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Просмотров 126 тыс.