- Update to 0.88
* Refactor Macau holidays
* Refactor New Zealand holidays
* Add Bombay Stock Exchange (BSE) holidays
* Add `utils::list_long_breaks` function to find consecutive holidays
* Update .po files generator: refresh "PO-Revision-Date" on file changes
* Update Belarus holidays: 2026 substituted holidays
* Update Brazil holidays: add São Paulo Capital subdivision support
* Update Chile holidays: restore bank holiday Dec 31
* Update Malaysia holidays: add 2026 public holidays
* Update Malaysia holidays: update Birthday of the Governor of Sabah
* Update National Stock Exchange of India holidays: add Gujarati language support
* Update Sweden holidays: add legally-recognized
non-public holidays as `DE_FACTO` category
* Update Taiwan holidays in 2025-2026
* Update Turks and Caicos Islands holidays: 2026 changes
* Update United States holidays: add Diwali for California from 2026 onwards
* Update United States holidays: add federal (`GOVERNMENT`) special holidays
* Update United States holidays: update Alaska (AK) state holidays
* Update United States holidays: update Puerto Rico holidays
* Update Uzbekistan holidays: add 2025-2026 special holidays
* Update Venezuela holidays
* Update l10n test: check .po files for placeholders mismatch
* Update make script for Windows
* Add dependency upgrade Makefile target
* Move version source of truth to holidays/VERSION
* Run make upgrade
* l10n cleanup
- from version 0.87
* Refactor `TestAllInSameYear` class
OBS-URL: https://build.opensuse.org/request/show/1325809
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-holidays?expand=0&rev=74
70 lines
2.2 KiB
RPMSpec
70 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-holidays
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-holidays
|
|
Version: 0.88
|
|
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}
|
|
BuildRequires: %{python_module hijri-converter >= 2.2}
|
|
BuildRequires: %{python_module korean-lunar-calendar}
|
|
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 holidays-%{version}
|
|
|
|
%build
|
|
scripts/l10n/generate_mo_files.py
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
sed -i '/"--cov-fail-under=100",/d' pyproject.toml
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGES.md README.md
|
|
%{python_sitelib}/holidays
|
|
%{python_sitelib}/holidays-%{version}.dist-info
|
|
|
|
%changelog
|