holidays 0.73__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/constants.py +8 -1
- holidays/countries/__init__.py +6 -0
- holidays/countries/aland_islands.py +63 -0
- holidays/countries/angola.py +2 -2
- holidays/countries/argentina.py +2 -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/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/italy.py +1 -1
- holidays/countries/ivory_coast.py +1 -1
- holidays/countries/kazakhstan.py +23 -23
- holidays/countries/mexico.py +1 -1
- holidays/countries/morocco.py +1 -1
- 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/slovenia.py +1 -1
- holidays/countries/sweden.py +1 -1
- holidays/countries/thailand.py +2 -2
- holidays/countries/togo.py +2 -2
- 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/venezuela.py +1 -1
- holidays/countries/yemen.py +207 -0
- holidays/groups/chinese.py +3 -3
- holidays/groups/christian.py +4 -4
- holidays/groups/international.py +9 -9
- holidays/groups/islamic.py +3 -3
- holidays/locale/ar/LC_MESSAGES/YE.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/FI.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/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/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_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/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 +6 -0
- holidays/version.py +1 -1
- {holidays-0.73.dist-info → holidays-0.74.dist-info}/METADATA +50 -8
- {holidays-0.73.dist-info → holidays-0.74.dist-info}/RECORD +71 -47
- {holidays-0.73.dist-info → holidays-0.74.dist-info}/WHEEL +1 -1
- {holidays-0.73.dist-info → holidays-0.74.dist-info}/licenses/CONTRIBUTORS +2 -0
- {holidays-0.73.dist-info → holidays-0.74.dist-info}/licenses/LICENSE +0 -0
- {holidays-0.73.dist-info → holidays-0.74.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,205 @@
|
|
|
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 MAY, JUN, OCT, DEC
|
|
16
|
+
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
17
|
+
from holidays.observed_holiday_base import (
|
|
18
|
+
ObservedHolidayBase,
|
|
19
|
+
SAT_TO_PREV_FRI,
|
|
20
|
+
SUN_TO_NEXT_MON,
|
|
21
|
+
SAT_SUN_TO_NEXT_MON,
|
|
22
|
+
SAT_SUN_TO_NEXT_MON_TUE,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class BritishVirginIslands(
|
|
27
|
+
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
28
|
+
):
|
|
29
|
+
"""British Virgin Islands holidays.
|
|
30
|
+
|
|
31
|
+
References:
|
|
32
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_British_Virgin_Islands>
|
|
33
|
+
* [Public Holidays (Amendment) Act, 2021](https://web.archive.org/web/20250522154946/https://laws.gov.vg/Laws/public-holidays-amendment-act-2021)
|
|
34
|
+
* <https://web.archive.org/web/20250401075439/https://www.timeanddate.com/holidays/british-virgin-islands/>
|
|
35
|
+
* [2015](https://web.archive.org/web/20250317055722/https://www.bvi.gov.vg/media-centre/2015-public-holidays)
|
|
36
|
+
* [2016](https://web.archive.org/web/20250323113905/https://www.bvi.gov.vg/media-centre/2016-public-holidays)
|
|
37
|
+
* [2017](https://web.archive.org/web/20250515155409/https://bvi.gov.vg/media-centre/2017-public-holidays)
|
|
38
|
+
* [2018](https://web.archive.org/web/20250318095807/https://www.bvi.gov.vg/media-centre/2018-public-holidays)
|
|
39
|
+
* [2019](https://web.archive.org/web/20250315162108/https://www.bvi.gov.vg/media-centre/2019-public-holidays)
|
|
40
|
+
* [2020](https://web.archive.org/web/20250111172241/https://www.bvi.gov.vg/media-centre/2020-public-holidays)
|
|
41
|
+
* [2021](https://web.archive.org/web/20250417222246/http://www.bvi.gov.vg/media-centre/2021-public-holidays-revised)
|
|
42
|
+
* [2022](https://web.archive.org/web/20250420005523/https://www.bvi.gov.vg/media-centre/revised-2022-public-holidays)
|
|
43
|
+
* [2023](https://web.archive.org/web/20250111170511/https://bvi.gov.vg/media-centre/updatedofficialholidays20231)
|
|
44
|
+
* [2024](https://web.archive.org/web/20250502194703/https://www.bvi.gov.vg/media-centre/cabinet-approves-2024-public-holidays)
|
|
45
|
+
* [2025](https://web.archive.org/web/20250124122752/https://bvi.gov.vg/media-centre/cabinet-approves-2025-holidays)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
country = "VG"
|
|
49
|
+
default_language = "en_VG"
|
|
50
|
+
# %s (observed).
|
|
51
|
+
observed_label = tr("%s (observed)")
|
|
52
|
+
supported_languages = ("en_US", "en_VG")
|
|
53
|
+
start_year = 1967
|
|
54
|
+
|
|
55
|
+
def __init__(self, *args, **kwargs):
|
|
56
|
+
ChristianHolidays.__init__(self)
|
|
57
|
+
InternationalHolidays.__init__(self)
|
|
58
|
+
StaticHolidays.__init__(self, BritishVirginIslandsStaticHolidays)
|
|
59
|
+
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_MON)
|
|
60
|
+
kwargs.setdefault("observed_since", 2000)
|
|
61
|
+
super().__init__(*args, **kwargs)
|
|
62
|
+
|
|
63
|
+
def _populate_public_holidays(self):
|
|
64
|
+
# New Year's Day.
|
|
65
|
+
self._add_observed(self._add_new_years_day(tr("New Year's Day")))
|
|
66
|
+
|
|
67
|
+
self._add_holiday_1st_mon_before_mar_7(
|
|
68
|
+
# Lavity Stoutt's Birthday.
|
|
69
|
+
tr("The Anniversary of the Birth of Hamilton Lavity Stoutt")
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
if self._year <= 2020:
|
|
73
|
+
# Commonwealth Day.
|
|
74
|
+
self._add_holiday_2nd_mon_of_mar(tr("Commonwealth Day"))
|
|
75
|
+
|
|
76
|
+
# Good Friday.
|
|
77
|
+
self._add_good_friday(tr("Good Friday"))
|
|
78
|
+
|
|
79
|
+
# Easter Monday.
|
|
80
|
+
self._add_easter_monday(tr("Easter Monday"))
|
|
81
|
+
|
|
82
|
+
# Whit Monday.
|
|
83
|
+
self._add_whit_monday(tr("Whit Monday"))
|
|
84
|
+
|
|
85
|
+
# Sovereign's Birthday.
|
|
86
|
+
name = tr("Sovereign's Birthday")
|
|
87
|
+
if self._year >= 2019:
|
|
88
|
+
sovereign_birthday_dates = {
|
|
89
|
+
2019: (JUN, 7),
|
|
90
|
+
2023: (JUN, 16),
|
|
91
|
+
}
|
|
92
|
+
if self._year in sovereign_birthday_dates:
|
|
93
|
+
self._add_holiday(name, sovereign_birthday_dates[self._year])
|
|
94
|
+
else:
|
|
95
|
+
self._add_holiday_2nd_fri_of_jun(name)
|
|
96
|
+
else:
|
|
97
|
+
self._add_holiday_2nd_sat_of_jun(name)
|
|
98
|
+
|
|
99
|
+
name = (
|
|
100
|
+
# Virgin Islands Day.
|
|
101
|
+
tr("Virgin Islands Day")
|
|
102
|
+
if self._year >= 2021
|
|
103
|
+
# Territory Day.
|
|
104
|
+
else tr("Territory Day")
|
|
105
|
+
if self._year >= 1978
|
|
106
|
+
# Colony Day.
|
|
107
|
+
else tr("Colony Day")
|
|
108
|
+
)
|
|
109
|
+
territory_day_dates = {
|
|
110
|
+
2015: (JUN, 29),
|
|
111
|
+
2020: (JUN, 29),
|
|
112
|
+
}
|
|
113
|
+
if self._year in territory_day_dates:
|
|
114
|
+
self._add_holiday(name, territory_day_dates[self._year])
|
|
115
|
+
else:
|
|
116
|
+
if self._year >= 2021:
|
|
117
|
+
self._add_holiday_1st_mon_of_jul(name)
|
|
118
|
+
else:
|
|
119
|
+
self._add_observed(
|
|
120
|
+
self._add_holiday_jul_1(name), rule=SAT_TO_PREV_FRI + SUN_TO_NEXT_MON
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
self._add_holiday_1st_mon_of_aug(
|
|
124
|
+
# Emancipation Monday.
|
|
125
|
+
tr("Emancipation Monday")
|
|
126
|
+
if self._year >= 2021
|
|
127
|
+
# Festival Monday.
|
|
128
|
+
else tr("Festival Monday")
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
self._add_holiday_1_day_past_1st_mon_of_aug(
|
|
132
|
+
# Emancipation Tuesday.
|
|
133
|
+
tr("Emancipation Tuesday")
|
|
134
|
+
if self._year >= 2021
|
|
135
|
+
# Festival Tuesday.
|
|
136
|
+
else tr("Festival Tuesday")
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
self._add_holiday_2_days_past_1st_mon_of_aug(
|
|
140
|
+
# Emancipation Wednesday.
|
|
141
|
+
tr("Emancipation Wednesday")
|
|
142
|
+
if self._year >= 2021
|
|
143
|
+
# Festival Wednesday.
|
|
144
|
+
else tr("Festival Wednesday")
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
if self._year <= 2020:
|
|
148
|
+
# Saint Ursula's Day.
|
|
149
|
+
name = tr("Saint Ursula's Day")
|
|
150
|
+
saint_ursula_dates = {
|
|
151
|
+
2015: (OCT, 19),
|
|
152
|
+
2020: (OCT, 23),
|
|
153
|
+
}
|
|
154
|
+
if self._year in saint_ursula_dates:
|
|
155
|
+
self._add_holiday(name, saint_ursula_dates[self._year])
|
|
156
|
+
else:
|
|
157
|
+
self._add_observed(
|
|
158
|
+
self._add_holiday_oct_21(name), rule=SAT_TO_PREV_FRI + SUN_TO_NEXT_MON
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
if self._year >= 2021:
|
|
162
|
+
# Heroes and Foreparents Day.
|
|
163
|
+
self._add_holiday_3rd_mon_of_oct(tr("Heroes and Foreparents Day"))
|
|
164
|
+
|
|
165
|
+
# The Great March of 1949 and Restoration Day.
|
|
166
|
+
self._add_holiday_4th_mon_of_nov(tr("The Great March of 1949 and Restoration Day"))
|
|
167
|
+
|
|
168
|
+
self._add_observed(
|
|
169
|
+
# Christmas Day.
|
|
170
|
+
self._add_christmas_day(tr("Christmas Day")),
|
|
171
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
self._add_observed(
|
|
175
|
+
# Boxing Day.
|
|
176
|
+
self._add_christmas_day_two(tr("Boxing Day")),
|
|
177
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
class VG(BritishVirginIslands):
|
|
182
|
+
pass
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class VGB(BritishVirginIslands):
|
|
186
|
+
pass
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
class BritishVirginIslandsStaticHolidays:
|
|
190
|
+
"""British Virgin Islands special holidays.
|
|
191
|
+
|
|
192
|
+
References:
|
|
193
|
+
* [2019](https://web.archive.org/web/20250417134346/https://www.bvi.gov.vg/media-centre/public-holiday-be-observed-funeral-late-honourable-ralph-t-o-neal-obe)
|
|
194
|
+
* [2022](https://web.archive.org/web/20250315174707/https://www.bvi.gov.vg/media-centre/public-holiday-observe-her-majesty-s-platinum-jubilee)
|
|
195
|
+
* [2023](https://web.archive.org/web/20250505073654/https://bvi.gov.vg/media-centre/may-8-and-june-16-declared-public-holidays)
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
special_public_holidays = {
|
|
199
|
+
# State Funeral of Honourable Ralph T. O'Neal.
|
|
200
|
+
2019: (DEC, 11, tr("State Funeral of Honourable Ralph T. O'Neal")),
|
|
201
|
+
# Platinum Jubilee of Elizabeth II.
|
|
202
|
+
2022: (JUN, 3, tr("Queen Elizabeth II's Platinum Jubilee")),
|
|
203
|
+
# Coronation of Charles III.
|
|
204
|
+
2023: (MAY, 8, tr("The King's Coronation")),
|
|
205
|
+
}
|
holidays/countries/chile.py
CHANGED
|
@@ -32,7 +32,7 @@ class Chile(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stati
|
|
|
32
32
|
References:
|
|
33
33
|
* <https://www.feriados.cl>
|
|
34
34
|
* [Excellent history of Chile holidays](http://www.feriadoschilenos.cl)
|
|
35
|
-
* <https://es.wikipedia.org/wiki/Anexo:
|
|
35
|
+
* <https://es.wikipedia.org/wiki/Anexo:Días_feriados_en_Chile>
|
|
36
36
|
* Law 2.977 (established official Chile holidays in its current form)
|
|
37
37
|
* Law 20.983 (Day after New Year's Day, if it's a Sunday)
|
|
38
38
|
* Law 19.668 (floating Monday holiday)
|
holidays/countries/curacao.py
CHANGED
|
@@ -24,7 +24,7 @@ class Curacao(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
24
24
|
|
|
25
25
|
References:
|
|
26
26
|
* <https://loketdigital.gobiernu.cw/Loket/product/571960bbe1e5fe8712b10a1323630e70>
|
|
27
|
-
* <https://en.wikipedia.org/wiki/Public_holidays_in_Cura
|
|
27
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Curaçao>
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
country = "CW"
|
|
@@ -26,7 +26,7 @@ class DominicanRepublic(ObservedHolidayBase, ChristianHolidays, InternationalHol
|
|
|
26
26
|
|
|
27
27
|
References:
|
|
28
28
|
* <http://ojd.org.do/Normativas/LABORAL/Leyes/Ley%20No.%20%20139-97.pdf>
|
|
29
|
-
* <https://es.wikipedia.org/wiki/
|
|
29
|
+
* <https://es.wikipedia.org/wiki/República_Dominicana#Días_festivos_nacionales>
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
country = "DO"
|
holidays/countries/ecuador.py
CHANGED
|
@@ -28,7 +28,7 @@ class Ecuador(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
28
28
|
|
|
29
29
|
References:
|
|
30
30
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Ecuador>
|
|
31
|
-
* [Código del Trabajo](https://biblioteca.defensoria.gob.ec/bitstream/37000/3364/1/
|
|
31
|
+
* [Código del Trabajo](https://biblioteca.defensoria.gob.ec/bitstream/37000/3364/1/Código%20de%20Trabajo%20(04-11-2021).pdf)
|
|
32
32
|
"""
|
|
33
33
|
|
|
34
34
|
country = "EC"
|
|
@@ -0,0 +1,150 @@
|
|
|
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
|
|
16
|
+
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
17
|
+
from holidays.observed_holiday_base import ObservedHolidayBase, SAT_SUN_TO_NEXT_MON
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class EquatorialGuinea(
|
|
21
|
+
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
22
|
+
):
|
|
23
|
+
"""Equatorial Guinea holidays.
|
|
24
|
+
|
|
25
|
+
References:
|
|
26
|
+
* [Decree 9/2007](https://web.archive.org/web/20250518185011/https://boe.gob.gq/files/Decreto%20de%20Fijación%20de%20los%20Días%20Feriados%20en%20Guinea%20Ecuatorial.pdf)
|
|
27
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Equatorial_Guinea>
|
|
28
|
+
* <https://web.archive.org/web/20250503042253/https://www.timeanddate.com/holidays/guineaecuatorial/>
|
|
29
|
+
* <https://web.archive.org/web/20250503042610/https://gq.usembassy.gov/holiday-calendar/>
|
|
30
|
+
* [2015](https://web.archive.org/web/20250421105147/https://www.guineainfomarket.com/gobierno/2015/01/01/calendario-laboral-de-guinea-ecuatorial-2015/)
|
|
31
|
+
* [2016](https://web.archive.org/web/20250212174334/https://www.guineainfomarket.com/libros/2015/12/06/calendario-laboral-de-guinea-ecuatorial-2016/)
|
|
32
|
+
* [2018](https://web.archive.org/web/20241005004303/https://www.guineainfomarket.com/economia/2017/12/29/calendario-laboral-guinea-ecuatorial-2018/)
|
|
33
|
+
* [2019](https://web.archive.org/web/20220526022213/https://www.guineainfomarket.com/economia/2019/01/01/calendario-laboral-guinea-ecuatorial-2019/)
|
|
34
|
+
* [2020](https://web.archive.org/web/20250503044753/https://www.guineainfomarket.com/cultura/2020/01/01/calendario-laboral-de-guinea-ecuatorial-2020/)
|
|
35
|
+
* [2021](https://web.archive.org/web/20250503044727/https://www.guineainfomarket.com/cultura/2021/01/29/calendario-laboral-de-guinea-ecuatorial-2021/)
|
|
36
|
+
* [2022](https://web.archive.org/web/20250503044746/https://www.guineainfomarket.com/cultura/2021/01/29/calendario-laboral-de-guinea-ecuatorial-2021-2/)
|
|
37
|
+
* [2024](https://web.archive.org/web/20250504175804/https://www.guineainfomarket.com/business/2024/03/29/calendario-laboral-de-guinea-ecuatorial-2024/)
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
country = "GQ"
|
|
41
|
+
default_language = "es"
|
|
42
|
+
supported_languages = ("en_US", "es")
|
|
43
|
+
# %s observed.
|
|
44
|
+
observed_label = tr("%s (observado)")
|
|
45
|
+
# Decree 9/2007.
|
|
46
|
+
start_year = 2007
|
|
47
|
+
subdivisions = (
|
|
48
|
+
"AN", # Annobón (Annobon).
|
|
49
|
+
"BN", # Bioko Norte (North Bioko).
|
|
50
|
+
"BS", # Bioko Sur (South Bioko).
|
|
51
|
+
"CS", # Centro Sur (South Center).
|
|
52
|
+
"DJ", # Djibloho.
|
|
53
|
+
"KN", # Kié-Ntem (Kie-Ntem).
|
|
54
|
+
"LI", # Litoral (Coast).
|
|
55
|
+
"WN", # Wele-Nzas.
|
|
56
|
+
)
|
|
57
|
+
subdivisions_aliases = {
|
|
58
|
+
"Annobón": "AN",
|
|
59
|
+
"Annobon": "AN",
|
|
60
|
+
"Bioko Norte": "BN",
|
|
61
|
+
"North Bioko": "BN",
|
|
62
|
+
"Bioko Sur": "BS",
|
|
63
|
+
"South Bioko": "BS",
|
|
64
|
+
"Centro Sur": "CS",
|
|
65
|
+
"South Center": "CS",
|
|
66
|
+
"Djibloho": "DJ",
|
|
67
|
+
"Kié-Ntem": "KN",
|
|
68
|
+
"Kie-Ntem": "KN",
|
|
69
|
+
"Litoral": "LI",
|
|
70
|
+
"Coast": "LI",
|
|
71
|
+
"Wele-Nzas": "WN",
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
def __init__(self, *args, **kwargs):
|
|
75
|
+
ChristianHolidays.__init__(self)
|
|
76
|
+
InternationalHolidays.__init__(self)
|
|
77
|
+
StaticHolidays.__init__(self, cls=EquatorialGuineaStaticHolidays)
|
|
78
|
+
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_MON)
|
|
79
|
+
super().__init__(*args, **kwargs)
|
|
80
|
+
|
|
81
|
+
def _populate_public_holidays(self):
|
|
82
|
+
# New Year's Day.
|
|
83
|
+
self._add_observed(self._add_new_years_day(tr("Año Nuevo")))
|
|
84
|
+
|
|
85
|
+
# International Women's Day.
|
|
86
|
+
self._add_womens_day(tr("Día Internacional de la Mujer"))
|
|
87
|
+
|
|
88
|
+
# Maundy Thursday.
|
|
89
|
+
self._add_holy_thursday(tr("Jueves Santo"))
|
|
90
|
+
|
|
91
|
+
# Good Friday.
|
|
92
|
+
self._add_good_friday(tr("Viernes Santo"))
|
|
93
|
+
|
|
94
|
+
# International Labor Day.
|
|
95
|
+
self._add_observed(self._add_labor_day(tr("Día Internacional del Trabajo")))
|
|
96
|
+
|
|
97
|
+
# African Liberation Day.
|
|
98
|
+
self._add_africa_day(tr("Día de la liberación Africana"))
|
|
99
|
+
|
|
100
|
+
self._add_observed(
|
|
101
|
+
# President's Day.
|
|
102
|
+
self._add_holiday_jun_5(tr("Natalicio de Su Excelencia el Presidente de la República"))
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
# Corpus Christi.
|
|
106
|
+
self._add_corpus_christi_day(tr("Corpus Christi"))
|
|
107
|
+
|
|
108
|
+
# Armed Forces Day.
|
|
109
|
+
self._add_observed(self._add_holiday_aug_3(tr("Día de las Fuerzas Armadas")))
|
|
110
|
+
|
|
111
|
+
# Constitution Day.
|
|
112
|
+
self._add_observed(self._add_holiday_aug_15(tr("Día de la Constitución")))
|
|
113
|
+
|
|
114
|
+
# Independence Day.
|
|
115
|
+
self._add_observed(self._add_holiday_oct_12(tr("Día de la Independencia Nacional")))
|
|
116
|
+
|
|
117
|
+
self._add_observed(
|
|
118
|
+
self._add_immaculate_conception_day(
|
|
119
|
+
# Immaculate Conception.
|
|
120
|
+
tr("Festividad de la Inmaculada Concepción de María")
|
|
121
|
+
)
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
# Christmas Day.
|
|
125
|
+
self._add_observed(self._add_christmas_day(tr("Día de Navidad")))
|
|
126
|
+
|
|
127
|
+
def _populate_subdiv_an_public_holidays(self):
|
|
128
|
+
# Patron Saint Festival of Annobón.
|
|
129
|
+
self._add_holiday_jun_13(tr("Fiesta Patronal de Annobón"))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
class GQ(EquatorialGuinea):
|
|
133
|
+
pass
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class GNQ(EquatorialGuinea):
|
|
137
|
+
pass
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
class EquatorialGuineaStaticHolidays:
|
|
141
|
+
"""Equatorial Guinea special holidays.
|
|
142
|
+
|
|
143
|
+
References:
|
|
144
|
+
* [AFCON Victory Holiday](https://web.archive.org/web/20240124021813/https://www.monitor.co.ug/uganda/sports/soccer/equatorial-guinea-president-awards-team-1-million-for-afcon-victory-4500644)
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
special_public_holidays = {
|
|
148
|
+
# AFCON Victory Against Ivory Coast.
|
|
149
|
+
2024: (JAN, 23, tr("Victoria de la AFCON contra Costa de Marfil")),
|
|
150
|
+
}
|
holidays/countries/ethiopia.py
CHANGED
|
@@ -29,7 +29,7 @@ class Ethiopia(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHol
|
|
|
29
29
|
* [Proclamation No. 1334/2024](https://lawethiopiacomment.wordpress.com/wp-content/uploads/2024/08/public-holiday-stamped.pdf)
|
|
30
30
|
* <https://www.edarabia.com/ethiopia/public-holidays/>
|
|
31
31
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Ethiopia>
|
|
32
|
-
* <https://en.wikipedia.org/wiki/Nations,_Nationalities_and_Peoples
|
|
32
|
+
* <https://en.wikipedia.org/wiki/Nations,_Nationalities_and_Peoples'_Day>
|
|
33
33
|
* <https://www.timeanddate.com/holidays/ethiopia/>
|
|
34
34
|
"""
|
|
35
35
|
|