Skip to content

Commit

Permalink
Merge pull request #1716 from vacanza/dev
Browse files Browse the repository at this point in the history
v0.44
  • Loading branch information
KJhellico committed Mar 4, 2024
2 parents 2e57574 + 8bb6bff commit 1653bec
Show file tree
Hide file tree
Showing 122 changed files with 29,486 additions and 3,539 deletions.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ Your PR description goes here.
Thanks again for your contribution!
-->

[contributing-guidelines]: https://github.com/vacanza/python-holidays/blob/beta/CONTRIBUTING.rst
[docs]: https://github.com/vacanza/python-holidays/tree/beta/docs/source
[contributing-guidelines]: https://github.com/vacanza/python-holidays/blob/dev/CONTRIBUTING.rst
[docs]: https://github.com/vacanza/python-holidays/tree/dev/docs/source
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ updates:
schedule:
interval: weekly
day: wednesday
target-branch: beta
target-branch: dev

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: wednesday
target-branch: beta
target-branch: dev
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:

- uses: browniebroke/pre-commit-autoupdate-action@v1.0.0

- uses: peter-evans/create-pull-request@v6.0.0
- uses: peter-evans/create-pull-request@v6.0.1
with:
base: beta
base: dev
body: Update pre-commit hooks to their latest versions.
branch: update-pre-commit-hooks
commit-message: 'chore: Update pre-commit hooks'
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- rst

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.0
hooks:
- id: ruff
- id: ruff-format
Expand Down
131 changes: 131 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
Python Holidays Authors
=======================

Aaron Picht
Aart Goossens
Akos Furton
Alejandro Antunes
Alexander Schulze
Alexandre Carvalho
Anders Wenhaug
Andres Marrugo
Anthony Rose
Anton Daitche
Arjun Anandkumar
Arkadii Yakovets
Artem Tserekh
Bailey Thompson
Ben Collerson
Ben Letham
Benjamin Lucas Wacha
Bernhard M. Wiedemann
Carlos Rocha
Chanran Kim
Chris McKeague
Chris Turra
Christian Alexander
Dan Gentry
Daniel Musketa
Daniël Niemeijer
David Hotham
Diogo Rosa
Dorian Monnier
Douglas Franklin
Eden Juscelino
Edison Robles
Edward Betts
Eldar Mustafayev
Emmanuel Arias
Eugenio Panadero Maciá
Fabian Affolter
Felix Lee
Filip Bednárik
Gabriel L Martinez
Gabriel Trabanco
Giedrius Mauza
Gordon Inggs
Greg Rafferty
Győző Papp
Heikki Orsila
Henrik Sozzi
Hugh McNamara
Hugo van Kemenade
Jacky Han
Jacob Punter
Jahir Fiquitiva
Jakob M. Kjær
Jan Pipek
Jason Jensen
Jeremy Chrimes
Jerry Agbesi
John Laswell
Joost van Driel
Jorge Cadena Argote
Jose Riha
Joshua Adelman
Joël van Amerongen
Julian Broudou
Jung Dong Ho
Justin Asfour
Kamil Leduchowski
Kate Golovanova
Kelsey Karin Hawley
Koert van der Veer
Koki Nomura
Maina Kamau
Malthe Borch
Marek Šuppa
Martin Becker
Martin Thurau
Maurizio Montel
Max Härtwig
Michael Thessel
Mike Borsetti
Mike Polyakovsky
Miroslav Šedivý
Monde Sinxi
Nataliia Dmytriievska
Nate Harris
Nathan Ell
Nicholas Spagnoletti
Nico Albers
Olivier Iffrig
Ondřej Nový
Osayd Abdu
Oscar Romero
Pablo Merino
Patrick Nicholson
Paulo Orrock
Pavel Sofroniev
Pedro Baptista
Peter Zsak
Pieter van der Westhuizen
Piotr Staniów
Raphael Borg Ellul Vincenti
Raychel Mattheeuw
Reinaldo Ramos
Robert Frazier
Robert Schmidtke
Robert Tran
Robin Emeršič
Ryan McCrory
Sam Tregar
Santiago Feliu
Sergi Almacellas Abellana
Sergio Mayoral Martinez
Shaurya Uppal
Sho Hirose
Simon Gurcke
Sugato Ray
Sylvain Pasche
Sylvia van Os
Takeshi Osoekawa
Tasnim Nishat Islam
Tewodros Meshesha
Thomas Bøvith
Tommy Sparber
Tudor Văran
Victor Luna
Victor Miti
Ville Skyttä
Youhei Sakurai
15 changes: 15 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
Version 0.44
============

Released March 4, 2024

- Update Ethiopia holidays (#1704 by @KJhellico)
- Update RELEASE.rst (#1698 by @arkid15r)
- Update Ukrainian translations (proper apostrophe) (#1714 by @KJhellico)
- Update make clean action: delete docs autosummary (#1711 by @arkid15r)
- Update snapshots: Portugal holidays (#1709 by @PPsyrius)
- Update test coverage to 100% (#1715 by @KJhellico)
- Add AUTHORS file (#1700 by @arkid15r)
- Add `UNOFFICIAL` category for the United States (#1669 by @PPsyrius)
- Rename repository branches (#1699 by @arkid15r)

Version 0.43
============

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributing
============

.. _prs: https://github.com/vacanza/python-holidays/pulls
.. _`beta branch`: https://github.com/vacanza/python-holidays/tree/beta
.. _`dev branch`: https://github.com/vacanza/python-holidays/tree/dev
.. |contributors| image:: https://img.shields.io/github/contributors/vacanza/python-holidays
:target: https://github.com/vacanza/python-holidays/graphs/contributors
:alt: contributors
Expand All @@ -15,7 +15,7 @@ Basics
------

When contributing with fixes and new features, please start forking/branching
from the `beta branch`_ to work on the latest code and reduce merging issues.
from the `dev branch`_ to work on the latest code and reduce merging issues.
If you add/change holiday official dates or names you must include references to
all sources (government sites, archived web pages, wiki pages, etc) you've used
while working on this PR. Contributed PRs_ are required to include valid test
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ clean:
rm -rf .mypy_cache/*
rm -rf .pytest_cache/*
rm -rf docs/build/*
rm -rf docs/source/_autosummary/*

coverage:
pytest --cov=. --cov-config=pyproject.toml --cov-report term-missing --dist loadscope --no-cov-on-fail --numprocesses auto
Expand Down
30 changes: 15 additions & 15 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ flexible as possible.
:target: https://github.com/psf/black
:alt: Code style

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

Expand All @@ -60,8 +60,8 @@ flexible as possible.
: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&style=flat
:target: https://github.com/vacanza/python-holidays/commits/beta
.. image:: https://img.shields.io/github/last-commit/vacanza/python-holidays/dev?color=%2341BE4A&style=flat
:target: https://github.com/vacanza/python-holidays/commits/dev
:alt: GitHub last commit


Expand All @@ -74,14 +74,14 @@ The latest stable version can always be installed or updated via pip:
$ pip install --upgrade holidays
The latest development (beta) version can be installed directly from GitHub:
The latest development (dev) version can be installed directly from GitHub:

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

Documentation
-------------
Expand Down Expand Up @@ -190,7 +190,7 @@ All other default values are highlighted with bold:
- AS
- Can also be loaded as country US, subdivision AS
-
-
- UNOFFICIAL
* - Andorra
- AD
- Parishes: 02, 03, 04, 05, 06, 07, 08
Expand Down Expand Up @@ -455,7 +455,7 @@ All other default values are highlighted with bold:
- GU
- Can also be loaded as country US, subdivision GU
-
-
- UNOFFICIAL
* - Guatemala
- GT
-
Expand Down Expand Up @@ -665,7 +665,7 @@ All other default values are highlighted with bold:
- MP
- Can also be loaded as country US, subdivision MP
-
-
- UNOFFICIAL
* - North Macedonia
- MK
-
Expand Down Expand Up @@ -720,7 +720,7 @@ All other default values are highlighted with bold:
- PR
- Can also be loaded as country US, subdivision PR
-
-
- UNOFFICIAL
* - Romania
- RO
-
Expand Down Expand Up @@ -840,17 +840,17 @@ All other default values are highlighted with bold:
- UM
- Can also be loaded as country US, subdivision UM
-
-
- UNOFFICIAL
* - United States of America (the)
- US
- States and territories: AK, AL, AR, AS, AZ, CA, CO, CT, DC, DE, FL, GA, GU, HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MP, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, UM, UT, VA, VI, VT, WA, WI, WV, WY
-
-
- UNOFFICIAL
* - United States Virgin Islands (the)
-
- See Virgin Islands (U.S.)
-
-
- UNOFFICIAL
* - Uruguay
- UY
-
Expand Down Expand Up @@ -885,7 +885,7 @@ All other default values are highlighted with bold:
- VI
- Can also be loaded as country US, subdivision VI
-
-
- UNOFFICIAL
* - Zambia
- ZM
-
Expand Down
33 changes: 16 additions & 17 deletions RELEASE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,25 @@ How to release a new version of Python Holidays

- Finalize the current development version

- switch to ``beta`` branch and pull the most recent changes
from https://github.com/vacanza/python-holidays remote ``beta`` branch.
- switch to ``dev`` branch and pull the most recent changes
from https://github.com/vacanza/python-holidays remote ``dev`` branch.
- generate release notes by running the following script
``scripts/generate_release_notes.py``
- insert the script's output into the top of ``CHANGES`` file
(see previous release notes for consistent formatting)
- commit the updated ``CHANGES`` file to ``beta`` branch with the following
- 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 ``beta`` branch
- make sure the push related CI/CD job(s) have been completed successfully
- push changes to https://github.com/vacanza/python-holidays ``dev`` branch
- make sure the push related CI/CD jobs have been completed successfully

- Merge the finalized changes into ``master`` branch:
- Merge the finalized changes into ``main`` branch:

- create a new PR for the recent changes from ``beta`` to ``master`` branch
- create a new PR for the recent changes from ``dev`` to ``main`` branch
using 'v<version>' as a PR title and the previously generated release notes
as a PR description
- get the PR reviewed by at least one of the code owners
- merge the PR into ``master`` branch with 'Create a merge commit' action
(**do not use 'Squash and merge'**)
- make sure the PR related CI/CD job(s) have been completed successfully
- 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/
have been completed successfully
Expand All @@ -33,7 +32,7 @@ How to release a new version of Python Holidays
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'
- select **master** - instead of default ``beta`` in 'Target' dropdown
- select **main** - instead of default ``dev`` in 'Target' dropdown
- put 'v<version>' into 'Release title' field, e.g. 'v0.39'
- click on 'Generate release notes' button to collect new contributors and
full changelog link information (we normally keep it at the bottom with
Expand All @@ -49,20 +48,20 @@ How to release a new version of Python Holidays

- Verify the new release:

- make sure the release related CI/CD job(s) have been completed successfully
- make sure the release related CI/CD jobs have been completed successfully
- check https://pypi.org/project/holidays/ package page -- it should have
the current version and the released date updated

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

- send "Python Holidays 'v<version>' has been released!" (or similar) message
to Vacanza Team Slack #release channel
- pull the recent changes from ``master`` branch into ``beta``
- pull the recent changes from ``main`` branch into ``dev``
- bump the Python Holidays version at ``holidays/__init__.py`` file
- create a commit with 'Initialize v<version>' message, e.g.
'Initialize v0.40' and push it to ``beta`` branch (this may require
'Initialize v0.40' and push it to ``dev`` branch (this may require
running ``make package`` to pass the tests locally)
- make sure ``beta`` branch **is not behind** the master branch (there
- 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/beta page in case it is)
- make sure the push related CI/CD job(s) have been completed successfully
https://github.com/vacanza/python-holidays/tree/dev page in case it is)
- make sure the push related CI/CD jobs have been completed successfully

0 comments on commit 1653bec

Please sign in to comment.