15
0
Files
python-holidays/python-holidays.spec

69 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-holidays
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-holidays
Accepting request 1181678 from system:homeautomation:home-assistant:unstable - update to 0.51: * Update Aruba and Curaçao holidays l10n (split locales) (#1827 by @KJhellico) * Update Brazil holidays: add new Nov 20 holiday (#1832 by @KJhellico) * Update CI/CD job concurrency (#1823 by @arkid15r) * Update CI/CD job concurrency (#1830 by @arkid15r) * Update README.rst (#1828 by @arkid15r) * Update ruff configuration (#1819 by @arkid15r) * Align India subdivisions with ISO 3166-2 (#1821 by @KJhellico) * Migrate to codecov.io (#1818 by @arkid15r) * Narrow down ignored warnings (#1816 by @arkid15r) * Refactor some holidays with uncommon rules (#1807 by @KJhellico) * Add Greenland holidays (#1811 by @Klintrup, @arkid15r) * Fix docs: update Italy docstring (#1808 by @arkid15r) * Update Italy holidays (#1805 by @KJhellico) * Add 2024 Russian Substituted Holidays (#1799 by @PPsyrius) * Add Georgian government holiday for May 17, 2024 (#1802 by @PPsyrius, @arkid15r) * Add v1 future incompatibility warning (#1801 by @arkid15r) * Migrate Japan holidays to ObservedHolidayBase (#1810 by @KJhellico) * Synchronize entity dynamic imports (#1794 by @Izzette) * Add IFEU holidays (#1792 by @benjfield, @arkid15r) * Update Hong Kong holidays (#1767 by @KJhellico, @arkid15r) * Update Malaysia holidays (#1791 by @KJhellico) * Update observed rules: add holiday removal support (#1796 by @arkid15r) * Address numpy int argument conversion issue (#1782 by @arkid15r) * Replace `datetime::timedelta` with custom function (#1785 by @KJhellico) OBS-URL: https://build.opensuse.org/request/show/1181678 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-holidays?expand=0&rev=42
2024-06-20 13:17:20 +00:00
Version: 0.51
Release: 0
Summary: Python library for generating holidays on the fly
License: MIT
URL: https://github.com/vacanza/python-holidays
Source: https://github.com/vacanza/python-holidays/archive/refs/tags/v%{version}.tar.gz#/holidays-%{version}.tar.gz
BuildRequires: %{python_module convertdate}
- Update to 0.20: * Add localization support, #827 (@arkid15r, @bkthomps, @dragoon) * Introduce `HolidayBase::_is_leap_year()`, #886 (@arkid15r) * Introduce `HolidayBase::_is_monday` - `HolidayBase::_is_sunday` helper methods, #841 (@arkid15r) * Change holiday name separator from ", " to "; ", #922 (@arkid15r) * Fix Hong Kong, #928 (@KJhellico) * Fix Islamic holidays calculation, #914 (@KJhellico) * Fix Thailand related changes coverage decrease, #942 (@arkid15r, @PPsyrius) * Improve Thailand holidays, #929 (@PPsyrius, @arkid15r, @KJhellico) * Update Australia holidays: fix 2020 QLD holidays, #923 (@arkid15r) * Update Bolivia holidays, #910 (@KJhellico) * Update Bosnia and Herzegovina holidays, #909 (@KJhellico) * Update Jamaica holidays, #913 (@KJhellico) * Update PR template, #960 (@arkid15r) * Update Poland holidays, add uk localization, #947 (@KJhellico) * Add International Women's Day for DE-MV, #936 (@alexanderschulze) * Add Marshall Islands (ISO-3666-1 code MH), #937 (@mborsetti) * Add Northern Mariana Islands (ISO-3666-2 code US-MP), #939 (@mborsetti) * ISO 3166-1 for US subdivisions, #941 (@mborsetti, @dr-prodigy) * Add Albania initial support #895 (@arkid15r) * Add Andorra initial support #896 (@arkid15r) * Add Bahrain initial support #888 (@arkid15r) * Add Montenegro initial support #897 (@arkid15r) * Add San Marino initial support #898 (@arkid15r) * Add Vatican City initial support #904 (@arkid15r) * Add Monaco holidays #877 (@KJhellico) * Migrate prophet.hdays countries #887 (@arkid15r) * Singapore holidays update #880 (@KJhellico) * PyMeeus for equinox and solstice calculation #828, #863 (Nalguedo) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-holidays?expand=0&rev=26
2023-03-03 06:57:45 +00:00
BuildRequires: %{python_module hijri-converter >= 2.2}
BuildRequires: %{python_module importlib-metadata}
BuildRequires: %{python_module korean-lunar-calendar}
Accepting request 1181678 from system:homeautomation:home-assistant:unstable - update to 0.51: * Update Aruba and Curaçao holidays l10n (split locales) (#1827 by @KJhellico) * Update Brazil holidays: add new Nov 20 holiday (#1832 by @KJhellico) * Update CI/CD job concurrency (#1823 by @arkid15r) * Update CI/CD job concurrency (#1830 by @arkid15r) * Update README.rst (#1828 by @arkid15r) * Update ruff configuration (#1819 by @arkid15r) * Align India subdivisions with ISO 3166-2 (#1821 by @KJhellico) * Migrate to codecov.io (#1818 by @arkid15r) * Narrow down ignored warnings (#1816 by @arkid15r) * Refactor some holidays with uncommon rules (#1807 by @KJhellico) * Add Greenland holidays (#1811 by @Klintrup, @arkid15r) * Fix docs: update Italy docstring (#1808 by @arkid15r) * Update Italy holidays (#1805 by @KJhellico) * Add 2024 Russian Substituted Holidays (#1799 by @PPsyrius) * Add Georgian government holiday for May 17, 2024 (#1802 by @PPsyrius, @arkid15r) * Add v1 future incompatibility warning (#1801 by @arkid15r) * Migrate Japan holidays to ObservedHolidayBase (#1810 by @KJhellico) * Synchronize entity dynamic imports (#1794 by @Izzette) * Add IFEU holidays (#1792 by @benjfield, @arkid15r) * Update Hong Kong holidays (#1767 by @KJhellico, @arkid15r) * Update Malaysia holidays (#1791 by @KJhellico) * Update observed rules: add holiday removal support (#1796 by @arkid15r) * Address numpy int argument conversion issue (#1782 by @arkid15r) * Replace `datetime::timedelta` with custom function (#1785 by @KJhellico) OBS-URL: https://build.opensuse.org/request/show/1181678 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-holidays?expand=0&rev=42
2024-06-20 13:17:20 +00:00
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module polib}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testsuite}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-python-dateutil
BuildArch: noarch
%python_subpackages
%description
A Python library for generating country, province and state specific sets of holidays on the fly.
It makes determining whether a specific date is a holiday possible.
%prep
%setup -q -n python-holidays-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
scripts/l10n/generate_mo_files.py
%pytest
%files %{python_files}
%license LICENSE
%doc CHANGES README.rst
%{python_sitelib}/holidays
%{python_sitelib}/holidays-%{version}.dist-info
%changelog