Skip to content

Commit

Permalink
Merge pull request #915 from dr-prodigy/beta
Browse files Browse the repository at this point in the history
v.0.19
  • Loading branch information
arkid15r authored Jan 30, 2023
2 parents 39f3538 + 8004eb0 commit 7655c6e
Show file tree
Hide file tree
Showing 245 changed files with 3,685 additions and 1,486 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4.4.0
uses: actions/setup-python@v4.5.0
- name: Run pre-commit
uses: pre-commit/[email protected]

Expand All @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.4.0
uses: actions/setup-python@v4.5.0
with:
python-version: ${{ matrix.python-version }}
cache: pip
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4.4.0
uses: actions/setup-python@v4.5.0
with:
python-version: "3.10"
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ repos:
args: [--fix=lf]

- repo: https://github.com/python/black
rev: 22.10.0
rev: 22.12.0
hooks:
- id: black
language_version: python3

- repo: https://github.com/pycqa/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -42,7 +42,7 @@ repos:
- --implicit-optional

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
rev: v1.10.0
hooks:
- id: rst-backticks

Expand Down
23 changes: 23 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
Version 0.19
============

Released January 30, 2023

- Copyright update 2023
- Added Arkadii Yakovets (@arkid15r) to project collaborators / maintainers - welcome!
- Add supported countries tests #878 (@arkid15r)
- Update tox configuration #881 (@arkid15r)
- Use augmented assignment statements #890 (@arkid15r)
- Clean up timedelta/relativedelta usage #892, #894 (@arkid15r)
- Add Albania initial support #895 (@arkid15r)
- Add Andorra initial support #896 (@arkid15r)
- Add Bahrain initial support #888 (@arkid15r)
- Add Montenegro initial support #897 (@arkid15r)
- Add San Marino initial support #898 (@arkid15r)
- Add Vatican City initial support #904 (@arkid15r)
- Add Monaco holidays #877 (@KJhellico)
- Migrate prophet.hdays countries #887 (@arkid15r)
- Dominican Republic fix Corpus Christi holiday, tests refactoring #906 (@KJhellico)
- Japan: substitute holidays and citizens' holidays calculation #879 (@KJhellico)
- Singapore holidays update #880 (@KJhellico)

Version 0.18
============

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2017-2022 <maurizio.montel@gmail.com>
Copyright (c) 2017-2023 <dr.prodigy.github@gmail.com>
Copyright (c) 2014-2017 <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
74 changes: 52 additions & 22 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Available Countries

.. _ISO 3166-1 alpha-2 code: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

We currently support 101 countries. The standard way to refer to a country is by
We currently support 111 countries. The standard way to refer to a country is by
using its `ISO 3166-1 alpha-2 code`_, the same used for domain names. The
following countries and their subdivisions are available:

Expand All @@ -118,6 +118,12 @@ following countries and their subdivisions are available:
* - Country
- Code
- Subdivisions Available
* - Albania
- AL
- None
* - Andorra
- AD
- Parishes: AD-02, AD-03, AD-04, AD-05, AD-06, AD-07, AD-08
* - Angola
- AO
- None
Expand All @@ -139,6 +145,9 @@ following countries and their subdivisions are available:
* - Azerbaijan
- AZ
- None
* - Bahrain
- BH
- None
* - Bangladesh
- BD
- None
Expand All @@ -153,13 +162,13 @@ following countries and their subdivisions are available:
- Departments: B, C, H, L, N, O, P, S, T
* - Bosnia and Herzegovina
- BA
- Departments: FBiH, RS, BD
- Departments: BD, FBiH, RS
* - Botswana
- BW
- None
* - Brazil
- BR
- States: AC, AL, AM, AP, BA, CE, DF, ES, GO, MA, MG, MS, MT, PA, PB, PE, PI, RJ, RN, RO, RR, RS, SC, SE, SP, TO
- States: AC, AL, AM, AP, BA, CE, DF, ES, GO, MA, MG, MS, MT, PA, PB, PE, PI, PR, RJ, RN, RO, RR, RS, SC, SE, SP, TO
* - Bulgaria
- BG
- None
Expand All @@ -168,7 +177,7 @@ following countries and their subdivisions are available:
- None
* - Canada
- CA
- Provinces and territories: AB, BC, MB, NB, NL, NS NT, NU, **ON** (default), PE, QC, SK, YT
- Provinces and territories: AB, BC, MB, NB, NL, NS, NT, NU, **ON** (default), PE, QC, SK, YT
* - Chile
- CL
- Regions: AI, AN, AP, AR, AT, BI, CO, LI, LL, LR, MA, ML, NB, RM, TA, VS
Expand All @@ -184,7 +193,7 @@ following countries and their subdivisions are available:
* - Cuba
- CU
- None
* - Curaçao
* - Curacao
- CW
- None
* - Cyprus
Expand All @@ -208,6 +217,9 @@ following countries and their subdivisions are available:
* - Estonia
- EE
- None
* - Eswatini
- SZ
- None
* - Ethiopia
- ET
- None
Expand All @@ -216,7 +228,7 @@ following countries and their subdivisions are available:
- None
* - France
- FR
- Départements: **Métropole** (default), Alsace-Moselle, Guadeloupe, Guyane, Martinique, Mayotte, Nouvelle-Calédonie, La Réunion, Polynésie Française, Saint-Barthélémy, Saint-Martin, Wallis-et-Futuna
- Départements: Alsace-Moselle, Guadeloupe, Guyane, La Réunion, Martinique, Mayotte, **Métropole** (default), Nouvelle-Calédonie, Polynésie Française, Saint-Barthélémy, Saint-Martin, Wallis-et-Futuna
* - Georgia
- GE
- None
Expand Down Expand Up @@ -255,7 +267,7 @@ following countries and their subdivisions are available:
- None
* - Italy
- IT
- Provinces: AG, AL, AN, AO, AP, AQ, AR, AT, AV, BA, BG, BI, BL, BN, BO, BR, BS, BT, BZ, CA, CB, CE, CH, CL, CN, CO, CR, CS, CT, CZ, EN, FC, FE, FG, FI, FM, FR, GE, GO, GR, IM, IS, KR, LC, LE, LI, LO, LT, LU, MB, MC, ME, MI, MN, MO, MS, MT, NA, NO, NU, OR, PA, PC, PD, PE, PG, PI, PN, PO, PR, PT, PU, PV, PZ, RA, RC, RE, RG, RI, RM, RN, RO, SA, SI, SO, SP, SR, SS, SU, SV, TA, TE, TN, TO, TP, TR, TS, TV, UD, VA, VB, VC, VE, VI, VR, VT, VV; Cities: Barletta, Andria, Trani, Cesena, Forlì, Pesaro, Urbino
- Provinces: AG, AL, AN, AO, AP, AQ, AR, AT, AV, BA, BG, BI, BL, BN, BO, BR, BS, BT, BZ, CA, CB, CE, CH, CL, CN, CO, CR, CS, CT, CZ, EN, FC, FE, FG, FI, FM, FR, GE, GO, GR, IM, IS, KR, LC, LE, LI, LO, LT, LU, MB, MC, ME, MI, MN, MO, MS, MT, NA, NO, NU, OR, PA, PC, PD, PE, PG, PI, PN, PO, PR, PT, PU, PV, PZ, RA, RC, RE, RG, RI, RM, RN, RO, SA, SI, SO, SP, SR, SS, SU, SV, TA, TE, TN, TO, TP, TR, TS, TV, UD, VA, VB, VC, VE, VI, VR, VT, VV. Cities: Andria, Barletta, Cesena, Forlì, Pesaro, Trani, Urbino
* - Jamaica
- JM
- None
Expand All @@ -268,6 +280,9 @@ following countries and their subdivisions are available:
* - Kenya
- KE
- None
* - Kyrgyzstan
- KG
- None
* - Latvia
- LV
- None
Expand All @@ -286,12 +301,12 @@ following countries and their subdivisions are available:
* - Madagascar
- MG
- None
* - Malaysia
- MY
- States: JHR, KDH, KTN, MLK, NSN, PHG, PNG, PRK, PLS, SBH, SWK, SGR, TRG, KUL, LBN, PJY
* - Malawi
- MW
- None
* - Malaysia
- MY
- States: JHR, KDH, KTN, KUL, LBN, MLK, NSN, PHG, PJY, PLS, PNG, PRK, SBH, SGR, SWK, TRG
* - Malta
- MT
- None
Expand All @@ -301,21 +316,27 @@ following countries and their subdivisions are available:
* - Moldova
- MD
- None
* - Monaco
- MC
- None
* - Montenegro
- ME
- None
* - Morocco
- MA
- None
* - Mozambique
- MZ
- None
* - Netherlands
- NL
- None
* - Namibia
- NA
- None
* - Netherlands
- NL
- None
* - New Zealand
- NZ
- Regions: AUK, CAN, HKB, MBH, NSN, NTL, OTA, STL, TKI, WGN, WTC, CIT; Sub-regions: South Canterbury
- Regions: AUK, CAN, HKB, MBH, NSN, NTL, OTA, STL, TKI, WGN, WTC, CIT. Sub-regions: South Canterbury
* - Nicaragua
- NI
- Departments: **MN** (default)
Expand All @@ -337,18 +358,24 @@ following countries and their subdivisions are available:
* - Peru
- PE
- None
* - Philippines
- PH
- None
* - Poland
- PL
- None
* - Portugal
- PT
- Districts: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18; Use subdiv='Ext' to include holidays most people have off
- Districts: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, Ext; Use subdiv='Ext' to include holidays most people have off
* - Romania
- RO
- None
* - Russia
- RU
- None
* - San Marino
- SM
- None
* - Saudi Arabia
- SA
- None
Expand All @@ -372,10 +399,7 @@ following countries and their subdivisions are available:
- None
* - Spain
- ES
- Autonomous communities: AN (Andalucía), AR (Aragón), AS (Asturias), CB (Cantabria), CE (Ceuta), CL (Castilla y León), CM (Castilla La Mancha), CN (Canarias), CT (Cataluña), EX (Extremadura), GA (Galicia), IB (Islas Baleares), MC (Murcia), MD (Madrid), NC (Navarra), PV (País Vasco), RI (La Rioja), VC (Comunidad Valenciana)
* - Swaziland
- SZ
- None
- Autonomous communities: AN, AR, AS, CB, CE, CL, CM, CN, CT, EX, GA, IB, MC, MD, ML, NC, PV, RI, VC
* - Sweden
- SE
- None
Expand All @@ -385,12 +409,15 @@ following countries and their subdivisions are available:
* - Taiwan
- TW
- None
* - Turkey
- TR
* - Thailand
- TH
- None
* - Tunisia
- TN
- None
* - Turkey
- TR
- None
* - Ukraine
- UA
- None
Expand All @@ -399,7 +426,7 @@ following countries and their subdivisions are available:
- None
* - United Kingdom
- GB
- Subdivisions: **UK** (default), England, Northern Ireland, Scotland, Wales. For Isle of Man use country code IM.
- Subdivisions: England, Northern Ireland, Scotland, **UK** (default), Wales; For Isle of Man use country code IM
* - United States
- US
- States and territories: AL, AK, AS, AZ, AR, CA, CO, CT, DE, DC, FL, GA, GU, HI, ID, IL, IN, IA, KS, KY, LA, ME, MD, MH, MA, MI, FM, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, MP, OH, OK, OR, PW, PA, PR, RI, SC, SD, TN, TX, UT, VT, VA, VI, WA, WV, WI, WY
Expand All @@ -409,6 +436,9 @@ following countries and their subdivisions are available:
* - Uzbekistan
- UZ
- None
* - Vatican City
- VA
- None
* - Venezuela
- VE
- None
Expand Down
4 changes: 2 additions & 2 deletions holidays/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: dr-prodigy <maurizio.montel@gmail.com> (c) 2017-2022
# Authors: dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/dr-prodigy/python-holidays
# License: MIT (see LICENSE file)
Expand All @@ -15,4 +15,4 @@
from holidays.holiday_base import *
from holidays.utils import *

__version__ = "0.18"
__version__ = "0.19"
2 changes: 1 addition & 1 deletion holidays/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: dr-prodigy <maurizio.montel@gmail.com> (c) 2017-2022
# Authors: dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/dr-prodigy/python-holidays
# License: MIT (see LICENSE file)
Expand Down
Loading

0 comments on commit 7655c6e

Please sign in to comment.