Fetch the repository succeeded.
%global _empty_manifest_terminate_build 0
Name: python-holidays
Version: 0.86
Release: 1
Summary: Generate and work with holidays in Python
License: MIT
URL: https://github.com/vacanza/holidays
Source0: https://files.pythonhosted.org/packages/4d/9f/f1d09d41497315baa7adf0a43f1990def8c8267cb24da2fc8aa49b2ed731/holidays-0.86.tar.gz
BuildArch: noarch
Requires: python3-convertdate
Requires: python3-hijri-converter
Requires: python3-korean-lunar-calendar
Requires: python3-dateutil
Requires: python3-six
%description
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.
%package -n python3-holidays
Summary: Generate and work with holidays in Python
Provides: python-holidays
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-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.
%package help
Summary: Development documents and examples for holidays
Provides: python3-holidays-doc
%description help
Development documents and examples for holidays
%prep
%autosetup -n holidays-%{version}
%build
%pyproject_build
%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-holidays -f filelist.lst
%dir %{python3_sitelib}/*
%exclude %{python3_sitelib}/holidays/__pycache__/*.pyc
%exclude %{python3_sitelib}/holidays/calendars/__pycache__/*.pyc
%exclude %{python3_sitelib}/holidays/countries/__pycache__/*.pyc
%exclude %{python3_sitelib}/holidays/deprecations/__pycache__/*.pyc
%exclude %{python3_sitelib}/holidays/financial/__pycache__/*.pyc
%exclude %{python3_sitelib}/holidays/groups/__pycache__/*.pyc
%exclude %{python3_sitelib}/holidays/mixins/__pycache__/*.pyc
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Dec 2 2025 gongxingliang <gongxingliang@kylinos.cn> - 0.86-1
- Update package to version 0.86
* Thu Nov 27 2025 gongxingliang <gongxingliang@kylinos.cn> - 0.85-1
- Update package to version 0.85
* Thu Nov 13 2025 dongjiao <dongjiao@kylinos.cn> - 0.84-1
- Update package to version 0.84
Drop Python 3.9 support.
Update and refactor many country holidays.
* Fri Nov 1 2024 wanggang <wanggang1@kylinos.cn> - 0.59-1
- Update package to version 0.59
in Version 0.59,changes:
Update Vietnam holidays: add th localization (#2060 by @PPsyrius)
Update Germany holidays: add Liberation from Nazi Regime Day 2025 in Berlin (#2052 by @hf-kklein, @PPsyrius)
Update Johor (Malaysia) and United Arab Emirates weekend observance, cleanup others (#2048 by @PPsyrius)
Update Vietnam holidays (#2049 by @KJhellico)
Update InternationalHolidays::_add_world_war_two_victory_day() method (#2064 by @KJhellico)
Update holidays package metadata (#2063 by @arkid15r)
Update metadata Python versions (#2069 by @arkid15r)
Add EasternCalendarHolidays to holidays groups (#2062 by @KJhellico)
Drop Python 3.8 support (#2042 by @PPsyrius)
Satisfy mypy requirements (#2053 by @arkid15r)
In Version 0.58, changes:
Add Congo holidays (#2037 by @PPsyrius)
Add Saint Kitts & Nevis holidays (#2005 by @PPsyrius, @arkid15r)
Add Vietnamese translation of VietNam holidays (#2025 by @vunhatchuong, @arkid15r)
Update Kazakhstan holidays: add substituted holidays, localization (#2023 by @KJhellico)
Update Malaysia holidays: add th localization (#2030 by @PPsyrius)
Update Singapore holidays: add en_SG, en_US, th localization (#2031 by @PPsyrius)
Update Sweden holidays: add th localization (#2029 by @PPsyrius)
Update Azerbaijan holidays in 2024 (#2018 by @KJhellico)
Update Curaçao holidays: add HALF_DAY holidays (#2039 by @KJhellico)
Update Japan holidays (#2013 by @KJhellico)
Update Nicaragua holidays (#2011 by @KJhellico)
Update Taiwan holidays (#2026 by @KJhellico, @arkid15r)
Update US holidays: American Samoa holidays (#2017 by @KJhellico)
Update United States holidays: fix Washington's Birthday in GA & IN (#2014 by @KJhellico)
Update ci label configuration (#2009 by @arkid15r)
Update apostrophes: change ’ to ' (#2016 by @arkid15r)
Update working day related calculations (#2010 by @KJhellico, @arkid15r)
Add @PPsyrius to CODEOWNERS (#2008 by @arkid15r)
Move to holidays from python-holidays (#2027 by @arkid15r)
Remove deprecated fix-encoding-pragma, add pyupgrade (#2007 by @PPsyrius, @arkid15r)
* Fri Sep 20 2024 kkz <zhaoshuang@uniontech.com> - 0.57-1
- Update package to version 0.57
Update Australia holidays: add en_AU, en_US, th localization (#1977 by @PPsyrius)
Fix some docstrings (#1994 by @KJhellico)
Update Australia holidays: fix Christmas Day in ACT (#1986 by @KJhellico)
Update Germany holidays: add th localization, deprecated non-standard ISO code, add subdivision aliases (#1979 by @PPsyrius, @arkid15r)
Update Jersey holidays (#1971 by @PPsyrius)
Update South Korea holidays: add Armed Forces Day in 2024 (#1973 by @KJhellico)
Update examples to reflect recent holidays changes (#1978 by @KJhellico)
Add Frances Xavier Cabrini Day for United States, Colorado (#1995 by @e2thenegpii, @arkid15r)
Extend _ThaiLunisolar calendar support to 2157 (#1981 by @PPsyrius)
Unify en_US Islamic holidays name translation (#1984 by @KJhellico)
* Fri Feb 23 2024 wangjunqi <wangjunqi@kylinos.cn> - 0.43-1
- Update package to version 0.43
Introduce subdivisions aliases (#1662 by @sphh, @arkid15r)
Update Ireland holidays (#1687 by @KJhellico)
Update Portugal holidays: fix Carnival date (#1694 by @DgRosa)
Update Taiwan holidays (#1688 by @KJhellico)
Update Thailand holidays: add Bridge Public Holiday on Apr 12, 2024 (#1690 by @PPsyrius)
* Fri Dec 08 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 0.38-1
- Update package to version 0.38
* Thu Jul 6 2023 sunhui <sunhui@kylinos.cn> - 0.27.1-1
- Update package to version 0.27.1
* Sun May 23 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。