holidays 0.83__py3-none-any.whl → 0.85__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 +0 -2
- holidays/calendars/__init__.py +0 -2
- holidays/calendars/balinese_saka.py +2 -3
- holidays/calendars/buddhist.py +3 -4
- holidays/calendars/burmese.py +9 -10
- holidays/calendars/chinese.py +8 -9
- holidays/calendars/hebrew.py +10 -11
- holidays/calendars/hindu.py +27 -28
- holidays/calendars/mandaean.py +2 -3
- holidays/calendars/mongolian.py +4 -5
- holidays/calendars/persian.py +2 -3
- holidays/calendars/sinhala.py +25 -14
- holidays/calendars/thai.py +13 -14
- holidays/calendars/tibetan.py +12 -13
- holidays/constants.py +0 -2
- holidays/countries/__init__.py +0 -2
- holidays/countries/aland_islands.py +4 -4
- holidays/countries/american_samoa.py +4 -4
- holidays/countries/angola.py +1 -2
- holidays/countries/austria.py +1 -1
- holidays/countries/azerbaijan.py +2 -0
- holidays/countries/china.py +10 -1
- holidays/countries/ecuador.py +12 -4
- holidays/countries/french_guiana.py +4 -4
- holidays/countries/french_polynesia.py +4 -4
- holidays/countries/french_southern_territories.py +4 -4
- holidays/countries/guadeloupe.py +4 -4
- holidays/countries/guam.py +4 -4
- holidays/countries/guernsey.py +1 -2
- holidays/countries/italy.py +2 -2
- holidays/countries/jersey.py +1 -2
- holidays/countries/malta.py +1 -1
- holidays/countries/marshall_islands.py +8 -6
- holidays/countries/martinique.py +4 -4
- holidays/countries/mauritania.py +2 -4
- holidays/countries/mayotte.py +4 -4
- holidays/countries/new_caledonia.py +4 -4
- holidays/countries/northern_mariana_islands.py +4 -4
- holidays/countries/portugal.py +6 -3
- holidays/countries/puerto_rico.py +4 -4
- holidays/countries/reunion.py +4 -4
- holidays/countries/saint_barthelemy.py +4 -4
- holidays/countries/saint_martin.py +4 -4
- holidays/countries/saint_pierre_and_miquelon.py +4 -4
- holidays/countries/samoa.py +1 -3
- holidays/countries/sint_maarten.py +1 -1
- holidays/countries/spain.py +418 -214
- holidays/countries/sri_lanka.py +37 -33
- holidays/countries/svalbard_and_jan_mayen.py +4 -4
- holidays/countries/taiwan.py +2 -2
- holidays/countries/thailand.py +4 -1
- holidays/countries/turkey.py +7 -4
- holidays/countries/united_kingdom.py +1 -2
- holidays/countries/united_states.py +5 -2
- holidays/countries/united_states_minor_outlying_islands.py +4 -4
- holidays/countries/united_states_virgin_islands.py +4 -4
- holidays/countries/wallis_and_futuna.py +4 -4
- holidays/financial/__init__.py +1 -3
- holidays/financial/ice_futures_europe.py +6 -2
- holidays/financial/national_stock_exchange_of_india.py +141 -38
- holidays/groups/__init__.py +0 -2
- holidays/groups/balinese_saka.py +2 -3
- holidays/groups/buddhist.py +4 -5
- holidays/groups/burmese.py +11 -12
- holidays/groups/chinese.py +18 -19
- holidays/groups/christian.py +20 -0
- holidays/groups/eastern.py +2 -3
- holidays/groups/hebrew.py +7 -10
- holidays/groups/hindu.py +36 -37
- holidays/groups/mandaean.py +13 -14
- holidays/groups/mongolian.py +7 -8
- holidays/groups/persian.py +14 -15
- holidays/groups/sinhala.py +13 -14
- holidays/groups/thai.py +12 -13
- holidays/groups/tibetan.py +16 -17
- holidays/holiday_base.py +34 -33
- holidays/ical.py +1 -2
- holidays/locale/ca/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/en_IN/LC_MESSAGES/XNSE.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/EC.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/LK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/US.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/XNSE.mo +0 -0
- holidays/locale/es/LC_MESSAGES/EC.mo +0 -0
- holidays/locale/es/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/XNSE.mo +0 -0
- holidays/locale/si_LK/LC_MESSAGES/LK.mo +0 -0
- holidays/locale/ta_LK/LC_MESSAGES/LK.mo +0 -0
- holidays/locale/th/LC_MESSAGES/CN.mo +0 -0
- holidays/locale/th/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/th/LC_MESSAGES/KR.mo +0 -0
- holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/th/LC_MESSAGES/US.mo +0 -0
- holidays/locale/tr/LC_MESSAGES/TR.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/EC.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/TR.mo +0 -0
- holidays/mixins/__init__.py +0 -2
- holidays/mixins/child_entity.py +1 -3
- holidays/observed_holiday_base.py +12 -13
- holidays/registry.py +4 -4
- holidays/utils.py +13 -14
- holidays/version.py +1 -1
- {holidays-0.83.dist-info → holidays-0.85.dist-info}/METADATA +4 -5
- {holidays-0.83.dist-info → holidays-0.85.dist-info}/RECORD +112 -111
- {holidays-0.83.dist-info → holidays-0.85.dist-info}/licenses/CONTRIBUTORS +2 -0
- {holidays-0.83.dist-info → holidays-0.85.dist-info}/WHEEL +0 -0
- {holidays-0.83.dist-info → holidays-0.85.dist-info}/licenses/LICENSE +0 -0
- {holidays-0.83.dist-info → holidays-0.85.dist-info}/top_level.txt +0 -0
holidays/countries/mauritania.py
CHANGED
|
@@ -39,9 +39,7 @@ class Mauritania(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
39
39
|
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
|
40
40
|
super().__init__(*args, **kwargs)
|
|
41
41
|
|
|
42
|
-
def
|
|
43
|
-
super()._populate(year)
|
|
44
|
-
|
|
42
|
+
def _populate_public_holidays(self):
|
|
45
43
|
# New Year's Day.
|
|
46
44
|
self._add_new_years_day("New Year's Day")
|
|
47
45
|
|
|
@@ -52,7 +50,7 @@ class Mauritania(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
52
50
|
self._add_africa_day("Africa Day")
|
|
53
51
|
|
|
54
52
|
# Independence Day.
|
|
55
|
-
if
|
|
53
|
+
if self._year >= 1960:
|
|
56
54
|
self._add_holiday_nov_28("Independence Day")
|
|
57
55
|
|
|
58
56
|
# Islamic holidays.
|
holidays/countries/mayotte.py
CHANGED
|
@@ -14,7 +14,7 @@ from holidays.countries.france import France
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class Mayotte(ChildEntity, France):
|
|
18
18
|
"""Mayotte holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a French subdivision that is also officially assigned
|
|
@@ -32,13 +32,13 @@ class HolidaysYT(ChildEntity, France):
|
|
|
32
32
|
start_year = 1842
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
class Mayotte
|
|
35
|
+
class HolidaysYT(Mayotte):
|
|
36
36
|
pass
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
class YT(
|
|
39
|
+
class YT(Mayotte):
|
|
40
40
|
pass
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
class MYT(
|
|
43
|
+
class MYT(Mayotte):
|
|
44
44
|
pass
|
|
@@ -14,7 +14,7 @@ from holidays.countries.france import France
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class NewCaledonia(ChildEntity, France):
|
|
18
18
|
"""New Caledonia holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a French subdivision that is also officially assigned
|
|
@@ -31,13 +31,13 @@ class HolidaysNC(ChildEntity, France):
|
|
|
31
31
|
start_year = 1854
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class NewCaledonia
|
|
34
|
+
class HolidaysNC(NewCaledonia):
|
|
35
35
|
pass
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class NC(
|
|
38
|
+
class NC(NewCaledonia):
|
|
39
39
|
pass
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
class NCL(
|
|
42
|
+
class NCL(NewCaledonia):
|
|
43
43
|
pass
|
|
@@ -14,7 +14,7 @@ from holidays.countries.united_states import UnitedStates
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class NorthernMarianaIslands(ChildEntity, UnitedStates):
|
|
18
18
|
"""Northern Mariana Islands (the) holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
|
|
@@ -27,13 +27,13 @@ class HolidaysMP(ChildEntity, UnitedStates):
|
|
|
27
27
|
start_year = 1948
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class NorthernMarianaIslands
|
|
30
|
+
class HolidaysMP(NorthernMarianaIslands):
|
|
31
31
|
pass
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class MP(
|
|
34
|
+
class MP(NorthernMarianaIslands):
|
|
35
35
|
pass
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class MNP(
|
|
38
|
+
class MNP(NorthernMarianaIslands):
|
|
39
39
|
pass
|
holidays/countries/portugal.py
CHANGED
|
@@ -166,7 +166,7 @@ class Portugal(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
166
166
|
self._add_carnival_tuesday(tr("Carnaval"))
|
|
167
167
|
|
|
168
168
|
# Saint Anthony's Day.
|
|
169
|
-
self.
|
|
169
|
+
self._add_saint_anthonys_day(tr("Dia de Santo António"))
|
|
170
170
|
|
|
171
171
|
# Christmas Eve.
|
|
172
172
|
self._add_christmas_eve(tr("Véspera de Natal"))
|
|
@@ -225,13 +225,15 @@ class Portugal(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
225
225
|
self._add_holiday_may_22(tr("Dia do Município de Leiria"))
|
|
226
226
|
|
|
227
227
|
def _populate_subdiv_11_public_holidays(self):
|
|
228
|
-
|
|
228
|
+
# Saint Anthony's Day.
|
|
229
|
+
self._add_saint_anthonys_day(tr("Dia de Santo António"))
|
|
229
230
|
|
|
230
231
|
def _populate_subdiv_12_public_holidays(self):
|
|
231
232
|
# Municipal Holiday of Portalegre.
|
|
232
233
|
self._add_holiday_may_23(tr("Dia do Município de Portalegre"))
|
|
233
234
|
|
|
234
235
|
def _populate_subdiv_13_public_holidays(self):
|
|
236
|
+
# Saint John's Day.
|
|
235
237
|
self._add_saint_johns_day(tr("Dia de São João"))
|
|
236
238
|
|
|
237
239
|
def _populate_subdiv_14_public_holidays(self):
|
|
@@ -247,7 +249,8 @@ class Portugal(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
247
249
|
self._add_holiday_aug_20(tr("Dia de Nossa Senhora da Agonia"))
|
|
248
250
|
|
|
249
251
|
def _populate_subdiv_17_public_holidays(self):
|
|
250
|
-
|
|
252
|
+
# Saint Anthony's Day.
|
|
253
|
+
self._add_saint_anthonys_day(tr("Dia de Santo António"))
|
|
251
254
|
|
|
252
255
|
def _populate_subdiv_18_public_holidays(self):
|
|
253
256
|
# Saint Matthew's Day.
|
|
@@ -14,7 +14,7 @@ from holidays.countries.united_states import UnitedStates
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class PuertoRico(ChildEntity, UnitedStates):
|
|
18
18
|
"""Puerto Rico holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
|
|
@@ -27,13 +27,13 @@ class HolidaysPR(ChildEntity, UnitedStates):
|
|
|
27
27
|
start_year = 1900
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class PuertoRico
|
|
30
|
+
class HolidaysPR(PuertoRico):
|
|
31
31
|
pass
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class PR(
|
|
34
|
+
class PR(PuertoRico):
|
|
35
35
|
pass
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class PRI(
|
|
38
|
+
class PRI(PuertoRico):
|
|
39
39
|
pass
|
holidays/countries/reunion.py
CHANGED
|
@@ -14,7 +14,7 @@ from holidays.countries.france import France
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class Reunion(ChildEntity, France):
|
|
18
18
|
"""Réunion holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a French subdivision that is also officially assigned
|
|
@@ -32,13 +32,13 @@ class HolidaysRE(ChildEntity, France):
|
|
|
32
32
|
start_year = 1815
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
class Reunion
|
|
35
|
+
class HolidaysRE(Reunion):
|
|
36
36
|
pass
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
class RE(
|
|
39
|
+
class RE(Reunion):
|
|
40
40
|
pass
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
class REU(
|
|
43
|
+
class REU(Reunion):
|
|
44
44
|
pass
|
|
@@ -14,7 +14,7 @@ from holidays.countries.france import France
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class SaintBarthelemy(ChildEntity, France):
|
|
18
18
|
"""Saint Barthélemy holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a French subdivision that is also officially assigned
|
|
@@ -31,13 +31,13 @@ class HolidaysBL(ChildEntity, France):
|
|
|
31
31
|
start_year = 2008
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class SaintBarthelemy
|
|
34
|
+
class HolidaysBL(SaintBarthelemy):
|
|
35
35
|
pass
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class BL(
|
|
38
|
+
class BL(SaintBarthelemy):
|
|
39
39
|
pass
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
class BLM(
|
|
42
|
+
class BLM(SaintBarthelemy):
|
|
43
43
|
pass
|
|
@@ -14,7 +14,7 @@ from holidays.countries.france import France
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class SaintMartin(ChildEntity, France):
|
|
18
18
|
"""Saint Martin holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a French subdivision that is also officially assigned
|
|
@@ -31,13 +31,13 @@ class HolidaysMF(ChildEntity, France):
|
|
|
31
31
|
start_year = 2008
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class SaintMartin
|
|
34
|
+
class HolidaysMF(SaintMartin):
|
|
35
35
|
pass
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class MF(
|
|
38
|
+
class MF(SaintMartin):
|
|
39
39
|
pass
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
class MAF(
|
|
42
|
+
class MAF(SaintMartin):
|
|
43
43
|
pass
|
|
@@ -14,7 +14,7 @@ from holidays.countries.france import France
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class SaintPierreAndMiquelon(ChildEntity, France):
|
|
18
18
|
"""Saint Pierre and Miquelon holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a French subdivision that is also officially assigned
|
|
@@ -31,13 +31,13 @@ class HolidaysPM(ChildEntity, France):
|
|
|
31
31
|
start_year = 1815
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class SaintPierreAndMiquelon
|
|
34
|
+
class HolidaysPM(SaintPierreAndMiquelon):
|
|
35
35
|
pass
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class PM(
|
|
38
|
+
class PM(SaintPierreAndMiquelon):
|
|
39
39
|
pass
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
class SPM(
|
|
42
|
+
class SPM(SaintPierreAndMiquelon):
|
|
43
43
|
pass
|
holidays/countries/samoa.py
CHANGED
|
@@ -32,9 +32,7 @@ class Samoa(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
32
32
|
|
|
33
33
|
super().__init__(*args, **kwargs)
|
|
34
34
|
|
|
35
|
-
def
|
|
36
|
-
super()._populate(year)
|
|
37
|
-
|
|
35
|
+
def _populate_public_holidays(self):
|
|
38
36
|
# New Year's Day.
|
|
39
37
|
self._add_new_years_day("New Year's Day")
|
|
40
38
|
self._add_new_years_day_two("The Day After New Year's Day")
|
|
@@ -96,7 +96,7 @@ class SintMaarten(ObservedHolidayBase, ChristianHolidays, InternationalHolidays)
|
|
|
96
96
|
self._add_holiday_2nd_mon_of_oct(tr("Dag van de Constitutie"))
|
|
97
97
|
|
|
98
98
|
# Sint Maarten Day.
|
|
99
|
-
self.
|
|
99
|
+
self._add_saint_martins_day(tr("Sint-Maartensdag"))
|
|
100
100
|
|
|
101
101
|
# Replaced by Constitution Day on October 2nd, 2015.
|
|
102
102
|
if self._year <= 2014:
|