Skip to content

Commit

Permalink
Move to holidays from python-holidays (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r authored Oct 7, 2024
1 parent ab5816a commit 1f3170f
Show file tree
Hide file tree
Showing 677 changed files with 1,320 additions and 1,342 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ blank_issues_enabled: false

contact_links:
- name: General question
url: https://github.com/vacanza/python-holidays/discussions/new?category=q-a
url: https://github.com/vacanza/holidays/discussions/new?category=q-a
about: Ask a question

- name: Bug Report
url: https://github.com/vacanza/python-holidays/issues/new?template=bug_report.md
url: https://github.com/vacanza/holidays/issues/new?template=bug_report.md
about: Report an issue

- name: Feature Request
url: https://github.com/vacanza/python-holidays/issues/new?template=feature_request.md
url: https://github.com/vacanza/holidays/issues/new?template=feature_request.md
about: Suggest an idea
8 changes: 4 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Thanks for contributing to python-holidays!
Thanks for contributing to holidays!
-->

## Proposed change
Expand All @@ -25,7 +25,7 @@ Your PR description goes here.
- [ ] Dependency update (version deprecation/pin/upgrade)
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] Breaking change (a code change causing existing functionality to break)
- [ ] New feature (new python-holidays functionality in general)
- [ ] New feature (new `holidays` functionality in general)

## Checklist

Expand All @@ -41,5 +41,5 @@ Your PR description goes here.
Thanks again for your contribution!
-->

[contributing-guidelines]: https://github.com/vacanza/python-holidays/blob/dev/CONTRIBUTING.rst
[docs]: https://github.com/vacanza/python-holidays/tree/dev/docs/source
[contributing-guidelines]: https://github.com/vacanza/holidays/blob/dev/CONTRIBUTING.rst
[docs]: https://github.com/vacanza/holidays/tree/dev/docs/source
6 changes: 3 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ jobs:
publish-main:
name: Publish generated artifacts
if: |
github.repository == 'vacanza/python-holidays' &&
github.repository == 'vacanza/holidays' &&
github.event_name == 'push' &&
startsWith(github.event.ref, 'refs/tags/v')
environment: main
Expand Down Expand Up @@ -254,5 +254,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload --repo vacanza/python-holidays ${{ github.ref_name }} dist/*
gh release upload --repo vacanza/python-holidays ${{ github.ref_name }} holidays-*-sbom.json
gh release upload --repo vacanza/holidays ${{ github.ref_name }} dist/*
gh release upload --repo vacanza/holidays ${{ github.ref_name }} holidays-*-sbom.json
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
auto-update:
name: Update pre-commit hooks
if: ${{ github.repository == 'vacanza/python-holidays' }}
if: ${{ github.repository == 'vacanza/holidays' }}
permissions:
contents: write
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
update-snapshots:
name: Update snapshots
if: github.repository == 'vacanza/python-holidays'
if: github.repository == 'vacanza/holidays'
permissions:
contents: write
pull-requests: write
Expand Down
4 changes: 2 additions & 2 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Python Holidays Authors
=======================
Holidays Authors
================

Aaron Picht
Aart Goossens
Expand Down
14 changes: 7 additions & 7 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributing
============

.. _prs: https://github.com/vacanza/python-holidays/pulls
.. _`dev branch`: https://github.com/vacanza/python-holidays/tree/dev
.. _prs: https://github.com/vacanza/holidays/pulls
.. _`dev branch`: https://github.com/vacanza/holidays/tree/dev


Basics
Expand Down Expand Up @@ -99,7 +99,7 @@ If the translation already exists you'll just need to update it with the new
template entries (your .po file editor may help you to do that with no hassle).

Please also add tests (see already translated countries tests for examples).
The .mo files are generated automatically for the tests and the python-holidays
The .mo files are generated automatically for the tests and the holidays
package so you shouldn't worry about it. Just don't forget to
initialize the ``setUpClass`` properly:

Expand All @@ -113,7 +113,7 @@ initialize the ``setUpClass`` properly:
Build sphinx documentation
--------------------------

.. _readthedocs.io: https://python-holidays.readthedocs.io/
.. _readthedocs.io: https://holidays.readthedocs.io/

The project provides a Sphinx documentation source under ``./docs/source``,
published online on `readthedocs.io`_.
Expand All @@ -128,9 +128,9 @@ __ https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
Contributors
------------

.. __: https://github.com/vacanza/python-holidays/blob/dev/AUTHORS
.. |contributors| image:: https://img.shields.io/github/contributors/vacanza/python-holidays
:target: https://github.com/vacanza/python-holidays/graphs/contributors
.. __: https://github.com/vacanza/holidays/blob/dev/AUTHORS
.. |contributors| image:: https://img.shields.io/github/contributors/vacanza/holidays
:target: https://github.com/vacanza/holidays/graphs/contributors
:alt: contributors

In order to keep the list of contributors up to date we encourage you add your
Expand Down
52 changes: 26 additions & 26 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ flexible as possible.
:target: https://pypi.org/project/holidays
:alt: PyPI version

.. |release date| image:: https://img.shields.io/github/release-date/vacanza/python-holidays?color=41B5BE&style=flat
:target: https://github.com/vacanza/python-holidays/releases
.. |release date| image:: https://img.shields.io/github/release-date/vacanza/holidays?color=41B5BE&style=flat
:target: https://github.com/vacanza/holidays/releases
:alt: PyPI release date

.. |status| image:: https://img.shields.io/github/actions/workflow/status/vacanza/python-holidays/ci-cd.yml?branch=dev&color=41BE4A&style=flat
:target: https://github.com/vacanza/python-holidays/actions/workflows/ci-cd.yml?query=branch%3Adev
.. |status| image:: https://img.shields.io/github/actions/workflow/status/vacanza/holidays/ci-cd.yml?branch=dev&color=41BE4A&style=flat
:target: https://github.com/vacanza/holidays/actions/workflows/ci-cd.yml?query=branch%3Adev
:alt: CI/CD status

.. |documentation| image:: https://img.shields.io/readthedocs/python-holidays?color=41BE4A&style=flat
:target: https://python-holidays.readthedocs.io/en/latest/?badge=latest
.. |documentation| image:: https://img.shields.io/readthedocs/holidays?color=41BE4A&style=flat
:target: https://holidays.readthedocs.io/en/latest/?badge=latest
:alt: Documentation status

.. |license| image:: https://img.shields.io/github/license/vacanza/python-holidays?color=41B5BE&style=flat
:target: https://github.com/vacanza/python-holidays/blob/dev/LICENSE
.. |license| image:: https://img.shields.io/github/license/vacanza/holidays?color=41B5BE&style=flat
:target: https://github.com/vacanza/holidays/blob/dev/LICENSE
:alt: License

.. |python versions| image:: https://img.shields.io/pypi/pyversions/holidays?label=python&color=41B5BE&style=flat
Expand All @@ -39,24 +39,24 @@ flexible as possible.
:target: https://github.com/astral-sh/ruff
:alt: Code style

.. |coverage| image:: https://img.shields.io/codecov/c/github/vacanza/python-holidays/dev?color=41B5BE&style=flat
:target: https://app.codecov.io/gh/vacanza/python-holidays
.. |coverage| image:: https://img.shields.io/codecov/c/github/vacanza/holidays/dev?color=41B5BE&style=flat
:target: https://app.codecov.io/gh/vacanza/holidays
:alt: Code coverage

.. |stars| image:: https://img.shields.io/github/stars/vacanza/python-holidays?color=41BE4A&style=flat
:target: https://github.com/vacanza/python-holidays/stargazers
.. |stars| image:: https://img.shields.io/github/stars/vacanza/holidays?color=41BE4A&style=flat
:target: https://github.com/vacanza/holidays/stargazers
:alt: GitHub stars

.. |forks| image:: https://img.shields.io/github/forks/vacanza/python-holidays?color=41BE4A&style=flat
:target: https://github.com/vacanza/python-holidays/forks
.. |forks| image:: https://img.shields.io/github/forks/vacanza/holidays?color=41BE4A&style=flat
:target: https://github.com/vacanza/holidays/forks
:alt: GitHub forks

.. |contributors| image:: https://img.shields.io/github/contributors/vacanza/python-holidays?color=41BE4A&style=flat
:target: https://github.com/vacanza/python-holidays/graphs/contributors
.. |contributors| image:: https://img.shields.io/github/contributors/vacanza/holidays?color=41BE4A&style=flat
:target: https://github.com/vacanza/holidays/graphs/contributors
:alt: GitHub contributors

.. |last commit| image:: https://img.shields.io/github/last-commit/vacanza/python-holidays/dev?color=41BE4A&style=flat
:target: https://github.com/vacanza/python-holidays/commits/dev
.. |last commit| image:: https://img.shields.io/github/last-commit/vacanza/holidays/dev?color=41BE4A&style=flat
:target: https://github.com/vacanza/holidays/commits/dev
:alt: GitHub last commit

+--------+------------------------------------------------+
Expand All @@ -82,15 +82,15 @@ The latest development (dev) version can be installed directly from GitHub:

.. code-block:: shell
$ pip install --upgrade https://github.com/vacanza/python-holidays/tarball/dev
$ pip install --upgrade https://github.com/vacanza/holidays/tarball/dev
All new features are always first pushed to dev branch, then released on
main branch upon official version upgrades.

Documentation
-------------

.. _Read the Docs: https://python-holidays.readthedocs.io/
.. _Read the Docs: https://holidays.readthedocs.io/

The documentation is hosted on `Read the Docs`_.

Expand Down Expand Up @@ -132,9 +132,9 @@ Some holidays may be only present in parts of a country:
'2018-01-06' in us_holidays # False
'2018-01-06' in us_pr_holidays # True
.. _python-holidays documentation: https://python-holidays.readthedocs.io/
.. _holidays documentation: https://holidays.readthedocs.io/

Please see the `python-holidays documentation`_ for additional examples and
Please see the `holidays documentation`_ for additional examples and
detailed information.


Expand Down Expand Up @@ -988,17 +988,17 @@ following financial markets are available:
Contributions
-------------

.. _Issues: https://github.com/vacanza/python-holidays/issues
.. _pull requests: https://github.com/vacanza/python-holidays/pulls
.. _here: https://github.com/vacanza/python-holidays/blob/dev/CONTRIBUTING.rst
.. _Issues: https://github.com/vacanza/holidays/issues
.. _pull requests: https://github.com/vacanza/holidays/pulls
.. _here: https://github.com/vacanza/holidays/blob/dev/CONTRIBUTING.rst

Issues_ and `pull requests`_ are always welcome. Please see
`here`_ for more information.

License
-------

.. __: https://github.com/vacanza/python-holidays/blob/dev/LICENSE
.. __: https://github.com/vacanza/holidays/blob/dev/LICENSE

Code and documentation are available according to the MIT License
(see LICENSE__).
20 changes: 10 additions & 10 deletions RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
How to release a new version of Python Holidays
===============================================
How to release a new version of Holidays
========================================

- Finalize the current development version

- switch to ``dev`` branch and pull the most recent changes
from https://github.com/vacanza/python-holidays remote ``dev`` branch.
from https://github.com/vacanza/holidays remote ``dev`` branch.
- generate release notes by running ``make release-notes``
- insert the command's output into the top of ``CHANGES`` file
(see previous release notes for consistent formatting)
- commit the updated ``CHANGES`` file to ``dev`` branch with the following
commit message 'Finalize v<version>', e.g. 'Finalize v0.39'
- push changes to https://github.com/vacanza/python-holidays ``dev`` branch
- push changes to https://github.com/vacanza/holidays ``dev`` branch
- make sure the push related CI/CD jobs have been completed successfully

- Merge the finalized changes into ``main`` branch:
Expand All @@ -22,12 +22,12 @@ How to release a new version of Python Holidays
- merge the PR into ``main`` branch using 'Merge when ready' button
- make sure the PR related CI/CD jobs have been completed successfully
- make sure readthedocs.org documentation build jobs at
https://readthedocs.org/projects/python-holidays/builds/
https://readthedocs.org/projects/holidays/builds/
have been completed successfully

- Create a new release:

- open https://github.com/vacanza/python-holidays/releases page and click
- open https://github.com/vacanza/holidays/releases page and click
on the 'Draft a new release' button
- click on 'Choose a tag', enter 'v<version>' into the input field
(you should see something like 'Create a new tag: v0.39' on publish'
Expand All @@ -41,7 +41,7 @@ How to release a new version of Python Holidays
- check/uncheck the 'Set as the latest release' checkbox depending on the
release status
- save the draft (do not publish it yet)
- preview the release on https://github.com/vacanza/python-holidays/releases
- preview the release on https://github.com/vacanza/holidays/releases
- after making sure everything looks right click 'Edit' and then
'Publish release'

Expand All @@ -53,14 +53,14 @@ How to release a new version of Python Holidays

- Finish the process with the following post-release actions:

- send "Python Holidays 'v<version>' has been released!" (or similar) message
- send "Holidays 'v<version>' has been released!" (or similar) message
to Vacanza Team Slack #release channel
- pull the recent changes from ``main`` branch into ``dev``
- bump the Python Holidays version at ``holidays/__init__.py`` file
- bump the Holidays version at ``holidays/__init__.py`` file
- create a commit with 'Initialize v<version>' message, e.g.
'Initialize v0.40' and push it to ``dev`` branch (this may require
running ``make package`` to pass the tests locally)
- make sure ``dev`` branch **is not behind** the ``main`` branch (there
will be a message on top of the
https://github.com/vacanza/python-holidays/tree/dev page in case it is)
https://github.com/vacanza/holidays/tree/dev page in case it is)
- make sure the push related CI/CD jobs have been completed successfully
2 changes: 1 addition & 1 deletion docs/file_header.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
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
Website: https://github.com/vacanza/holidays
License: MIT (see LICENSE file)
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 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
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)

# Configuration file for the Sphinx documentation builder.
Expand Down Expand Up @@ -44,7 +44,7 @@

project = "holidays"
copyright = str(date.today().year)
author = "dr-prodigy"
author = "Vacanza Team"
version = holidays.__version__


Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. python-holidays documentation master file, created by
.. holidays documentation master file, created by
sphinx-quickstart on Sat Nov 27 12:00:54 2021.
You can adapt this file completely to your liking, but it should at least
contain the root ``toctree`` directive.
Expand Down
2 changes: 1 addition & 1 deletion holidays/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 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
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)

# flake8: noqa: F403
Expand Down
2 changes: 1 addition & 1 deletion holidays/calendars/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 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
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)

# flake8: noqa: F401
Expand Down
2 changes: 1 addition & 1 deletion holidays/calendars/buddhist.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 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
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)

from datetime import date
Expand Down
2 changes: 1 addition & 1 deletion holidays/calendars/chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 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
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)

from datetime import date
Expand Down
2 changes: 1 addition & 1 deletion holidays/calendars/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 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
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)


Expand Down
2 changes: 1 addition & 1 deletion holidays/calendars/gregorian.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 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
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)

from datetime import date
Expand Down
2 changes: 1 addition & 1 deletion holidays/calendars/hebrew.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 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
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)

from datetime import date
Expand Down
Loading

0 comments on commit 1f3170f

Please sign in to comment.