-
As @frostming pointed out on Twitter Pydantic is now using PDM for package/dependency management. We have what I think is not too crazy of a setup: a docs group, a test group, etc and a dependency (
This doesn't make much sense because (1) it locked successfully so I'm not even sure why it's resolving, if anything it should just fail to download and (2) 0.39.0 is on PyPi and What am I doing wrong? I'll also point out that in the case of resolution failure Poetry gives a very nice error message explaining why the resolution failed (xyz>=1.2.0 depends on abc < 1.0 and yourpackage depends on abc > 1.2, etc.). I'm not sure if it's applicable in this situation (again, I feel like resolution shouldn't even be happening here) but if it is it would be nice to get an error message like Poetry's since the current one is not very actionable. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You need to update the pins in the lockfile but Just leave the |
Beta Was this translation helpful? Give feedback.
You need to update the pins in the lockfile but
pdm lock --refresh
doesn't do that, which is said in the help message:Don't update pinned versions, only refresh the lock file
. Though it might be a confusing of what it is updating, it's indeed only updating the hashes(including lockfile hash and artifact hashes).Just leave the
--refresh
, runpdm update
and it will work. Don't worry about the unnecessary IO, it will check the current pins and only request PyPI to get new when it doesn't meet the new requirements.