-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1747 from vacanza/dev
v0.46
- Loading branch information
Showing
633 changed files
with
8,264 additions
and
4,956 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5.0.0 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: '3.12' | ||
- name: Run pre-commit | ||
|
@@ -50,7 +50,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5.0.0 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
cache: pip | ||
cache-dependency-path: | | ||
|
@@ -84,7 +84,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5.0.0 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
cache: pip | ||
cache-dependency-path: requirements/runtime.txt | ||
|
@@ -116,6 +116,46 @@ jobs: | |
with: | ||
parallel-finished: true | ||
|
||
test-build: | ||
name: Test build on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
needs: build | ||
strategy: | ||
matrix: | ||
os: | ||
- macOS-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
steps: | ||
- name: Check out Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
cache: pip | ||
cache-dependency-path: | | ||
requirements/runtime.txt | ||
requirements/tests.txt | ||
python-version: '3.12' | ||
|
||
- name: Get package artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
- name: Run tests | ||
shell: bash | ||
run: | | ||
rm -rf holidays | ||
python -m pip install --upgrade --requirement requirements/tests.txt | ||
python -m pip install `ls dist/*.whl` | ||
pytest --dist loadscope --numprocesses auto tests/countries tests/financial | ||
python -m pip uninstall -y holidays python-dateutil six | ||
python -m pip install `ls dist/*.tar.gz` | ||
pytest --dist loadscope --numprocesses auto tests/countries tests/financial | ||
publish-pypi-main: | ||
name: Publish to PyPI | ||
if: | | ||
|
@@ -124,7 +164,7 @@ jobs: | |
startsWith(github.event.ref, 'refs/tags/v') | ||
environment: main | ||
needs: | ||
- build | ||
- test-build | ||
permissions: | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
Copyright (c) 2017-2023 <[email protected]> | ||
Copyright (c) 2014-2017 <[email protected]> | ||
Copyright (c) Vacanza Team and individual contributors (see AUTHORS file) | ||
Copyright (c) dr-prodigy <[email protected]>, 2017-2023 | ||
Copyright (c) ryanss <[email protected]>, 2014-2017 | ||
|
||
All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
holidays | ||
-------- | ||
A fast, efficient Python library for generating country, province and state | ||
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: Vacanza Team and individual contributors (see AUTHORS file) | ||
dr-prodigy <[email protected]> (c) 2017-2023 | ||
ryanss <[email protected]> (c) 2014-2017 | ||
Website: https://github.com/vacanza/python-holidays | ||
License: MIT (see LICENSE file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# holidays | ||
# -------- | ||
# A fast, efficient Python library for generating country, province and state | ||
# 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: Vacanza Team and individual contributors (see AUTHORS file) | ||
# dr-prodigy <[email protected]> (c) 2017-2023 | ||
# ryanss <[email protected]> (c) 2014-2017 | ||
# Website: https://github.com/vacanza/python-holidays | ||
# License: MIT (see LICENSE file) | ||
|
||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# This file only contains a selection of the most common options. For a full | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# python-holidays | ||
# --------------- | ||
# holidays | ||
# -------- | ||
# A fast, efficient Python library for generating country, province and state | ||
# 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 <[email protected]> (c) 2017-2023 | ||
# Authors: Vacanza Team and individual contributors (see AUTHORS file) | ||
# dr-prodigy <[email protected]> (c) 2017-2023 | ||
# ryanss <[email protected]> (c) 2014-2017 | ||
# Website: https://github.com/dr-prodigy/python-holidays | ||
# Website: https://github.com/vacanza/python-holidays | ||
# License: MIT (see LICENSE file) | ||
|
||
# flake8: noqa: F403 | ||
|
@@ -16,7 +17,7 @@ | |
from holidays.registry import EntityLoader | ||
from holidays.utils import * | ||
|
||
__version__ = "0.45" | ||
__version__ = "0.46" | ||
|
||
|
||
EntityLoader.load("countries", globals()) | ||
|
Oops, something went wrong.