holidays 0.82__py3-none-any.whl → 0.84__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. holidays/calendars/balinese_saka.py +2 -3
  2. holidays/calendars/buddhist.py +3 -4
  3. holidays/calendars/burmese.py +9 -10
  4. holidays/calendars/chinese.py +8 -9
  5. holidays/calendars/hebrew.py +10 -11
  6. holidays/calendars/hindu.py +27 -28
  7. holidays/calendars/islamic.py +26 -6
  8. holidays/calendars/mandaean.py +2 -3
  9. holidays/calendars/mongolian.py +4 -5
  10. holidays/calendars/persian.py +2 -3
  11. holidays/calendars/sinhala.py +25 -14
  12. holidays/calendars/thai.py +13 -14
  13. holidays/calendars/tibetan.py +12 -13
  14. holidays/countries/__init__.py +1 -0
  15. holidays/countries/angola.py +1 -2
  16. holidays/countries/austria.py +1 -1
  17. holidays/countries/azerbaijan.py +1 -1
  18. holidays/countries/canada.py +27 -13
  19. holidays/countries/denmark.py +18 -6
  20. holidays/countries/fiji.py +2 -3
  21. holidays/countries/finland.py +3 -6
  22. holidays/countries/guernsey.py +1 -2
  23. holidays/countries/guyana.py +24 -32
  24. holidays/countries/india.py +21 -78
  25. holidays/countries/iran.py +133 -269
  26. holidays/countries/ireland.py +1 -1
  27. holidays/countries/israel.py +1 -1
  28. holidays/countries/italy.py +2 -2
  29. holidays/countries/jersey.py +1 -2
  30. holidays/countries/macau.py +5 -8
  31. holidays/countries/malta.py +1 -1
  32. holidays/countries/mauritius.py +10 -9
  33. holidays/countries/montserrat.py +1 -1
  34. holidays/countries/myanmar.py +9 -10
  35. holidays/countries/nepal.py +11 -30
  36. holidays/countries/netherlands.py +28 -24
  37. holidays/countries/new_zealand.py +75 -31
  38. holidays/countries/nigeria.py +53 -75
  39. holidays/countries/norway.py +1 -1
  40. holidays/countries/portugal.py +6 -3
  41. holidays/countries/rwanda.py +2 -2
  42. holidays/countries/sint_maarten.py +1 -1
  43. holidays/countries/slovakia.py +23 -4
  44. holidays/countries/spain.py +418 -214
  45. holidays/countries/sri_lanka.py +58 -91
  46. holidays/countries/suriname.py +1 -2
  47. holidays/countries/sweden.py +1 -1
  48. holidays/countries/switzerland.py +86 -3
  49. holidays/countries/taiwan.py +3 -3
  50. holidays/countries/tanzania.py +19 -29
  51. holidays/countries/thailand.py +8 -7
  52. holidays/countries/trinidad_and_tobago.py +1 -1
  53. holidays/countries/ukraine.py +1 -1
  54. holidays/countries/united_kingdom.py +2 -3
  55. holidays/countries/united_states.py +3 -4
  56. holidays/countries/western_sahara.py +92 -0
  57. holidays/groups/balinese_saka.py +2 -3
  58. holidays/groups/buddhist.py +6 -7
  59. holidays/groups/burmese.py +11 -12
  60. holidays/groups/chinese.py +23 -21
  61. holidays/groups/christian.py +30 -0
  62. holidays/groups/eastern.py +5 -4
  63. holidays/groups/hebrew.py +7 -10
  64. holidays/groups/hindu.py +45 -40
  65. holidays/groups/international.py +1 -1
  66. holidays/groups/islamic.py +10 -3
  67. holidays/groups/mandaean.py +13 -14
  68. holidays/groups/mongolian.py +12 -10
  69. holidays/groups/persian.py +14 -15
  70. holidays/groups/sinhala.py +19 -17
  71. holidays/groups/thai.py +12 -13
  72. holidays/groups/tibetan.py +21 -19
  73. holidays/holiday_base.py +54 -54
  74. holidays/ical.py +1 -2
  75. holidays/locale/ar/LC_MESSAGES/EH.mo +0 -0
  76. holidays/locale/ca/LC_MESSAGES/ES.mo +0 -0
  77. holidays/locale/de/LC_MESSAGES/CH.mo +0 -0
  78. holidays/locale/en_US/LC_MESSAGES/CH.mo +0 -0
  79. holidays/locale/en_US/LC_MESSAGES/EH.mo +0 -0
  80. holidays/locale/en_US/LC_MESSAGES/ES.mo +0 -0
  81. holidays/locale/en_US/LC_MESSAGES/LK.mo +0 -0
  82. holidays/locale/en_US/LC_MESSAGES/NL.mo +0 -0
  83. holidays/locale/es/LC_MESSAGES/EH.mo +0 -0
  84. holidays/locale/es/LC_MESSAGES/ES.mo +0 -0
  85. holidays/locale/fr/LC_MESSAGES/CH.mo +0 -0
  86. holidays/locale/fr/LC_MESSAGES/EH.mo +0 -0
  87. holidays/locale/fy/LC_MESSAGES/NL.mo +0 -0
  88. holidays/locale/it/LC_MESSAGES/CH.mo +0 -0
  89. holidays/locale/nl/LC_MESSAGES/NL.mo +0 -0
  90. holidays/locale/si_LK/LC_MESSAGES/LK.mo +0 -0
  91. holidays/locale/ta_LK/LC_MESSAGES/LK.mo +0 -0
  92. holidays/locale/th/LC_MESSAGES/CH.mo +0 -0
  93. holidays/locale/th/LC_MESSAGES/CN.mo +0 -0
  94. holidays/locale/th/LC_MESSAGES/DK.mo +0 -0
  95. holidays/locale/th/LC_MESSAGES/ES.mo +0 -0
  96. holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
  97. holidays/locale/th/LC_MESSAGES/KR.mo +0 -0
  98. holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
  99. holidays/locale/th/LC_MESSAGES/NL.mo +0 -0
  100. holidays/locale/uk/LC_MESSAGES/CH.mo +0 -0
  101. holidays/locale/uk/LC_MESSAGES/ES.mo +0 -0
  102. holidays/locale/uk/LC_MESSAGES/NL.mo +0 -0
  103. holidays/mixins/child_entity.py +1 -3
  104. holidays/observed_holiday_base.py +25 -14
  105. holidays/registry.py +5 -3
  106. holidays/utils.py +13 -14
  107. holidays/version.py +1 -1
  108. {holidays-0.82.dist-info → holidays-0.84.dist-info}/METADATA +20 -19
  109. {holidays-0.82.dist-info → holidays-0.84.dist-info}/RECORD +113 -104
  110. {holidays-0.82.dist-info → holidays-0.84.dist-info}/WHEEL +0 -0
  111. {holidays-0.82.dist-info → holidays-0.84.dist-info}/licenses/CONTRIBUTORS +0 -0
  112. {holidays-0.82.dist-info → holidays-0.84.dist-info}/licenses/LICENSE +0 -0
  113. {holidays-0.82.dist-info → holidays-0.84.dist-info}/top_level.txt +0 -0
@@ -82,12 +82,18 @@ class Guyana(
82
82
  islamic_show_estimated:
83
83
  Whether to add "estimated" label to Islamic holidays name
84
84
  if holiday date is estimated.
85
+
86
+ In Guyana, the dates of the Islamic calendar usually fall a day later than
87
+ the corresponding dates in the Umm al-Qura calendar.
85
88
  """
86
89
  ChristianHolidays.__init__(self)
87
90
  HinduCalendarHolidays.__init__(self, cls=GuyanaHinduHolidays)
88
91
  InternationalHolidays.__init__(self)
89
92
  IslamicHolidays.__init__(
90
- self, cls=GuyanaIslamicHolidays, show_estimated=islamic_show_estimated
93
+ self,
94
+ cls=GuyanaIslamicHolidays,
95
+ show_estimated=islamic_show_estimated,
96
+ calendar_delta_days=+1,
91
97
  )
92
98
  StaticHolidays.__init__(self, cls=GuyanaStaticHolidays)
93
99
  kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
@@ -210,44 +216,30 @@ class GuyanaIslamicHolidays(_CustomIslamicHolidays):
210
216
  # https://web.archive.org/web/20250424074512/https://www.timeanddate.com/holidays/guyana/eid-al-adha
211
217
  EID_AL_ADHA_DATES_CONFIRMED_YEARS = (2001, 2025)
212
218
  EID_AL_ADHA_DATES = {
213
- 2001: (MAR, 6),
214
- 2002: (FEB, 23),
215
- 2003: (FEB, 12),
216
- 2004: (FEB, 2),
217
- 2008: (DEC, 9),
218
- 2009: (NOV, 28),
219
- 2010: (NOV, 17),
220
- 2011: (NOV, 7),
221
- 2014: (OCT, 5),
222
- 2015: (SEP, 24),
219
+ 2005: (JAN, 21),
220
+ 2006: ((JAN, 10), (DEC, 31)),
221
+ 2007: (DEC, 20),
222
+ 2012: (OCT, 26),
223
+ 2013: (OCT, 15),
223
224
  2016: (SEP, 13),
224
- 2017: (SEP, 2),
225
- 2018: (AUG, 22),
226
- 2021: (JUL, 21),
227
- 2023: (JUN, 29),
228
- 2024: (JUN, 17),
229
- 2025: (JUN, 7),
225
+ 2019: (AUG, 11),
226
+ 2020: (JUL, 31),
227
+ 2022: (JUL, 9),
230
228
  }
231
229
 
232
230
  # https://web.archive.org/web/20241006104125/https://www.timeanddate.com/holidays/guyana/prophet-birthday
233
231
  MAWLID_DATES_CONFIRMED_YEARS = (2001, 2025)
234
232
  MAWLID_DATES = {
235
- 2003: (MAY, 14),
236
- 2004: (MAY, 2),
237
- 2006: (APR, 11),
238
- 2011: (FEB, 16),
239
- 2012: (FEB, 5),
240
- 2014: (JAN, 14),
233
+ 2001: (JUN, 4),
234
+ 2002: (MAY, 24),
235
+ 2005: (APR, 21),
236
+ 2007: (MAR, 31),
237
+ 2008: (MAR, 20),
238
+ 2009: (MAR, 9),
239
+ 2010: (FEB, 26),
240
+ 2013: (JAN, 24),
241
241
  2015: ((JAN, 3), (DEC, 24)),
242
- 2016: (DEC, 12),
243
- 2017: (DEC, 1),
244
- 2018: (NOV, 21),
245
- 2019: (NOV, 10),
246
- 2021: (OCT, 19),
247
- 2022: (OCT, 9),
248
- 2023: (SEP, 28),
249
- 2024: (SEP, 16),
250
- 2025: (SEP, 5),
242
+ 2020: (OCT, 29),
251
243
  }
252
244
 
253
245
 
@@ -14,7 +14,7 @@ import warnings
14
14
  from gettext import gettext as tr
15
15
 
16
16
  from holidays.calendars import _CustomIslamicHolidays
17
- from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
17
+ from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, AUG, SEP, OCT, NOV, DEC
18
18
  from holidays.constants import OPTIONAL, PUBLIC
19
19
  from holidays.groups import (
20
20
  ChristianHolidays,
@@ -156,11 +156,17 @@ class India(
156
156
  islamic_show_estimated:
157
157
  Whether to add "estimated" label to Islamic holidays name
158
158
  if holiday date is estimated.
159
+
160
+ In India, the dates of the Islamic calendar usually fall a day later than
161
+ the corresponding dates in the Umm al-Qura calendar.
159
162
  """
160
163
  ChristianHolidays.__init__(self)
161
164
  HinduCalendarHolidays.__init__(self)
162
165
  IslamicHolidays.__init__(
163
- self, cls=IndiaIslamicHolidays, show_estimated=islamic_show_estimated
166
+ self,
167
+ cls=IndiaIslamicHolidays,
168
+ show_estimated=islamic_show_estimated,
169
+ calendar_delta_days=+1,
164
170
  )
165
171
  InternationalHolidays.__init__(self)
166
172
  super().__init__(*args, **kwargs)
@@ -518,103 +524,40 @@ class IND(India):
518
524
  class IndiaIslamicHolidays(_CustomIslamicHolidays):
519
525
  ASHURA_DATES_CONFIRMED_YEARS = (2001, 2025)
520
526
  ASHURA_DATES = {
521
- 2003: (MAR, 14),
522
- 2004: (MAR, 2),
523
- 2007: (JAN, 30),
527
+ 2001: (APR, 4),
528
+ 2002: (MAR, 24),
529
+ 2005: (FEB, 19),
530
+ 2006: (FEB, 9),
531
+ 2008: (JAN, 19),
524
532
  2009: ((JAN, 7), (DEC, 28)),
525
- 2010: (DEC, 17),
526
- 2011: (DEC, 6),
527
- 2012: (NOV, 25),
528
- 2013: (NOV, 14),
529
- 2014: (NOV, 4),
530
- 2015: (OCT, 24),
531
- 2016: (OCT, 12),
532
- 2017: (OCT, 1),
533
- 2018: (SEP, 21),
534
- 2019: (SEP, 10),
535
- 2020: (AUG, 30),
536
533
  2021: (AUG, 20),
537
- 2022: (AUG, 9),
538
- 2023: (JUL, 29),
539
- 2024: (JUL, 17),
540
- 2025: (JUL, 6),
541
534
  }
542
535
 
543
536
  EID_AL_ADHA_DATES_CONFIRMED_YEARS = (2001, 2025)
544
537
  EID_AL_ADHA_DATES = {
545
- 2001: (MAR, 6),
546
- 2002: (FEB, 23),
547
- 2003: (FEB, 12),
548
- 2004: (FEB, 2),
538
+ 2005: (JAN, 21),
549
539
  2006: ((JAN, 11), (DEC, 31)),
550
- 2008: (DEC, 9),
551
- 2009: (NOV, 28),
552
- 2010: (NOV, 17),
553
- 2011: (NOV, 7),
554
- 2012: (OCT, 27),
555
- 2013: (OCT, 16),
540
+ 2007: (DEC, 20),
556
541
  2014: (OCT, 6),
557
542
  2015: (SEP, 25),
558
543
  2016: (SEP, 13),
559
- 2017: (SEP, 2),
560
- 2018: (AUG, 22),
561
- 2019: (AUG, 12),
562
- 2020: (AUG, 1),
563
- 2021: (JUL, 21),
564
- 2022: (JUL, 10),
565
- 2023: (JUN, 29),
566
- 2024: (JUN, 17),
567
- 2025: (JUN, 7),
568
544
  }
569
545
 
570
546
  EID_AL_FITR_DATES_CONFIRMED_YEARS = (2001, 2025)
571
547
  EID_AL_FITR_DATES = {
572
- 2001: (DEC, 17),
573
- 2002: (DEC, 6),
574
- 2003: (NOV, 26),
575
- 2006: (OCT, 24),
576
- 2008: (OCT, 2),
577
- 2009: (SEP, 21),
578
- 2011: (AUG, 31),
579
- 2012: (AUG, 20),
580
- 2014: (JUL, 29),
581
- 2015: (JUL, 18),
582
- 2016: (JUL, 7),
583
- 2017: (JUN, 26),
584
- 2018: (JUN, 16),
585
- 2019: (JUN, 5),
586
- 2020: (MAY, 25),
587
- 2021: (MAY, 14),
588
- 2022: (MAY, 3),
589
- 2023: (APR, 22),
590
- 2024: (APR, 11),
591
- 2025: (MAR, 31),
548
+ 2004: (NOV, 14),
549
+ 2005: (NOV, 3),
550
+ 2007: (OCT, 13),
551
+ 2010: (SEP, 10),
552
+ 2013: (AUG, 8),
592
553
  }
593
554
 
594
555
  MAWLID_DATES_CONFIRMED_YEARS = (2001, 2025)
595
556
  MAWLID_DATES = {
596
- 2001: (JUN, 5),
597
- 2002: (MAY, 25),
598
557
  2003: (MAY, 15),
599
558
  2004: (MAY, 3),
600
- 2005: (APR, 22),
601
- 2006: (APR, 11),
602
- 2007: (APR, 1),
603
- 2008: (MAR, 21),
604
- 2010: (FEB, 27),
605
- 2011: (FEB, 16),
606
- 2012: (FEB, 5),
607
- 2013: (JAN, 25),
608
- 2014: (JAN, 14),
559
+ 2009: (MAR, 9),
609
560
  2015: ((JAN, 4), (DEC, 25)),
610
561
  2016: (DEC, 13),
611
562
  2017: (DEC, 2),
612
- 2018: (NOV, 21),
613
- 2019: (NOV, 10),
614
- 2020: (OCT, 30),
615
- 2021: (OCT, 19),
616
- 2022: (OCT, 9),
617
- 2023: (SEP, 28),
618
- 2024: (SEP, 16),
619
- 2025: (SEP, 5),
620
563
  }