Skip to content

Commit 5492624

Browse files
authored
v0.14 (vacanza#668)
Version 0.14 ============ Released June 5, 2022 - Drop support for EOL Python 3.6 vacanza#328 (hugovk, dr-p) - Package review vacanza#662 (dimbleby) - Added financial markets support: ECB and NYSE, list_supported_financial() method (dr-p) - Support for NY Stock Exchange vacanza#651, vacanza#458 (nadime, dr-p) - Support for Malta vacanza#612, vacanza#630 (rafelbev) - Support for Madagascar vacanza#656 (fav007) - Support for Cyprus vacanza#410, vacanza#665 (digidestination, avnigo) - Ireland as standalone country vacanza#636, vacanza#639 (TeoTN, dr-p, javicalle) - Australia fixes vacanza#631 (jeremychrimes) - Singapore updates vacanza#652 (mborsetti) - Saudi Arabia fixes vacanza#642 (OsaydAbdu) - Spain fixes vacanza#634 (javicalle) - US fixes vacanza#648 (dashdrum) - Greece fixes vacanza#659 (tudorvaran) - India doc fixes vacanza#657 (dr-p) - Poland fix vacanza#663 (kfsz)
1 parent f4a03e6 commit 5492624

File tree

207 files changed

+1846
-831
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+1846
-831
lines changed

.github/workflows/ci-cd.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
name: "Tests"
22
on: [push, pull_request, workflow_dispatch]
33

4+
env:
5+
FORCE_COLOR: 1
6+
47
jobs:
58
pre-commit:
69
name: Run Quality Assurance
710
runs-on: ubuntu-latest
811
steps:
912
- name: Check out repo
10-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1114
- name: Set up Python
12-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v3.1.0
1316
- name: Run pre-commit
1417
uses: pre-commit/[email protected]
1518

@@ -20,22 +23,24 @@ jobs:
2023
strategy:
2124
matrix:
2225
os: [ubuntu-latest, windows-latest, macOS-latest]
23-
python-version: [3.6, 3.7, 3.8, 3.9, pypy-3.7]
26+
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
2427

2528
steps:
26-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v3
2730
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@v3.1.0
2932
with:
3033
python-version: ${{ matrix.python-version }}
34+
cache: pip
35+
cache-dependency-path: requirements_dev.txt
3136
- name: Install dependencies
3237
run: |
3338
python -m pip install -U pip wheel 'coveralls>=3'
3439
python -m pip install -U -r requirements_dev.txt
3540
python -m pip install -e .
3641
- name: Run tests
3742
run: |
38-
py.test
43+
pytest
3944
- name: Upload Coverage
4045
run: coveralls --service=github
4146
env:
@@ -61,11 +66,11 @@ jobs:
6166
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
6267
needs: [test]
6368
steps:
64-
- uses: actions/checkout@v2
69+
- uses: actions/checkout@v3
6570
- name: Set up Python 3.9
66-
uses: actions/setup-python@v2
71+
uses: actions/setup-python@v3.1.0
6772
with:
68-
python-version: 3.9
73+
python-version: "3.10"
6974
- name: Install dependencies
7075
run: |
7176
python -m pip install -U pip wheel

.pre-commit-config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.1.0
3+
rev: v4.2.0
44
hooks:
55
- id: check-ast
66
- id: check-builtin-literals
77
- id: end-of-file-fixer
88
- id: trailing-whitespace
99
- id: fix-encoding-pragma
10+
args: [--remove]
1011
- id: mixed-line-ending
1112
args: [--fix=lf]
1213

1314
- repo: https://github.com/python/black
14-
rev: 22.1.0
15+
rev: 22.3.0
1516
hooks:
1617
- id: black
1718
language_version: python3
@@ -23,7 +24,7 @@ repos:
2324
args: [--max-line-length=79]
2425

2526
- repo: https://github.com/pre-commit/mirrors-mypy
26-
rev: 'v0.931'
27+
rev: 'v0.960'
2728
hooks:
2829
- id: mypy
2930
additional_dependencies: [types-all]
@@ -46,6 +47,6 @@ repos:
4647
# args: [--ignore-directives=automodule]
4748

4849
- repo: https://github.com/asottile/setup-cfg-fmt
49-
rev: v1.20.0
50+
rev: v1.20.1
5051
hooks:
5152
- id: setup-cfg-fmt

CHANGES

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
Version 0.14
2+
============
3+
4+
Released June 5, 2022
5+
6+
- Drop support for EOL Python 3.6 #328 (hugovk, dr-p)
7+
- Package review #662 (dimbleby)
8+
- Added financial markets support: ECB and NYSE, list_supported_financial() method (dr-p)
9+
- Support for NY Stock Exchange #651, #458 (nadime, dr-p)
10+
- Support for Malta #612, #630 (rafelbev)
11+
- Support for Madagascar #656 (fav007)
12+
- Support for Cyprus #410, #665 (digidestination, avnigo)
13+
- Ireland as standalone country #636, #639 (TeoTN, dr-p, javicalle)
14+
- Australia fixes #631 (jeremychrimes)
15+
- Singapore updates #652 (mborsetti)
16+
- Saudi Arabia fixes #642 (OsaydAbdu)
17+
- Spain fixes #634 (javicalle)
18+
- US fixes #648 (dashdrum)
19+
- Greece fixes #659 (tudorvaran)
20+
- India doc fixes #657 (dr-p)
21+
- Poland fix #663 (kfsz)
22+
23+
124
Version 0.13
225
============
326

README.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ following countries and their subdivisions are available:
155155
* - Curaçao
156156
- CW
157157
- None
158+
* - Cyprus
159+
- CY
160+
- None
158161
* - Czechia
159162
- CZ
160163
- None
@@ -205,7 +208,7 @@ following countries and their subdivisions are available:
205208
- None
206209
* - India
207210
- IN
208-
- States: AP, AS, BR, CG, GJ, HR, KA, KL, MH, MP, OD, RJ, SK, TN, TN, UK, UP, WB
211+
- States: AN, AP, AR, AS, BR, CG, CH, DD, DH, DL, GA, GJ, HP, HR, JH, JK, KA, KL, LA, LD, MH, ML, MN, MP, MZ, NL, OR, PB, PY, RJ, SK, TN, TR, TS, UK, UP, WB
209212
* - Ireland
210213
- IE
211214
- None
@@ -245,12 +248,18 @@ following countries and their subdivisions are available:
245248
* - Luxembourg
246249
- LU
247250
- None
251+
* - Madagascar
252+
- MG
253+
- None
248254
* - Malaysia
249255
- MY
250256
- States: JHR, KDH, KTN, MLK, NSN, PHG, PNG, PRK, PLS, SBH, SWK, SGR, TRG, KUL, LBN, PJY
251257
* - Malawi
252258
- MW
253259
- None
260+
* - Malta
261+
- MT
262+
- None
254263
* - Mexico
255264
- MX
256265
- None
@@ -390,6 +399,9 @@ following financial markets are available:
390399
* - European Central Bank
391400
- ECB
392401
- Trans-European Automated Real-time Gross Settlement (TARGET2)
402+
* - New York Stock Exchange
403+
- XNYS
404+
- NYSE market holidays (used by all other US-exchanges, including NASDAQ, etc.)
393405

394406

395407
Beta Version

docs/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Configuration file for the Sphinx documentation builder.
32
#
43
# This file only contains a selection of the most common options. For a full

holidays/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# python-holidays
42
# ---------------
53
# A fast, efficient Python library for generating country, province and state
@@ -11,6 +9,7 @@
119
# Website: https://github.com/dr-prodigy/python-holidays
1210
# License: MIT (see LICENSE file)
1311
from holidays.countries import *
12+
from holidays.financial import *
1413
from holidays.constants import MON, TUE, WED, THU, FRI, SAT, SUN, WEEKEND
1514
from holidays.constants import (
1615
JAN,
@@ -31,6 +30,7 @@
3130
CountryHoliday,
3231
country_holidays,
3332
list_supported_countries,
33+
list_supported_financial,
3434
)
3535

36-
__version__ = "0.13"
36+
__version__ = "0.14"

holidays/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# python-holidays
42
# ---------------
53
# A fast, efficient Python library for generating country, province and state

holidays/countries/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# python-holidays
32
# ---------------
43
# A fast, efficient Python library for generating country, province and state
@@ -29,14 +28,14 @@
2928
from .colombia import Colombia, CO, COL
3029
from .croatia import Croatia, HR, HRV
3130
from .curacao import Curacao, CW, CUW
31+
from .cyprus import Cyprus, CY, CYP
3232
from .czechia import Czechia, CZ, CZE
3333
from .denmark import Denmark, DK, DNK
3434
from .djibouti import Djibouti, DJ, DJI
3535
from .dominican_republic import DominicanRepublic, DO, DOM
3636
from .egypt import Egypt, EG, EGY
3737
from .estonia import Estonia, EE, EST
3838
from .ethiopia import Ethiopia, ET, ETH
39-
from .european_central_bank import EuropeanCentralBank, ECB, TAR
4039
from .finland import Finland, FI, FIN
4140
from .france import France, FR, FRA
4241
from .georgia import Georgia, GE, GEO
@@ -60,8 +59,10 @@
6059
from .lesotho import Lesotho, LS, LSO
6160
from .lithuania import Lithuania, LT, LTU
6261
from .luxembourg import Luxembourg, LU, LUX
62+
from .madagascar import Madagascar, MG, MDG
6363
from .malawi import Malawi, MW, MWI
6464
from .malaysia import Malaysia, MY, MYS
65+
from .malta import Malta, MT, MLT
6566
from .mexico import Mexico, MX, MEX
6667
from .morocco import Morocco, MA, MOR
6768
from .mozambique import Mozambique, MZ, MOZ

holidays/countries/angola.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# python-holidays
42
# ---------------
53
# A fast, efficient Python library for generating country, province and state

holidays/countries/argentina.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# python-holidays
42
# ---------------
53
# A fast, efficient Python library for generating country, province and state

0 commit comments

Comments
 (0)