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.
Files changed (112) hide show
  1. holidays/__init__.py +0 -2
  2. holidays/calendars/__init__.py +0 -2
  3. holidays/calendars/balinese_saka.py +2 -3
  4. holidays/calendars/buddhist.py +3 -4
  5. holidays/calendars/burmese.py +9 -10
  6. holidays/calendars/chinese.py +8 -9
  7. holidays/calendars/hebrew.py +10 -11
  8. holidays/calendars/hindu.py +27 -28
  9. holidays/calendars/mandaean.py +2 -3
  10. holidays/calendars/mongolian.py +4 -5
  11. holidays/calendars/persian.py +2 -3
  12. holidays/calendars/sinhala.py +25 -14
  13. holidays/calendars/thai.py +13 -14
  14. holidays/calendars/tibetan.py +12 -13
  15. holidays/constants.py +0 -2
  16. holidays/countries/__init__.py +0 -2
  17. holidays/countries/aland_islands.py +4 -4
  18. holidays/countries/american_samoa.py +4 -4
  19. holidays/countries/angola.py +1 -2
  20. holidays/countries/austria.py +1 -1
  21. holidays/countries/azerbaijan.py +2 -0
  22. holidays/countries/china.py +10 -1
  23. holidays/countries/ecuador.py +12 -4
  24. holidays/countries/french_guiana.py +4 -4
  25. holidays/countries/french_polynesia.py +4 -4
  26. holidays/countries/french_southern_territories.py +4 -4
  27. holidays/countries/guadeloupe.py +4 -4
  28. holidays/countries/guam.py +4 -4
  29. holidays/countries/guernsey.py +1 -2
  30. holidays/countries/italy.py +2 -2
  31. holidays/countries/jersey.py +1 -2
  32. holidays/countries/malta.py +1 -1
  33. holidays/countries/marshall_islands.py +8 -6
  34. holidays/countries/martinique.py +4 -4
  35. holidays/countries/mauritania.py +2 -4
  36. holidays/countries/mayotte.py +4 -4
  37. holidays/countries/new_caledonia.py +4 -4
  38. holidays/countries/northern_mariana_islands.py +4 -4
  39. holidays/countries/portugal.py +6 -3
  40. holidays/countries/puerto_rico.py +4 -4
  41. holidays/countries/reunion.py +4 -4
  42. holidays/countries/saint_barthelemy.py +4 -4
  43. holidays/countries/saint_martin.py +4 -4
  44. holidays/countries/saint_pierre_and_miquelon.py +4 -4
  45. holidays/countries/samoa.py +1 -3
  46. holidays/countries/sint_maarten.py +1 -1
  47. holidays/countries/spain.py +418 -214
  48. holidays/countries/sri_lanka.py +37 -33
  49. holidays/countries/svalbard_and_jan_mayen.py +4 -4
  50. holidays/countries/taiwan.py +2 -2
  51. holidays/countries/thailand.py +4 -1
  52. holidays/countries/turkey.py +7 -4
  53. holidays/countries/united_kingdom.py +1 -2
  54. holidays/countries/united_states.py +5 -2
  55. holidays/countries/united_states_minor_outlying_islands.py +4 -4
  56. holidays/countries/united_states_virgin_islands.py +4 -4
  57. holidays/countries/wallis_and_futuna.py +4 -4
  58. holidays/financial/__init__.py +1 -3
  59. holidays/financial/ice_futures_europe.py +6 -2
  60. holidays/financial/national_stock_exchange_of_india.py +141 -38
  61. holidays/groups/__init__.py +0 -2
  62. holidays/groups/balinese_saka.py +2 -3
  63. holidays/groups/buddhist.py +4 -5
  64. holidays/groups/burmese.py +11 -12
  65. holidays/groups/chinese.py +18 -19
  66. holidays/groups/christian.py +20 -0
  67. holidays/groups/eastern.py +2 -3
  68. holidays/groups/hebrew.py +7 -10
  69. holidays/groups/hindu.py +36 -37
  70. holidays/groups/mandaean.py +13 -14
  71. holidays/groups/mongolian.py +7 -8
  72. holidays/groups/persian.py +14 -15
  73. holidays/groups/sinhala.py +13 -14
  74. holidays/groups/thai.py +12 -13
  75. holidays/groups/tibetan.py +16 -17
  76. holidays/holiday_base.py +34 -33
  77. holidays/ical.py +1 -2
  78. holidays/locale/ca/LC_MESSAGES/ES.mo +0 -0
  79. holidays/locale/en_IN/LC_MESSAGES/XNSE.mo +0 -0
  80. holidays/locale/en_US/LC_MESSAGES/EC.mo +0 -0
  81. holidays/locale/en_US/LC_MESSAGES/ES.mo +0 -0
  82. holidays/locale/en_US/LC_MESSAGES/LK.mo +0 -0
  83. holidays/locale/en_US/LC_MESSAGES/TR.mo +0 -0
  84. holidays/locale/en_US/LC_MESSAGES/US.mo +0 -0
  85. holidays/locale/en_US/LC_MESSAGES/XNSE.mo +0 -0
  86. holidays/locale/es/LC_MESSAGES/EC.mo +0 -0
  87. holidays/locale/es/LC_MESSAGES/ES.mo +0 -0
  88. holidays/locale/hi/LC_MESSAGES/XNSE.mo +0 -0
  89. holidays/locale/si_LK/LC_MESSAGES/LK.mo +0 -0
  90. holidays/locale/ta_LK/LC_MESSAGES/LK.mo +0 -0
  91. holidays/locale/th/LC_MESSAGES/CN.mo +0 -0
  92. holidays/locale/th/LC_MESSAGES/ES.mo +0 -0
  93. holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
  94. holidays/locale/th/LC_MESSAGES/KR.mo +0 -0
  95. holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
  96. holidays/locale/th/LC_MESSAGES/US.mo +0 -0
  97. holidays/locale/tr/LC_MESSAGES/TR.mo +0 -0
  98. holidays/locale/uk/LC_MESSAGES/EC.mo +0 -0
  99. holidays/locale/uk/LC_MESSAGES/ES.mo +0 -0
  100. holidays/locale/uk/LC_MESSAGES/TR.mo +0 -0
  101. holidays/mixins/__init__.py +0 -2
  102. holidays/mixins/child_entity.py +1 -3
  103. holidays/observed_holiday_base.py +12 -13
  104. holidays/registry.py +4 -4
  105. holidays/utils.py +13 -14
  106. holidays/version.py +1 -1
  107. {holidays-0.83.dist-info → holidays-0.85.dist-info}/METADATA +4 -5
  108. {holidays-0.83.dist-info → holidays-0.85.dist-info}/RECORD +112 -111
  109. {holidays-0.83.dist-info → holidays-0.85.dist-info}/licenses/CONTRIBUTORS +2 -0
  110. {holidays-0.83.dist-info → holidays-0.85.dist-info}/WHEEL +0 -0
  111. {holidays-0.83.dist-info → holidays-0.85.dist-info}/licenses/LICENSE +0 -0
  112. {holidays-0.83.dist-info → holidays-0.85.dist-info}/top_level.txt +0 -0
@@ -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 _populate(self, year):
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 year >= 1960:
53
+ if self._year >= 1960:
56
54
  self._add_holiday_nov_28("Independence Day")
57
55
 
58
56
  # Islamic holidays.
@@ -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 HolidaysYT(ChildEntity, France):
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(HolidaysYT):
35
+ class HolidaysYT(Mayotte):
36
36
  pass
37
37
 
38
38
 
39
- class YT(HolidaysYT):
39
+ class YT(Mayotte):
40
40
  pass
41
41
 
42
42
 
43
- class MYT(HolidaysYT):
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 HolidaysNC(ChildEntity, France):
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(HolidaysNC):
34
+ class HolidaysNC(NewCaledonia):
35
35
  pass
36
36
 
37
37
 
38
- class NC(HolidaysNC):
38
+ class NC(NewCaledonia):
39
39
  pass
40
40
 
41
41
 
42
- class NCL(HolidaysNC):
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 HolidaysMP(ChildEntity, UnitedStates):
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(HolidaysMP):
30
+ class HolidaysMP(NorthernMarianaIslands):
31
31
  pass
32
32
 
33
33
 
34
- class MP(HolidaysMP):
34
+ class MP(NorthernMarianaIslands):
35
35
  pass
36
36
 
37
37
 
38
- class MNP(HolidaysMP):
38
+ class MNP(NorthernMarianaIslands):
39
39
  pass
@@ -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._add_holiday_jun_13(tr("Dia de Santo António"))
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
- self._add_holiday_jun_13(tr("Dia de Santo António"))
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
- self._add_holiday_jun_13(tr("Dia de Santo António"))
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 HolidaysPR(ChildEntity, UnitedStates):
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(HolidaysPR):
30
+ class HolidaysPR(PuertoRico):
31
31
  pass
32
32
 
33
33
 
34
- class PR(HolidaysPR):
34
+ class PR(PuertoRico):
35
35
  pass
36
36
 
37
37
 
38
- class PRI(HolidaysPR):
38
+ class PRI(PuertoRico):
39
39
  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 HolidaysRE(ChildEntity, France):
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(HolidaysRE):
35
+ class HolidaysRE(Reunion):
36
36
  pass
37
37
 
38
38
 
39
- class RE(HolidaysRE):
39
+ class RE(Reunion):
40
40
  pass
41
41
 
42
42
 
43
- class REU(HolidaysRE):
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 HolidaysBL(ChildEntity, France):
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(HolidaysBL):
34
+ class HolidaysBL(SaintBarthelemy):
35
35
  pass
36
36
 
37
37
 
38
- class BL(HolidaysBL):
38
+ class BL(SaintBarthelemy):
39
39
  pass
40
40
 
41
41
 
42
- class BLM(HolidaysBL):
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 HolidaysMF(ChildEntity, France):
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(HolidaysMF):
34
+ class HolidaysMF(SaintMartin):
35
35
  pass
36
36
 
37
37
 
38
- class MF(HolidaysMF):
38
+ class MF(SaintMartin):
39
39
  pass
40
40
 
41
41
 
42
- class MAF(HolidaysMF):
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 HolidaysPM(ChildEntity, France):
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(HolidaysPM):
34
+ class HolidaysPM(SaintPierreAndMiquelon):
35
35
  pass
36
36
 
37
37
 
38
- class PM(HolidaysPM):
38
+ class PM(SaintPierreAndMiquelon):
39
39
  pass
40
40
 
41
41
 
42
- class SPM(HolidaysPM):
42
+ class SPM(SaintPierreAndMiquelon):
43
43
  pass
@@ -32,9 +32,7 @@ class Samoa(HolidayBase, ChristianHolidays, InternationalHolidays):
32
32
 
33
33
  super().__init__(*args, **kwargs)
34
34
 
35
- def _populate(self, year):
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._add_holiday_nov_11(tr("Sint-Maartensdag"))
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: