--- Begin Message ---
Package: src:python-calendra
Version: 7.9.0-2
User: [email protected]
Usertags: ftbfs-during-trixie-support-period
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable in the year 2028, your package
failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary --with python3 --buildsystem=pybuild
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
dh_auto_configure -O--buildsystem=pybuild
dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build"
module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel
--outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_calendra
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
[... snipped ...]
adding 'calendra/europe/russia.py'
adding 'calendra/europe/serbia.py'
adding 'calendra/europe/slovakia.py'
adding 'calendra/europe/slovenia.py'
adding 'calendra/europe/spain.py'
adding 'calendra/europe/sweden.py'
adding 'calendra/europe/switzerland.py'
adding 'calendra/europe/turkey.py'
adding 'calendra/europe/ukraine.py'
adding 'calendra/europe/united_kingdom.py'
adding 'calendra/europe/scotland/__init__.py'
adding 'calendra/europe/scotland/mixins/__init__.py'
adding 'calendra/europe/scotland/mixins/autumn_holiday.py'
adding 'calendra/europe/scotland/mixins/fair_holiday.py'
adding 'calendra/europe/scotland/mixins/spring_holiday.py'
adding 'calendra/europe/scotland/mixins/victoria_day.py'
adding 'calendra/oceania/__init__.py'
adding 'calendra/oceania/australia.py'
adding 'calendra/oceania/marshall_islands.py'
adding 'calendra/oceania/new_zealand.py'
adding 'calendra/tests/__init__.py'
adding 'calendra/tests/test_africa.py'
adding 'calendra/tests/test_america.py'
adding 'calendra/tests/test_asia.py'
adding 'calendra/tests/test_astronomy.py'
adding 'calendra/tests/test_brazil.py'
adding 'calendra/tests/test_canada.py'
adding 'calendra/tests/test_core.py'
adding 'calendra/tests/test_europe.py'
adding 'calendra/tests/test_germany.py'
adding 'calendra/tests/test_global_registry.py'
adding 'calendra/tests/test_ical_export.py'
adding 'calendra/tests/test_mozambique.py'
adding 'calendra/tests/test_oceania.py'
adding 'calendra/tests/test_precomputed_astronomy.py'
adding 'calendra/tests/test_registry.py'
adding 'calendra/tests/test_registry_africa.py'
adding 'calendra/tests/test_registry_america.py'
adding 'calendra/tests/test_registry_asia.py'
adding 'calendra/tests/test_registry_europe.py'
adding 'calendra/tests/test_registry_oceania.py'
adding 'calendra/tests/test_registry_usa.py'
adding 'calendra/tests/test_scotland.py'
adding 'calendra/tests/test_skyfield_astronomy.py'
adding 'calendra/tests/test_spain.py'
adding 'calendra/tests/test_switzerland.py'
adding 'calendra/tests/test_turkey.py'
adding 'calendra/tests/test_usa.py'
adding 'calendra/usa/__init__.py'
adding 'calendra/usa/alabama.py'
adding 'calendra/usa/alaska.py'
adding 'calendra/usa/american_samoa.py'
adding 'calendra/usa/arizona.py'
adding 'calendra/usa/arkansas.py'
adding 'calendra/usa/california.py'
adding 'calendra/usa/colorado.py'
adding 'calendra/usa/connecticut.py'
adding 'calendra/usa/core.py'
adding 'calendra/usa/delaware.py'
adding 'calendra/usa/district_columbia.py'
adding 'calendra/usa/florida.py'
adding 'calendra/usa/georgia.py'
adding 'calendra/usa/guam.py'
adding 'calendra/usa/hawaii.py'
adding 'calendra/usa/idaho.py'
adding 'calendra/usa/illinois.py'
adding 'calendra/usa/indiana.py'
adding 'calendra/usa/iowa.py'
adding 'calendra/usa/kansas.py'
adding 'calendra/usa/kentucky.py'
adding 'calendra/usa/louisiana.py'
adding 'calendra/usa/maine.py'
adding 'calendra/usa/maryland.py'
adding 'calendra/usa/massachusetts.py'
adding 'calendra/usa/michigan.py'
adding 'calendra/usa/minnesota.py'
adding 'calendra/usa/mississippi.py'
adding 'calendra/usa/missouri.py'
adding 'calendra/usa/montana.py'
adding 'calendra/usa/nebraska.py'
adding 'calendra/usa/nevada.py'
adding 'calendra/usa/new_hampshire.py'
adding 'calendra/usa/new_jersey.py'
adding 'calendra/usa/new_mexico.py'
adding 'calendra/usa/new_york.py'
adding 'calendra/usa/north_carolina.py'
adding 'calendra/usa/north_dakota.py'
adding 'calendra/usa/ohio.py'
adding 'calendra/usa/oklahoma.py'
adding 'calendra/usa/oregon.py'
adding 'calendra/usa/pennsylvania.py'
adding 'calendra/usa/rhode_island.py'
adding 'calendra/usa/south_carolina.py'
adding 'calendra/usa/south_dakota.py'
adding 'calendra/usa/tennessee.py'
adding 'calendra/usa/texas.py'
adding 'calendra/usa/utah.py'
adding 'calendra/usa/vermont.py'
adding 'calendra/usa/virginia.py'
adding 'calendra/usa/washington.py'
adding 'calendra/usa/west_virginia.py'
adding 'calendra/usa/wisconsin.py'
adding 'calendra/usa/wyoming.py'
adding 'calendra-0.0.0.dist-info/LICENSE'
adding 'calendra-0.0.0.dist-info/METADATA'
adding 'calendra-0.0.0.dist-info/WHEEL'
adding 'calendra-0.0.0.dist-info/top_level.txt'
adding 'calendra-0.0.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built calendra-0.0.0-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with
"installer" module
dh_auto_test -O--buildsystem=pybuild
I: pybuild pybuild:308: cp /<<PKGBUILDDIR>>/calendra/*.json.gz
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_calendra/build/calendra/
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_calendra/build;
python3.12 -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.12.5, pytest-8.3.2, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_calendra/build
configfile: pytest.ini
collected 4005 items / 1 deselected / 4004 selected
calendra/tests/test_africa.py .......................................... [ 1%]
................................... [ 1%]
calendra/tests/test_america.py ......................................... [ 2%]
........................... [ 3%]
calendra/tests/test_asia.py ...........F..F............................. [ 4%]
..................F.................................................. [ 6%]
calendra/tests/test_brazil.py .......................................... [ 7%]
........................................................................ [ 9%]
........................................................................ [ 11%]
........................................................................ [ 12%]
........................................................................ [ 14%]
........................................................................ [ 16%]
........................................................................ [ 18%]
.. [ 18%]
calendra/tests/test_canada.py .......................................... [ 19%]
......................... [ 20%]
calendra/tests/test_core.py ............................................ [ 21%]
............................ [ 21%]
calendra/tests/test_europe.py .......................................... [ 22%]
........................................................................ [ 24%]
.....................................................F......F.....F..... [ 26%]
.....F.................................................................. [ 28%]
...................................................... [ 29%]
calendra/tests/test_germany.py ......................................... [ 30%]
........................................................................ [ 32%]
.............. [ 32%]
calendra/tests/test_global_registry.py . [ 32%]
calendra/tests/test_ical_export.py ......... [ 33%]
calendra/tests/test_mozambique.py ..................... [ 33%]
calendra/tests/test_oceania.py ......................................... [ 34%]
........................................................................ [ 36%]
........ [ 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 ........................................ [ 38%]
........................................................................ [ 40%]
........................................................................ [ 41%]
........................................................................ [ 43%]
................... [ 44%]
calendra/tests/test_spain.py ........................................... [ 45%]
........................................................................ [ 47%]
............................... [ 47%]
calendra/tests/test_switzerland.py ..................................... [ 48%]
........................................................................ [ 50%]
.......................... [ 51%]
calendra/tests/test_turkey.py ........... [ 51%]
calendra/tests/test_usa.py ............................................. [ 52%]
........................................................................ [ 54%]
........................................................................ [ 56%]
........................................................................ [ 57%]
........................................................................ [ 59%]
........................................................................ [ 61%]
........................................................................ [ 63%]
........................................................................ [ 65%]
........................................................................ [ 66%]
........................................................................ [ 68%]
........................................................................ [ 70%]
..................s..................................................... [ 72%]
........................................................................ [ 74%]
........................................................................ [ 75%]
........................................................................ [ 77%]
........................................................................ [ 79%]
........................................................................ [ 81%]
........................................................................ [ 83%]
........................................................................ [ 84%]
........................................................................ [ 86%]
........................................................................ [ 88%]
..........................s............................................. [ 90%]
........................................................................ [ 92%]
........................................................................ [ 93%]
........................................................................ [ 95%]
........................................................................ [ 97%]
........................................................................ [ 99%]
............................ [100%]
=================================== FAILURES ===================================
__________________________ ChinaTest.test_january_1st __________________________
self = <calendra.tests.test_asia.ChinaTest testMethod=test_january_1st>
def test_january_1st(self):
class_name = self.cal_class.__name__
if class_name in ['Calendar']:
return
holidays = self.cal.holidays_set(self.year)
calendra/tests/__init__.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
calendra/core.py:557: in holidays_set
return set(self.holidays(year))
calendra/core.py:542: in holidays
days = self.get_calendar_holidays(year)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <calendra.asia.china.China object at 0x7f615d8e71d0>, year = 2028
def get_calendar_holidays(self, year):
year_min, year_max = min(holidays), max(holidays)
warnings.warn(
f"Support years {year_min}-{year_max} currently, "
f"need update every year."
)
if year not in holidays:
msg = f"Need configure {year} for China."
raise CalendarError(msg)
E calendra.exceptions.CalendarError: Need configure 2028 for China.
calendra/asia/china.py:140: CalendarError
____________________________ ChinaTest.test_warning ____________________________
self = <calendra.tests.test_asia.ChinaTest testMethod=test_warning>
def test_warning(self):
year = date.today().year
with patch('warnings.warn') as patched:
self.cal.get_calendar_holidays(year)
calendra/tests/test_asia.py:178:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <calendra.asia.china.China object at 0x7f615d8e7170>, year = 2028
def get_calendar_holidays(self, year):
year_min, year_max = min(holidays), max(holidays)
warnings.warn(
f"Support years {year_min}-{year_max} currently, "
f"need update every year."
)
if year not in holidays:
msg = f"Need configure {year} for China."
raise CalendarError(msg)
E calendra.exceptions.CalendarError: Need configure 2028 for China.
calendra/asia/china.py:140: CalendarError
________________________ MalaysiaTest.test_january_1st _________________________
self = <calendra.tests.test_asia.MalaysiaTest testMethod=test_january_1st>
def test_january_1st(self):
class_name = self.cal_class.__name__
if class_name in ['Calendar']:
return
holidays = self.cal.holidays_set(self.year)
calendra/tests/__init__.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
calendra/core.py:557: in holidays_set
return set(self.holidays(year))
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)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <calendra.asia.malaysia.Malaysia object at 0x7f615d7baba0>, year = 2028
def get_variable_days(self, year):
"""
Malaysia variable days
"""
days = super().get_variable_days(year)
# Vesak Day
days.append(
(ChineseNewYearCalendar.lunar(year, 4, 15), "Vesak Day"),
)
# Add in Deepavali and Thaipusam (hardcoded dates, so no need to shift)
msia_deepavali = self.MSIA_DEEPAVALI.get(year)
if not msia_deepavali:
mdmsg = f'Missing date for Malaysia Deepavali for year: {year}'
raise KeyError(mdmsg)
E KeyError: 'Missing date for Malaysia Deepavali for year: 2028'
calendra/asia/malaysia.py:95: KeyError
___________ NetherlandsNorthWithSchoolHolidaysTest.test_january_1st ____________
self = <calendra.tests.test_europe.NetherlandsNorthWithSchoolHolidaysTest
testMethod=test_january_1st>
def test_january_1st(self):
class_name = self.cal_class.__name__
if class_name in ['Calendar']:
return
holidays = self.cal.holidays_set(self.year)
calendra/tests/__init__.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
calendra/core.py:557: in holidays_set
return set(self.holidays(year))
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/europe/netherlands.py:293: in get_variable_days
days.extend(self.get_fall_holidays(year))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <calendra.europe.netherlands.NetherlandsWithSchoolHolidays object at
0x7f615dd8f650>
year = 2028
def get_fall_holidays(self, year):
"""
Return Fall holidays.
They start at week 43 or 44 and last for 9 days
"""
if year not in FALL_HOLIDAYS_EARLY_REGIONS:
raise NotImplementedError(f"Unknown fall holidays for {year}.")
E NotImplementedError: Unknown fall holidays for 2028.
calendra/europe/netherlands.py:144: NotImplementedError
___________ NetherlandsMiddleWithSchoolHolidaysTest.test_january_1st ___________
self = <calendra.tests.test_europe.NetherlandsMiddleWithSchoolHolidaysTest
testMethod=test_january_1st>
def test_january_1st(self):
class_name = self.cal_class.__name__
if class_name in ['Calendar']:
return
holidays = self.cal.holidays_set(self.year)
calendra/tests/__init__.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
calendra/core.py:557: in holidays_set
return set(self.holidays(year))
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/europe/netherlands.py:293: in get_variable_days
days.extend(self.get_fall_holidays(year))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <calendra.europe.netherlands.NetherlandsWithSchoolHolidays object at
0x7f615e59b440>
year = 2028
def get_fall_holidays(self, year):
"""
Return Fall holidays.
They start at week 43 or 44 and last for 9 days
"""
if year not in FALL_HOLIDAYS_EARLY_REGIONS:
raise NotImplementedError(f"Unknown fall holidays for {year}.")
E NotImplementedError: Unknown fall holidays for 2028.
calendra/europe/netherlands.py:144: NotImplementedError
___________ NetherlandsSouthWithSchoolHolidaysTest.test_january_1st ____________
self = <calendra.tests.test_europe.NetherlandsSouthWithSchoolHolidaysTest
testMethod=test_january_1st>
def test_january_1st(self):
class_name = self.cal_class.__name__
if class_name in ['Calendar']:
return
holidays = self.cal.holidays_set(self.year)
calendra/tests/__init__.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
calendra/core.py:557: in holidays_set
return set(self.holidays(year))
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/europe/netherlands.py:293: in get_variable_days
days.extend(self.get_fall_holidays(year))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <calendra.europe.netherlands.NetherlandsWithSchoolHolidays object at
0x7f615e59b170>
year = 2028
def get_fall_holidays(self, year):
"""
Return Fall holidays.
They start at week 43 or 44 and last for 9 days
"""
if year not in FALL_HOLIDAYS_EARLY_REGIONS:
raise NotImplementedError(f"Unknown fall holidays for {year}.")
E NotImplementedError: Unknown fall holidays for 2028.
calendra/europe/netherlands.py:144: NotImplementedError
________ NetherlandsWithSchoolHolidaysAndCarnivalTest.test_january_1st _________
self = <calendra.tests.test_europe.NetherlandsWithSchoolHolidaysAndCarnivalTest
testMethod=test_january_1st>
def test_january_1st(self):
class_name = self.cal_class.__name__
if class_name in ['Calendar']:
return
holidays = self.cal.holidays_set(self.year)
calendra/tests/__init__.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
calendra/core.py:557: in holidays_set
return set(self.holidays(year))
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/europe/netherlands.py:293: in get_variable_days
days.extend(self.get_fall_holidays(year))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <calendra.europe.netherlands.NetherlandsWithSchoolHolidays object at
0x7f615d7b9160>
year = 2028
def get_fall_holidays(self, year):
"""
Return Fall holidays.
They start at week 43 or 44 and last for 9 days
"""
if year not in FALL_HOLIDAYS_EARLY_REGIONS:
raise NotImplementedError(f"Unknown fall holidays for {year}.")
E NotImplementedError: Unknown fall holidays for 2028.
calendra/europe/netherlands.py:144: NotImplementedError
=============================== warnings summary ===============================
calendra/tests/test_usa.py: 34 warnings
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_calendra/build/calendra/usa/florida.py:93:
UserWarning: Florida's laws separate the definitions between paid versus legal holidays.
Be warned that Florida Legal specific Holidays are not paid holidays.
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED calendra/tests/test_asia.py::ChinaTest::test_january_1st - calendra.ex...
FAILED calendra/tests/test_asia.py::ChinaTest::test_warning - calendra.except...
FAILED calendra/tests/test_asia.py::MalaysiaTest::test_january_1st - KeyError...
FAILED
calendra/tests/test_europe.py::NetherlandsNorthWithSchoolHolidaysTest::test_january_1st
FAILED
calendra/tests/test_europe.py::NetherlandsMiddleWithSchoolHolidaysTest::test_january_1st
FAILED
calendra/tests/test_europe.py::NetherlandsSouthWithSchoolHolidaysTest::test_january_1st
FAILED
calendra/tests/test_europe.py::NetherlandsWithSchoolHolidaysAndCarnivalTest::test_january_1st
===== 7 failed, 3995 passed, 2 skipped, 1 deselected, 34 warnings in 7.57s =====
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_calendra/build; python3.12 -m pytest
--ignore=calendra/tests/test_skyfield_astronomy.py --ignore=calendra/tests/test_astronomy.py -k
"not test_create_astronomical_data" calendra/tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12
returned exit code 13
make: *** [debian/rules:12: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/ftbfs-future/
About the archive rebuild: This is an effort to keep trixie free from FTBFS bugs
during its lifetime as a supported distribution, as explained here:
https://lists.debian.org/debian-devel/2024/05/msg00414.html
(While they are not yet, please note that the bugs will be RC for trixie)
The build was made using sbuild and a reduced chroot with only
build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks.
--- End Message ---