!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

330 Members
https://github.com/nix-community/poetry2nix62 Servers

Load older messages


SenderMessageTime
16 Apr 2022
@k900:0upti.meK900Poetry's autogenerated setup.py stuff is jank06:16:05
@adis:blad.isadisbladisPython is just layers upon layers of jank06:16:20
@k900:0upti.meK900True, but at least we can try to reduce the jank06:16:29
@adis:blad.isadisbladisI still like it though, don't get me wrong06:16:38
@adis:blad.isadisbladisSome day soon I'll try to find some energy to add proper handling of this to upstream poetry06:17:14
@adis:blad.isadisbladisOh, there was some recent-ish movement on this front https://github.com/python-poetry/poetry/pull/2794#issuecomment-106974025106:17:49
@k900:0upti.meK900https://github.com/NixOS/nixpkgs/pull/16888106:18:06
@k900:0upti.meK9003.6k rebuilds eeey06:18:10
@adis:blad.isadisbladisLovely06:18:22
@k900:0upti.meK900Honestly how the fuck is that still not in the stdlib06:18:40
@adis:blad.isadisbladis
In reply to @k900:0upti.me
Honestly how the fuck is that still not in the stdlib
What's really mind boggling is that toml isn't in stdlib but is mandated by PEP517/PEP518
06:19:07
@k900:0upti.meK900It is now06:19:17
@adis:blad.isadisbladisOh?06:19:24
@adis:blad.isadisbladisThat's cool06:19:27
@k900:0upti.meK900https://docs.python.org/3.11/library/tomllib.html06:19:34
@adis:blad.isadisbladisI've not been computing much for a while, I need to catch up :)06:19:43
@k900:0upti.meK900Should ship in 3.11 unless something goes horribly wrong06:19:55
@k900:0upti.meK900But you know what my favorite bit of that is06:21:08
@adis:blad.isadisbladis?06:21:17
@k900:0upti.meK900https://github.com/python/cpython/blob/main/Lib/tomllib/_re.py#L39=06:21:36
@k900:0upti.meK900It has an iso8601 parse06:21:39
@k900:0upti.meK900 * It has an iso8601 parser06:21:40
@adis:blad.isadisbladisHahaha06:22:02
@adis:blad.isadisbladisThat's hilarious06:22:05
@k900:0upti.meK900 So technically the right way to parse 8601 dates in 3.11 is to tomllib.loads them 06:22:11
@adis:blad.isadisbladisThat's not technically a compliant iso8601 parser though06:23:48
@k900:0upti.meK900 It almost is 06:24:47
@adis:blad.isadisbladisNeither is the iso8601 module though ^_^06:25:16
@adis:blad.isadisbladis

iso8601.parse_date("2022-W15-6") ->

ParseError: Unable to parse date string '2022-W15-6'
06:26:04
@k900:0upti.meK900Actually looks like the TOML spec mandates RFC3339, not ISO860106:26:39

Show newer messages


Back to Room ListRoom Version: 6