Pyenv + Poetry

I believe I’m going to give Poetry coupled with pyenv-win a try. I do really like the .venv pattern for my projects. In order to use the active Python specified by pyenv-win an additional command has to be run. Here is how to set both of those options in the config. poetry config virtualenvs.in-project true poetry config virtualenvs.prefer-active-python true 2024-08-25 Update I kind of gave up on Poetry. It’s a bit too complex for most of my needs....

July 24, 2024 · 1 min · Dan

Datetime and time zones

I found this post on StackOverflow today. I’ve struggled with converting datetimes to specific time zones in the past. Apparently, I was just making it too hard. Scroll down to the answer titled Python 3.9 adds the zoneinfo module so now only the the standard library is needed!. Works like a charm.

May 22, 2024 · 1 min · Dan