holidays 0.80__py3-none-any.whl → 0.82__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/__init__.py +1 -0
- holidays/calendars/burmese.py +319 -0
- holidays/calendars/chinese.py +39 -1
- holidays/calendars/hebrew.py +2 -2
- holidays/calendars/thai.py +49 -2
- holidays/countries/__init__.py +16 -0
- holidays/countries/afghanistan.py +7 -5
- holidays/countries/algeria.py +89 -24
- holidays/countries/antarctica.py +58 -0
- holidays/countries/bouvet_island.py +31 -0
- holidays/countries/brazil.py +1 -1
- holidays/countries/british_indian_ocean_territory.py +31 -0
- holidays/countries/bulgaria.py +6 -1
- holidays/countries/chile.py +9 -8
- holidays/countries/china.py +4 -0
- holidays/countries/cuba.py +3 -4
- holidays/countries/djibouti.py +1 -1
- holidays/countries/heard_island_and_mcdonald_islands.py +31 -0
- holidays/countries/hongkong.py +5 -1
- holidays/countries/hungary.py +4 -5
- holidays/countries/india.py +6 -0
- holidays/countries/japan.py +22 -18
- holidays/countries/jordan.py +6 -3
- holidays/countries/kuwait.py +6 -3
- holidays/countries/macau.py +9 -0
- holidays/countries/malaysia.py +14 -3
- holidays/countries/mongolia.py +2 -0
- holidays/countries/myanmar.py +195 -0
- holidays/countries/north_korea.py +161 -0
- holidays/countries/norway.py +23 -8
- holidays/countries/oman.py +6 -2
- holidays/countries/paraguay.py +70 -23
- holidays/countries/philippines.py +11 -2
- holidays/countries/portugal.py +5 -6
- holidays/countries/qatar.py +5 -2
- holidays/countries/rwanda.py +6 -1
- holidays/countries/saint_helena_ascension_and_tristan_da_cunha.py +197 -0
- holidays/countries/saudi_arabia.py +6 -5
- holidays/countries/serbia.py +5 -0
- holidays/countries/south_africa.py +96 -53
- holidays/countries/south_korea.py +10 -1
- holidays/countries/spain.py +26 -4
- holidays/countries/sudan.py +118 -0
- holidays/countries/switzerland.py +169 -3
- holidays/countries/taiwan.py +27 -3
- holidays/countries/tajikistan.py +1 -1
- holidays/countries/tanzania.py +6 -1
- holidays/countries/thailand.py +21 -0
- holidays/countries/tonga.py +6 -1
- holidays/countries/trinidad_and_tobago.py +6 -1
- holidays/countries/united_arab_emirates.py +9 -2
- holidays/countries/united_states.py +16 -0
- holidays/countries/uruguay.py +6 -1
- holidays/countries/vietnam.py +10 -1
- holidays/countries/yemen.py +6 -3
- holidays/groups/__init__.py +1 -0
- holidays/groups/balinese_saka.py +1 -1
- holidays/groups/buddhist.py +1 -1
- holidays/groups/burmese.py +273 -0
- holidays/groups/chinese.py +27 -14
- holidays/groups/custom.py +8 -2
- holidays/groups/eastern.py +25 -3
- holidays/groups/hebrew.py +16 -14
- holidays/groups/hindu.py +15 -13
- holidays/groups/islamic.py +52 -47
- holidays/groups/mongolian.py +1 -1
- holidays/groups/sinhala.py +4 -9
- holidays/groups/tibetan.py +3 -4
- holidays/holiday_base.py +5 -4
- holidays/ical.py +6 -4
- holidays/locale/ar/LC_MESSAGES/DZ.mo +0 -0
- holidays/locale/ar_SD/LC_MESSAGES/SD.mo +0 -0
- holidays/locale/ca/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/en_GB/LC_MESSAGES/SH.mo +0 -0
- holidays/locale/en_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/en_PH/LC_MESSAGES/PH.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/BR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/DZ.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/JP.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/KP.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/KR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MM.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/PH.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/PY.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/SD.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/SH.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/US.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/VN.mo +0 -0
- holidays/locale/es/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/es/LC_MESSAGES/PY.mo +0 -0
- holidays/locale/fil/LC_MESSAGES/PH.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/DZ.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/ja/LC_MESSAGES/JP.mo +0 -0
- holidays/locale/ko/LC_MESSAGES/KR.mo +0 -0
- holidays/locale/ko_KP/LC_MESSAGES/KP.mo +0 -0
- holidays/locale/mn/LC_MESSAGES/MN.mo +0 -0
- holidays/locale/my/LC_MESSAGES/MM.mo +0 -0
- holidays/locale/pt_BR/LC_MESSAGES/BR.mo +0 -0
- holidays/locale/pt_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/th/LC_MESSAGES/CN.mo +0 -0
- holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/th/LC_MESSAGES/JP.mo +0 -0
- holidays/locale/th/LC_MESSAGES/KR.mo +0 -0
- holidays/locale/th/LC_MESSAGES/MM.mo +0 -0
- holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/th/LC_MESSAGES/PH.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/th/LC_MESSAGES/US.mo +0 -0
- holidays/locale/th/LC_MESSAGES/VN.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/BR.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/PY.mo +0 -0
- holidays/locale/vi/LC_MESSAGES/VN.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/CN.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/zh_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_TW/LC_MESSAGES/CN.mo +0 -0
- holidays/locale/zh_TW/LC_MESSAGES/TW.mo +0 -0
- holidays/no_holiday_base.py +21 -0
- holidays/observed_holiday_base.py +1 -1
- holidays/registry.py +12 -0
- holidays/utils.py +5 -5
- holidays/version.py +1 -1
- {holidays-0.80.dist-info → holidays-0.82.dist-info}/METADATA +61 -5
- {holidays-0.80.dist-info → holidays-0.82.dist-info}/RECORD +142 -121
- {holidays-0.80.dist-info → holidays-0.82.dist-info}/licenses/CONTRIBUTORS +2 -0
- {holidays-0.80.dist-info → holidays-0.82.dist-info}/WHEEL +0 -0
- {holidays-0.80.dist-info → holidays-0.82.dist-info}/licenses/LICENSE +0 -0
- {holidays-0.80.dist-info → holidays-0.82.dist-info}/top_level.txt +0 -0
holidays/countries/paraguay.py
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
from gettext import gettext as tr
|
|
14
14
|
|
|
15
|
-
from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, DEC
|
|
15
|
+
from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, DEC, SUN
|
|
16
16
|
from holidays.constants import GOVERNMENT, PUBLIC
|
|
17
17
|
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
18
18
|
from holidays.holiday_base import HolidayBase
|
|
@@ -28,7 +28,9 @@ class Paraguay(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHoli
|
|
|
28
28
|
* [Ley 1.723/2001](https://web.archive.org/web/20250427173914/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://web.archive.org/web/20250420210317/https://www.bacn.gov.py/leyes-paraguayas/3831/ley-n-4531-restablece-el-dia-14-de-mayo-de-cada-ano-como-feriado-nacional)
|
|
30
30
|
* <https://es.wikipedia.org/wiki/Anexo:Días_festivos_en_Paraguay>
|
|
31
|
-
* <https://web.archive.org/web/
|
|
31
|
+
* <https://web.archive.org/web/20131212214628/https://www.abc.com.py/nacionales/feriados-de-2013-se-trasladaran-al-dia-lunes-494705.html>
|
|
32
|
+
* <https://web.archive.org/web/20241207131557/https://www.ultimahora.com/establecen-traslados-feriados-el-2017-n1042098>
|
|
33
|
+
* <https://web.archive.org/web/20250913135012/https://foco.lanacion.com.py/2025/01/01/feriados-2025-paraguay-tendra-6-fines-de-semana-largos/>
|
|
32
34
|
"""
|
|
33
35
|
|
|
34
36
|
country = "PY"
|
|
@@ -37,6 +39,7 @@ class Paraguay(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHoli
|
|
|
37
39
|
supported_languages = ("en_US", "es", "uk")
|
|
38
40
|
# Ley 8/1990.
|
|
39
41
|
start_year = 1991
|
|
42
|
+
weekend = {SUN}
|
|
40
43
|
|
|
41
44
|
def __init__(self, *args, **kwargs):
|
|
42
45
|
ChristianHolidays.__init__(self)
|
|
@@ -51,10 +54,12 @@ class Paraguay(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHoli
|
|
|
51
54
|
dates_obs = {
|
|
52
55
|
2013: (MAR, 4),
|
|
53
56
|
2016: (FEB, 29),
|
|
57
|
+
2017: (FEB, 27),
|
|
54
58
|
2018: (FEB, 26),
|
|
55
59
|
2019: (MAR, 4),
|
|
56
60
|
2022: (FEB, 28),
|
|
57
61
|
2023: (FEB, 27),
|
|
62
|
+
2025: (MAR, 3),
|
|
58
63
|
}
|
|
59
64
|
self._add_holiday(
|
|
60
65
|
# Patriots Day.
|
|
@@ -82,16 +87,23 @@ class Paraguay(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHoli
|
|
|
82
87
|
self._add_holiday_may_15(tr("Día de la Independencia Nacional"))
|
|
83
88
|
|
|
84
89
|
dates_obs = {
|
|
90
|
+
2013: (JUN, 10),
|
|
85
91
|
2014: (JUN, 16),
|
|
86
92
|
2018: (JUN, 11),
|
|
87
93
|
2019: (JUN, 17),
|
|
88
94
|
2024: (JUN, 10),
|
|
95
|
+
2025: (JUN, 16),
|
|
89
96
|
}
|
|
90
97
|
# Chaco Armistice Day.
|
|
91
98
|
self._add_holiday(tr("Día de la Paz del Chaco"), dates_obs.get(self._year, (JUN, 12)))
|
|
92
99
|
|
|
93
100
|
# Asuncion Foundation's Day.
|
|
94
|
-
|
|
101
|
+
name = tr("Día de la Fundación de Asunción")
|
|
102
|
+
# Decreto N° 6292.
|
|
103
|
+
if self._year == 2017:
|
|
104
|
+
self._add_holiday_aug_14(name)
|
|
105
|
+
else:
|
|
106
|
+
self._add_holiday_aug_15(name)
|
|
95
107
|
|
|
96
108
|
# Ley 715/1995, 1.601/2000.
|
|
97
109
|
if self._year >= 1995:
|
|
@@ -125,31 +137,43 @@ class PRY(Paraguay):
|
|
|
125
137
|
|
|
126
138
|
|
|
127
139
|
class ParaguayStaticHolidays:
|
|
140
|
+
"""Paraguay special holidays.
|
|
141
|
+
|
|
142
|
+
References:
|
|
143
|
+
* <https://web.archive.org/web/20250917075450/https://www.pgr.gov.py/wp-content/uploads/2013/12/DECRETO-991-ASUETO-EL-24-Y-EL-31-DE-DICIEMBRE.pdf>
|
|
144
|
+
* <https://web.archive.org/web/20250917074759/https://www.ultimahora.com/ejecutivo-declara-asueto-el-23-y-30-diciembre-sector-publico-n3040041>
|
|
145
|
+
* <https://web.archive.org/web/20231003173505/https://www.lanacion.com.py/politica/2023/03/24/decretan-asueto-de-funcionarios-publicos-el-miercoles-5-de-abril-por-semana-santa/>
|
|
146
|
+
* <https://web.archive.org/web/20250917042124/https://informacionpublica.paraguay.gov.py/public/1046579-RESPUESTAAIPN79397pdf-RESPUESTAAIPN79397.pdf>
|
|
147
|
+
* <https://web.archive.org/web/20250416092842/https://www.radionacional.gov.py/2024/03/22/ejecutivo-declara-asueto-el-miercoles-27-de-marzo-para-funcionarios-publicos/>
|
|
148
|
+
* <https://web.archive.org/web/20241225185947/https://www.abc.com.py/politica/2024/12/20/declaran-asueto-para-funcionarios-publicos-el-24-y-31-de-diciembre/>
|
|
149
|
+
* <https://web.archive.org/web/20250917075032/https://portal.ips.gov.py/sistemas/ipsportal/archivos/archivos/1744391513.pdf>
|
|
150
|
+
"""
|
|
151
|
+
|
|
128
152
|
# Public holiday.
|
|
129
|
-
public_holiday = tr("Asueto
|
|
153
|
+
public_holiday = tr("Asueto adicional")
|
|
130
154
|
# Public sector holiday.
|
|
131
155
|
public_sector_holiday = tr("Asueto de la Administración Pública")
|
|
132
156
|
|
|
133
157
|
special_public_holidays = {
|
|
134
|
-
#
|
|
158
|
+
# Public holiday for business purposes, in view of the recently increased risk
|
|
135
159
|
# of Dengue fever.
|
|
136
160
|
2007: (JAN, 29, public_holiday),
|
|
137
|
-
#
|
|
161
|
+
# Public sector holiday to celebrate Paraguay's football team's qualification
|
|
138
162
|
# for the 2010 World Cup.
|
|
139
163
|
2009: (SEP, 10, public_holiday),
|
|
140
|
-
#
|
|
164
|
+
# Public holiday to coincide with the Paraguay-Italy game of the current World Cup.
|
|
141
165
|
2010: (JUN, 14, public_holiday),
|
|
142
166
|
2011: (
|
|
143
|
-
#
|
|
167
|
+
# Public holiday to coincide with the current anti-Dengue drive.
|
|
144
168
|
(APR, 19, public_holiday),
|
|
145
|
-
#
|
|
169
|
+
# Public holidays to commemorate the Bicentennial of Paraguay's independence.
|
|
146
170
|
(MAY, 14, public_holiday),
|
|
147
171
|
(MAY, 16, public_holiday),
|
|
148
172
|
),
|
|
149
|
-
#
|
|
173
|
+
# Date of the inauguration of President-elect Horacio Cartes.
|
|
150
174
|
2013: (AUG, 14, public_holiday),
|
|
151
175
|
2015: (
|
|
152
|
-
#
|
|
176
|
+
# Public holidays in Paraguay on account of the upcoming visit of Pope Francis
|
|
153
177
|
# in Paraguay.
|
|
154
178
|
(JUL, 10, public_holiday),
|
|
155
179
|
(JUL, 11, public_holiday),
|
|
@@ -163,38 +187,43 @@ class ParaguayStaticHolidays:
|
|
|
163
187
|
(DEC, 31, public_sector_holiday),
|
|
164
188
|
),
|
|
165
189
|
2011: (
|
|
166
|
-
#
|
|
190
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
167
191
|
(APR, 20, public_sector_holiday),
|
|
168
192
|
# 2 year-end public sector holidays.
|
|
169
193
|
(DEC, 23, public_sector_holiday),
|
|
170
194
|
(DEC, 30, public_sector_holiday),
|
|
171
195
|
),
|
|
172
196
|
2012: (
|
|
173
|
-
#
|
|
197
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
174
198
|
(APR, 4, public_sector_holiday),
|
|
175
199
|
# 2 year-end public sector holidays.
|
|
176
200
|
(DEC, 24, public_sector_holiday),
|
|
177
201
|
(DEC, 31, public_sector_holiday),
|
|
178
202
|
),
|
|
179
|
-
|
|
180
|
-
|
|
203
|
+
2013: (
|
|
204
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
205
|
+
(MAR, 27, public_sector_holiday),
|
|
206
|
+
# 2 year-end public sector holidays.
|
|
207
|
+
(DEC, 24, public_sector_holiday),
|
|
208
|
+
(DEC, 31, public_sector_holiday),
|
|
209
|
+
),
|
|
181
210
|
2014: (
|
|
182
|
-
#
|
|
211
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
183
212
|
(APR, 16, public_sector_holiday),
|
|
184
213
|
# 2 year-end public sector holidays.
|
|
185
214
|
(DEC, 24, public_sector_holiday),
|
|
186
215
|
(DEC, 31, public_sector_holiday),
|
|
187
216
|
),
|
|
188
217
|
2015: (
|
|
189
|
-
#
|
|
218
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
190
219
|
(APR, 1, public_sector_holiday),
|
|
191
220
|
# 2 year-end public sector holidays.
|
|
192
221
|
(DEC, 24, public_sector_holiday),
|
|
193
222
|
(DEC, 31, public_sector_holiday),
|
|
194
223
|
),
|
|
195
|
-
#
|
|
224
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
196
225
|
2016: (MAR, 23, public_sector_holiday),
|
|
197
|
-
#
|
|
226
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
198
227
|
2017: (MAR, 28, public_sector_holiday),
|
|
199
228
|
2018: (
|
|
200
229
|
# 2 year-end public sector holidays.
|
|
@@ -202,13 +231,13 @@ class ParaguayStaticHolidays:
|
|
|
202
231
|
(DEC, 31, public_sector_holiday),
|
|
203
232
|
),
|
|
204
233
|
2019: (
|
|
205
|
-
#
|
|
234
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
206
235
|
(APR, 17, public_sector_holiday),
|
|
207
236
|
# 2 year-end public sector holidays.
|
|
208
237
|
(DEC, 24, public_sector_holiday),
|
|
209
238
|
(DEC, 31, public_sector_holiday),
|
|
210
239
|
),
|
|
211
|
-
#
|
|
240
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
212
241
|
2020: (APR, 8, public_sector_holiday),
|
|
213
242
|
2021: (
|
|
214
243
|
# 2 year-end public sector holidays.
|
|
@@ -216,9 +245,27 @@ class ParaguayStaticHolidays:
|
|
|
216
245
|
(DEC, 31, public_sector_holiday),
|
|
217
246
|
),
|
|
218
247
|
2022: (
|
|
219
|
-
#
|
|
248
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
220
249
|
(APR, 13, public_sector_holiday),
|
|
221
|
-
#
|
|
250
|
+
# Public sector holiday due to the annual May 1st public holiday falling on a Sunday.
|
|
222
251
|
(MAY, 2, public_sector_holiday),
|
|
252
|
+
# 2 year-end public sector holidays.
|
|
253
|
+
(DEC, 23, public_sector_holiday),
|
|
254
|
+
(DEC, 30, public_sector_holiday),
|
|
255
|
+
),
|
|
256
|
+
2023: (
|
|
257
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
258
|
+
(APR, 5, public_sector_holiday),
|
|
259
|
+
# Public sector holiday from resolution no. 1045.
|
|
260
|
+
(DEC, 7, public_sector_holiday),
|
|
261
|
+
),
|
|
262
|
+
2024: (
|
|
263
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
264
|
+
(MAR, 27, public_sector_holiday),
|
|
265
|
+
# 2 year-end public sector holidays.
|
|
266
|
+
(DEC, 24, public_sector_holiday),
|
|
267
|
+
(DEC, 31, public_sector_holiday),
|
|
223
268
|
),
|
|
269
|
+
# Public sector holiday to let civil servants begin their Holy Week earlier.
|
|
270
|
+
2025: (APR, 16, public_sector_holiday),
|
|
224
271
|
}
|
|
@@ -53,6 +53,7 @@ class Philippines(
|
|
|
53
53
|
* [Proclamation No. 839/2025](https://archive.org/details/20250320-proc-839-frm_202506)
|
|
54
54
|
* [Proclamation No. 878/2025](https://archive.org/details/20250506-proc-878-frm_202506)
|
|
55
55
|
* [Proclamation No. 911/2025](https://archive.org/details/20250521-proc-911-frm_20250606_1800)
|
|
56
|
+
* [Proclamation No. 1006/2025](https://archive.org/details/20250903-proc-1006-frm)
|
|
56
57
|
"""
|
|
57
58
|
|
|
58
59
|
country = "PH"
|
|
@@ -240,9 +241,13 @@ class PhilippinesIslamicHolidays(_CustomIslamicHolidays):
|
|
|
240
241
|
class PhilippinesStaticHolidays:
|
|
241
242
|
# Additional special (non-working) day.
|
|
242
243
|
additional_special = tr("Additional special (non-working) day")
|
|
244
|
+
|
|
243
245
|
# Elections special (non-working) day.
|
|
244
246
|
election_special = tr("Elections special (non-working) day")
|
|
245
247
|
|
|
248
|
+
# Christmas Eve.
|
|
249
|
+
christmas_eve = tr("Christmas Eve")
|
|
250
|
+
|
|
246
251
|
special_public_holidays = {
|
|
247
252
|
2008: (
|
|
248
253
|
(DEC, 26, additional_special),
|
|
@@ -309,7 +314,11 @@ class PhilippinesStaticHolidays:
|
|
|
309
314
|
(JUL, 27, additional_special),
|
|
310
315
|
# All Saints' Day Eve.
|
|
311
316
|
(OCT, 31, tr("All Saints' Day Eve")),
|
|
312
|
-
|
|
313
|
-
|
|
317
|
+
(DEC, 24, christmas_eve),
|
|
318
|
+
),
|
|
319
|
+
2026: (
|
|
320
|
+
# All Souls' Day.
|
|
321
|
+
(NOV, 2, tr("All Souls' Day")),
|
|
322
|
+
(DEC, 24, christmas_eve),
|
|
314
323
|
),
|
|
315
324
|
}
|
holidays/countries/portugal.py
CHANGED
|
@@ -129,15 +129,14 @@ class Portugal(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
129
129
|
if self._year >= 1911:
|
|
130
130
|
if 1933 <= self._year <= 1973:
|
|
131
131
|
# Day of Camões, Portugal, and the Portuguese Race.
|
|
132
|
-
|
|
132
|
+
name = tr("Dia de Camões, de Portugal e da Raça")
|
|
133
133
|
elif self._year >= 1978:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
tr("Dia de Portugal, de Camões e das Comunidades Portuguesas")
|
|
137
|
-
)
|
|
134
|
+
# Day of Portugal, Camões, and the Portuguese Communities.
|
|
135
|
+
name = tr("Dia de Portugal, de Camões e das Comunidades Portuguesas")
|
|
138
136
|
else:
|
|
139
137
|
# Portugal Day.
|
|
140
|
-
|
|
138
|
+
name = tr("Dia de Portugal")
|
|
139
|
+
self._add_holiday_jun_10(name)
|
|
141
140
|
|
|
142
141
|
# Assumption Day.
|
|
143
142
|
self._add_assumption_of_mary_day(tr("Assunção de Nossa Senhora"))
|
holidays/countries/qatar.py
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
|
+
from datetime import date
|
|
13
14
|
from gettext import gettext as tr
|
|
14
15
|
|
|
15
16
|
from holidays.calendars import _CustomIslamicHolidays
|
|
@@ -36,6 +37,7 @@ class Qatar(HolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays)
|
|
|
36
37
|
start_year = 1971
|
|
37
38
|
supported_categories = (BANK, PUBLIC)
|
|
38
39
|
supported_languages = ("ar_QA", "en_US")
|
|
40
|
+
weekend = {FRI, SAT}
|
|
39
41
|
|
|
40
42
|
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
|
|
41
43
|
"""
|
|
@@ -51,10 +53,11 @@ class Qatar(HolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays)
|
|
|
51
53
|
StaticHolidays.__init__(self, QatarStaticHolidays)
|
|
52
54
|
super().__init__(*args, **kwargs)
|
|
53
55
|
|
|
54
|
-
def
|
|
56
|
+
def _get_weekend(self, dt: date) -> set[int]:
|
|
55
57
|
# Qatar switches from THU-FRI to FRI-SAT on Aug 1, 2003.
|
|
56
|
-
|
|
58
|
+
return {FRI, SAT} if dt >= date(2003, AUG, 1) else {THU, FRI}
|
|
57
59
|
|
|
60
|
+
def _populate_public_holidays(self):
|
|
58
61
|
if self._year >= 2012:
|
|
59
62
|
# National Sports Day.
|
|
60
63
|
self._add_holiday_2nd_tue_of_feb(tr("اليوم الوطني للرياضة"))
|
holidays/countries/rwanda.py
CHANGED
|
@@ -10,8 +10,10 @@
|
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
|
-
from
|
|
13
|
+
from __future__ import annotations
|
|
14
|
+
|
|
14
15
|
from gettext import gettext as tr
|
|
16
|
+
from typing import TYPE_CHECKING
|
|
15
17
|
|
|
16
18
|
from holidays.calendars import _CustomIslamicHolidays
|
|
17
19
|
from holidays.calendars.gregorian import MAR, JUN, JUL, AUG
|
|
@@ -22,6 +24,9 @@ from holidays.observed_holiday_base import (
|
|
|
22
24
|
SAT_SUN_TO_NEXT_WORKDAY,
|
|
23
25
|
)
|
|
24
26
|
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import date
|
|
29
|
+
|
|
25
30
|
|
|
26
31
|
class Rwanda(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays):
|
|
27
32
|
"""Rwanda holidays.
|
|
@@ -0,0 +1,197 @@
|
|
|
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.gregorian import JAN, FEB, APR, MAY, JUN, SEP
|
|
16
|
+
from holidays.constants import GOVERNMENT, PUBLIC
|
|
17
|
+
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
18
|
+
from holidays.observed_holiday_base import (
|
|
19
|
+
ObservedHolidayBase,
|
|
20
|
+
SAT_TO_PREV_FRI,
|
|
21
|
+
SUN_TO_NEXT_MON,
|
|
22
|
+
SAT_SUN_TO_NEXT_MON,
|
|
23
|
+
SAT_SUN_TO_NEXT_MON_TUE,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class SaintHelenaAscensionAndTristanDaCunha(
|
|
28
|
+
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
29
|
+
):
|
|
30
|
+
"""Saint Helena, Ascension and Tristan da Cunha holidays.
|
|
31
|
+
|
|
32
|
+
References:
|
|
33
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Saint_Helena,_Ascension_and_Tristan_da_Cunha>
|
|
34
|
+
|
|
35
|
+
Saint Helena:
|
|
36
|
+
* <https://web.archive.org/web/20250810194916/https://sainthelenaisland.info/holidays.htm>
|
|
37
|
+
* [Public Holidays Ordinance](https://web.archive.org/web/20231129081100/https://www.sainthelena.gov.sh/wp-content/uploads/2013/01/Public-Holidays-Ordinance.pdf)
|
|
38
|
+
* [2015](https://web.archive.org/web/20241219152350/https://www.sainthelena.gov.sh/wp-content/uploads/2012/08/Public-Holidays-2015.pdf)
|
|
39
|
+
* [2020](https://web.archive.org/web/20250831203105/https://www.sainthelena.gov.sh/wp-content/uploads/2019/11/Public-Holidays-2020.pdf)
|
|
40
|
+
* [2021](https://web.archive.org/web/20240626101426/https://www.sainthelena.gov.sh/wp-content/uploads/2020/08/200824_Public-Holidays-2021.pdf)
|
|
41
|
+
* [2022](https://web.archive.org/web/20230922215102/https://www.sainthelena.gov.sh/wp-content/uploads/2021/11/PUBLIC-HOLIDAYS-2022.pdf)
|
|
42
|
+
* [Saint Helena Day 2023](https://web.archive.org/web/20250519085755/https://www.sainthelena.gov.sh/wp-content/uploads/2022/09/EX-GAZ-100-Proclamation-St-Helena-Day-2023.pdf)
|
|
43
|
+
* [2024](https://web.archive.org/web/20250614201000/https://www.sainthelena.gov.sh/2023/news/public-and-government-holidays-2024/)
|
|
44
|
+
* [2025](https://web.archive.org/web/20241005191212/https://www.sainthelena.gov.sh/wp-content/uploads/2024/08/Public-Notice-Public-Holidays-2025.pdf)
|
|
45
|
+
* [2026](https://web.archive.org/web/20250831200128/https://www.sainthelena.gov.sh/wp-content/uploads/2025/08/Public-Notice-Public-Holidays-2026.pdf)
|
|
46
|
+
|
|
47
|
+
Ascension:
|
|
48
|
+
* [Public Holidays Ordinance](https://web.archive.org/web/20240610184146/https://www.sainthelena.gov.sh/wp-content/uploads/2017/12/Public-Holidays-Asc-Ordinance.pdf)
|
|
49
|
+
|
|
50
|
+
Tristan da Cunha:
|
|
51
|
+
* [Ratting Day](https://web.archive.org/web/20250826151056/https://www.tristandc.com/newsratting.php)
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
country = "SH"
|
|
55
|
+
default_language = "en_GB"
|
|
56
|
+
# %s (observed).
|
|
57
|
+
observed_label = tr("%s (observed)")
|
|
58
|
+
# Earliest year of holidays with an accessible online record.
|
|
59
|
+
start_year = 2015
|
|
60
|
+
subdivisions = (
|
|
61
|
+
"AC", # Ascension.
|
|
62
|
+
"HL", # Saint Helena.
|
|
63
|
+
"TA", # Tristan da Cunha.
|
|
64
|
+
)
|
|
65
|
+
subdivisions_aliases = {
|
|
66
|
+
"Ascension": "AC",
|
|
67
|
+
"Saint Helena": "HL",
|
|
68
|
+
"Tristan da Cunha": "TA",
|
|
69
|
+
}
|
|
70
|
+
supported_categories = (GOVERNMENT, PUBLIC)
|
|
71
|
+
supported_languages = ("en_GB", "en_US")
|
|
72
|
+
|
|
73
|
+
def __init__(self, *args, **kwargs):
|
|
74
|
+
ChristianHolidays.__init__(self)
|
|
75
|
+
InternationalHolidays.__init__(self)
|
|
76
|
+
StaticHolidays.__init__(self, cls=SaintHelenaAscensionAndTristanDaCunhaStaticHolidays)
|
|
77
|
+
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_MON)
|
|
78
|
+
super().__init__(*args, **kwargs)
|
|
79
|
+
|
|
80
|
+
def _populate_public_holidays(self):
|
|
81
|
+
# Good Friday.
|
|
82
|
+
self._add_good_friday(tr("Good Friday"))
|
|
83
|
+
|
|
84
|
+
# Easter Monday.
|
|
85
|
+
self._add_easter_monday(tr("Easter Monday"))
|
|
86
|
+
|
|
87
|
+
if self._year <= 2022:
|
|
88
|
+
# Queen's Birthday.
|
|
89
|
+
name = tr("Queen's Birthday")
|
|
90
|
+
if self._year <= 2019:
|
|
91
|
+
self._add_holiday_3rd_mon_of_jun(name)
|
|
92
|
+
else:
|
|
93
|
+
self._add_holiday_2nd_mon_of_jun(name)
|
|
94
|
+
else:
|
|
95
|
+
# King's Birthday.
|
|
96
|
+
name = tr("King's Birthday")
|
|
97
|
+
if self._year == 2023:
|
|
98
|
+
self._add_holiday_jun_19(name)
|
|
99
|
+
else:
|
|
100
|
+
self._add_holiday_1st_fri_from_nov_11(name)
|
|
101
|
+
|
|
102
|
+
self._add_observed(
|
|
103
|
+
# Christmas Day.
|
|
104
|
+
self._add_christmas_day(tr("Christmas Day")),
|
|
105
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
self._add_observed(
|
|
109
|
+
# Boxing Day.
|
|
110
|
+
self._add_christmas_day_two(tr("Boxing Day")),
|
|
111
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
def _populate_subdiv_ac_public_holidays(self):
|
|
115
|
+
# Ascension Day.
|
|
116
|
+
self._add_ascension_thursday(tr("Ascension Day"))
|
|
117
|
+
|
|
118
|
+
def _populate_subdiv_hl_public_holidays(self):
|
|
119
|
+
self._add_observed(
|
|
120
|
+
# Saint Helena Day.
|
|
121
|
+
self._add_holiday_may_21(tr("Saint Helena Day")),
|
|
122
|
+
rule=SAT_TO_PREV_FRI + SUN_TO_NEXT_MON,
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
def _populate_subdiv_ta_public_holidays(self):
|
|
126
|
+
# Ascension Day.
|
|
127
|
+
self._add_ascension_thursday(tr("Ascension Day"))
|
|
128
|
+
|
|
129
|
+
ratting_day_dates = {
|
|
130
|
+
2015: (MAY, 16),
|
|
131
|
+
2016: (APR, 30),
|
|
132
|
+
2017: (MAY, 26),
|
|
133
|
+
2018: (JUN, 2),
|
|
134
|
+
2019: (MAY, 24),
|
|
135
|
+
2020: (APR, 25),
|
|
136
|
+
2021: (APR, 9),
|
|
137
|
+
2023: (JUN, 2),
|
|
138
|
+
2025: (MAY, 30),
|
|
139
|
+
}
|
|
140
|
+
# Ratting Day.
|
|
141
|
+
name = tr("Ratting Day")
|
|
142
|
+
if dt := ratting_day_dates.get(self._year):
|
|
143
|
+
self._add_holiday(name, dt)
|
|
144
|
+
|
|
145
|
+
# Anniversary Day.
|
|
146
|
+
self._add_holiday_aug_14(tr("Anniversary Day"))
|
|
147
|
+
|
|
148
|
+
def _populate_government_holidays(self):
|
|
149
|
+
# New Year's Day.
|
|
150
|
+
self._add_observed(self._add_new_years_day(tr("New Year's Day")))
|
|
151
|
+
|
|
152
|
+
# Whit Monday.
|
|
153
|
+
self._add_whit_monday(tr("Whit Monday"))
|
|
154
|
+
|
|
155
|
+
def _populate_subdiv_ac_government_holidays(self):
|
|
156
|
+
# August Bank Holiday.
|
|
157
|
+
self._add_holiday_last_mon_of_aug(tr("August Bank Holiday"))
|
|
158
|
+
|
|
159
|
+
def _populate_subdiv_hl_government_holidays(self):
|
|
160
|
+
# August Bank Holiday.
|
|
161
|
+
self._add_holiday_last_mon_of_aug(tr("August Bank Holiday"))
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
class SH(SaintHelenaAscensionAndTristanDaCunha):
|
|
165
|
+
pass
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class SHN(SaintHelenaAscensionAndTristanDaCunha):
|
|
169
|
+
pass
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
class SaintHelenaAscensionAndTristanDaCunhaStaticHolidays:
|
|
173
|
+
"""Saint Helena, Ascension and Tristan da Cunha special holidays.
|
|
174
|
+
|
|
175
|
+
References:
|
|
176
|
+
* <https://web.archive.org/web/20250810194916/https://sainthelenaisland.info/holidays.htm>
|
|
177
|
+
* [The Duke of Edinburgh's Visit](https://web.archive.org/web/20250719002906/https://www.sainthelena.gov.sh/2024/news/public-holiday-declared-to-mark-visit-of-his-royal-highness-the-duke-of-edinburgh-public-events-announced/)
|
|
178
|
+
* [Queen Elizabeth II's State Funeral](https://web.archive.org/web/20250513122736/https://www.sainthelena.gov.sh/wp-content/uploads/2022/09/EX-GAZ-94-Proclamation-Proclaiming-His-Majesty-Public-Holiday-HM-Queen-II-Funeral-STH-ASC.pdf)
|
|
179
|
+
* [Coronation of His Majesty King Charles III](https://web.archive.org/web/20250719085105/https://www.sainthelena.gov.sh/2023/news/governors-deputy-declares-public-holiday-to-mark-the-coronation-of-his-majesty-king-charles-iii/)
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
special_public_holidays = {
|
|
183
|
+
# Final Departure of R.M.S. St Helena.
|
|
184
|
+
2018: (FEB, 9, tr("Final Departure of R.M.S. St Helena")),
|
|
185
|
+
2022: (
|
|
186
|
+
# Queen Elizabeth II's Platinum Jubilee.
|
|
187
|
+
(JUN, 3, tr("Queen Elizabeth II's Platinum Jubilee")),
|
|
188
|
+
# Queen Elizabeth II's State Funeral.
|
|
189
|
+
(SEP, 19, tr("Queen Elizabeth II's State Funeral")),
|
|
190
|
+
),
|
|
191
|
+
2023: (
|
|
192
|
+
# The Duke of Edinburgh's Visit.
|
|
193
|
+
(JAN, 24, tr("The Duke of Edinburgh's Visit")),
|
|
194
|
+
# Coronation of His Majesty King Charles III.
|
|
195
|
+
(MAY, 8, tr("Coronation of His Majesty King Charles III")),
|
|
196
|
+
),
|
|
197
|
+
}
|
|
@@ -14,7 +14,7 @@ from datetime import date
|
|
|
14
14
|
from gettext import gettext as tr
|
|
15
15
|
|
|
16
16
|
from holidays.calendars import _CustomIslamicHolidays
|
|
17
|
-
from holidays.calendars.gregorian import SEP, NOV, THU, FRI, SAT, _timedelta
|
|
17
|
+
from holidays.calendars.gregorian import JUN, SEP, NOV, THU, FRI, SAT, _timedelta
|
|
18
18
|
from holidays.groups import IslamicHolidays, StaticHolidays
|
|
19
19
|
from holidays.observed_holiday_base import (
|
|
20
20
|
ObservedHolidayBase,
|
|
@@ -46,6 +46,7 @@ class SaudiArabia(ObservedHolidayBase, IslamicHolidays, StaticHolidays):
|
|
|
46
46
|
# %s (observed, estimated).
|
|
47
47
|
observed_estimated_label = tr("%s (المقدرة، ملاحظة)")
|
|
48
48
|
supported_languages = ("ar", "en_US")
|
|
49
|
+
weekend = {FRI, SAT}
|
|
49
50
|
|
|
50
51
|
def __init__(self, *args, islamic_show_estimated: bool = False, **kwargs):
|
|
51
52
|
"""Saudi Arabia has traditionally used the Umm al-Qura calendar
|
|
@@ -71,16 +72,16 @@ class SaudiArabia(ObservedHolidayBase, IslamicHolidays, StaticHolidays):
|
|
|
71
72
|
for i in range(4):
|
|
72
73
|
self._add_observed(_timedelta(dt, -i), name=self[dt], rule=observed_rule)
|
|
73
74
|
|
|
74
|
-
def
|
|
75
|
+
def _get_weekend(self, dt: date) -> set[int]:
|
|
75
76
|
# Weekend used to be THU, FRI before June 28th, 2013.
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
return {FRI, SAT} if dt >= date(2013, JUN, 28) else {THU, FRI}
|
|
78
|
+
|
|
79
|
+
def _populate_public_holidays(self):
|
|
78
80
|
self._observed_rule = (
|
|
79
81
|
THU_TO_PREV_WED + FRI_TO_NEXT_SAT
|
|
80
82
|
if self._year <= 2012
|
|
81
83
|
else FRI_TO_PREV_THU + SAT_TO_NEXT_SUN
|
|
82
84
|
)
|
|
83
|
-
self.weekend = {THU, FRI} if self._year <= 2012 else {FRI, SAT}
|
|
84
85
|
|
|
85
86
|
# Eid al-Fitr Holiday.
|
|
86
87
|
eid_al_fitr_name = tr("عطلة عيد الفطر")
|
holidays/countries/serbia.py
CHANGED
|
@@ -28,6 +28,8 @@ class Serbia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
28
28
|
default_language = "sr"
|
|
29
29
|
# %s (observed).
|
|
30
30
|
observed_label = tr("%s (слободан дан)")
|
|
31
|
+
# Independence Restored on June 5th, 2006.
|
|
32
|
+
start_year = 2007
|
|
31
33
|
supported_languages = ("en_US", "sr")
|
|
32
34
|
|
|
33
35
|
def __init__(self, *args, **kwargs):
|
|
@@ -64,10 +66,13 @@ class Serbia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
64
66
|
|
|
65
67
|
# Good Friday.
|
|
66
68
|
self._add_good_friday(tr("Велики петак"))
|
|
69
|
+
|
|
67
70
|
# Holy Saturday.
|
|
68
71
|
self._add_holy_saturday(tr("Велика субота"))
|
|
72
|
+
|
|
69
73
|
# Easter Sunday.
|
|
70
74
|
self._add_easter_sunday(tr("Васкрс"))
|
|
75
|
+
|
|
71
76
|
# Easter Monday.
|
|
72
77
|
self._add_easter_monday(tr("Други дан Васкрса"))
|
|
73
78
|
|