fix: update utcnow for python 3.12 deprecation - #107
Conversation
dwt
commented
Apr 28, 2025
I don't quite get why the |
dwt
commented
Apr 28, 2025
@bobbui Is there anything I can do to make this more mergeable? Sadly the last run here is so long ago that the logs are not accessible anymore, so I'm not sure what the problem is. But this is slowly becoming pressing as we want to update to python 3.14 soon. |
donbowman
commented
Apr 28, 2025
i can remove the replace(tzinfo=None). |
donbowman
commented
Apr 28, 2025
i have made a few minor changes to the test environment in this PR:
now all the tests pass at this instance in time. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
donbowman
commented
Apr 29, 2025
@bobbui , please give us some guidance on how we can assist. Do you need another maintainer to help? I think it would be best for the community to keep this alive on the same name/path. Another option is to hard fork it and merge #107 , #108 , #109 . I'm willing to do that if someone else is willing to be a co-maintainer. |
dwt
commented
Apr 29, 2025
I'm using it enough so I wouldn't mind to be a co maintainer, but I would mostly provide review and feedback, as I am very much focused on nix and nixos in my open source time right now. |
dwt
commented
May 3, 2025
Friendly ping to @bobbui Could you please take a look at this issue and help us get this merged? |
dwt
commented
May 16, 2025
Another friendly ping to @bobbui - this issue is getting more and more pressing as the package is incompatible with python 3.12, while python 3.14 is getting released any day now. |
dwt
commented
May 29, 2025
Friendly Ping to @bobbui - could you please take a look at this - as far as I can see the fix is included. We would really like to use your library on newer python versions. |
dwt
commented
Jun 30, 2025
Friendly ping at @bobbui Can you give a timeframe when you will be able to look at this? |
dwt
commented
Jul 5, 2025
@bobbui, I had a Quick Look, and was a bit confused, I'll write something to the developer |
dwt
commented
Jul 5, 2025
@bobbui Do you already have a release schedule for this fix? We would like to upgrade our deployments and are running into this problem. |
In python3.12 we get deprecation errors due to the use of 'naive' timestamps
from utcnow. (see python/cpython#103857)
Replace with timezone.utc
See python/cpython#81669
See https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated