Monday, 2023-05-15

tkajinamhberaud, since now python 3.8 was added back to tested runtime and I'm wondering how we should treat https://review.opendev.org/c/openstack/oslo.utils/+/872862 which likely breaks compatibility with py3.805:53
tkajinamI was trying https://review.opendev.org/c/openstack/oslo.utils/+/882800?tab=change-view-tab-header-zuul-results-summary but seems this is not allowed by requirement check. it'd be nice if you have any ideas05:54
tkajinamone different option we have is to build pytz in RDO. that might be helpful for the other few components still dependent on pytz05:57
hberaudtkajinam: one option could be to support pytz and zoneinfo at the same time in the code and to load one or the other if the import fails07:38
tkajinamhberaud, that's what I'm trying but I'm not too sure how I can add pytz to requirements.txt07:48
tkajinamso that we require it only in python 3.807:48
tkajinamthe above patch attempts that but seems requirement check does not allow the current definition. also seems somehow pytz is still installed for some reason which I've not yet looked into07:49
tkajinam(probably something in dependencies are pulling it07:49
hberaudtkajinam: ah indeed, that's what I was thinking as solution...08:00
hberaudtkajinam: I think we have to add the python_version==3.8 here => https://github.com/openstack/requirements/blob/master/upper-constraints.txt#L59608:08
hberaudI think this is why we have this issue08:08
hberaudhowever, if we add this extra tag in openstack/requirements that risk to broke other deliverables that also rely on pytz08:10
hberaudthey surely will start to fail as your current patch without this new tag (python_version)08:11
hberaudtkajinam: and apparently many projects still relies on pytz => https://github.com/search?q=org%3Aopenstack%20pytz%20path%3Arequirements.txt&type=code08:15
hberaud(I think we can ignore charm* and test-requirements.txt)08:16
hberaudelse... lets remove the 'python_version' from your patch and lets follow your previous proposal about RDO 08:20
tkajinamyeah08:22
hberaudpy3.8 is EOL in ~ 1 year so other we only have to maintain this double code during a couple of months08:22
hberauds/so other//08:23
hberaudthe same is required in oslo.serialization08:24
tkajinamthanks for these inputs. So for short term I'll remove python_version and make pytz regardless of the python version. Once we establish the solution to require pytz only in 38 or remove py38 then we can get rid of pytz08:29
hberaudok wfm08:29
hberaudI'll do the same for oslo.serialization08:30
opendevreviewTakashi Kajinami proposed openstack/oslo.utils master: Fix compatibility with Python 3.8  https://review.opendev.org/c/openstack/oslo.utils/+/88280008:31
tkajinamupdated the patch ^^^08:35
hberaudthanls08:46
hberaudthanks08:46
opendevreviewHervĂ© Beraud proposed openstack/oslo.serialization master: Fix compatibility with Python 3.8  https://review.opendev.org/c/openstack/oslo.serialization/+/88314509:02
hberaudtkajinam: oslo.serialization ^ 09:02

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!