holidays 0.69__py3-none-any.whl → 0.70__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 (236) hide show
  1. holidays/__init__.py +1 -1
  2. holidays/calendars/__init__.py +1 -1
  3. holidays/calendars/balinese_saka.py +3 -3
  4. holidays/calendars/buddhist.py +1 -1
  5. holidays/calendars/chinese.py +1 -1
  6. holidays/calendars/custom.py +1 -1
  7. holidays/calendars/gregorian.py +1 -1
  8. holidays/calendars/hebrew.py +1 -1
  9. holidays/calendars/hindu.py +1 -1
  10. holidays/calendars/islamic.py +161 -1
  11. holidays/calendars/julian.py +1 -1
  12. holidays/calendars/julian_revised.py +1 -1
  13. holidays/calendars/persian.py +1 -1
  14. holidays/calendars/sinhala.py +1 -1
  15. holidays/calendars/thai.py +309 -257
  16. holidays/constants.py +2 -1
  17. holidays/countries/__init__.py +6 -1
  18. holidays/countries/afghanistan.py +11 -7
  19. holidays/countries/albania.py +10 -7
  20. holidays/countries/algeria.py +10 -10
  21. holidays/countries/american_samoa.py +6 -4
  22. holidays/countries/andorra.py +5 -4
  23. holidays/countries/angola.py +15 -14
  24. holidays/countries/antigua_and_barbuda.py +145 -0
  25. holidays/countries/argentina.py +787 -169
  26. holidays/countries/armenia.py +5 -6
  27. holidays/countries/aruba.py +11 -9
  28. holidays/countries/australia.py +21 -20
  29. holidays/countries/austria.py +3 -1
  30. holidays/countries/azerbaijan.py +24 -19
  31. holidays/countries/bahamas.py +13 -11
  32. holidays/countries/bahrain.py +8 -7
  33. holidays/countries/bangladesh.py +5 -4
  34. holidays/countries/barbados.py +11 -9
  35. holidays/countries/belarus.py +15 -15
  36. holidays/countries/belgium.py +8 -6
  37. holidays/countries/belize.py +7 -6
  38. holidays/countries/bolivia.py +12 -11
  39. holidays/countries/bosnia_and_herzegovina.py +15 -11
  40. holidays/countries/botswana.py +8 -6
  41. holidays/countries/brazil.py +8 -7
  42. holidays/countries/brunei.py +50 -62
  43. holidays/countries/bulgaria.py +9 -10
  44. holidays/countries/burkina_faso.py +8 -5
  45. holidays/countries/burundi.py +13 -12
  46. holidays/countries/cambodia.py +15 -24
  47. holidays/countries/cameroon.py +10 -7
  48. holidays/countries/canada.py +13 -12
  49. holidays/countries/chad.py +9 -6
  50. holidays/countries/chile.py +29 -28
  51. holidays/countries/china.py +39 -38
  52. holidays/countries/colombia.py +15 -20
  53. holidays/countries/congo.py +6 -7
  54. holidays/countries/costa_rica.py +11 -10
  55. holidays/countries/croatia.py +8 -5
  56. holidays/countries/cuba.py +30 -27
  57. holidays/countries/curacao.py +6 -4
  58. holidays/countries/cyprus.py +4 -5
  59. holidays/countries/czechia.py +7 -6
  60. holidays/countries/denmark.py +5 -6
  61. holidays/countries/djibouti.py +7 -3
  62. holidays/countries/dominica.py +18 -16
  63. holidays/countries/dominican_republic.py +6 -4
  64. holidays/countries/ecuador.py +5 -4
  65. holidays/countries/egypt.py +6 -11
  66. holidays/countries/el_salvador.py +6 -5
  67. holidays/countries/estonia.py +3 -1
  68. holidays/countries/eswatini.py +6 -4
  69. holidays/countries/ethiopia.py +20 -11
  70. holidays/countries/fiji.py +183 -0
  71. holidays/countries/finland.py +11 -10
  72. holidays/countries/france.py +6 -9
  73. holidays/countries/gabon.py +11 -8
  74. holidays/countries/georgia.py +7 -7
  75. holidays/countries/germany.py +11 -11
  76. holidays/countries/ghana.py +10 -6
  77. holidays/countries/greece.py +4 -5
  78. holidays/countries/greenland.py +5 -6
  79. holidays/countries/guam.py +6 -4
  80. holidays/countries/guatemala.py +7 -9
  81. holidays/countries/guernsey.py +37 -34
  82. holidays/countries/guinea.py +182 -0
  83. holidays/countries/haiti.py +6 -5
  84. holidays/countries/honduras.py +8 -4
  85. holidays/countries/hongkong.py +11 -8
  86. holidays/countries/hungary.py +26 -23
  87. holidays/countries/iceland.py +5 -4
  88. holidays/countries/india.py +14 -10
  89. holidays/countries/indonesia.py +57 -53
  90. holidays/countries/iran.py +12 -9
  91. holidays/countries/ireland.py +5 -4
  92. holidays/countries/isle_of_man.py +2 -2
  93. holidays/countries/israel.py +4 -5
  94. holidays/countries/italy.py +5 -4
  95. holidays/countries/ivory_coast.py +156 -0
  96. holidays/countries/jamaica.py +6 -4
  97. holidays/countries/japan.py +5 -5
  98. holidays/countries/jersey.py +29 -26
  99. holidays/countries/jordan.py +9 -6
  100. holidays/countries/kazakhstan.py +66 -51
  101. holidays/countries/kenya.py +22 -18
  102. holidays/countries/kuwait.py +10 -7
  103. holidays/countries/kyrgyzstan.py +7 -6
  104. holidays/countries/laos.py +21 -29
  105. holidays/countries/latvia.py +7 -5
  106. holidays/countries/lesotho.py +6 -5
  107. holidays/countries/liechtenstein.py +5 -5
  108. holidays/countries/lithuania.py +4 -5
  109. holidays/countries/luxembourg.py +5 -3
  110. holidays/countries/macau.py +32 -26
  111. holidays/countries/madagascar.py +5 -4
  112. holidays/countries/malawi.py +6 -4
  113. holidays/countries/malaysia.py +24 -18
  114. holidays/countries/maldives.py +10 -7
  115. holidays/countries/malta.py +10 -19
  116. holidays/countries/marshall_islands.py +6 -4
  117. holidays/countries/mauritania.py +9 -6
  118. holidays/countries/mexico.py +8 -7
  119. holidays/countries/moldova.py +6 -4
  120. holidays/countries/monaco.py +6 -4
  121. holidays/countries/montenegro.py +10 -7
  122. holidays/countries/morocco.py +9 -8
  123. holidays/countries/mozambique.py +3 -1
  124. holidays/countries/namibia.py +7 -5
  125. holidays/countries/netherlands.py +6 -6
  126. holidays/countries/new_zealand.py +3 -1
  127. holidays/countries/nicaragua.py +6 -5
  128. holidays/countries/nigeria.py +9 -5
  129. holidays/countries/north_macedonia.py +9 -5
  130. holidays/countries/northern_mariana_islands.py +6 -4
  131. holidays/countries/norway.py +15 -15
  132. holidays/countries/pakistan.py +41 -17
  133. holidays/countries/palau.py +13 -11
  134. holidays/countries/panama.py +9 -8
  135. holidays/countries/papua_new_guinea.py +25 -21
  136. holidays/countries/paraguay.py +10 -9
  137. holidays/countries/peru.py +4 -5
  138. holidays/countries/philippines.py +25 -21
  139. holidays/countries/poland.py +6 -5
  140. holidays/countries/portugal.py +13 -15
  141. holidays/countries/puerto_rico.py +6 -4
  142. holidays/countries/qatar.py +172 -0
  143. holidays/countries/romania.py +6 -4
  144. holidays/countries/russia.py +6 -4
  145. holidays/countries/saint_kitts_and_nevis.py +24 -22
  146. holidays/countries/saint_lucia.py +8 -7
  147. holidays/countries/samoa.py +7 -6
  148. holidays/countries/san_marino.py +4 -3
  149. holidays/countries/saudi_arabia.py +11 -15
  150. holidays/countries/serbia.py +3 -4
  151. holidays/countries/seychelles.py +22 -26
  152. holidays/countries/singapore.py +29 -39
  153. holidays/countries/slovakia.py +6 -5
  154. holidays/countries/slovenia.py +7 -6
  155. holidays/countries/south_africa.py +8 -6
  156. holidays/countries/south_korea.py +25 -32
  157. holidays/countries/spain.py +25 -24
  158. holidays/countries/sri_lanka.py +46 -42
  159. holidays/countries/sweden.py +20 -19
  160. holidays/countries/switzerland.py +6 -5
  161. holidays/countries/taiwan.py +50 -48
  162. holidays/countries/tanzania.py +28 -27
  163. holidays/countries/thailand.py +134 -142
  164. holidays/countries/timor_leste.py +20 -18
  165. holidays/countries/tonga.py +46 -42
  166. holidays/countries/tunisia.py +5 -3
  167. holidays/countries/turkey.py +11 -9
  168. holidays/countries/tuvalu.py +12 -11
  169. holidays/countries/ukraine.py +54 -54
  170. holidays/countries/united_arab_emirates.py +37 -30
  171. holidays/countries/united_kingdom.py +7 -6
  172. holidays/countries/united_states.py +50 -55
  173. holidays/countries/united_states_minor_outlying_islands.py +6 -4
  174. holidays/countries/united_states_virgin_islands.py +6 -4
  175. holidays/countries/uruguay.py +10 -9
  176. holidays/countries/uzbekistan.py +10 -7
  177. holidays/countries/vanuatu.py +7 -5
  178. holidays/countries/vatican_city.py +16 -15
  179. holidays/countries/venezuela.py +11 -14
  180. holidays/countries/vietnam.py +15 -11
  181. holidays/countries/zambia.py +8 -6
  182. holidays/countries/zimbabwe.py +6 -4
  183. holidays/deprecations/v1_incompatibility.py +1 -1
  184. holidays/financial/__init__.py +1 -1
  185. holidays/financial/brasil_bolsa_balcao.py +14 -13
  186. holidays/financial/european_central_bank.py +7 -6
  187. holidays/financial/ice_futures_europe.py +7 -6
  188. holidays/financial/ny_stock_exchange.py +13 -10
  189. holidays/groups/__init__.py +1 -1
  190. holidays/groups/balinese_saka.py +1 -1
  191. holidays/groups/buddhist.py +1 -1
  192. holidays/groups/chinese.py +1 -1
  193. holidays/groups/christian.py +1 -1
  194. holidays/groups/custom.py +1 -1
  195. holidays/groups/eastern.py +1 -1
  196. holidays/groups/hebrew.py +1 -1
  197. holidays/groups/hindu.py +1 -1
  198. holidays/groups/international.py +1 -1
  199. holidays/groups/islamic.py +12 -1
  200. holidays/groups/persian.py +1 -1
  201. holidays/groups/sinhala.py +1 -1
  202. holidays/groups/thai.py +1 -7
  203. holidays/helpers.py +1 -1
  204. holidays/holiday_base.py +366 -244
  205. holidays/ical.py +228 -0
  206. holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
  207. holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
  208. holidays/locale/en_PK/LC_MESSAGES/PK.mo +0 -0
  209. holidays/locale/en_TL/LC_MESSAGES/TL.mo +0 -0
  210. holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
  211. holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
  212. holidays/locale/en_US/LC_MESSAGES/GN.mo +0 -0
  213. holidays/locale/en_US/LC_MESSAGES/PK.mo +0 -0
  214. holidays/locale/en_US/LC_MESSAGES/QA.mo +0 -0
  215. holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
  216. holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
  217. holidays/locale/fr/LC_MESSAGES/CI.mo +0 -0
  218. holidays/locale/fr/LC_MESSAGES/GN.mo +0 -0
  219. holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
  220. holidays/locale/pt_TL/LC_MESSAGES/TL.mo +0 -0
  221. holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
  222. holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
  223. holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
  224. holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
  225. holidays/mixins.py +2 -2
  226. holidays/observed_holiday_base.py +5 -2
  227. holidays/registry.py +6 -1
  228. holidays/utils.py +151 -151
  229. holidays/version.py +2 -2
  230. holidays-0.70.dist-info/METADATA +1404 -0
  231. {holidays-0.69.dist-info → holidays-0.70.dist-info}/RECORD +235 -217
  232. {holidays-0.69.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
  233. holidays-0.69.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +6 -2
  234. {holidays-0.69.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
  235. holidays-0.69.dist-info/METADATA +0 -1085
  236. {holidays-0.69.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
@@ -4,12 +4,14 @@
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 AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
11
11
  # License: MIT (see LICENSE file)
12
12
 
13
+ from gettext import gettext as tr
14
+
13
15
  from holidays.calendars import _CustomIslamicHolidays
14
16
  from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
15
17
  from holidays.groups import InternationalHolidays, IslamicHolidays
@@ -17,13 +19,26 @@ from holidays.holiday_base import HolidayBase
17
19
 
18
20
 
19
21
  class Pakistan(HolidayBase, InternationalHolidays, IslamicHolidays):
22
+ """Pakistan holidays.
23
+
24
+ References:
25
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Pakistan>
26
+ * <https://ur.wikipedia.org/wiki/تعطیلات_پاکستان>
27
+ """
28
+
20
29
  country = "PK"
30
+ default_language = "en_PK"
31
+ # %s (estimated).
32
+ estimated_label = tr("%s (estimated)")
21
33
  start_year = 1948
34
+ supported_languages = ("en_PK", "en_US", "ur_PK")
22
35
 
23
36
  def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
24
37
  """
25
- :param islamic_show_estimated:
26
- Whether to add "estimated" label to Islamic holidays name if holiday date is estimated.
38
+ Args:
39
+ islamic_show_estimated:
40
+ Whether to add "estimated" label to Islamic holidays name
41
+ if holiday date is estimated.
27
42
  """
28
43
  InternationalHolidays.__init__(self)
29
44
  IslamicHolidays.__init__(
@@ -32,41 +47,45 @@ class Pakistan(HolidayBase, InternationalHolidays, IslamicHolidays):
32
47
  super().__init__(*args, **kwargs)
33
48
 
34
49
  def _populate_public_holidays(self):
35
- # Kashmir Solidarity Day.
36
50
  if self._year >= 1990:
37
- self._add_holiday_feb_5("Kashmir Solidarity Day")
51
+ # Kashmir Solidarity Day.
52
+ self._add_holiday_feb_5(tr("Kashmir Solidarity Day"))
38
53
 
39
- # Pakistan Day.
40
54
  if self._year >= 1956:
41
- self._add_holiday_mar_23("Pakistan Day")
55
+ # Pakistan Day.
56
+ self._add_holiday_mar_23(tr("Pakistan Day"))
42
57
 
43
- # Labour Day.
44
58
  if self._year >= 1972:
45
- self._add_labor_day("Labour Day")
59
+ # Labor Day.
60
+ self._add_labor_day(tr("Labour Day"))
46
61
 
47
62
  # Independence Day.
48
- self._add_holiday_aug_14("Independence Day")
63
+ self._add_holiday_aug_14(tr("Independence Day"))
49
64
 
50
- # Iqbal Day.
51
65
  if self._year <= 2014 or self._year >= 2022:
52
- self._add_holiday_nov_9("Iqbal Day")
66
+ # Iqbal Day.
67
+ self._add_holiday_nov_9(tr("Iqbal Day"))
53
68
 
54
69
  # Quaid-e-Azam Day.
55
- self._add_holiday_dec_25("Quaid-e-Azam Day")
70
+ self._add_holiday_dec_25(tr("Quaid-e-Azam Day"))
56
71
 
57
- name = "Eid-ul-Fitr"
72
+ # Eid al-Fitr.
73
+ name = tr("Eid-ul-Fitr")
58
74
  self._add_eid_al_fitr_day(name)
59
75
  self._add_eid_al_fitr_day_two(name)
60
76
  self._add_eid_al_fitr_day_three(name)
61
77
 
62
- name = "Eid-ul-Adha"
78
+ # Eid al-Adha.
79
+ name = tr("Eid-ul-Adha")
63
80
  self._add_eid_al_adha_day(name)
64
81
  self._add_eid_al_adha_day_two(name)
65
82
  self._add_eid_al_adha_day_three(name)
66
83
 
67
- self._add_mawlid_day("Eid Milad-un-Nabi")
84
+ # Prophet's Birthday.
85
+ self._add_mawlid_day(tr("Eid Milad-un-Nabi"))
68
86
 
69
- name = "Ashura"
87
+ # Ashura.
88
+ name = tr("Ashura")
70
89
  self._add_ashura_eve(name)
71
90
  self._add_ashura_day(name)
72
91
 
@@ -101,6 +120,8 @@ class PakistanIslamicHolidays(_CustomIslamicHolidays):
101
120
  2020: (AUG, 29),
102
121
  2021: (AUG, 18),
103
122
  2022: (AUG, 9),
123
+ 2023: (JUL, 28),
124
+ 2024: (JUL, 16),
104
125
  }
105
126
 
106
127
  # https://www.timeanddate.com/holidays/pakistan/eid-ul-azha
@@ -124,6 +145,7 @@ class PakistanIslamicHolidays(_CustomIslamicHolidays):
124
145
  2021: (JUL, 21),
125
146
  2022: (JUL, 10),
126
147
  2023: (JUN, 29),
148
+ 2024: (JUN, 17),
127
149
  }
128
150
 
129
151
  # https://www.timeanddate.com/holidays/pakistan/eid-ul-fitr-1
@@ -170,4 +192,6 @@ class PakistanIslamicHolidays(_CustomIslamicHolidays):
170
192
  2020: (OCT, 30),
171
193
  2021: (OCT, 19),
172
194
  2022: (OCT, 9),
195
+ 2023: (SEP, 29),
196
+ 2024: (SEP, 17),
173
197
  }
@@ -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 AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -17,12 +17,13 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SAT_TO_PREV_FRI,
17
17
 
18
18
 
19
19
  class Palau(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
20
- """
20
+ """Palau holidays.
21
+
21
22
  References:
22
- - http://www.paclii.org/pw/legis/consol_act/gpt1262/ # Chapter 7, Holidays.
23
- - https://www.palaugov.pw/wp-content/uploads/2017/11/RPPL-No.-10-15-re.-Family-Day-Holiday.pdf
24
- - https://www.facebook.com/PalauPresident/posts/195883107230463 # EO336 Memorial Day repealed
25
- - https://www.taiwanembassy.org/pal_en/post/792.html # Earliest source for President's Day
23
+ * [Chapter 7, Holidays](http://www.paclii.org/pw/legis/consol_act/gpt1262/)
24
+ * <https://www.palaugov.pw/wp-content/uploads/2017/11/RPPL-No.-10-15-re.-Family-Day-Holiday.pdf>
25
+ * [EO336 Memorial Day repealed](https://www.facebook.com/PalauPresident/posts/195883107230463)
26
+ * [Earliest source for President's Day](https://www.taiwanembassy.org/pal_en/post/792.html)
26
27
 
27
28
  If any of the holidays enumerated in section 701 of this chapter falls on Sunday, the
28
29
  following Monday shall be observed as a holiday. If any of the holidays enumerated in
@@ -105,11 +106,12 @@ class PLW(Palau):
105
106
 
106
107
 
107
108
  class PalauStaticHolidays:
108
- """
109
- Sources:
110
- - https://www.facebook.com/photo?fbid=1774513196034105&set=a.175933635892077
111
- - https://www.facebook.com/photo/?fbid=1794692910682800&set=a.175933635892077
112
- - https://www.facebook.com/photo/?fbid=1408133829338712&set=a.175933635892077
109
+ """Palau special holidays.
110
+
111
+ References:
112
+ * <https://www.facebook.com/photo?fbid=1774513196034105&set=a.175933635892077>
113
+ * <https://www.facebook.com/photo/?fbid=1794692910682800&set=a.175933635892077>
114
+ * <https://www.facebook.com/photo/?fbid=1408133829338712&set=a.175933635892077>
113
115
  """
114
116
 
115
117
  special_armed_forces_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 AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -19,14 +19,15 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
19
19
 
20
20
 
21
21
  class Panama(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
22
- """
22
+ """Panama holidays.
23
+
23
24
  References:
24
- - https://en.wikipedia.org/wiki/Public_holidays_in_Panama
25
- - `Labor Code 1947 <https://docs.panama.justia.com/federales/leyes/67-de-1947-nov-26-1947.pdf>`_
26
- - `Cabinet Decree #347 of 1969 <https://docs.panama.justia.com/federales/decretos-de-gabinete/decreto-de-gabinete-347-de-1969-nov-14-1969.pdf>`_
27
- - `Labor Code 1971 <https://www.mitradel.gob.pa/wp-content/uploads/2016/12/c%C3%B3digo-detrabajo.pdf>`_
28
- - `Law #4 of Jun 25, 1990 <https://s3-legispan.asamblea.gob.pa/legispan/NORMAS/1990/1990/LEY/Administrador%20Legispan_21570_1990_7_2_ASAMBLEA%20LEGISLATIVA_4.pdf>`_
29
- - `Law #55 of Nov 7, 2001 <https://docs.panama.justia.com/federales/leyes/55-de-2001-nov-14-2001.pdf>`_
25
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Panama>
26
+ * [Labor Code 1947](https://docs.panama.justia.com/federales/leyes/67-de-1947-nov-26-1947.pdf)
27
+ * [Cabinet Decree #347 of 1969](https://docs.panama.justia.com/federales/decretos-de-gabinete/decreto-de-gabinete-347-de-1969-nov-14-1969.pdf)
28
+ * [Labor Code 1971](https://www.mitradel.gob.pa/wp-content/uploads/2016/12/c%C3%B3digo-detrabajo.pdf)
29
+ * [Law #4 of Jun 25, 1990](https://s3-legispan.asamblea.gob.pa/legispan/NORMAS/1990/1990/LEY/Administrador%20Legispan_21570_1990_7_2_ASAMBLEA%20LEGISLATIVA_4.pdf)
30
+ * [Law #55 of Nov 7, 2001](https://docs.panama.justia.com/federales/leyes/55-de-2001-nov-14-2001.pdf)
30
31
  """
31
32
 
32
33
  country = "PA"
@@ -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 AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -18,19 +18,21 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON,
18
18
  class PapuaNewGuinea(
19
19
  ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays
20
20
  ):
21
- """
21
+ """Papua New Guinea holidays.
22
+
22
23
  References:
23
- - http://www.paclii.org/pg/legis/consol_act/pha1953163.pdf # Public Holidays Act 1953
24
- - https://en.wikipedia.org/wiki/Public_holidays_in_Papua_New_Guinea
25
- - https://pnghausbung.com/kings-birthday-holiday-to-be-observed-on-16th-june/
24
+ * [Public Holidays Act 1953](http://www.paclii.org/pg/legis/consol_act/pha1953163.pdf)
25
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Papua_New_Guinea>
26
+ * <https://pnghausbung.com/kings-birthday-holiday-to-be-observed-on-16th-june/>
27
+
26
28
  Checked With:
27
- - https://www.ipa.gov.pg/public/Holidays.aspx
28
- - https://www.businessadvantagepng.com/papua-new-guinea-public-for-holidays/
29
- - https://www.scribd.com/document/465334129/PNG-2019-Gazetted-Public-Holidays-pdf # 2019
30
- - https://publicholidays.asia/wp-content/uploads/2020/01/PNG_PublicHolidays_2020.png # 2020
31
- - https://publicholidays.asia/wp-content/uploads/2020/12/PNG_PublicHolidays_2021.pdf # 2021
32
- - https://publicholidays.asia/wp-content/uploads/2022/01/PNG_PublicHolidays_2022.pdf # 2022
33
- - https://publicholidays.asia/wp-content/uploads/2022/12/PNG_PublicHolidays_2023.pdf # 2023
29
+ * <https://www.ipa.gov.pg/public/Holidays.aspx>
30
+ * <https://www.businessadvantagepng.com/papua-new-guinea-public-for-holidays/>
31
+ * [2019](https://www.scribd.com/document/465334129/PNG-2019-Gazetted-Public-Holidays-pdf)
32
+ * [2020](https://publicholidays.asia/wp-content/uploads/2020/01/PNG_PublicHolidays_2020.png)
33
+ * [2021](https://publicholidays.asia/wp-content/uploads/2020/12/PNG_PublicHolidays_2021.pdf)
34
+ * [2022](https://publicholidays.asia/wp-content/uploads/2022/01/PNG_PublicHolidays_2022.pdf)
35
+ * [2023](https://publicholidays.asia/wp-content/uploads/2022/12/PNG_PublicHolidays_2023.pdf)
34
36
 
35
37
  Should a holiday listed, other than the Christmas Day, fall on a Sunday the next Monday
36
38
  shall, unless the Head of State, acting on advice, declares otherwise, be observed as a
@@ -130,18 +132,20 @@ class PNG(PapuaNewGuinea):
130
132
 
131
133
 
132
134
  class PapuaNewGuineaStaticHolidays:
133
- """
134
- Starting from 2021 afterwards all state funerals are given special public holidays, though only
135
- some are day-off nationwide.
135
+ """Papua New Guinea special holidays.
136
136
 
137
137
  References:
138
- - 2018 APEC Public Holiday*: https://www.rnz.co.nz/international/pacific-news/369989/papua-new-guinea-declares-apec-holiday
139
- - 2021 Sir Mekere Morauta's Funeral: https://pnghausbung.com/friday-8th-declared-a-nation-wide-public-holiday-to-honour-late-sir-mekere/
140
- - 2021 Sir Michael Somare's Day of Mourning: https://pnghausbung.com/2-weeks-mourning-period-for-late-sir-micheal-to-start-with-public-holiday-on-monday-pm/
141
- - 2022 QE2's Funeral: https://www.thenational.com.pg/column-1-553/
142
- - 2023 Sir Rabbie Namaliu's Funeral: https://pnghausbung.com/breaking-public-holiday-tomorrow-in-respect-of-late-sir-rabbies-state-funeral/
138
+ * [2018 APEC Public Holiday](https://www.rnz.co.nz/international/pacific-news/369989/papua-new-guinea-declares-apec-holiday)
139
+ * [2021 Sir Mekere Morauta's Funeral](https://pnghausbung.com/friday-8th-declared-a-nation-wide-public-holiday-to-honour-late-sir-mekere/)
140
+ * [2021 Sir Michael Somare's Day of Mourning](https://pnghausbung.com/2-weeks-mourning-period-for-late-sir-micheal-to-start-with-public-holiday-on-monday-pm/)
141
+ * [2022 QE2's Funeral](https://www.thenational.com.pg/column-1-553/)
142
+ * [2023 Sir Rabbie Namaliu's Funeral](https://pnghausbung.com/breaking-public-holiday-tomorrow-in-respect-of-late-sir-rabbies-state-funeral/)
143
+
144
+ Nov 15, 2018 is an APEC Holiday too, but for Port Moresby-only:
145
+ <https://www.businessadvantagepng.com/public-holidays-declared-in-port-moresby-due-to-apec-summit-says-ceo/>
143
146
 
144
- * Nov 15, 2018 is an APEC Holiday too, but for Port Moresby-only: https://www.businessadvantagepng.com/public-holidays-declared-in-port-moresby-due-to-apec-summit-says-ceo/
147
+ Starting from 2021 afterwards all state funerals are given special public holidays, though only
148
+ some are day-off nationwide.
145
149
  """
146
150
 
147
151
  # National Day of Mourning for Sir Michael Somare.
@@ -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 AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -19,15 +19,16 @@ from holidays.holiday_base import HolidayBase
19
19
 
20
20
 
21
21
  class Paraguay(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
22
- """
22
+ """Paraguay holidays.
23
+
23
24
  References:
24
- - `Ley 8/1990 <https://www.bacn.gov.py/leyes-paraguayas/2358/ley-n-8--por-la-cual-se-determinan-los-feriados-de-la-republica>`_
25
- - `Ley 715/1995 <https://www.bacn.gov.py/leyes-paraguayas/792/ley-n-715--amplia-la-ley-no-0890->`_
26
- - `Ley 1.601/2000 <https://www.bacn.gov.py/leyes-paraguayas/1677/ley-n-1601--modifica-el-articulo-1-de-la-ley-no-71595-que-amplia-la-ley-n-0890-por-la-cual-se-determinan-los-feriados-de-la-republica>`_
27
- - `Ley 1.723/2001 <https://www.bacn.gov.py/leyes-paraguayas/634/ley-n-1723--autoriza-al-poder-ejecutivo-a-trasladar-los-feriados-nacionales-al-dia-lunes>`_
28
- - `Ley 4.531/2011 <https://www.bacn.gov.py/leyes-paraguayas/3831/ley-n-4531-restablece-el-dia-14-de-mayo-de-cada-ano-como-feriado-nacional>`_
29
- - https://es.wikipedia.org/wiki/Anexo:D%C3%ADas_festivos_en_Paraguay
30
- - http://www.calendarioparaguay.com/
25
+ * [Ley 8/1990](https://www.bacn.gov.py/leyes-paraguayas/2358/ley-n-8--por-la-cual-se-determinan-los-feriados-de-la-republica)
26
+ * [Ley 715/1995](https://www.bacn.gov.py/leyes-paraguayas/792/ley-n-715--amplia-la-ley-no-0890-)
27
+ * [Ley 1.601/2000](https://www.bacn.gov.py/leyes-paraguayas/1677/ley-n-1601--modifica-el-articulo-1-de-la-ley-no-71595-que-amplia-la-ley-n-0890-por-la-cual-se-determinan-los-feriados-de-la-republica)
28
+ * [Ley 1.723/2001](https://www.bacn.gov.py/leyes-paraguayas/634/ley-n-1723--autoriza-al-poder-ejecutivo-a-trasladar-los-feriados-nacionales-al-dia-lunes)
29
+ * [Ley 4.531/2011](https://www.bacn.gov.py/leyes-paraguayas/3831/ley-n-4531-restablece-el-dia-14-de-mayo-de-cada-ano-como-feriado-nacional)
30
+ * <https://es.wikipedia.org/wiki/Anexo:D%C3%ADas_festivos_en_Paraguay>
31
+ * <http://www.calendarioparaguay.com/>
31
32
  """
32
33
 
33
34
  country = "PY"
@@ -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 AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -17,12 +17,11 @@ from holidays.holiday_base import HolidayBase
17
17
 
18
18
 
19
19
  class Peru(HolidayBase, ChristianHolidays, InternationalHolidays):
20
- """
21
- Peru holidays.
20
+ """Peru holidays.
22
21
 
23
22
  References:
24
- - https://www.gob.pe/feriados
25
- - https://es.wikipedia.org/wiki/Anexo:Días_feriados_en_el_Perú
23
+ * <https://www.gob.pe/feriados>
24
+ * <https://es.wikipedia.org/wiki/Anexo:Días_feriados_en_el_Perú>
26
25
  """
27
26
 
28
27
  country = "PE"
@@ -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 AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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 gettext import gettext as tr
14
14
 
15
15
  from holidays.calendars import _CustomChineseHolidays, _CustomIslamicHolidays
16
- from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
16
+ from holidays.calendars.gregorian import JAN, FEB, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
17
17
  from holidays.constants import PUBLIC, WORKDAY
18
18
  from holidays.groups import (
19
19
  ChineseCalendarHolidays,
@@ -33,24 +33,25 @@ class Philippines(
33
33
  IslamicHolidays,
34
34
  StaticHolidays,
35
35
  ):
36
- """
37
- Philippines holidays.
36
+ """Philippines holidays.
38
37
 
39
38
  References:
40
- - https://en.wikipedia.org/wiki/Public_holidays_in_the_Philippines
41
- - `Revised Administrative Code of 1987 <https://www.officialgazette.gov.ph/1987/07/25/executive-order-no-292-book-ichapter-7-regular-holidays-and-nationwide-special-days/>`_
42
- - `Republic Act No. 9177 <https://www.officialgazette.gov.ph/2002/11/13/republic-act-no-9177/>`_
43
- - `Republic Act No. 9256 <https://www.officialgazette.gov.ph/2004/02/25/republic-act-no-9256/>`_
44
- - `Republic Act No. 9492 <https://www.officialgazette.gov.ph/2007/07/24/republic-act-no-9492/>`_
45
- - `Republic Act No. 9645 <https://www.officialgazette.gov.ph/2009/06/12/republic-act-no-9645/>`_
46
- - `Republic Act No. 9849 <https://www.officialgazette.gov.ph/2009/12/11/republic-act-no-9849/>`_
47
- - `Republic Act No. 10966 <https://www.officialgazette.gov.ph/2017/12/28/republic-act-no-10966/>`_
48
- - `Proclamation No. 944/2020` <https://www.officialgazette.gov.ph/2020/05/19/proclamation-no-944-s-2020/>`_
49
- - `Proclamation No. 985/2020` <https://www.officialgazette.gov.ph/2020/07/29/proclamation-no-985-s-2020/>`_
50
- - `Proclamation No. 665/2024` <https://www.officialgazette.gov.ph/2024/08/15/proclamation-no-665-s-2024/>`_
51
- - `Proclamation No. 729/2024` <https://www.officialgazette.gov.ph/2024/10/30/proclamation-no-729-s-2024/>`_
52
- - `Nationwide holidays 2018-2025 <https://www.officialgazette.gov.ph/nationwide-holidays/2018/>`_
53
- - `2025 Eid'l Fitr and Eid'l Adha Tentative Date <https://melbournepcg.org/?page_id=9779>`_
39
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_the_Philippines>
40
+ * [Revised Administrative Code of 1987](https://www.officialgazette.gov.ph/1987/07/25/executive-order-no-292-book-ichapter-7-regular-holidays-and-nationwide-special-days/)
41
+ * [Republic Act No. 9177](https://www.officialgazette.gov.ph/2002/11/13/republic-act-no-9177/)
42
+ * [Republic Act No. 9256](https://www.officialgazette.gov.ph/2004/02/25/republic-act-no-9256/)
43
+ * [Republic Act No. 9492](https://www.officialgazette.gov.ph/2007/07/24/republic-act-no-9492/)
44
+ * [Republic Act No. 9645](https://www.officialgazette.gov.ph/2009/06/12/republic-act-no-9645/)
45
+ * [Republic Act No. 9849](https://www.officialgazette.gov.ph/2009/12/11/republic-act-no-9849/)
46
+ * [Republic Act No. 10966](https://www.officialgazette.gov.ph/2017/12/28/republic-act-no-10966/)
47
+ * [Proclamation No. 944/2020](https://www.officialgazette.gov.ph/2020/05/19/proclamation-no-944-s-2020/)
48
+ * [Proclamation No. 985/2020](https://www.officialgazette.gov.ph/2020/07/29/proclamation-no-985-s-2020/)
49
+ * [Proclamation No. 90/2022](https://www.officialgazette.gov.ph/2022/11/09/proclamation-no-90-s-2022/)
50
+ * [Proclamation No. 665/2024](https://www.officialgazette.gov.ph/2024/08/15/proclamation-no-665-s-2024/)
51
+ * [Proclamation No. 729/2024](https://www.officialgazette.gov.ph/2024/10/30/proclamation-no-729-s-2024/)
52
+ * [Nationwide holidays 2018-2025](https://www.officialgazette.gov.ph/nationwide-holidays/2018/)
53
+ * [2025 Eid'l Fitr and Eid'l Adha Tentative Date](https://melbournepcg.org/?page_id=9779)
54
+ * [Proclamation No. 839/2025](https://www.officialgazette.gov.ph/2025/03/20/proclamation-no-839-s-2025/)
54
55
  """
55
56
 
56
57
  country = "PH"
@@ -63,8 +64,10 @@ class Philippines(
63
64
 
64
65
  def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
65
66
  """
66
- :param islamic_show_estimated:
67
- Whether to add "estimated" label to Islamic holidays name if holiday date is estimated.
67
+ Args:
68
+ islamic_show_estimated:
69
+ Whether to add "estimated" label to Islamic holidays name
70
+ if holiday date is estimated.
68
71
  """
69
72
  ChineseCalendarHolidays.__init__(self, cls=PhilippinesChineseHolidays)
70
73
  ChristianHolidays.__init__(self)
@@ -145,6 +148,7 @@ class Philippines(
145
148
  dates_obs = {
146
149
  2008: (DEC, 1),
147
150
  2010: (NOV, 29),
151
+ 2023: (NOV, 27),
148
152
  }
149
153
  # Bonifacio Day.
150
154
  self._add_holiday(tr("Bonifacio Day"), dates_obs.get(self._year, (NOV, 30)))
@@ -258,7 +262,7 @@ class PhilippinesIslamicHolidays(_CustomIslamicHolidays):
258
262
  2022: (MAY, 3),
259
263
  2023: (APR, 21),
260
264
  2024: (APR, 10),
261
- 2025: (MAR, 31),
265
+ 2025: (APR, 1),
262
266
  }
263
267
 
264
268
 
@@ -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 AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -18,11 +18,12 @@ from holidays.holiday_base import HolidayBase
18
18
 
19
19
 
20
20
  class Poland(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
21
- """
21
+ """Poland holidays.
22
+
22
23
  References:
23
- - https://en.wikipedia.org/wiki/Public_holidays_in_Poland
24
- - https://pl.wikipedia.org/wiki/Dni_wolne_od_pracy_w_Polsce
25
- - https://isap.sejm.gov.pl/isap.nsf/DocDetails.xsp?id=WDU20240001965
24
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Poland>
25
+ * <https://pl.wikipedia.org/wiki/Dni_wolne_od_pracy_w_Polsce>
26
+ * <https://isap.sejm.gov.pl/isap.nsf/DocDetails.xsp?id=WDU20240001965>
26
27
  """
27
28
 
28
29
  country = "PL"
@@ -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 AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -18,22 +18,20 @@ from holidays.holiday_base import HolidayBase
18
18
 
19
19
 
20
20
  class Portugal(HolidayBase, ChristianHolidays, InternationalHolidays):
21
- """
22
- A subclass of :py:class:`HolidayBase` representing public holidays
23
- in Portugal.
21
+ """Portugal holidays.
24
22
 
25
23
  References:
26
- - https://en.wikipedia.org/wiki/Public_holidays_in_Portugal
27
- - `Labour Day <https://www.e-konomista.pt/dia-do-trabalhador/>`_
28
- - Portugal Day - Decreto 17.171
29
- - Restoration of Independence Day - Gazeta de Lisboa, 8 de Dezembro
30
- de 1823 (n.º 290), pp. 1789 e 1790
31
- - Azores
32
- - https://files.dre.pt/1s/1980/08/19200/23052305.pdf
33
- - Madeira
34
- - https://files.dre.pt/1s/1979/11/25900/28782878.pdf
35
- - https://files.dre.pt/1s/1989/02/02800/04360436.pdf
36
- - https://files.dre.pt/1s/2002/11/258a00/71837183.pdf
24
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Portugal>
25
+ * [Labour Day](https://www.e-konomista.pt/dia-do-trabalhador/)
26
+ * Portugal Day - Decreto 17.171
27
+ * Restoration of Independence Day - Gazeta de Lisboa, 8 de Dezembro
28
+ de 1823 (n.º 290), pp. 1789 e 1790
29
+ * Azores:
30
+ * <https://files.dre.pt/1s/1980/08/19200/23052305.pdf>
31
+ * Madeira:
32
+ * <https://files.dre.pt/1s/1979/11/25900/28782878.pdf>
33
+ * <https://files.dre.pt/1s/1989/02/02800/04360436.pdf>
34
+ * <https://files.dre.pt/1s/2002/11/258a00/71837183.pdf>
37
35
  """
38
36
 
39
37
  country = "PT"
@@ -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 AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -15,9 +15,11 @@ from holidays.countries.united_states import US
15
15
 
16
16
 
17
17
  class HolidaysPR(US):
18
- # Alias of a US subdivision that is also officially assigned its own
19
- # country code in ISO 3166-1. See
20
- # https://en.wikipedia.org/wiki/ISO_3166-2:US#Subdivisions_included_in_ISO_3166-1
18
+ """Puerto Rico holidays.
19
+
20
+ Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
21
+ See <https://en.wikipedia.org/wiki/ISO_3166-2:US#Subdivisions_included_in_ISO_3166-1>
22
+ """
21
23
 
22
24
  country = "PR"
23
25
  supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)