15
0
Files
python-holidays/python-holidays.spec
Dirk Mueller 574dd68651 - update to 0.76:
* Add Bonaire, Sint Eustatius and Saba holidays
  * Add Falkland Islands holidays
  * Add Libya holidays
  * Add Mauritius holidays
  * Add Mongolia holidays
  * Add Sint Maarten holidays
  * Add working day tests for countries with substituted holidays
  * Fix iCal exporter tests
  * Update Aruba, Curaçao, Netherlands holidays: general code
    refactor
  * Update Cocos Islands holidays: fix 2023 Eid al-Fitr date
  * Update France holidays: refactors, add `th` l10n
  * Update San Marino holidays, add l10n support
  * Update Svalbard and Jan Mayen holidays: remove l10n overrides
  * Update Taiwan holidays
  * Update United States holidays: add `th` l10n
  * Update Uzbekistan holidays: add 2024-2025 exact dates
  * Update l10n for RTL languages
  * Update l10n helper script
  * Update pytest configuration
  * Archive a link for Turks and Caicos holidays
  * Reformat .po files
  * Show test coverage details by default
  * Simplify parent-based entity handling
  * Refactor TF holidays
  * Refactor Trinidad and Tobago holidays
  * Refactor `__init__` method signature
  * Add Anguilla holidays
  * Add Cook Islands holidays

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-holidays?expand=0&rev=60
2025-07-13 13:22:14 +00:00

71 lines
2.3 KiB
RPMSpec

#
# spec file for package python-holidays
#
# Copyright (c) 2025 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/
#
%{?sle15_python_module_pythons}
Name: python-holidays
Version: 0.76
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 importlib-metadata if %python-base < 3.10}
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