holidays 0.72__py3-none-any.whl → 0.74__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.
- holidays/calendars/hindu.py +147 -3
- holidays/constants.py +8 -1
- holidays/countries/__init__.py +10 -0
- holidays/countries/aland_islands.py +63 -0
- holidays/countries/andorra.py +130 -46
- holidays/countries/angola.py +2 -2
- holidays/countries/argentina.py +12 -2
- holidays/countries/azerbaijan.py +1 -1
- holidays/countries/belgium.py +1 -1
- holidays/countries/benin.py +199 -0
- holidays/countries/bermuda.py +141 -0
- holidays/countries/british_virgin_islands.py +205 -0
- holidays/countries/chile.py +1 -1
- holidays/countries/cocos_islands.py +259 -0
- holidays/countries/curacao.py +1 -1
- holidays/countries/dominican_republic.py +1 -1
- holidays/countries/ecuador.py +1 -1
- holidays/countries/equatorial_guinea.py +150 -0
- holidays/countries/ethiopia.py +1 -1
- holidays/countries/finland.py +200 -36
- holidays/countries/grenada.py +143 -0
- holidays/countries/italy.py +1 -1
- holidays/countries/ivory_coast.py +1 -1
- holidays/countries/kazakhstan.py +23 -23
- holidays/countries/malaysia.py +0 -8
- holidays/countries/mexico.py +1 -1
- holidays/countries/morocco.py +1 -1
- holidays/countries/nepal.py +441 -0
- holidays/countries/north_macedonia.py +267 -15
- holidays/countries/norway.py +1 -1
- holidays/countries/panama.py +1 -1
- holidays/countries/paraguay.py +1 -1
- holidays/countries/philippines.py +2 -0
- holidays/countries/slovenia.py +1 -1
- holidays/countries/sweden.py +1 -1
- holidays/countries/thailand.py +2 -2
- holidays/countries/togo.py +182 -0
- holidays/countries/trinidad_and_tobago.py +1 -1
- holidays/countries/tuvalu.py +1 -1
- holidays/countries/ukraine.py +44 -44
- holidays/countries/united_states.py +1 -1
- holidays/countries/vatican_city.py +29 -31
- holidays/countries/venezuela.py +1 -1
- holidays/countries/yemen.py +207 -0
- holidays/groups/chinese.py +3 -3
- holidays/groups/christian.py +7 -7
- holidays/groups/hindu.py +121 -1
- holidays/groups/international.py +9 -9
- holidays/groups/islamic.py +3 -3
- holidays/locale/ar/LC_MESSAGES/YE.mo +0 -0
- holidays/locale/ca/LC_MESSAGES/AD.mo +0 -0
- holidays/locale/coa_CC/LC_MESSAGES/CC.mo +0 -0
- holidays/locale/en_CC/LC_MESSAGES/CC.mo +0 -0
- holidays/locale/en_GD/LC_MESSAGES/GD.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AD.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AX.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/BJ.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CC.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GD.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GQ.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TG.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TH.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/VG.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/YE.mo +0 -0
- holidays/locale/en_VG/LC_MESSAGES/VG.mo +0 -0
- holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/es/LC_MESSAGES/GQ.mo +0 -0
- holidays/locale/fi/LC_MESSAGES/AX.mo +0 -0
- holidays/locale/fi/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/TG.mo +0 -0
- holidays/locale/fr_BJ/LC_MESSAGES/BJ.mo +0 -0
- holidays/locale/mk/LC_MESSAGES/MK.mo +0 -0
- holidays/locale/sv_FI/LC_MESSAGES/AX.mo +0 -0
- holidays/locale/sv_FI/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/th/LC_MESSAGES/AX.mo +0 -0
- holidays/locale/th/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AD.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AX.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/MK.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/TH.mo +0 -0
- holidays/registry.py +10 -0
- holidays/version.py +1 -1
- {holidays-0.72.dist-info → holidays-0.74.dist-info}/METADATA +80 -10
- {holidays-0.72.dist-info → holidays-0.74.dist-info}/RECORD +93 -55
- {holidays-0.72.dist-info → holidays-0.74.dist-info}/WHEEL +1 -1
- {holidays-0.72.dist-info → holidays-0.74.dist-info}/licenses/CONTRIBUTORS +2 -0
- {holidays-0.72.dist-info → holidays-0.74.dist-info}/licenses/LICENSE +0 -0
- {holidays-0.72.dist-info → holidays-0.74.dist-info}/top_level.txt +0 -0
|
@@ -10,19 +10,103 @@
|
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
|
+
from gettext import gettext as tr
|
|
14
|
+
|
|
15
|
+
from holidays.calendars import _CustomIslamicHolidays
|
|
16
|
+
from holidays.calendars.gregorian import (
|
|
17
|
+
GREGORIAN_CALENDAR,
|
|
18
|
+
MAR,
|
|
19
|
+
APR,
|
|
20
|
+
MAY,
|
|
21
|
+
JUN,
|
|
22
|
+
JUL,
|
|
23
|
+
AUG,
|
|
24
|
+
SEP,
|
|
25
|
+
OCT,
|
|
26
|
+
NOV,
|
|
27
|
+
)
|
|
13
28
|
from holidays.calendars.julian import JULIAN_CALENDAR
|
|
14
|
-
from holidays.
|
|
15
|
-
|
|
29
|
+
from holidays.constants import (
|
|
30
|
+
ALBANIAN,
|
|
31
|
+
BOSNIAN,
|
|
32
|
+
CATHOLIC,
|
|
33
|
+
HEBREW,
|
|
34
|
+
ISLAMIC,
|
|
35
|
+
ORTHODOX,
|
|
36
|
+
PUBLIC,
|
|
37
|
+
ROMA,
|
|
38
|
+
SERBIAN,
|
|
39
|
+
TURKISH,
|
|
40
|
+
VLACH,
|
|
41
|
+
)
|
|
42
|
+
from holidays.groups import (
|
|
43
|
+
ChristianHolidays,
|
|
44
|
+
HebrewCalendarHolidays,
|
|
45
|
+
InternationalHolidays,
|
|
46
|
+
IslamicHolidays,
|
|
47
|
+
StaticHolidays,
|
|
48
|
+
)
|
|
49
|
+
from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
16
50
|
|
|
17
51
|
|
|
18
|
-
class NorthMacedonia(
|
|
52
|
+
class NorthMacedonia(
|
|
53
|
+
ObservedHolidayBase,
|
|
54
|
+
ChristianHolidays,
|
|
55
|
+
HebrewCalendarHolidays,
|
|
56
|
+
InternationalHolidays,
|
|
57
|
+
IslamicHolidays,
|
|
58
|
+
StaticHolidays,
|
|
59
|
+
):
|
|
19
60
|
"""North Macedonia holidays.
|
|
20
61
|
|
|
21
62
|
References:
|
|
22
63
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_North_Macedonia>
|
|
64
|
+
* [Law on Holidays 21/98](https://web.archive.org/web/20250404064336/https://www.mtsp.gov.mk/content/pdf/dokumenti/Zakon_Praznici_na_RM%20(2_2).pdf)
|
|
65
|
+
* [Law Amending Law on Holidays 18/2007](https://web.archive.org/web/20250505061325/https://www.mtsp.gov.mk/content/pdf/dokumenti/Zakon_Izmenuvanje_Praznici_na_RM%20(2_2).pdf)
|
|
66
|
+
|
|
67
|
+
Checked With:
|
|
68
|
+
* [Non-working days program](https://web.archive.org/web/20250420034141/https://mtsp.gov.mk/programa-za-nerabotni-denovi.nspx)
|
|
69
|
+
* [2010](https://web.archive.org/web/20250430235227/https://www.mtsp.gov.mk/WBStorage/Files/programadeseta.doc)
|
|
70
|
+
* [2011](https://web.archive.org/web/20250501104555/https://www.mtsp.gov.mk/WBStorage/Files/programaedinaeseta.doc)
|
|
71
|
+
* [2012](https://web.archive.org/web/20250501001337/https://www.mtsp.gov.mk/WBStorage/Files/programadvanaeseta.doc)
|
|
72
|
+
* [2013](https://web.archive.org/web/20250430234446/https://www.mtsp.gov.mk/WBStorage/Files/programa_trinaeseta_nova.doc)
|
|
73
|
+
* [2014](https://web.archive.org/web/20241206035550/https://www.mtsp.gov.mk/WBStorage/Files/programa_nerabotni_denovi_2014.pdf)
|
|
74
|
+
* [2015](https://web.archive.org/web/20240304070837/https://www.mtsp.gov.mk/content/pdf/Programa_nerabotni_denovi_2015.pdf)
|
|
75
|
+
* [2016](https://web.archive.org/web/20241206052140/https://www.mtsp.gov.mk/content/pdf/Programa_nerabotni_2016.pdf)
|
|
76
|
+
* [2017](https://web.archive.org/web/20240629115141/https://www.mtsp.gov.mk/content/pdf/19.10._Програма%20на%20неработни%20денови%20за%202017%20година.pdf)
|
|
77
|
+
* [2018](https://web.archive.org/web/20240630201651/https://www.mtsp.gov.mk/content/pdf/programi/Програма%20на%20неработни%20денови%20за%202018%20година.pdf)
|
|
78
|
+
* [2019](https://web.archive.org/web/20240629172352/https://www.mtsp.gov.mk/content/pdf/programi/Programa_na_nerabotni_denovi_za_2019_godina..pdf)
|
|
79
|
+
* [2020](https://web.archive.org/web/20240629104945/https://www.mtsp.gov.mk/content/pdf/dokumenti/2019/Програма%20на%20неработни%20денови%20за%202020%20година%201.pdf)
|
|
80
|
+
* [2021](https://web.archive.org/web/20250502065435/https://www.mtsp.gov.mk/content/Програма%20на%20неработни%20денови%20за%202021%20година%20PDF.pdf)
|
|
81
|
+
* [2022](https://web.archive.org/web/20250420054039/https://www.mtsp.gov.mk/content/word/2021/nerabotni/2022_programa_praznici_nerabotni_2.doc)
|
|
82
|
+
* [2023](https://web.archive.org/web/20250420050919/https://mtsp.gov.mk/content/word/programi/2022/programa_nerabotni_2023.doc)
|
|
83
|
+
* [2024](https://web.archive.org/web/20250420060645/https://www.mtsp.gov.mk/content/word/programi/2023/programa_nerabotni_2024_mkd.doc)
|
|
84
|
+
* [2025](https://web.archive.org/web/20250421022811/https://www.mtsp.gov.mk/content/word/2024/programa_nerabotni_2025.docx)
|
|
23
85
|
"""
|
|
24
86
|
|
|
25
87
|
country = "MK"
|
|
88
|
+
default_language = "mk"
|
|
89
|
+
# %s (estimated).
|
|
90
|
+
estimated_label = tr("%s (проценето)")
|
|
91
|
+
# %s (observed).
|
|
92
|
+
observed_label = tr("%s (неработен ден)")
|
|
93
|
+
# %s (observed, estimated).
|
|
94
|
+
observed_estimated_label = tr("%s (неработен ден, проценето)")
|
|
95
|
+
start_year = 1999
|
|
96
|
+
supported_categories = (
|
|
97
|
+
ALBANIAN,
|
|
98
|
+
BOSNIAN,
|
|
99
|
+
CATHOLIC,
|
|
100
|
+
HEBREW,
|
|
101
|
+
ISLAMIC,
|
|
102
|
+
ORTHODOX,
|
|
103
|
+
PUBLIC,
|
|
104
|
+
ROMA,
|
|
105
|
+
SERBIAN,
|
|
106
|
+
TURKISH,
|
|
107
|
+
VLACH,
|
|
108
|
+
)
|
|
109
|
+
supported_languages = ("en_US", "mk", "uk")
|
|
26
110
|
|
|
27
111
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
28
112
|
"""
|
|
@@ -32,32 +116,141 @@ class NorthMacedonia(HolidayBase, ChristianHolidays, InternationalHolidays, Isla
|
|
|
32
116
|
if holiday date is estimated.
|
|
33
117
|
"""
|
|
34
118
|
ChristianHolidays.__init__(self, JULIAN_CALENDAR)
|
|
119
|
+
HebrewCalendarHolidays.__init__(self)
|
|
35
120
|
InternationalHolidays.__init__(self)
|
|
36
|
-
IslamicHolidays.__init__(
|
|
121
|
+
IslamicHolidays.__init__(
|
|
122
|
+
self, cls=NorthMacedoniaIslamicHolidays, show_estimated=islamic_show_estimated
|
|
123
|
+
)
|
|
124
|
+
StaticHolidays.__init__(self, NorthMacedoniaStaticHolidays)
|
|
125
|
+
kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
|
|
37
126
|
super().__init__(*args, **kwargs)
|
|
38
127
|
|
|
39
128
|
def _populate_public_holidays(self):
|
|
40
|
-
|
|
129
|
+
# New Year's Day.
|
|
130
|
+
name = tr("Нова Година")
|
|
131
|
+
self._add_observed(self._add_new_years_day(name))
|
|
132
|
+
if self._year <= 2007:
|
|
133
|
+
self._add_observed(self._add_new_years_day_two(name))
|
|
134
|
+
|
|
135
|
+
if self._year >= 2008:
|
|
136
|
+
# Christmas Day.
|
|
137
|
+
self._add_observed(self._add_christmas_day(tr("Божиќ")))
|
|
138
|
+
|
|
139
|
+
if self._year >= 2007:
|
|
140
|
+
# Easter Monday.
|
|
141
|
+
self._add_easter_monday(tr("Велигден"))
|
|
142
|
+
|
|
143
|
+
# Labor Day.
|
|
144
|
+
name = tr("Ден на трудот")
|
|
145
|
+
self._add_observed(self._add_labor_day(name))
|
|
146
|
+
if self._year <= 2006:
|
|
147
|
+
self._add_observed(self._add_labor_day_two(name))
|
|
148
|
+
|
|
149
|
+
if self._year >= 2007:
|
|
150
|
+
self._add_observed(
|
|
151
|
+
self._add_holiday_may_24(
|
|
152
|
+
# Saints Cyril and Methodius Day.
|
|
153
|
+
tr("Светите Кирил и Методиј - Ден на сесловенските просветители")
|
|
154
|
+
)
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
# Republic Day.
|
|
158
|
+
self._add_observed(self._add_holiday_aug_2(tr("Ден на Републиката")))
|
|
159
|
+
|
|
160
|
+
# Independence Day.
|
|
161
|
+
self._add_observed(self._add_holiday_sep_8(tr("Ден на независноста")))
|
|
162
|
+
|
|
163
|
+
# National Uprising Day.
|
|
164
|
+
self._add_observed(self._add_holiday_oct_11(tr("Ден на народното востание")))
|
|
165
|
+
|
|
166
|
+
if self._year >= 2007:
|
|
167
|
+
self._add_observed(
|
|
168
|
+
# Macedonian Revolutionary Struggle Day.
|
|
169
|
+
self._add_holiday_oct_23(tr("Ден на македонската револуционерна борба"))
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
# Saint Clement of Ohrid Day.
|
|
173
|
+
self._add_observed(self._add_holiday_dec_8(tr("Свети Климент Охридски")))
|
|
174
|
+
|
|
175
|
+
if self._year >= 2007:
|
|
176
|
+
# Eid al-Fitr.
|
|
177
|
+
for dt in self._add_eid_al_fitr_day(tr("Рамазан Бајрам")):
|
|
178
|
+
self._add_observed(dt)
|
|
179
|
+
|
|
180
|
+
def _populate_albanian_holidays(self):
|
|
181
|
+
if self._year >= 2007:
|
|
182
|
+
# Albanian Alphabet Day.
|
|
183
|
+
self._add_holiday_nov_22(tr("Ден на Албанската азбука"))
|
|
184
|
+
|
|
185
|
+
def _populate_bosnian_holidays(self):
|
|
186
|
+
if self._year >= 2007:
|
|
187
|
+
# International Bosniaks Day.
|
|
188
|
+
self._add_holiday_sep_28(tr("Меѓународен ден на Бошњаците"))
|
|
189
|
+
|
|
190
|
+
def _populate_catholic_holidays(self):
|
|
191
|
+
# Easter Monday.
|
|
192
|
+
self._add_easter_monday(tr("Велигден"), GREGORIAN_CALENDAR)
|
|
41
193
|
|
|
42
|
-
self.
|
|
194
|
+
if self._year >= 2007:
|
|
195
|
+
# All Saints' Day.
|
|
196
|
+
self._add_all_saints_day(tr("Сите Светци"))
|
|
43
197
|
|
|
44
|
-
|
|
198
|
+
# Christmas Day.
|
|
199
|
+
self._add_christmas_day(tr("Божиќ"), GREGORIAN_CALENDAR)
|
|
45
200
|
|
|
46
|
-
|
|
201
|
+
def _populate_hebrew_holidays(self):
|
|
202
|
+
# Yom Kippur.
|
|
203
|
+
self._add_yom_kippur(tr("Јом Кипур"))
|
|
47
204
|
|
|
48
|
-
|
|
205
|
+
def _populate_islamic_holidays(self):
|
|
206
|
+
if self._year >= 2007:
|
|
207
|
+
# Eid al-Adha.
|
|
208
|
+
self._add_eid_al_adha_day(tr("Курбан Бајрам"))
|
|
49
209
|
|
|
50
|
-
|
|
210
|
+
def _populate_orthodox_holidays(self):
|
|
211
|
+
if self._year <= 2007:
|
|
212
|
+
# Christmas Day.
|
|
213
|
+
self._add_christmas_day(tr("Божиќ"))
|
|
51
214
|
|
|
52
|
-
self.
|
|
215
|
+
if self._year <= 2006:
|
|
216
|
+
# Easter Monday.
|
|
217
|
+
self._add_easter_monday(tr("Велигден"))
|
|
53
218
|
|
|
54
|
-
self.
|
|
219
|
+
if self._year >= 2007:
|
|
220
|
+
# Christmas Eve.
|
|
221
|
+
self._add_christmas_eve(tr("Бадник"))
|
|
55
222
|
|
|
56
|
-
|
|
223
|
+
# Epiphany.
|
|
224
|
+
self._add_epiphany_day(tr("Богојавление"))
|
|
57
225
|
|
|
58
|
-
|
|
226
|
+
# Good Friday.
|
|
227
|
+
self._add_good_friday(tr("Велики Петок"))
|
|
59
228
|
|
|
60
|
-
|
|
229
|
+
# Dormition of the Mother of God.
|
|
230
|
+
self._add_assumption_of_mary_day(tr("Успение на Пресвета Богородица"))
|
|
231
|
+
|
|
232
|
+
# Pentecost.
|
|
233
|
+
self._add_holiday_47_days_past_easter(tr("Духовден"))
|
|
234
|
+
|
|
235
|
+
def _populate_roma_holidays(self):
|
|
236
|
+
if self._year >= 2007:
|
|
237
|
+
# International Romani Day.
|
|
238
|
+
self._add_holiday_apr_8(tr("Меѓународен ден на Ромите"))
|
|
239
|
+
|
|
240
|
+
def _populate_serbian_holidays(self):
|
|
241
|
+
if self._year >= 2008:
|
|
242
|
+
# Saint Sava's Day.
|
|
243
|
+
self._add_holiday_jan_27(tr("Свети Сава"))
|
|
244
|
+
|
|
245
|
+
def _populate_turkish_holidays(self):
|
|
246
|
+
if self._year >= 2007:
|
|
247
|
+
# Turkish Language Teaching Day.
|
|
248
|
+
self._add_holiday_dec_21(tr("Ден на настава на турски јазик"))
|
|
249
|
+
|
|
250
|
+
def _populate_vlach_holidays(self):
|
|
251
|
+
if self._year >= 2007:
|
|
252
|
+
# Vlachs National Day.
|
|
253
|
+
self._add_holiday_may_23(tr("Национален ден на Власите"))
|
|
61
254
|
|
|
62
255
|
|
|
63
256
|
class MK(NorthMacedonia):
|
|
@@ -66,3 +259,62 @@ class MK(NorthMacedonia):
|
|
|
66
259
|
|
|
67
260
|
class MKD(NorthMacedonia):
|
|
68
261
|
pass
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
class NorthMacedoniaIslamicHolidays(_CustomIslamicHolidays):
|
|
265
|
+
EID_AL_ADHA_DATES = {
|
|
266
|
+
2010: (NOV, 16),
|
|
267
|
+
2011: (NOV, 6),
|
|
268
|
+
2012: (OCT, 25),
|
|
269
|
+
2013: (OCT, 15),
|
|
270
|
+
2014: (OCT, 4),
|
|
271
|
+
2015: (SEP, 24),
|
|
272
|
+
2016: (SEP, 12),
|
|
273
|
+
2017: (SEP, 1),
|
|
274
|
+
2018: (AUG, 21),
|
|
275
|
+
2019: (AUG, 11),
|
|
276
|
+
2020: (JUL, 31),
|
|
277
|
+
2021: (JUL, 20),
|
|
278
|
+
2022: (JUL, 9),
|
|
279
|
+
2023: (JUN, 28),
|
|
280
|
+
2024: (JUN, 16),
|
|
281
|
+
2025: (JUN, 6),
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
EID_AL_FITR_DATES = {
|
|
285
|
+
2010: (SEP, 9),
|
|
286
|
+
2011: (AUG, 30),
|
|
287
|
+
2012: (AUG, 19),
|
|
288
|
+
2013: (AUG, 8),
|
|
289
|
+
2014: (JUL, 28),
|
|
290
|
+
2015: (JUL, 17),
|
|
291
|
+
2016: (JUL, 5),
|
|
292
|
+
2017: (JUN, 25),
|
|
293
|
+
2018: (JUN, 15),
|
|
294
|
+
2019: (JUN, 4),
|
|
295
|
+
2020: (MAY, 24),
|
|
296
|
+
2021: (MAY, 13),
|
|
297
|
+
2022: (MAY, 2),
|
|
298
|
+
2023: (APR, 21),
|
|
299
|
+
2024: (APR, 10),
|
|
300
|
+
2025: (MAR, 30),
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
class NorthMacedoniaStaticHolidays:
|
|
305
|
+
"""North Macedonia special holidays.
|
|
306
|
+
|
|
307
|
+
References:
|
|
308
|
+
* <https://mk.usembassy.gov/alert-presidential-and-parliamentary-elections-on-may-8-2024/>
|
|
309
|
+
"""
|
|
310
|
+
|
|
311
|
+
# Election Day.
|
|
312
|
+
election_day = tr("Ден на изборите")
|
|
313
|
+
|
|
314
|
+
special_public_holidays = {
|
|
315
|
+
# Election Day.
|
|
316
|
+
2024: (
|
|
317
|
+
(APR, 24, election_day),
|
|
318
|
+
(MAY, 8, election_day),
|
|
319
|
+
),
|
|
320
|
+
}
|
holidays/countries/norway.py
CHANGED
|
@@ -80,7 +80,7 @@ class Norway(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
80
80
|
# Whit Monday.
|
|
81
81
|
self._add_whit_monday(tr("Andre pinsedag"))
|
|
82
82
|
|
|
83
|
-
# According to https://no.wikipedia.org/wiki/
|
|
83
|
+
# According to https://no.wikipedia.org/wiki/Første_juledag,
|
|
84
84
|
# these dates are only valid from year > 1700
|
|
85
85
|
# Wikipedia has no source for the statement, so leaving this be for now
|
|
86
86
|
|
holidays/countries/panama.py
CHANGED
|
@@ -25,7 +25,7 @@ class Panama(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
25
25
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Panama>
|
|
26
26
|
* [Labor Code 1947](https://docs.panama.justia.com/federales/leyes/67-de-1947-nov-26-1947.pdf)
|
|
27
27
|
* [Cabinet Decree #347 of 1969](https://docs.panama.justia.com/federales/decretos-de-gabinete/decreto-de-gabinete-347-de-1969-nov-14-1969.pdf)
|
|
28
|
-
* [Labor Code 1971](https://www.mitradel.gob.pa/wp-content/uploads/2016/12/
|
|
28
|
+
* [Labor Code 1971](https://www.mitradel.gob.pa/wp-content/uploads/2016/12/código-detrabajo.pdf)
|
|
29
29
|
* [Law #4 of Jun 25, 1990](https://s3-legispan.asamblea.gob.pa/legispan/NORMAS/1990/1990/LEY/Administrador%20Legispan_21570_1990_7_2_ASAMBLEA%20LEGISLATIVA_4.pdf)
|
|
30
30
|
* [Law #55 of Nov 7, 2001](https://docs.panama.justia.com/federales/leyes/55-de-2001-nov-14-2001.pdf)
|
|
31
31
|
"""
|
holidays/countries/paraguay.py
CHANGED
|
@@ -27,7 +27,7 @@ class Paraguay(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHoli
|
|
|
27
27
|
* [Ley 1.601/2000](https://www.bacn.gov.py/leyes-paraguayas/1677/ley-n-1601--modifica-el-articulo-1-de-la-ley-no-71595-que-amplia-la-ley-n-0890-por-la-cual-se-determinan-los-feriados-de-la-republica)
|
|
28
28
|
* [Ley 1.723/2001](https://www.bacn.gov.py/leyes-paraguayas/634/ley-n-1723--autoriza-al-poder-ejecutivo-a-trasladar-los-feriados-nacionales-al-dia-lunes)
|
|
29
29
|
* [Ley 4.531/2011](https://www.bacn.gov.py/leyes-paraguayas/3831/ley-n-4531-restablece-el-dia-14-de-mayo-de-cada-ano-como-feriado-nacional)
|
|
30
|
-
* <https://es.wikipedia.org/wiki/Anexo:
|
|
30
|
+
* <https://es.wikipedia.org/wiki/Anexo:Días_festivos_en_Paraguay>
|
|
31
31
|
* <http://www.calendarioparaguay.com/>
|
|
32
32
|
"""
|
|
33
33
|
|
|
@@ -52,6 +52,7 @@ class Philippines(
|
|
|
52
52
|
* [Nationwide holidays 2018-2025](https://www.officialgazette.gov.ph/nationwide-holidays/2018/)
|
|
53
53
|
* [2025 Eid'l Fitr and Eid'l Adha Tentative Date](https://melbournepcg.org/?page_id=9779)
|
|
54
54
|
* [Proclamation No. 839/2025](https://www.officialgazette.gov.ph/2025/03/20/proclamation-no-839-s-2025/)
|
|
55
|
+
* [Proclamation No. 878/2025](https://www.officialgazette.gov.ph/2025/05/06/proclamation-no-878-s-2025/)
|
|
55
56
|
"""
|
|
56
57
|
|
|
57
58
|
country = "PH"
|
|
@@ -334,6 +335,7 @@ class PhilippinesStaticHolidays:
|
|
|
334
335
|
(DEC, 24, additional_special),
|
|
335
336
|
),
|
|
336
337
|
2025: (
|
|
338
|
+
(MAY, 12, election_special),
|
|
337
339
|
(JUL, 27, additional_special),
|
|
338
340
|
# All Saints' Day Eve.
|
|
339
341
|
(OCT, 31, tr("All Saints' Day Eve")),
|
holidays/countries/slovenia.py
CHANGED
|
@@ -23,7 +23,7 @@ class Slovenia(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHoli
|
|
|
23
23
|
|
|
24
24
|
References:
|
|
25
25
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Slovenia>
|
|
26
|
-
* <https://sl.wikipedia.org/wiki/
|
|
26
|
+
* <https://sl.wikipedia.org/wiki/Državni_prazniki_v_Sloveniji>
|
|
27
27
|
* <https://www.uradni-list.si/glasilo-uradni-list-rs/vsebina/1991-01-1091/zakon-o-praznikih-in-dela-prostih-dnevih-v-republiki-sloveniji>
|
|
28
28
|
* <https://www.gov.si/teme/drzavni-prazniki-in-dela-prosti-dnevi/>
|
|
29
29
|
"""
|
holidays/countries/sweden.py
CHANGED
|
@@ -23,7 +23,7 @@ class Sweden(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
23
23
|
References:
|
|
24
24
|
* <https://sv.wikipedia.org/wiki/Helgdagar_i_Sverige>
|
|
25
25
|
* <http://www.riksdagen.se/sv/dokument-lagar/dokument/svensk-forfattningssamling/lag-1989253-om-allmanna-helgdagar_sfs-1989-253>
|
|
26
|
-
* <https://sv.wikipedia.org/wiki/
|
|
26
|
+
* <https://sv.wikipedia.org/wiki/Första_maj>
|
|
27
27
|
* <https://sv.wikipedia.org/wiki/Sveriges_nationaldag>
|
|
28
28
|
* <https://sv.wikipedia.org/wiki/Midsommarafton>
|
|
29
29
|
|
holidays/countries/thailand.py
CHANGED
|
@@ -187,7 +187,7 @@ class Thailand(ObservedHolidayBase, InternationalHolidays, StaticHolidays, ThaiC
|
|
|
187
187
|
# First Holiday Decree was promulgated in March 1914.
|
|
188
188
|
start_year = 1914
|
|
189
189
|
supported_categories = (ARMED_FORCES, BANK, GOVERNMENT, PUBLIC, SCHOOL, WORKDAY)
|
|
190
|
-
supported_languages = ("en_US", "th")
|
|
190
|
+
supported_languages = ("en_US", "th", "uk")
|
|
191
191
|
|
|
192
192
|
def __init__(self, *args, **kwargs):
|
|
193
193
|
InternationalHolidays.__init__(self)
|
|
@@ -932,7 +932,7 @@ class Thailand(ObservedHolidayBase, InternationalHolidays, StaticHolidays, ThaiC
|
|
|
932
932
|
# Status: In-Use.
|
|
933
933
|
# Started in 1990.
|
|
934
934
|
|
|
935
|
-
# HM King
|
|
935
|
+
# HM King Ramkhamhaeng Memorial Day.
|
|
936
936
|
self._add_holiday_jan_17(tr("วันพ่อขุนรามคำแหงมหาราช"))
|
|
937
937
|
|
|
938
938
|
if self._year >= 1995:
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# holidays
|
|
2
|
+
# --------
|
|
3
|
+
# A fast, efficient Python library for generating country, province and state
|
|
4
|
+
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
|
+
# specific date is a holiday as fast and flexible as possible.
|
|
6
|
+
#
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
|
+
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
|
+
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
|
+
# Website: https://github.com/vacanza/holidays
|
|
11
|
+
# License: MIT (see LICENSE file)
|
|
12
|
+
|
|
13
|
+
from gettext import gettext as tr
|
|
14
|
+
|
|
15
|
+
from holidays.calendars import _CustomIslamicHolidays
|
|
16
|
+
from holidays.calendars.gregorian import MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV
|
|
17
|
+
from holidays.constants import PUBLIC, WORKDAY
|
|
18
|
+
from holidays.groups import ChristianHolidays, InternationalHolidays, IslamicHolidays
|
|
19
|
+
from holidays.holiday_base import HolidayBase
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class Togo(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays):
|
|
23
|
+
"""Togo holidays.
|
|
24
|
+
|
|
25
|
+
References:
|
|
26
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Togo>
|
|
27
|
+
* <https://web.archive.org/web/20250507123116/https://www.timeanddate.com/holidays/togo/>
|
|
28
|
+
* <https://web.archive.org/web/20250507123425/https://www.goethe.de/ins/tg/fr/ueb/fer.html>
|
|
29
|
+
* <https://web.archive.org/web/20250507123619/https://www.republiquetogolaise.com/politique/2309-3579-23-septembre-le-togo-rend-hommage-a-ses-martyrs>
|
|
30
|
+
* <https://web.archive.org/web/20250507123840/https://islam.zmo.de/s/westafrica/item/25841#?xywh=-405,-94,2376,1868>
|
|
31
|
+
* <https://en.wikipedia.org/wiki/1986_Togolese_coup_attempt>
|
|
32
|
+
* <https://web.archive.org/web/20250507131725/https://www.rfi.fr/fr/afrique/20140112-togo-le-13-janvier-est-plus-jour-fete>
|
|
33
|
+
* <https://web.archive.org/web/20250507124528/https://islam.zmo.de/s/afrique_ouest/item/25800#?xywh=-1641,0,4303,2363>
|
|
34
|
+
* <https://web.archive.org/web/20231202052731/https://www.holidayscalendar.com/event/anniversary-of-the-failed-attack-on-lome/>
|
|
35
|
+
|
|
36
|
+
Ramadan start dates:
|
|
37
|
+
* [2015](https://web.archive.org/web/20150825071241/https://www.republicoftogo.com/toutes-les-rubriques/societe/le-mois-du-jeune-debute-le-18-juin)
|
|
38
|
+
* [2016](https://web.archive.org/web/20250507125256/https://www.republicoftogo.com/toutes-les-rubriques/societe/le-ramadan-debute-le-6-juin)
|
|
39
|
+
* [2017](https://web.archive.org/web/20250507125353/https://www.tf1info.fr/societe/le-ramadan-2017-1438-commence-le-samedi-27-mai-comment-la-date-du-debut-du-jeune-est-elle-fixee-1512235.html)
|
|
40
|
+
* [2018](https://web.archive.org/web/20250507125622/https://www.republicoftogo.com/toutes-les-rubriques/societe/debut-du-ramadan-demain)
|
|
41
|
+
* [2019](https://web.archive.org/web/20250507130404/https://www.republiquetogolaise.com/social/0605-3100-la-communaute-musulmane-du-togo-entame-ce-lundi-le-jeune-du-mois-de-ramadan)
|
|
42
|
+
* [2020](https://web.archive.org/web/20250507125837/https://www.republiquetogolaise.com/culture/2404-4278-debut-du-mois-de-ramadan)
|
|
43
|
+
* [2021](https://web.archive.org/web/20250507130643/https://www.republiquetogolaise.com/culture/1304-5393-debut-du-mois-de-ramadan)
|
|
44
|
+
* [2022](https://web.archive.org/web/20250507130847/https://www.republiquetogolaise.com/culture/0304-6745-debut-du-mois-de-ramadan)
|
|
45
|
+
* [2023](https://web.archive.org/web/20250507131022/https://www.republiquetogolaise.com/culture/2303-7864-debut-du-mois-de-ramadan)
|
|
46
|
+
* [2024](https://web.archive.org/web/20250507131215/https://www.republiquetogolaise.com/culture/1103-9017-debut-du-mois-de-ramadan)
|
|
47
|
+
* [2025](https://web.archive.org/web/20250507131439/https://www.republiquetogolaise.com/culture/2802-10360-le-jeune-de-ramadan-debute-le-1er-mars)
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
country = "TG"
|
|
51
|
+
default_language = "fr"
|
|
52
|
+
supported_categories = (PUBLIC, WORKDAY)
|
|
53
|
+
# %s (estimated).
|
|
54
|
+
estimated_label = tr("%s (estimé)")
|
|
55
|
+
supported_languages = ("en_US", "fr")
|
|
56
|
+
# Togo gained independence on April 27, 1960.
|
|
57
|
+
start_year = 1961
|
|
58
|
+
|
|
59
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
60
|
+
"""
|
|
61
|
+
Args:
|
|
62
|
+
islamic_show_estimated:
|
|
63
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
64
|
+
if holiday date is estimated.
|
|
65
|
+
"""
|
|
66
|
+
ChristianHolidays.__init__(self)
|
|
67
|
+
InternationalHolidays.__init__(self)
|
|
68
|
+
IslamicHolidays.__init__(
|
|
69
|
+
self, cls=TogoIslamicHolidays, show_estimated=islamic_show_estimated
|
|
70
|
+
)
|
|
71
|
+
super().__init__(*args, **kwargs)
|
|
72
|
+
|
|
73
|
+
def _populate_public_holidays(self):
|
|
74
|
+
# New Year's Day.
|
|
75
|
+
self._add_new_years_day(tr("Jour de l'an"))
|
|
76
|
+
|
|
77
|
+
if 1967 <= self._year <= 2013:
|
|
78
|
+
# Liberation Day.
|
|
79
|
+
self._add_holiday_jan_13(tr("Fête de la libération nationale"))
|
|
80
|
+
|
|
81
|
+
# Easter Monday.
|
|
82
|
+
self._add_easter_monday(tr("Lundi de Pâques"))
|
|
83
|
+
|
|
84
|
+
# Independence Day.
|
|
85
|
+
self._add_holiday_apr_27(tr("Fête de l'indépendance"))
|
|
86
|
+
|
|
87
|
+
# Labor Day.
|
|
88
|
+
self._add_holiday_may_1(tr("Fête du travail"))
|
|
89
|
+
|
|
90
|
+
# Ascension Day.
|
|
91
|
+
self._add_ascension_thursday(tr("Fête de l'Ascension"))
|
|
92
|
+
|
|
93
|
+
# Whit Monday.
|
|
94
|
+
self._add_whit_monday(tr("Lundi de Pentecôte"))
|
|
95
|
+
|
|
96
|
+
# Martyrs' Day.
|
|
97
|
+
self._add_holiday_jun_21(tr("Fête des Martyrs"))
|
|
98
|
+
|
|
99
|
+
# Assumption Day.
|
|
100
|
+
self._add_holiday_aug_15(tr("Assomption"))
|
|
101
|
+
|
|
102
|
+
# All Saints' Day.
|
|
103
|
+
self._add_all_saints_day(tr("Toussaint"))
|
|
104
|
+
|
|
105
|
+
# Christmas Day.
|
|
106
|
+
self._add_christmas_day(tr("Noël"))
|
|
107
|
+
|
|
108
|
+
# First Day of Ramadan.
|
|
109
|
+
self._add_ramadan_beginning_day(tr("Ramadan"))
|
|
110
|
+
|
|
111
|
+
# Eid al-Fitr.
|
|
112
|
+
self._add_eid_al_fitr_day(tr("l'Aïd El-Fitr"))
|
|
113
|
+
|
|
114
|
+
# Eid al-Adha.
|
|
115
|
+
self._add_eid_al_adha_day(tr("Tabaski"))
|
|
116
|
+
|
|
117
|
+
def _populate_workday_holidays(self):
|
|
118
|
+
if self._year >= 1987:
|
|
119
|
+
# Anniversary of the Failed Attack on Lomé.
|
|
120
|
+
self._add_holiday_sep_24(tr("Anniversaire de l'attentat manqué contre Lomé"))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
class TG(Togo):
|
|
124
|
+
pass
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class TGO(Togo):
|
|
128
|
+
pass
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class TogoIslamicHolidays(_CustomIslamicHolidays):
|
|
132
|
+
EID_AL_ADHA_DATES = {
|
|
133
|
+
2010: (NOV, 17),
|
|
134
|
+
2011: (NOV, 7),
|
|
135
|
+
2012: (OCT, 26),
|
|
136
|
+
2013: (OCT, 15),
|
|
137
|
+
2014: (OCT, 5),
|
|
138
|
+
2015: (SEP, 24),
|
|
139
|
+
2016: (SEP, 13),
|
|
140
|
+
2017: (SEP, 2),
|
|
141
|
+
2018: (AUG, 22),
|
|
142
|
+
2019: (AUG, 11),
|
|
143
|
+
2020: (JUL, 31),
|
|
144
|
+
2021: (JUL, 20),
|
|
145
|
+
2022: (JUL, 9),
|
|
146
|
+
2023: (JUN, 28),
|
|
147
|
+
2024: (JUN, 16),
|
|
148
|
+
2025: (JUN, 7),
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
EID_AL_FITR_DATES = {
|
|
152
|
+
2010: (SEP, 10),
|
|
153
|
+
2011: (AUG, 31),
|
|
154
|
+
2012: (AUG, 19),
|
|
155
|
+
2013: (AUG, 8),
|
|
156
|
+
2014: (JUL, 29),
|
|
157
|
+
2015: (JUL, 18),
|
|
158
|
+
2016: (JUL, 7),
|
|
159
|
+
2017: (JUN, 26),
|
|
160
|
+
2018: (JUN, 15),
|
|
161
|
+
2019: (JUN, 5),
|
|
162
|
+
2020: (MAY, 24),
|
|
163
|
+
2021: (MAY, 13),
|
|
164
|
+
2022: (MAY, 2),
|
|
165
|
+
2023: (APR, 21),
|
|
166
|
+
2024: (APR, 10),
|
|
167
|
+
2025: (MAR, 30),
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
RAMADAN_BEGINNING_DATES = {
|
|
171
|
+
2015: (JUN, 18),
|
|
172
|
+
2016: (JUN, 6),
|
|
173
|
+
2017: (MAY, 27),
|
|
174
|
+
2018: (MAY, 17),
|
|
175
|
+
2019: (MAY, 6),
|
|
176
|
+
2020: (APR, 24),
|
|
177
|
+
2021: (APR, 13),
|
|
178
|
+
2022: (APR, 2),
|
|
179
|
+
2023: (MAR, 23),
|
|
180
|
+
2024: (MAR, 11),
|
|
181
|
+
2025: (MAR, 1),
|
|
182
|
+
}
|
|
@@ -46,7 +46,7 @@ class TrinidadAndTobago(
|
|
|
46
46
|
* <https://web.archive.org/web/20250429120548/https://www.guardian.co.tt/article-6.2.410311.3fe66fb00f>
|
|
47
47
|
* <https://web.archive.org/web/20250418212357/https://www.nalis.gov.tt/resources/tt-content-guide/labour-day/>
|
|
48
48
|
* <https://web.archive.org/web/20250429120701/https://www.facebook.com/groups/191766699268/posts/10160832951274269/>
|
|
49
|
-
* <https://web.archive.org/web/20250429142054/https://www.facebook.com/plugins/post.php?href=https
|
|
49
|
+
* <https://web.archive.org/web/20250429142054/https://www.facebook.com/plugins/post.php?href=https://www.facebook.com/100064996051675/posts/1101755938667598/>
|
|
50
50
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Trinidad_and_Tobago>
|
|
51
51
|
* <https://en.wikipedia.org/wiki/Trinidad_and_Tobago_Carnival>
|
|
52
52
|
* <https://en.wikipedia.org/wiki/Indian_Arrival_Day#Trinidad_and_Tobago>
|
holidays/countries/tuvalu.py
CHANGED
|
@@ -115,7 +115,7 @@ class Tuvalu(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
115
115
|
self._add_observed(self._add_holiday_oct_1(name), rule=SAT_SUN_TO_NEXT_MON_TUE)
|
|
116
116
|
self._add_observed(self._add_holiday_oct_2(name), rule=SAT_SUN_TO_NEXT_MON_TUE)
|
|
117
117
|
|
|
118
|
-
# https://en.wikipedia.org/wiki/King
|
|
118
|
+
# https://en.wikipedia.org/wiki/King's_Official_Birthday#Tuvalu
|
|
119
119
|
if self._year <= 2022:
|
|
120
120
|
# Heir to the Throne's Birthday.
|
|
121
121
|
self._add_holiday_2nd_mon_of_nov(tr("Aso fanau o te sui ote Tupu"))
|