Skip to content

Commit

Permalink
Merge pull request #1563 from vacanza/beta
Browse files Browse the repository at this point in the history
v0.37
  • Loading branch information
KJhellico committed Nov 20, 2023
2 parents daa4b80 + b298035 commit 185e12f
Show file tree
Hide file tree
Showing 82 changed files with 6,309 additions and 2,607 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Expand Up @@ -13,7 +13,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python/black
rev: 23.10.1
rev: 23.11.0
hooks:
- id: black
exclude: ^(docs)
Expand All @@ -35,7 +35,7 @@ repos:
exclude: ^(docs)

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.7.0
hooks:
- id: mypy
additional_dependencies: [types-all]
Expand Down
21 changes: 21 additions & 0 deletions CHANGES
@@ -1,3 +1,24 @@
Version 0.37
============

Released November 20, 2023

- Update Japan holidays: add th localization (#1545 by @PPsyrius)
- Fix Brazil subdivisions holidays (#1562 by @KJhellico)
- Update Denmark holidays: add holiday categories (#1555 by @KJhellico)
- Update Hungary holidays: add substituted holidays (#1551 by @KJhellico)
- Update Israel holidays (#1541 by @KJhellico)
- Update Netherlands holidays: add holiday categories (#1552 by @KJhellico)
- Update Slovakia holidays (#1546 by @jose1711)
- Update South Korea holidays, add l10n support (#1536 by @PPsyrius)
- Update Spain holidays in 2024 (#1537 by @KJhellico)
- Update Turkey holidays: add holiday categories and l10n support (#1556 by @KJhellico)
- Update Ukraine holidays (#1547 by @KJhellico)
- Update badges in README (#1544 by @kasya)
- Add `_next_year_new_years_day` to InternationalHolidays (#1539 by @KJhellico)
- Extend HolidayBase::categories to accept a single value (#1550 by @arkid15r)
- Migrate NYSE holidays to ObservedHolidayBase (#1548 by @KJhellico)

Version 0.36
============

Expand Down
83 changes: 54 additions & 29 deletions README.rst
Expand Up @@ -7,39 +7,64 @@ state or province) specific sets of government-designated holidays on the fly.
It aims to make determining whether a specific date is a holiday as fast and
flexible as possible.

:Package:
.. image:: https://img.shields.io/pypi/pyversions/holidays.svg?logo=python&label=Python&logoColor=gold
:target: https://pypi.python.org/pypi/holidays
:alt: Python supported versions
:PyPI:
.. image:: https://img.shields.io/pypi/dm/holidays?color=%2341B5BE
:target: https://pypi.org/project/holidays
:alt: Downloads

.. image:: http://img.shields.io/pypi/v/holidays.svg?logo=pypi&label=PyPI&logoColor=gold
:target: https://pypi.python.org/pypi/holidays
.. image:: https://img.shields.io/pypi/v/holidays?label=version&color=%2341B5BE
:target: https://pypi.org/project/holidays
:alt: PyPI version

.. image:: https://img.shields.io/pypi/dm/holidays.svg?color=blue&label=Downloads&logo=pypi&logoColor=gold
:target: https://pypi.python.org/pypi/holidays
:alt: Downloads
.. image:: https://img.shields.io/github/release-date/vacanza/python-holidays?color=%2341B5BE
:target: https://github.com/vacanza/python-holidays/releases
:alt: Release date

:CI/CD:
.. image:: https://github.com/vacanza/python-holidays/workflows/CI%2FCD/badge.svg
:target: actions
.. image:: https://img.shields.io/github/actions/workflow/status/vacanza/python-holidays/ci-cd.yml?color=%2341BE4A
:target: https://github.com/vacanza/python-holidays/actions
:alt: CI/CD status

.. image:: http://img.shields.io/coveralls/vacanza/python-holidays/master
:target: https://coveralls.io/r/vacanza/python-holidays

:Docs:
.. image:: https://readthedocs.org/projects/python-holidays/badge/?version=latest
.. image:: https://img.shields.io/readthedocs/python-holidays?color=%2341BE4A
:target: https://python-holidays.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

:Meta:
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:alt: Code style
:alt: Documentation status

.. image:: http://img.shields.io/pypi/l/holidays.svg
:Code:
.. image:: https://img.shields.io/github/license/vacanza/python-holidays?color=%2341B5BE
:target: LICENSE
:alt: License

.. image:: https://img.shields.io/pypi/pyversions/holidays?label=python&color=%2341B5BE
:target: https://pypi.org/project/holidays
:alt: Python supported versions

.. image:: https://img.shields.io/badge/code%20style-black-%252333F93C0?label=style&color=%2341B5BE
:target: https://github.com/psf/black
:alt: Code style

.. image:: https://img.shields.io/coverallsCoverage/github/vacanza/python-holidays?branch=master&color=%2341B5BE
:target: https://coveralls.io/r/vacanza/python-holidays
:alt: Code coverage


:GitHub:
.. image:: https://img.shields.io/github/stars/vacanza/python-holidays?color=%2341BE4A
:target: https://github.com/vacanza/python-holidays/stargazers
:alt: GitHub stars

.. image:: https://img.shields.io/github/forks/vacanza/python-holidays?color=%2341BE4A
:target: https://github.com/vacanza/python-holidays/forks
:alt: GitHub forks

.. image:: https://img.shields.io/github/contributors/vacanza/python-holidays?color=%2341BE4A
:target: https://github.com/vacanza/python-holidays/graphs/contributors
:alt: GitHub contributors

.. image:: https://img.shields.io/github/last-commit/vacanza/python-holidays/beta?color=%2341BE4A
:target: https://github.com/vacanza/python-holidays/commits/beta
:alt: GitHub last commit


Install
-------

Expand Down Expand Up @@ -346,7 +371,7 @@ The list of supported countries, their subdivisions, supported languages and cat
- DK
-
- **da**, en_US, uk
-
- OPTIONAL, **PUBLIC**
* - Djibouti
- DJ
-
Expand Down Expand Up @@ -476,7 +501,7 @@ The list of supported countries, their subdivisions, supported languages and cat
- IL
-
-
-
- OPTIONAL, **PUBLIC**, SCHOOL
* - 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: Andria, Barletta, Cesena, Forli, Pesaro, Trani, Urbino
Expand All @@ -490,7 +515,7 @@ The list of supported countries, their subdivisions, supported languages and cat
* - Japan
- JP
-
- en_US, **ja**
- en_US, **ja**, th
- BANK, **PUBLIC**
* - Kazakhstan
- KZ
Expand Down Expand Up @@ -606,7 +631,7 @@ The list of supported countries, their subdivisions, supported languages and cat
- NL
-
- en_US, **nl**, uk
-
- OPTIONAL, **PUBLIC**
* - New Zealand
- NZ
- Regions: AUK, BOP, CAN, CIT, GIS, HKB, MBH, MWT, NSN, NTL, OTA, STL, TAS, TKI, WGN, WKO, WTC
Expand Down Expand Up @@ -725,7 +750,7 @@ The list of supported countries, their subdivisions, supported languages and cat
* - South Korea
- KR
-
-
- en_US, **ko**, th
- BANK, **PUBLIC**
* - Spain
- ES
Expand Down Expand Up @@ -775,8 +800,8 @@ The list of supported countries, their subdivisions, supported languages and cat
* - Turkey
- TR
-
-
-
- en_US, **tr**, uk
- HALF_DAY, **PUBLIC**
* - Ukraine
- UA
-
Expand Down
21 changes: 20 additions & 1 deletion docs/source/examples.rst
Expand Up @@ -148,12 +148,31 @@ To get a list of other categories holidays (for countries that support them):

.. code-block:: python
>>> for dt, name in sorted(holidays.BE(years=2023, language="en_US", categories=(BANK,)).items()):
>>> for dt, name in sorted(holidays.BE(years=2023, language="en_US", categories=BANK).items()):
>>> print(dt, name)
2023-04-07 Good Friday
2023-05-19 Friday after Ascension Day
2023-12-26 Bank Holiday
>>> for dt, name in sorted(holidays.BE(years=2023, language="en_US", categories=(BANK, PUBLIC)).items()):
>>> print(dt, name)
2023-01-01 New Year's Day
2023-04-07 Good Friday
2023-04-09 Easter
2023-04-10 Easter Monday
2023-05-01 Labor Day
2023-05-18 Ascension Day
2023-05-19 Friday after Ascension Day
2023-05-28 Whit Sunday
2023-05-29 Whit Monday
2023-07-21 National Day
2023-08-15 Assumption of Mary
2023-11-01 All Saints' Day
2023-11-11 Armistice Day
2023-12-25 Christmas Day
2023-12-26 Bank Holiday
Date from holiday name
----------------------

Expand Down
2 changes: 1 addition & 1 deletion holidays/__init__.py
Expand Up @@ -16,7 +16,7 @@
from holidays.registry import EntityLoader
from holidays.utils import *

__version__ = "0.36"
__version__ = "0.37"


EntityLoader.load("countries", globals())
Expand Down

0 comments on commit 185e12f

Please sign in to comment.