holidays 0.71__py3-none-any.whl → 0.73__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/__init__.py +1 -2
- holidays/calendars/__init__.py +1 -1
- holidays/calendars/balinese_saka.py +1 -1
- holidays/calendars/buddhist.py +5 -3
- holidays/calendars/chinese.py +101 -13
- holidays/calendars/custom.py +1 -1
- holidays/calendars/gregorian.py +1 -1
- holidays/calendars/hebrew.py +1 -1
- holidays/calendars/hindu.py +194 -6
- holidays/calendars/islamic.py +1 -1
- holidays/calendars/julian.py +1 -1
- holidays/calendars/julian_revised.py +1 -1
- holidays/calendars/persian.py +1 -1
- holidays/calendars/sinhala.py +1 -1
- holidays/calendars/thai.py +1 -1
- holidays/constants.py +1 -1
- holidays/countries/__init__.py +7 -1
- holidays/countries/afghanistan.py +1 -1
- holidays/countries/albania.py +2 -2
- holidays/countries/algeria.py +1 -1
- holidays/countries/american_samoa.py +2 -1
- holidays/countries/andorra.py +140 -47
- holidays/countries/angola.py +1 -1
- holidays/countries/antigua_and_barbuda.py +1 -1
- holidays/countries/argentina.py +15 -5
- holidays/countries/armenia.py +1 -1
- holidays/countries/aruba.py +1 -1
- holidays/countries/australia.py +16 -5
- holidays/countries/austria.py +3 -3
- holidays/countries/azerbaijan.py +1 -1
- holidays/countries/bahamas.py +1 -1
- holidays/countries/bahrain.py +1 -1
- holidays/countries/bangladesh.py +1 -1
- holidays/countries/barbados.py +1 -1
- holidays/countries/belarus.py +1 -1
- holidays/countries/belgium.py +1 -1
- holidays/countries/belize.py +1 -1
- holidays/countries/bolivia.py +23 -12
- holidays/countries/bosnia_and_herzegovina.py +5 -5
- holidays/countries/botswana.py +1 -1
- holidays/countries/brazil.py +3 -4
- holidays/countries/brunei.py +1 -1
- holidays/countries/bulgaria.py +1 -1
- holidays/countries/burkina_faso.py +1 -1
- holidays/countries/burundi.py +1 -1
- holidays/countries/cambodia.py +22 -22
- holidays/countries/cameroon.py +1 -1
- holidays/countries/canada.py +91 -57
- holidays/countries/chad.py +1 -1
- holidays/countries/chile.py +36 -18
- holidays/countries/china.py +1 -1
- holidays/countries/cocos_islands.py +259 -0
- holidays/countries/colombia.py +1 -1
- holidays/countries/congo.py +1 -1
- holidays/countries/costa_rica.py +1 -1
- holidays/countries/croatia.py +1 -1
- holidays/countries/cuba.py +1 -1
- holidays/countries/curacao.py +1 -1
- holidays/countries/cyprus.py +1 -1
- holidays/countries/czechia.py +1 -1
- holidays/countries/denmark.py +1 -1
- holidays/countries/djibouti.py +1 -1
- holidays/countries/dominica.py +1 -1
- holidays/countries/dominican_republic.py +1 -1
- holidays/countries/ecuador.py +1 -1
- holidays/countries/egypt.py +1 -1
- holidays/countries/el_salvador.py +18 -18
- holidays/countries/estonia.py +1 -1
- holidays/countries/eswatini.py +1 -1
- holidays/countries/ethiopia.py +43 -24
- holidays/countries/fiji.py +1 -1
- holidays/countries/finland.py +1 -1
- holidays/countries/france.py +3 -4
- holidays/countries/french_southern_territories.py +1 -1
- holidays/countries/gabon.py +1 -1
- holidays/countries/georgia.py +1 -1
- holidays/countries/germany.py +20 -21
- holidays/countries/ghana.py +1 -1
- holidays/countries/greece.py +1 -1
- holidays/countries/greenland.py +1 -1
- holidays/countries/grenada.py +143 -0
- holidays/countries/guam.py +2 -1
- holidays/countries/guatemala.py +1 -1
- holidays/countries/guernsey.py +1 -1
- holidays/countries/guinea.py +1 -1
- holidays/countries/haiti.py +1 -1
- holidays/countries/honduras.py +1 -1
- holidays/countries/hongkong.py +2 -2
- holidays/countries/hungary.py +1 -1
- holidays/countries/iceland.py +1 -1
- holidays/countries/india.py +17 -11
- holidays/countries/indonesia.py +1 -1
- holidays/countries/iran.py +1 -1
- holidays/countries/ireland.py +1 -1
- holidays/countries/isle_of_man.py +1 -1
- holidays/countries/israel.py +1 -1
- holidays/countries/italy.py +1 -1
- holidays/countries/ivory_coast.py +5 -5
- holidays/countries/jamaica.py +1 -1
- holidays/countries/japan.py +1 -1
- holidays/countries/jersey.py +1 -1
- holidays/countries/jordan.py +1 -1
- holidays/countries/kazakhstan.py +1 -1
- holidays/countries/kenya.py +1 -1
- holidays/countries/kuwait.py +1 -1
- holidays/countries/kyrgyzstan.py +1 -1
- holidays/countries/laos.py +1 -1
- holidays/countries/latvia.py +1 -1
- holidays/countries/lesotho.py +1 -1
- holidays/countries/liechtenstein.py +1 -1
- holidays/countries/lithuania.py +1 -1
- holidays/countries/luxembourg.py +1 -1
- holidays/countries/macau.py +5 -5
- holidays/countries/madagascar.py +1 -1
- holidays/countries/malawi.py +1 -1
- holidays/countries/malaysia.py +21 -29
- holidays/countries/maldives.py +1 -1
- holidays/countries/malta.py +1 -1
- holidays/countries/marshall_islands.py +1 -1
- holidays/countries/mauritania.py +1 -1
- holidays/countries/mexico.py +1 -1
- holidays/countries/moldova.py +1 -1
- holidays/countries/monaco.py +1 -1
- holidays/countries/montenegro.py +1 -1
- holidays/countries/morocco.py +1 -1
- holidays/countries/mozambique.py +1 -1
- holidays/countries/namibia.py +1 -1
- holidays/countries/nepal.py +441 -0
- holidays/countries/netherlands.py +1 -1
- holidays/countries/new_zealand.py +19 -19
- holidays/countries/nicaragua.py +19 -19
- holidays/countries/nigeria.py +1 -1
- holidays/countries/north_macedonia.py +1 -1
- holidays/countries/northern_mariana_islands.py +2 -1
- holidays/countries/norway.py +1 -1
- holidays/countries/oman.py +1 -1
- holidays/countries/pakistan.py +1 -1
- holidays/countries/palau.py +1 -1
- holidays/countries/panama.py +1 -1
- holidays/countries/papua_new_guinea.py +1 -1
- holidays/countries/paraguay.py +1 -1
- holidays/countries/peru.py +1 -1
- holidays/countries/philippines.py +3 -1
- holidays/countries/poland.py +1 -1
- holidays/countries/portugal.py +23 -25
- holidays/countries/puerto_rico.py +2 -1
- holidays/countries/qatar.py +1 -1
- holidays/countries/romania.py +1 -1
- holidays/countries/russia.py +1 -1
- holidays/countries/saint_kitts_and_nevis.py +1 -1
- holidays/countries/saint_lucia.py +1 -1
- holidays/countries/samoa.py +1 -1
- holidays/countries/san_marino.py +1 -1
- holidays/countries/sao_tome_and_principe.py +112 -0
- holidays/countries/saudi_arabia.py +1 -1
- holidays/countries/serbia.py +1 -1
- holidays/countries/seychelles.py +1 -1
- holidays/countries/sierra_leone.py +1 -1
- holidays/countries/singapore.py +5 -2
- holidays/countries/slovakia.py +1 -1
- holidays/countries/slovenia.py +1 -1
- holidays/countries/south_africa.py +1 -1
- holidays/countries/south_korea.py +3 -31
- holidays/countries/spain.py +43 -20
- holidays/countries/sri_lanka.py +1 -1
- holidays/countries/suriname.py +1 -1
- holidays/countries/sweden.py +1 -1
- holidays/countries/switzerland.py +61 -28
- holidays/countries/taiwan.py +1 -1
- holidays/countries/tanzania.py +1 -1
- holidays/countries/thailand.py +3 -3
- holidays/countries/timor_leste.py +1 -1
- holidays/countries/togo.py +182 -0
- holidays/countries/tonga.py +1 -1
- holidays/countries/trinidad_and_tobago.py +197 -0
- holidays/countries/tunisia.py +1 -1
- holidays/countries/turkey.py +1 -1
- holidays/countries/tuvalu.py +6 -6
- holidays/countries/ukraine.py +1 -1
- holidays/countries/united_arab_emirates.py +1 -1
- holidays/countries/united_kingdom.py +1 -1
- holidays/countries/united_states.py +62 -4
- holidays/countries/united_states_minor_outlying_islands.py +2 -1
- holidays/countries/united_states_virgin_islands.py +2 -1
- holidays/countries/uruguay.py +1 -1
- holidays/countries/uzbekistan.py +1 -1
- holidays/countries/vanuatu.py +1 -1
- holidays/countries/vatican_city.py +30 -32
- holidays/countries/venezuela.py +1 -1
- holidays/countries/vietnam.py +3 -2
- holidays/countries/zambia.py +1 -1
- holidays/countries/zimbabwe.py +1 -1
- holidays/deprecations/v1_incompatibility.py +1 -1
- holidays/financial/__init__.py +1 -1
- holidays/financial/brasil_bolsa_balcao.py +1 -1
- holidays/financial/european_central_bank.py +1 -1
- holidays/financial/ice_futures_europe.py +1 -1
- holidays/financial/ny_stock_exchange.py +1 -1
- holidays/groups/__init__.py +1 -1
- holidays/groups/balinese_saka.py +1 -1
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +6 -4
- holidays/groups/christian.py +4 -4
- holidays/groups/custom.py +1 -1
- holidays/groups/eastern.py +1 -1
- holidays/groups/hebrew.py +1 -1
- holidays/groups/hindu.py +166 -4
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +1 -1
- holidays/groups/persian.py +1 -1
- holidays/groups/sinhala.py +1 -1
- holidays/groups/thai.py +6 -6
- holidays/helpers.py +1 -1
- holidays/holiday_base.py +1 -1
- holidays/ical.py +2 -2
- holidays/locale/am/LC_MESSAGES/ET.mo +0 -0
- holidays/locale/ar/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/ar/LC_MESSAGES/ET.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_CA/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/en_CC/LC_MESSAGES/CC.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_ET/LC_MESSAGES/ET.mo +0 -0
- holidays/locale/en_GD/LC_MESSAGES/GD.mo +0 -0
- holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_TT/LC_MESSAGES/TT.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/CA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CC.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/ET.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GD.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/KH.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/ST.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TG.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TT.mo +0 -0
- holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/TG.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/km/LC_MESSAGES/KH.mo +0 -0
- holidays/locale/pt_ST/LC_MESSAGES/ST.mo +0 -0
- holidays/locale/th/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/th/LC_MESSAGES/KH.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AD.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/mixins.py +1 -1
- holidays/observed_holiday_base.py +1 -1
- holidays/registry.py +7 -1
- holidays/utils.py +1 -1
- holidays/version.py +2 -2
- {holidays-0.71.dist-info → holidays-0.73.dist-info}/METADATA +66 -18
- {holidays-0.71.dist-info → holidays-0.73.dist-info}/RECORD +260 -239
- {holidays-0.71.dist-info → holidays-0.73.dist-info}/WHEEL +1 -1
- holidays-0.71.dist-info/licenses/AUTHORS.md → holidays-0.73.dist-info/licenses/CONTRIBUTORS +1 -2
- {holidays-0.71.dist-info → holidays-0.73.dist-info}/licenses/LICENSE +1 -1
- {holidays-0.71.dist-info → holidays-0.73.dist-info}/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -84,8 +84,8 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
84
84
|
"""
|
|
85
85
|
|
|
86
86
|
country = "US"
|
|
87
|
-
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|
|
88
87
|
observed_label = "%s (observed)"
|
|
88
|
+
start_year = 1777
|
|
89
89
|
subdivisions: Union[tuple[()], tuple[str, ...]] = (
|
|
90
90
|
"AK", # Alaska.
|
|
91
91
|
"AL", # Alabama.
|
|
@@ -145,13 +145,71 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
145
145
|
"WV", # West Virginia.
|
|
146
146
|
"WY", # Wyoming.
|
|
147
147
|
)
|
|
148
|
-
|
|
148
|
+
subdivisions_aliases = {
|
|
149
|
+
"Alaska": "AK",
|
|
150
|
+
"Alabama": "AL",
|
|
151
|
+
"Arkansas": "AR",
|
|
152
|
+
"American Samoa": "AS",
|
|
153
|
+
"Arizona": "AZ",
|
|
154
|
+
"California": "CA",
|
|
155
|
+
"Colorado": "CO",
|
|
156
|
+
"Connecticut": "CT",
|
|
157
|
+
"District of Columbia": "DC",
|
|
158
|
+
"Delaware": "DE",
|
|
159
|
+
"Florida": "FL",
|
|
160
|
+
"Georgia": "GA",
|
|
161
|
+
"Guam": "GU",
|
|
162
|
+
"Hawaii": "HI",
|
|
163
|
+
"Iowa": "IA",
|
|
164
|
+
"Idaho": "ID",
|
|
165
|
+
"Illinois": "IL",
|
|
166
|
+
"Indiana": "IN",
|
|
167
|
+
"Kansas": "KS",
|
|
168
|
+
"Kentucky": "KY",
|
|
169
|
+
"Louisiana": "LA",
|
|
170
|
+
"Massachusetts": "MA",
|
|
171
|
+
"Maryland": "MD",
|
|
172
|
+
"Maine": "ME",
|
|
173
|
+
"Michigan": "MI",
|
|
174
|
+
"Minnesota": "MN",
|
|
175
|
+
"Missouri": "MO",
|
|
176
|
+
"Northern Mariana Islands": "MP",
|
|
177
|
+
"Mississippi": "MS",
|
|
178
|
+
"Montana": "MT",
|
|
179
|
+
"North Carolina": "NC",
|
|
180
|
+
"North Dakota": "ND",
|
|
181
|
+
"Nebraska": "NE",
|
|
182
|
+
"New Hampshire": "NH",
|
|
183
|
+
"New Jersey": "NJ",
|
|
184
|
+
"New Mexico": "NM",
|
|
185
|
+
"Nevada": "NV",
|
|
186
|
+
"New York": "NY",
|
|
187
|
+
"Ohio": "OH",
|
|
188
|
+
"Oklahoma": "OK",
|
|
189
|
+
"Oregon": "OR",
|
|
190
|
+
"Pennsylvania": "PA",
|
|
191
|
+
"Puerto Rico": "PR",
|
|
192
|
+
"Rhode Island": "RI",
|
|
193
|
+
"South Carolina": "SC",
|
|
194
|
+
"South Dakota": "SD",
|
|
195
|
+
"Tennessee": "TN",
|
|
196
|
+
"Texas": "TX",
|
|
197
|
+
"United States Minor Outlying Islands": "UM",
|
|
198
|
+
"Utah": "UT",
|
|
199
|
+
"Virginia": "VA",
|
|
200
|
+
"Virgin Islands, U.S.": "VI",
|
|
201
|
+
"Vermont": "VT",
|
|
202
|
+
"Washington": "WA",
|
|
203
|
+
"Wisconsin": "WI",
|
|
204
|
+
"West Virginia": "WV",
|
|
205
|
+
"Wyoming": "WY",
|
|
206
|
+
}
|
|
207
|
+
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|
|
149
208
|
_deprecated_subdivisions = (
|
|
150
209
|
"FM",
|
|
151
210
|
"MH",
|
|
152
211
|
"PW",
|
|
153
212
|
)
|
|
154
|
-
start_year = 1777
|
|
155
213
|
|
|
156
214
|
def __init__(self, *args, **kwargs):
|
|
157
215
|
ChristianHolidays.__init__(self)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -24,6 +24,7 @@ class HolidaysUM(US):
|
|
|
24
24
|
country = "UM"
|
|
25
25
|
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|
|
26
26
|
subdivisions = () # Override US subdivisions.
|
|
27
|
+
subdivisions_aliases = {} # Override US subdivisions aliases.
|
|
27
28
|
|
|
28
29
|
def _populate_public_holidays(self) -> None:
|
|
29
30
|
self.subdiv = "UM"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -24,6 +24,7 @@ class HolidaysVI(US):
|
|
|
24
24
|
country = "VI"
|
|
25
25
|
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|
|
26
26
|
subdivisions = () # Override US subdivisions.
|
|
27
|
+
subdivisions_aliases = {} # Override US subdivisions aliases.
|
|
27
28
|
|
|
28
29
|
def _populate_public_holidays(self) -> None:
|
|
29
30
|
self.subdiv = "VI"
|
holidays/countries/uruguay.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/countries/uzbekistan.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/countries/vanuatu.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -64,58 +64,56 @@ class VaticanCity(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
64
64
|
tr("Anniversario della istituzione dello Stato della Città del Vaticano")
|
|
65
65
|
)
|
|
66
66
|
|
|
67
|
-
# Anniversary of the Election of the Holy Father.
|
|
68
|
-
name_election = tr("Anniversario dell'Elezione del Santo Padre")
|
|
69
|
-
|
|
70
67
|
# Name Day of the Holy Father.
|
|
71
68
|
name_day = tr("Onomastico del Santo Padre")
|
|
72
69
|
|
|
73
|
-
if self._year >=
|
|
70
|
+
if self._year >= 2025:
|
|
71
|
+
# Pope Leo XIV (Robert Francis Prevost).
|
|
72
|
+
# Name Day: Saint Robert Bellarmine Day (SEP 17).
|
|
73
|
+
self._add_holiday_sep_17(name_day)
|
|
74
|
+
|
|
75
|
+
if self._year == 2025:
|
|
76
|
+
# Pope Francis (cont.).
|
|
77
|
+
self._add_saint_georges_day(name_day)
|
|
78
|
+
elif self._year >= 2013:
|
|
74
79
|
# Pope Francis (Jorge Mario Bergoglio).
|
|
75
80
|
# Name Day: Saint George's Day (APR 23).
|
|
76
|
-
self._add_holiday_mar_13(name_election)
|
|
77
81
|
self._add_saint_georges_day(name_day)
|
|
78
|
-
elif self._year >=
|
|
82
|
+
elif self._year >= 2006:
|
|
79
83
|
# Pope Benedict XVI (Josef Aloisius Ratzinger).
|
|
80
84
|
# Name Day: Saint Joseph's Day (MAR 19).
|
|
81
|
-
self._add_holiday_apr_19(name_election)
|
|
82
85
|
self._add_saint_josephs_day(name_day)
|
|
83
|
-
elif self._year
|
|
86
|
+
elif 1978 <= self._year <= 2004:
|
|
84
87
|
# Pope John Paul II (Karol Józef Wojtyła).
|
|
85
88
|
# Name Day: Saint Charles Borromeo Day (NOV 4).
|
|
86
|
-
self._add_holiday_oct_16(name_election)
|
|
87
89
|
self._add_holiday_nov_4(name_day)
|
|
88
90
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
# Name Day: Saint Albinus of Angers (MAR 1)?
|
|
92
|
-
self._add_holiday_aug_26(name_election)
|
|
91
|
+
# Anniversary of the Election of the Holy Father.
|
|
92
|
+
name_election = tr("Anniversario dell'Elezione del Santo Padre")
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
if self._year >= 2026:
|
|
95
|
+
# Pope Leo XIV (Robert Francis Prevost).
|
|
96
|
+
self._add_holiday_may_8(name_election)
|
|
97
|
+
elif self._year >= 2014:
|
|
98
|
+
# Pope Francis (Jorge Mario Bergoglio).
|
|
99
|
+
self._add_holiday_mar_13(name_election)
|
|
100
|
+
elif 2006 <= self._year <= 2012:
|
|
101
|
+
# Pope Benedict XVI (Josef Aloisius Ratzinger).
|
|
102
|
+
self._add_holiday_apr_19(name_election)
|
|
103
|
+
elif 1979 <= self._year <= 2004:
|
|
104
|
+
# Pope John Paul II (Karol Józef Wojtyła).
|
|
105
|
+
self._add_holiday_oct_16(name_election)
|
|
106
|
+
elif 1964 <= self._year <= 1978:
|
|
97
107
|
# Pope Paul VI (Giovanni Battista Enrico Antonio Maria Montini).
|
|
98
|
-
# Name Day: Saint John's Day (JUN 24)?
|
|
99
108
|
self._add_holiday_jun_21(name_election)
|
|
100
|
-
elif self._year
|
|
109
|
+
elif 1959 <= self._year <= 1962:
|
|
101
110
|
# Pope John XXIII (Angelo Giuseppe Roncalli).
|
|
102
|
-
# Name Day: Saint Angelus of Jerusalem (MAY 5)?
|
|
103
111
|
self._add_holiday_oct_28(name_election)
|
|
104
|
-
|
|
105
|
-
if self._year == 1958:
|
|
106
|
-
# Pope Pius XII (cont.).
|
|
107
|
-
self._add_holiday_mar_2(name_election)
|
|
108
|
-
elif self._year >= 1939:
|
|
112
|
+
elif 1940 <= self._year <= 1958:
|
|
109
113
|
# Pope Pius XII (Eugenio Maria Giuseppe Giovanni Pacelli).
|
|
110
|
-
# Name Day: Saint Eugene (JUN 2)?
|
|
111
114
|
self._add_holiday_mar_2(name_election)
|
|
112
|
-
|
|
113
|
-
if self._year == 1939:
|
|
114
|
-
# Pope Pius XI (cont.).
|
|
115
|
-
self._add_holiday_feb_6(name_election)
|
|
116
|
-
else:
|
|
115
|
+
elif self._year <= 1939:
|
|
117
116
|
# Pope Pius XI (Achille Ambrogio Damiano Ratti).
|
|
118
|
-
# Name Day: Saint Nereus and Achilleus (MAY 12)?
|
|
119
117
|
self._add_holiday_feb_6(name_election)
|
|
120
118
|
|
|
121
119
|
# Saint Joseph's Day.
|
holidays/countries/venezuela.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/countries/vietnam.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
from datetime import date
|
|
14
14
|
from gettext import gettext as tr
|
|
15
15
|
|
|
16
|
+
from holidays.calendars.chinese import VIETNAMESE_CALENDAR
|
|
16
17
|
from holidays.calendars.gregorian import (
|
|
17
18
|
JAN,
|
|
18
19
|
FEB,
|
|
@@ -59,7 +60,7 @@ class Vietnam(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHoliday
|
|
|
59
60
|
supported_languages = ("en_US", "th", "vi")
|
|
60
61
|
|
|
61
62
|
def __init__(self, *args, **kwargs):
|
|
62
|
-
ChineseCalendarHolidays.__init__(self)
|
|
63
|
+
ChineseCalendarHolidays.__init__(self, calendar=VIETNAMESE_CALENDAR)
|
|
63
64
|
InternationalHolidays.__init__(self)
|
|
64
65
|
StaticHolidays.__init__(self, VietnamStaticHolidays)
|
|
65
66
|
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_WORKDAY)
|
holidays/countries/zambia.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/countries/zimbabwe.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/financial/__init__.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/groups/__init__.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/groups/balinese_saka.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/groups/buddhist.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/groups/chinese.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
from datetime import date
|
|
14
14
|
from typing import Optional
|
|
15
15
|
|
|
16
|
-
from holidays.calendars import _ChineseLunisolar
|
|
16
|
+
from holidays.calendars.chinese import _ChineseLunisolar, CHINESE_CALENDAR
|
|
17
17
|
from holidays.calendars.gregorian import APR, DEC
|
|
18
18
|
from holidays.groups.eastern import EasternCalendarHolidays
|
|
19
19
|
|
|
@@ -23,8 +23,10 @@ class ChineseCalendarHolidays(EasternCalendarHolidays):
|
|
|
23
23
|
Chinese lunisolar calendar holidays.
|
|
24
24
|
"""
|
|
25
25
|
|
|
26
|
-
def __init__(self, cls=None, show_estimated=False) -> None:
|
|
27
|
-
self._chinese_calendar =
|
|
26
|
+
def __init__(self, cls=None, show_estimated=False, calendar=CHINESE_CALENDAR) -> None:
|
|
27
|
+
self._chinese_calendar = (
|
|
28
|
+
cls(calendar=calendar) if cls else _ChineseLunisolar(calendar=calendar)
|
|
29
|
+
)
|
|
28
30
|
self._chinese_calendar_show_estimated = show_estimated
|
|
29
31
|
|
|
30
32
|
@property
|
holidays/groups/christian.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -197,7 +197,7 @@ class ChristianHolidays:
|
|
|
197
197
|
|
|
198
198
|
def _add_carnival_tuesday(self, name) -> date:
|
|
199
199
|
"""
|
|
200
|
-
Add Carnival
|
|
200
|
+
Add Carnival Tuesday (47 days before Easter Sunday).
|
|
201
201
|
|
|
202
202
|
Carnival is a Catholic Christian festive season that occurs before
|
|
203
203
|
the liturgical season of Lent.
|
|
@@ -373,7 +373,7 @@ class ChristianHolidays:
|
|
|
373
373
|
|
|
374
374
|
Add Day Of Rejoicing ("Radonitsa"), in the Russian Orthodox Church is
|
|
375
375
|
a commemoration of the departed observed on the second Tuesday of
|
|
376
|
-
Pascha (Easter).In Ukrainian tradition it is called Provody.
|
|
376
|
+
Pascha (Easter). In Ukrainian tradition it is called Provody.
|
|
377
377
|
https://en.wikipedia.org/wiki/Radonitsa
|
|
378
378
|
"""
|
|
379
379
|
return self._add_holiday(name, _timedelta(self._easter_sunday, +9))
|
|
@@ -421,7 +421,7 @@ class ChristianHolidays:
|
|
|
421
421
|
|
|
422
422
|
def _add_saints_peter_and_paul_day(self, name) -> date:
|
|
423
423
|
"""
|
|
424
|
-
Feast of Saints Peter and Paul (June 29th).
|
|
424
|
+
Add Feast of Saints Peter and Paul (June 29th).
|
|
425
425
|
|
|
426
426
|
A liturgical feast in honor of the martyrdom in Rome of the apostles
|
|
427
427
|
Saint Peter and Saint Paul, which is observed on 29 June.
|
holidays/groups/custom.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/groups/eastern.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
holidays/groups/hebrew.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|