Stefano Rivera
2024-09-19 10:50:02 UTC
Reply
PermalinkVersion: 7.9.0-2
Severity: normal
User: debian-***@lists.debian.org
Usertags: python3.13
Forwarded: https://github.com/jaraco/calendra/issues/31
This package failed build from source when test-built against a version of
python3-defaults that includes 3.13 as a supported version.
To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.
Looks like this is resolved in 7.9.1, upstream.
What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html
Log snippet:
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_calendra/build; python3.13 -m pytest --ignore=calendra/tests/test_skyfield_astronomy.py --ignore=calendra/tests/test_astronomy.py -k "not test_create_astronomical_data" calendra/tests
============================= test session starts ==============================
platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_calendra/build
configfile: pytest.ini
plugins: typeguard-4.3.0
collected 4005 items / 1 deselected / 4004 selected
calendra/tests/test_africa.py ...FFF.FFFF.FFF.F......................... [ 1%]
......FF.FFF.FFF.FFFFF.FFF.FFFF.FFF [ 1%]
calendra/tests/test_america.py ...F.FFFFFFFFF.FFFFFFFFF......FFFF..FFFFF [ 2%]
.FFF.FFFFF.FFFFFFFF.FFFFFF. [ 3%]
calendra/tests/test_asia.py ...FF.FF...............FFFFFFF.FFFFFFFFFFF.F [ 4%]
FFFFF.FFFFFFF.FFFFFFFFFF.FFFFF.FF..FFFF.FFFF.FFFFFF.F......F..FF.FFFF [ 6%]
calendra/tests/test_brazil.py ...FFFF.FFFFF.FFFFFF.FFFFFF.FFFFFF.FFFFFF. [ 7%]
FFFFFF.FFFFFF.FFFFFF.FFFFFF.FFFFFF.FFFFFF.FFFFFF.FFFFFF.FFFFFF.FFFFFF.FF [ 9%]
FFFF.FFFFFF.FFFFFF.FFFFFFF.FFFFFF.FFFFFF.FFFFFF.FFFFFF.FFFFFF.FFFFFF.FFF [ 11%]
FFFF.FFFFFFF.FFFFFF.FFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFFF.FFFFFFF.FFFF [ 12%]
FFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFFF.FFF [ 14%]
FFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFF [ 16%]
FFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFFFF.FFFFFFFFFFFFFFFF. [ 18%]
.. [ 18%]
calendra/tests/test_canada.py ...FFFFFF.FFFFF.FFF.FFFF.FFF.FFF.FFF.FFF.F [ 19%]
FFF.FFF.FFF.FFF.FFF.FFFF. [ 20%]
calendra/tests/test_core.py .......................F.................... [ 21%]
............................ [ 21%]
calendra/tests/test_europe.py ...FFF.FFF.FFFFFFFFF............FFFFFF.FFF [ 22%]
F.FFF.FF....FFF.FFFF.FFFFFF.FFFFF.FFFFF.FFFFFF.FFFFF.FFFF.FFFFF.FFF.FFFF [ 24%]
.FFFF.FFF.F..........FFF.FFF.FFFF.FFFFFFFFFF.F......FF..FFFFF.FFFFF.FFFF [ 26%]
F.FFFF.FFFFFF.FFFFFFFFFFFF.FFFFFF.FFFFFFF............................... [ 28%]
.............FF.FFF.FFFFFF.FFFFF.FFFFFF.FFFF.FFFFF.FFF [ 29%]
calendra/tests/test_germany.py ....FF.FFFFFFF.FFFFF.FFFFFFFF.FFFFF.FFFF. [ 30%]
FFFFF.FFFFFFF.FFFFFFF.FFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFFF.FFFFFFF.FFF [ 32%]
FF.FFFFFFF.FFF [ 32%]
calendra/tests/test_global_registry.py . [ 32%]
calendra/tests/test_ical_export.py ......... [ 33%]
calendra/tests/test_mozambique.py ...FFFFFFFFFFFFF.FFFF [ 33%]
calendra/tests/test_oceania.py ...FFFFFF.FFFFFFFFFF.F.FFFFFFFF.FFFFFFFF. [ 34%]
FFFFFFFF.FFFFFFFF.FFFFFFFF.FFFFFFFFF.FFFFFFFFF.FFFFFFFF.FFFFFFFF.FFF.FFF [ 36%]
FFFFFF.F [ 36%]
calendra/tests/test_precomputed_astronomy.py ..... [ 36%]
calendra/tests/test_registry.py ......... [ 36%]
calendra/tests/test_registry_africa.py . [ 36%]
calendra/tests/test_registry_america.py ... [ 37%]
calendra/tests/test_registry_asia.py . [ 37%]
calendra/tests/test_registry_europe.py ..... [ 37%]
calendra/tests/test_registry_oceania.py .. [ 37%]
calendra/tests/test_registry_usa.py .. [ 37%]
calendra/tests/test_scotland.py ...FFFFFFFFFF.F.FFFFF.F.FFFF.FFF.FFFF.F. [ 38%]
FFFFF.FF.FFFF.FF.FFF.FFF.FFF.F.FFFFF.FFF.FFFFFF.FF.FFFFFFF.F.FFFFF.FFF.F [ 40%]
FFFF.FF.FFFFF.FFFF.FFFF.FF.FFFFFF.FF.FFFF.F.FFFF.FFF.FFFFF.FFF.FFFFFFF.F [ 41%]
.FFF.FF.FFF.FF.FFF.F.FFFFFFF.FF.FFFFFF.FF.FFFF.FFFF.FFFFF.FFF.FFFFFF.FF. [ 43%]
FFFF.FFFF.FFFFF.F.F [ 44%]
calendra/tests/test_spain.py ...FFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FF [ 45%]
FFFFF.FFFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.FFFFFFF.F [ 47%]
FFFFFF.FFFFFFF.FFFFFFF.FFFFFFF. [ 47%]
calendra/tests/test_switzerland.py ...FF.FFFF.FFFF.FFFF.FFFF.FFFF.FFFF.F [ 48%]
FFF.FFFF.FFFF.FFFF.FFFF.FFFF.FFFFFF.FFFF.FFFF.FFFF.FFFF.FFFF.FFFF.FFFF.F [ 50%]
FFF.FFFF.FFFF.FFFF.FFFF.FF [ 51%]
calendra/tests/test_turkey.py ...FFF.FFFF [ 51%]
calendra/tests/test_usa.py ...F..F.FFFF.FFFFFFF...F.FF....F..F.FFFF.FFFF [ 52%]
FF...F.....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF....F..F.FF [ 54%]
FF.FFFFFF...F.FF....F.F.F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FFF [ 56%]
....F..F.FFFF.FFFFFF...F.....FF..F.FFFF.FFFFFF...F.FF....FF..F.FFFF.FFFF [ 57%]
FF...F.FFFF....FF..F.FFFF.FFFFFF...F.FFFFFF....F..F.FFFF.FFFFFF...F.FFFF [ 59%]
....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFFF...F.FF....F..F.FFFF.FFF [ 61%]
FFF...F.....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF....F..F.F [ 63%]
FFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF....F.F.F.FFFFF.FFFF.FFF..F. [ 65%]
F.FFFF....F..F.FFFF.FFFFFFF...F.FFFF....FFF..F.FFFF.FFFFFF...F.FF....F.. [ 66%]
F.FFFF..FFFFFF...F.FF.....FFF..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF. [ 68%]
..F.....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FFF....F..F.FFFF [ 70%]
.FFFFFF...F..FF...s.F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F..... [ 72%]
F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF.. [ 74%]
.F.FF....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF....F.FF.F.FF [ 75%]
FF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FFF....F..F.FFFF.FFFFFF...F.FF. [ 77%]
...F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFF [ 79%]
F...F.....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF....F..F.FFF [ 81%]
F.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF... [ 83%]
.F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FFFFFFFF....F..F.FFFF.F [ 84%]
FFFFF...F.FF....F..F.FFFF.FFFFFF...F.....F..F.FFFF.FFFFFF...F.FF....F..F [ 86%]
.FFFF.FFFFFF...F.....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF. [ 88%]
...F..F.FFFF.FFFFFF...F.FFs....F..F.FFFF.FFFFFF...F.....F..F.FFFF.FFFFFF [ 90%]
...F.FF....F..F.FFFF.FFFFFF...F.F....F..F.FFFF.FFFFFF...F.F....F..F.FFFF [ 92%]
.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.FF....F..F.FFFFF.FFFFFF...F.FF... [ 93%]
.F..F.FFFF.FFFFFF...F.....F..F.FFFF.FFFFFF...F.FFFF....F..F.FFFF.FFFFFF. [ 95%]
..F.FF....F..F.FFFF.FFFFFF...F.....F..F.FFFFFFF.FFFFFF...F.....FFF..F.FF [ 97%]
FF.FFFFFF..F.F.FF....F..F.FFFF.FFFFFF...F.FF....F..F.FFFF.FFFFFF...F.F.. [ 99%]
..F..F.FFFF.FFFFFFF...F..... [100%]
=================================== FAILURES ===================================
_________________________ TunisiaTest.test_ical_export _________________________
self = <calendra.tests.test_africa.TunisiaTest testMethod=test_ical_export>
@pytest.mark.xfail(
"platform.system() == 'Windows'",
reason="https://github.com/peopledoc/workalendar/issues/607")
def test_ical_export(self):
"""Check that an iCal file can be created according to iCal spec."""
class_name = self.cal_class.__name__
if class_name in ['Calendar']:
return
holidays = self.cal.holidays(2019) + self.cal.holidays(2020)
calendra/tests/__init__.py:61:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
calendra/core.py:542: in holidays
days = self.get_calendar_holidays(year)
calendra/holiday.py:145: in get_calendar_holidays
days = super().get_calendar_holidays(year)
calendra/core.py:530: in get_calendar_holidays
return self.get_fixed_holidays(year) + self.get_variable_days(year)
calendra/africa/tunisia.py:40: in get_fixed_holidays
days = super().get_fixed_holidays(year)
calendra/core.py:1028: in get_fixed_holidays
days = super().get_fixed_holidays(year)
calendra/core.py:521: in get_fixed_holidays
return [day.replace(year=year) for day in fixed_holidays]
calendra/holiday.py:55: in replace
replaced = super().replace(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'calendra.holiday.Holiday'>, date = 2019, args = (3, 20)
kwargs = {}
def __new__(cls, date, *args, **kwargs):
return super().__new__(
cls, date.year, date.month, date.day)
E AttributeError: 'int' object has no attribute 'year'calendra/holiday.py:34: AttributeError
etc.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/781557/
This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.
Thanks,
Stefano