feedgenerator icon indicating copy to clipboard operation
feedgenerator copied to clipboard

Remove pytz dependency, update minimum python version to 3.9, extend tests

Open do3cc opened this issue 10 months ago • 4 comments

This is the PR to implement #42 I've reviewed timezone/utils.py and noticed a lot of code isn´t used at all. Then I added tests for windows and macos to make sure, nothing breaks. Since nothing broke, I got worried and extended the tests to use timezones as provided by Python 3.9. Then my windows tests failed and I added the necessary dependency for windows. Now that I am writing this, I am wondering whether we should depend on tzinfo, for windows, as we don´t use the available timezones anywhere. However, I like that there are tests for that.

do3cc avatar Mar 10 '25 23:03 do3cc

Thanks for your work on this, Patrick.

@venthur / @hugovk: I am preparing for a trip and could use an extra pair of eyes. Would you mind taking a look and providing any feedback you may have?

justinmayer avatar Mar 11 '25 06:03 justinmayer

After this I also downloaded pelican and made a test run with my modified branch. No failures. However I saw a few skipped tests due to missing locales.

do3cc avatar Mar 11 '25 09:03 do3cc

Everything addressed. Thanks for the review

do3cc avatar Mar 12 '25 21:03 do3cc

Thanks for your contribution and addressing all requests @do3cc! @justinmayer the PR looks good to go.

venthur avatar Mar 13 '25 08:03 venthur

Hi Patrick. I am so sorry, but I merged #44 and #45 before realizing that your contribution had not been merged yet. If it is not too much to ask, would you be willing to rebase on current main and adjust the commits on this branch to incorporate the parts of your changes that are still relevant?

justinmayer avatar Jul 13 '25 12:07 justinmayer

No worries, I just did so.

do3cc avatar Jul 14 '25 00:07 do3cc

I have also changed the github workflow again. I got some feedback from earlier reviews not do the optimizations that I just reverted and I somehow managed to loose them during the refactoring.

do3cc avatar Jul 14 '25 11:07 do3cc