holidays 0.53__py3-none-any.whl → 0.55__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 -1
- holidays/countries/__init__.py +2 -0
- holidays/countries/algeria.py +11 -0
- holidays/countries/bangladesh.py +2 -0
- holidays/countries/brunei.py +17 -1
- holidays/countries/egypt.py +2 -0
- holidays/countries/finland.py +89 -3
- holidays/countries/israel.py +2 -1
- holidays/countries/jordan.py +5 -0
- holidays/countries/kuwait.py +5 -0
- holidays/countries/mauritania.py +82 -0
- holidays/countries/russia.py +10 -1
- holidays/countries/samoa.py +72 -0
- holidays/countries/singapore.py +8 -0
- holidays/countries/ukraine.py +48 -43
- holidays/locale/ar/LC_MESSAGES/UA.mo +0 -0
- holidays/locale/ar/LC_MESSAGES/UA.po +26 -19
- holidays/locale/en_US/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/FI.po +80 -4
- holidays/locale/en_US/LC_MESSAGES/UA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/UA.po +25 -19
- holidays/locale/fi/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/fi/LC_MESSAGES/FI.po +80 -4
- holidays/locale/sv_FI/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/sv_FI/LC_MESSAGES/FI.po +164 -0
- holidays/locale/uk/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/FI.po +80 -4
- holidays/locale/uk/LC_MESSAGES/UA.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/UA.po +24 -18
- holidays/registry.py +2 -0
- holidays/utils.py +3 -3
- {holidays-0.53.dist-info → holidays-0.55.dist-info}/AUTHORS +2 -0
- {holidays-0.53.dist-info → holidays-0.55.dist-info}/METADATA +17 -7
- {holidays-0.53.dist-info → holidays-0.55.dist-info}/RECORD +37 -35
- {holidays-0.53.dist-info → holidays-0.55.dist-info}/WHEEL +1 -1
- holidays/locale/sv/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/sv/LC_MESSAGES/FI.po +0 -88
- {holidays-0.53.dist-info → holidays-0.55.dist-info}/LICENSE +0 -0
- {holidays-0.53.dist-info → holidays-0.55.dist-info}/top_level.txt +0 -0
holidays/__init__.py
CHANGED
holidays/countries/__init__.py
CHANGED
|
@@ -101,6 +101,7 @@ from .malaysia import Malaysia, MY, MYS
|
|
|
101
101
|
from .maldives import Maldives, MV, MDV
|
|
102
102
|
from .malta import Malta, MT, MLT
|
|
103
103
|
from .marshall_islands import MarshallIslands, MH, MHL, HolidaysMH
|
|
104
|
+
from .mauritania import Mauritania, MR, MRT
|
|
104
105
|
from .mexico import Mexico, MX, MEX
|
|
105
106
|
from .moldova import Moldova, MD, MDA
|
|
106
107
|
from .monaco import Monaco, MC, MCO
|
|
@@ -127,6 +128,7 @@ from .portugal import Portugal, PT, PRT
|
|
|
127
128
|
from .puerto_rico import PuertoRico, PR, PRI, HolidaysPR
|
|
128
129
|
from .romania import Romania, RO, ROU
|
|
129
130
|
from .russia import Russia, RU, RUS
|
|
131
|
+
from .samoa import Samoa, WS, WSM
|
|
130
132
|
from .san_marino import SanMarino, SM, SMR
|
|
131
133
|
from .saudi_arabia import SaudiArabia, SA, SAU
|
|
132
134
|
from .serbia import Serbia, RS, SRB
|
holidays/countries/algeria.py
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
from gettext import gettext as tr
|
|
14
14
|
|
|
15
|
+
from holidays.calendars.gregorian import THU, FRI, SAT, SUN
|
|
15
16
|
from holidays.groups import InternationalHolidays, IslamicHolidays
|
|
16
17
|
from holidays.holiday_base import HolidayBase
|
|
17
18
|
|
|
@@ -38,6 +39,16 @@ class Algeria(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
38
39
|
super().__init__(*args, **kwargs)
|
|
39
40
|
|
|
40
41
|
def _populate_public_holidays(self):
|
|
42
|
+
# The resting days are Friday and Saturday since 2009.
|
|
43
|
+
# Previously, these were on Thursday and Friday as implemented in 1976.
|
|
44
|
+
# https://www.thenationalnews.com/mena/2021/12/07/when-is-the-weekend-in-the-arab-world/
|
|
45
|
+
if self._year >= 2009:
|
|
46
|
+
self.weekend = {FRI, SAT}
|
|
47
|
+
elif self._year >= 1976:
|
|
48
|
+
self.weekend = {THU, FRI}
|
|
49
|
+
else:
|
|
50
|
+
self.weekend = {SAT, SUN}
|
|
51
|
+
|
|
41
52
|
# New Year's Day.
|
|
42
53
|
self._add_new_years_day(tr("رأس السنة الميلادية"))
|
|
43
54
|
|
holidays/countries/bangladesh.py
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
# Website: https://github.com/vacanza/python-holidays
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
|
+
from holidays.calendars.gregorian import FRI, SAT
|
|
13
14
|
from holidays.groups import InternationalHolidays
|
|
14
15
|
from holidays.holiday_base import HolidayBase
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ class Bangladesh(HolidayBase, InternationalHolidays):
|
|
|
22
23
|
"""
|
|
23
24
|
|
|
24
25
|
country = "BD"
|
|
26
|
+
weekend = {FRI, SAT}
|
|
25
27
|
|
|
26
28
|
def __init__(self, *args, **kwargs):
|
|
27
29
|
InternationalHolidays.__init__(self)
|
holidays/countries/brunei.py
CHANGED
|
@@ -13,7 +13,22 @@
|
|
|
13
13
|
from gettext import gettext as tr
|
|
14
14
|
|
|
15
15
|
from holidays.calendars import _CustomIslamicHolidays
|
|
16
|
-
from holidays.calendars.gregorian import
|
|
16
|
+
from holidays.calendars.gregorian import (
|
|
17
|
+
JAN,
|
|
18
|
+
FEB,
|
|
19
|
+
MAR,
|
|
20
|
+
APR,
|
|
21
|
+
MAY,
|
|
22
|
+
JUN,
|
|
23
|
+
JUL,
|
|
24
|
+
AUG,
|
|
25
|
+
SEP,
|
|
26
|
+
OCT,
|
|
27
|
+
NOV,
|
|
28
|
+
DEC,
|
|
29
|
+
FRI,
|
|
30
|
+
SUN,
|
|
31
|
+
)
|
|
17
32
|
from holidays.groups import (
|
|
18
33
|
ChineseCalendarHolidays,
|
|
19
34
|
ChristianHolidays,
|
|
@@ -75,6 +90,7 @@ class Brunei(
|
|
|
75
90
|
# %s (observed, estimated).
|
|
76
91
|
observed_estimated_label = tr("%s (diperhatikan, anggaran)")
|
|
77
92
|
supported_languages = ("en_US", "ms", "th")
|
|
93
|
+
weekend = {FRI, SUN}
|
|
78
94
|
|
|
79
95
|
def __init__(self, *args, **kwargs):
|
|
80
96
|
ChineseCalendarHolidays.__init__(self)
|
holidays/countries/egypt.py
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
from gettext import gettext as tr
|
|
14
14
|
|
|
15
|
+
from holidays.calendars.gregorian import FRI, SAT
|
|
15
16
|
from holidays.calendars.julian import JULIAN_CALENDAR
|
|
16
17
|
from holidays.groups import ChristianHolidays, IslamicHolidays, InternationalHolidays
|
|
17
18
|
from holidays.holiday_base import HolidayBase
|
|
@@ -32,6 +33,7 @@ class Egypt(HolidayBase, ChristianHolidays, IslamicHolidays, InternationalHolida
|
|
|
32
33
|
# %s (estimated).
|
|
33
34
|
estimated_label = tr("(تقدير) %s")
|
|
34
35
|
supported_languages = ("ar", "en_US")
|
|
36
|
+
weekend = {FRI, SAT}
|
|
35
37
|
|
|
36
38
|
def __init__(self, *args, **kwargs):
|
|
37
39
|
ChristianHolidays.__init__(self, JULIAN_CALENDAR)
|
holidays/countries/finland.py
CHANGED
|
@@ -13,18 +13,27 @@
|
|
|
13
13
|
from gettext import gettext as tr
|
|
14
14
|
|
|
15
15
|
from holidays.calendars.gregorian import _timedelta
|
|
16
|
+
from holidays.constants import PUBLIC, UNOFFICIAL
|
|
16
17
|
from holidays.groups import ChristianHolidays, InternationalHolidays
|
|
17
18
|
from holidays.holiday_base import HolidayBase
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
class Finland(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
21
22
|
"""
|
|
22
|
-
|
|
23
|
+
References:
|
|
24
|
+
- https://en.wikipedia.org/wiki/Public_holidays_in_Finland
|
|
25
|
+
- `Bank holidays (Finnish) <https://www.suomenpankki.fi/fi/raha-ja-maksaminen/pankkivapaapaivat/>`_
|
|
26
|
+
- `Bank holidays (English) <https://www.suomenpankki.fi/en/money-and-payments/bank-holidays/>`_
|
|
27
|
+
- `Bank holidays (Swedish) <https://www.suomenpankki.fi/sv/pengar-och-betalningar/bankfria-dagar-i-finland/>`_
|
|
28
|
+
- https://en.wikipedia.org/wiki/Flag_flying_days_in_Finland#Customary_flag_days
|
|
29
|
+
- https://intermin.fi/en/flag-and-arms/flag-flying-days
|
|
30
|
+
- https://intermin.fi/en/flag-and-arms/flag-days/2024
|
|
23
31
|
"""
|
|
24
32
|
|
|
25
33
|
country = "FI"
|
|
26
34
|
default_language = "fi"
|
|
27
|
-
supported_languages = ("en_US", "fi", "
|
|
35
|
+
supported_languages = ("en_US", "fi", "sv_FI", "uk")
|
|
36
|
+
supported_categories = (PUBLIC, UNOFFICIAL)
|
|
28
37
|
|
|
29
38
|
def __init__(self, *args, **kwargs):
|
|
30
39
|
ChristianHolidays.__init__(self)
|
|
@@ -49,7 +58,7 @@ class Finland(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
49
58
|
self._add_easter_sunday(tr("Pääsiäispäivä"))
|
|
50
59
|
|
|
51
60
|
# Easter Monday.
|
|
52
|
-
self._add_easter_monday(tr("
|
|
61
|
+
self._add_easter_monday(tr("Toinen pääsiäispäivä"))
|
|
53
62
|
|
|
54
63
|
# May Day.
|
|
55
64
|
self._add_holiday_may_1(tr("Vappu"))
|
|
@@ -93,6 +102,83 @@ class Finland(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
93
102
|
# Second Day of Christmas.
|
|
94
103
|
self._add_christmas_day_two(tr("Tapaninpäivä"))
|
|
95
104
|
|
|
105
|
+
def _populate_unofficial_holidays(self):
|
|
106
|
+
if self._year >= 1854:
|
|
107
|
+
# Runeberg Day
|
|
108
|
+
self._add_holiday_feb_5(tr("Runebergin päivä"))
|
|
109
|
+
|
|
110
|
+
if self._year >= 1860:
|
|
111
|
+
# Kalevala Day, Day of Finnish Culture
|
|
112
|
+
self._add_holiday_feb_28(tr("Kalevalan päivä, suomalaisen kulttuurin päivä"))
|
|
113
|
+
|
|
114
|
+
if self._year >= 2007:
|
|
115
|
+
# Minna Canth Day, Day of Equality
|
|
116
|
+
self._add_holiday_mar_19(tr("Minna Canthin päivä, tasa-arvon päivä"))
|
|
117
|
+
|
|
118
|
+
if self._year >= 1978:
|
|
119
|
+
# Mikael Agricola Day, Day of the Finnish Language
|
|
120
|
+
self._add_holiday_apr_9(tr("Mikael Agricolan päivä, suomen kielen päivä"))
|
|
121
|
+
|
|
122
|
+
if self._year >= 1987:
|
|
123
|
+
# National War Veterans' Day
|
|
124
|
+
self._add_holiday_apr_27(tr("Kansallinen veteraanipäivä"))
|
|
125
|
+
|
|
126
|
+
if self._year >= 2019:
|
|
127
|
+
# Europe Day
|
|
128
|
+
self._add_holiday_may_9(tr("Eurooppa-päivä"))
|
|
129
|
+
|
|
130
|
+
if self._year >= 1918:
|
|
131
|
+
# Mothers' Day
|
|
132
|
+
self._add_holiday_2nd_sun_of_may(tr("Äitienpäivä"))
|
|
133
|
+
|
|
134
|
+
if self._year >= 1952:
|
|
135
|
+
# J. V. Snellman Day, Day of Finnish Heritage
|
|
136
|
+
self._add_holiday_may_12(tr("J.V. Snellmanin päivä, suomalaisuuden päivä"))
|
|
137
|
+
|
|
138
|
+
if self._year >= 1977:
|
|
139
|
+
# Remembrance Day
|
|
140
|
+
self._add_holiday_3rd_sun_of_may(tr("Kaatuneitten muistopäivä"))
|
|
141
|
+
|
|
142
|
+
if self._year >= 1942:
|
|
143
|
+
# Flag Day of the Finnish Defense Forces
|
|
144
|
+
self._add_holiday_jun_6(tr("Puolustusvoimain lippujuhlan päivä"))
|
|
145
|
+
|
|
146
|
+
if self._year >= 1992:
|
|
147
|
+
# Eino Leino Day, Day of Summer and Poetry
|
|
148
|
+
self._add_holiday_jul_6(tr("Eino Leinon päivä, runon ja suven päivä"))
|
|
149
|
+
|
|
150
|
+
if self._year >= 2013:
|
|
151
|
+
# Finland's Nature Day
|
|
152
|
+
self._add_holiday_last_sat_of_aug(tr("Suomen luonnon päivä"))
|
|
153
|
+
|
|
154
|
+
if self._year >= 2016:
|
|
155
|
+
# Miina Sillanpää Day, Day of Civic Participation
|
|
156
|
+
self._add_holiday_oct_1(tr("Miina Sillanpään ja kansalaisvaikuttamisen päivä"))
|
|
157
|
+
|
|
158
|
+
if self._year >= 1950:
|
|
159
|
+
# Aleksis Kivi Day, Day of Finnish Literature
|
|
160
|
+
self._add_holiday_oct_10(tr("Aleksis Kiven päivä, suomalaisen kirjallisuuden päivä"))
|
|
161
|
+
|
|
162
|
+
if self._year >= 1987:
|
|
163
|
+
# United Nations Day
|
|
164
|
+
self._add_united_nations_day(tr("YK:n päivä"))
|
|
165
|
+
|
|
166
|
+
if self._year >= 1908:
|
|
167
|
+
# Finnish Swedish Heritage Day, svenska dagen
|
|
168
|
+
self._add_holiday_nov_6(tr("Ruotsalaisuuden päivä, Kustaa Aadolfin päivä"))
|
|
169
|
+
|
|
170
|
+
if self._year >= 1949:
|
|
171
|
+
# Fathers' Day
|
|
172
|
+
self._add_holiday_2nd_sun_of_nov(tr("Isänpäivä"))
|
|
173
|
+
|
|
174
|
+
if self._year >= 2020:
|
|
175
|
+
# Day of Children's Rights
|
|
176
|
+
self._add_holiday_nov_20(tr("Lapsen oikeuksien päivä"))
|
|
177
|
+
|
|
178
|
+
if self._year >= 2007:
|
|
179
|
+
# Jean Sibelius Day, Day of Finnish Music
|
|
180
|
+
self._add_holiday_dec_8(tr("Jean Sibeliuksen päivä, suomalaisen musiikin päivä"))
|
|
181
|
+
|
|
96
182
|
|
|
97
183
|
class FI(Finland):
|
|
98
184
|
pass
|
holidays/countries/israel.py
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
from gettext import gettext as tr
|
|
14
14
|
|
|
15
15
|
from holidays.calendars import _HebrewLunisolar
|
|
16
|
-
from holidays.calendars.gregorian import _timedelta
|
|
16
|
+
from holidays.calendars.gregorian import _timedelta, FRI, SAT
|
|
17
17
|
from holidays.calendars.hebrew import (
|
|
18
18
|
HANUKKAH,
|
|
19
19
|
INDEPENDENCE_DAY,
|
|
@@ -53,6 +53,7 @@ class Israel(ObservedHolidayBase):
|
|
|
53
53
|
observed_label = tr("(נצפה) %s")
|
|
54
54
|
supported_categories = (OPTIONAL, PUBLIC, SCHOOL)
|
|
55
55
|
supported_languages = ("en_US", "he", "uk")
|
|
56
|
+
weekend = {FRI, SAT}
|
|
56
57
|
|
|
57
58
|
def __init__(self, *args, **kwargs):
|
|
58
59
|
kwargs.setdefault("observed_rule", FRI_TO_PREV_THU + SAT_TO_PREV_THU)
|
holidays/countries/jordan.py
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
from gettext import gettext as tr
|
|
14
14
|
|
|
15
|
+
from holidays.calendars.gregorian import THU, FRI, SAT
|
|
15
16
|
from holidays.groups import ChristianHolidays, InternationalHolidays, IslamicHolidays
|
|
16
17
|
from holidays.holiday_base import HolidayBase
|
|
17
18
|
|
|
@@ -36,6 +37,10 @@ class Jordan(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolid
|
|
|
36
37
|
super().__init__(*args, **kwargs)
|
|
37
38
|
|
|
38
39
|
def _populate_public_holidays(self):
|
|
40
|
+
# The resting days are Friday and Saturday since Jan 6, 2000.
|
|
41
|
+
# https://archive.wfn.org/2000/01/msg00078.html
|
|
42
|
+
self.weekend = {FRI, SAT} if self._year >= 2000 else {THU, FRI}
|
|
43
|
+
|
|
39
44
|
# New Year's Day.
|
|
40
45
|
self._add_new_years_day(tr("رأس السنة الميلادية"))
|
|
41
46
|
|
holidays/countries/kuwait.py
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
from gettext import gettext as tr
|
|
14
14
|
|
|
15
|
+
from holidays.calendars.gregorian import THU, FRI, SAT
|
|
15
16
|
from holidays.groups import InternationalHolidays, IslamicHolidays
|
|
16
17
|
from holidays.holiday_base import HolidayBase
|
|
17
18
|
|
|
@@ -36,6 +37,10 @@ class Kuwait(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
36
37
|
super().__init__(*args, **kwargs)
|
|
37
38
|
|
|
38
39
|
def _populate_public_holidays(self):
|
|
40
|
+
# The resting days are Friday and Saturday since Sep 1, 2007.
|
|
41
|
+
# https://www.arabnews.com/node/298933
|
|
42
|
+
self.weekend = {FRI, SAT} if self._year >= 2007 else {THU, FRI}
|
|
43
|
+
|
|
39
44
|
# New Year's Day.
|
|
40
45
|
self._add_new_years_day(tr("رأس السنة الميلادية"))
|
|
41
46
|
|
|
@@ -0,0 +1,82 @@
|
|
|
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 AUTHORS 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/python-holidays
|
|
11
|
+
# License: MIT (see LICENSE file)
|
|
12
|
+
|
|
13
|
+
# python-holidays
|
|
14
|
+
# ---------------
|
|
15
|
+
# A fast, efficient Python library for generating country, province and state
|
|
16
|
+
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
17
|
+
# specific date is a holiday as fast and flexible as possible.
|
|
18
|
+
#
|
|
19
|
+
# Authors: dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
20
|
+
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
21
|
+
# Website: https://github.com/dr-prodigy/python-holidays
|
|
22
|
+
# License: MIT (see LICENSE file)
|
|
23
|
+
|
|
24
|
+
from holidays.calendars.gregorian import FRI, SAT
|
|
25
|
+
from holidays.groups import InternationalHolidays, IslamicHolidays
|
|
26
|
+
from holidays.holiday_base import HolidayBase
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class Mauritania(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
30
|
+
"""
|
|
31
|
+
References:
|
|
32
|
+
- https://en.wikipedia.org/wiki/Public_holidays_in_Mauritania
|
|
33
|
+
- https://www.timeanddate.com/holidays/mauritania/
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
country = "MR"
|
|
37
|
+
weekend = {FRI, SAT}
|
|
38
|
+
|
|
39
|
+
def __init__(self, *args, **kwargs):
|
|
40
|
+
InternationalHolidays.__init__(self)
|
|
41
|
+
IslamicHolidays.__init__(self)
|
|
42
|
+
|
|
43
|
+
super().__init__(*args, **kwargs)
|
|
44
|
+
|
|
45
|
+
def _populate(self, year):
|
|
46
|
+
super()._populate(year)
|
|
47
|
+
|
|
48
|
+
# New Year's Day.
|
|
49
|
+
self._add_new_years_day("New Year's Day")
|
|
50
|
+
|
|
51
|
+
# Labor Day.
|
|
52
|
+
self._add_labor_day("Labor Day")
|
|
53
|
+
|
|
54
|
+
# Africa Day.
|
|
55
|
+
self._add_africa_day("Africa Day")
|
|
56
|
+
|
|
57
|
+
# Independence Day.
|
|
58
|
+
if year >= 1960:
|
|
59
|
+
self._add_holiday_nov_28("Independence Day")
|
|
60
|
+
|
|
61
|
+
# Islamic holidays.
|
|
62
|
+
# Eid al-Fitr.
|
|
63
|
+
self._add_eid_al_fitr_day("Eid al-Fitr")
|
|
64
|
+
self._add_eid_al_fitr_day_two("Eid al-Fitr")
|
|
65
|
+
|
|
66
|
+
# Eid al-Adha.
|
|
67
|
+
self._add_eid_al_adha_day("Eid al-Adha")
|
|
68
|
+
self._add_eid_al_adha_day_two("Eid al-Adha")
|
|
69
|
+
|
|
70
|
+
# Muharram/Islamic New Year.
|
|
71
|
+
self._add_islamic_new_year_day("Islamic New Year")
|
|
72
|
+
|
|
73
|
+
# Prophet Muhammad's Birthday.
|
|
74
|
+
self._add_mawlid_day("Mawlid al-Nabi")
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class MR(Mauritania):
|
|
78
|
+
pass
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class MRT(Mauritania):
|
|
82
|
+
pass
|
holidays/countries/russia.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, APR, MAY, NOV, DEC
|
|
15
|
+
from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, JUN, NOV, DEC
|
|
16
16
|
from holidays.calendars.julian import JULIAN_CALENDAR
|
|
17
17
|
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
18
18
|
from holidays.holiday_base import HolidayBase
|
|
@@ -134,4 +134,13 @@ class RussiaStaticHolidays:
|
|
|
134
134
|
(DEC, 30, DEC, 28),
|
|
135
135
|
(DEC, 31, JAN, 7),
|
|
136
136
|
),
|
|
137
|
+
# Substituted Holidays 2025
|
|
138
|
+
# src: https://www.consultant.ru/document/cons_doc_LAW_481586/
|
|
139
|
+
2025: (
|
|
140
|
+
(MAY, 2, JAN, 4),
|
|
141
|
+
(DEC, 31, JAN, 5),
|
|
142
|
+
(MAY, 8, FEB, 23),
|
|
143
|
+
(JUN, 13, MAR, 8),
|
|
144
|
+
(NOV, 3, NOV, 1),
|
|
145
|
+
),
|
|
137
146
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 AUTHORS 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/python-holidays
|
|
11
|
+
# License: MIT (see LICENSE file)
|
|
12
|
+
|
|
13
|
+
from holidays.groups import ChristianHolidays, InternationalHolidays
|
|
14
|
+
from holidays.holiday_base import HolidayBase
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class Samoa(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
18
|
+
"""
|
|
19
|
+
References:
|
|
20
|
+
- https://en.wikipedia.org/wiki/Public_holidays_in_Samoa
|
|
21
|
+
- https://www.timeanddate.com/holidays/samoa/
|
|
22
|
+
- https://www.mcil.gov.ws/?attachment_id=6336
|
|
23
|
+
- https://www.paclii.org/ws/legis/consol_act_2020/pha2008163/
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
country = "WS"
|
|
27
|
+
|
|
28
|
+
def __init__(self, *args, **kwargs):
|
|
29
|
+
ChristianHolidays.__init__(self)
|
|
30
|
+
InternationalHolidays.__init__(self)
|
|
31
|
+
|
|
32
|
+
super().__init__(*args, **kwargs)
|
|
33
|
+
|
|
34
|
+
def _populate(self, year):
|
|
35
|
+
super()._populate(year)
|
|
36
|
+
|
|
37
|
+
# New Year's Day.
|
|
38
|
+
self._add_new_years_day("New Year's Day")
|
|
39
|
+
self._add_new_years_day_two("The Day After New Year's Day")
|
|
40
|
+
|
|
41
|
+
# Good Friday.
|
|
42
|
+
self._add_good_friday("Good Friday")
|
|
43
|
+
self._add_holy_saturday("Day After Good Friday")
|
|
44
|
+
|
|
45
|
+
# Easter Monday.
|
|
46
|
+
self._add_easter_monday("Easter Monday")
|
|
47
|
+
|
|
48
|
+
# Mother's Day.
|
|
49
|
+
self._add_holiday_1_day_past_2nd_sun_of_may("Mother's Day")
|
|
50
|
+
|
|
51
|
+
# Independence Day.
|
|
52
|
+
self._add_holiday_jun_1("Independence Day")
|
|
53
|
+
|
|
54
|
+
# Father's Day.
|
|
55
|
+
self._add_holiday_1_day_past_2nd_sun_of_aug("Father's Day")
|
|
56
|
+
|
|
57
|
+
# White Monday (Lotu a Tamaiti).
|
|
58
|
+
self._add_holiday_1_day_past_2nd_sun_of_oct("White Sunday (Lotu a Tamaiti)")
|
|
59
|
+
|
|
60
|
+
# Christmas Day.
|
|
61
|
+
self._add_christmas_day("Christmas Day")
|
|
62
|
+
|
|
63
|
+
# Boxing Day.
|
|
64
|
+
self._add_christmas_day_two("Boxing Day")
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class WS(Samoa):
|
|
68
|
+
pass
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class WSM(Samoa):
|
|
72
|
+
pass
|
holidays/countries/singapore.py
CHANGED
|
@@ -177,6 +177,7 @@ class SingaporeBuddhistHolidays(_CustomBuddhistHolidays):
|
|
|
177
177
|
2022: (MAY, 15),
|
|
178
178
|
2023: (JUN, 2),
|
|
179
179
|
2024: (MAY, 22),
|
|
180
|
+
2025: (MAY, 12),
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
|
|
@@ -206,10 +207,12 @@ class SingaporeChineseHolidays(_CustomChineseHolidays):
|
|
|
206
207
|
2022: (FEB, 1),
|
|
207
208
|
2023: (JAN, 22),
|
|
208
209
|
2024: (FEB, 10),
|
|
210
|
+
2025: (JAN, 29),
|
|
209
211
|
}
|
|
210
212
|
|
|
211
213
|
|
|
212
214
|
class SingaporeHinduHolidays(_CustomHinduHolidays):
|
|
215
|
+
# Deepavali
|
|
213
216
|
DIWALI_DATES = {
|
|
214
217
|
2001: (NOV, 14),
|
|
215
218
|
2002: (NOV, 3),
|
|
@@ -235,10 +238,12 @@ class SingaporeHinduHolidays(_CustomHinduHolidays):
|
|
|
235
238
|
2022: (OCT, 24),
|
|
236
239
|
2023: (NOV, 12),
|
|
237
240
|
2024: (OCT, 31),
|
|
241
|
+
2025: (OCT, 20),
|
|
238
242
|
}
|
|
239
243
|
|
|
240
244
|
|
|
241
245
|
class SingaporeIslamicHolidays(_CustomIslamicHolidays):
|
|
246
|
+
# Hari Raya Haji
|
|
242
247
|
EID_AL_ADHA_DATES = {
|
|
243
248
|
2001: (MAR, 6),
|
|
244
249
|
2002: (FEB, 23),
|
|
@@ -264,8 +269,10 @@ class SingaporeIslamicHolidays(_CustomIslamicHolidays):
|
|
|
264
269
|
2022: (JUL, 10),
|
|
265
270
|
2023: (JUN, 29),
|
|
266
271
|
2024: (JUN, 17),
|
|
272
|
+
2025: (JUN, 7),
|
|
267
273
|
}
|
|
268
274
|
|
|
275
|
+
# Hari Raya Puasa
|
|
269
276
|
EID_AL_FITR_DATES = {
|
|
270
277
|
2001: (DEC, 16),
|
|
271
278
|
2002: (DEC, 6),
|
|
@@ -291,6 +298,7 @@ class SingaporeIslamicHolidays(_CustomIslamicHolidays):
|
|
|
291
298
|
2022: (MAY, 3),
|
|
292
299
|
2023: (APR, 22),
|
|
293
300
|
2024: (APR, 10),
|
|
301
|
+
2025: (MAR, 31),
|
|
294
302
|
}
|
|
295
303
|
|
|
296
304
|
|