2019-03-12 09:07:33 +00:00
|
|
|
#
|
2019-03-15 13:20:55 +00:00
|
|
|
# spec file for package python-holidays
|
2019-03-12 09:07:33 +00:00
|
|
|
#
|
2024-01-23 03:12:36 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-03-12 09:07:33 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-03-15 13:20:55 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-03-12 09:07:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-holidays
|
2024-06-20 13:17:20 +00:00
|
|
|
Version: 0.51
|
2019-03-12 09:07:33 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python library for generating holidays on the fly
|
|
|
|
|
License: MIT
|
2024-01-23 03:12:36 +00:00
|
|
|
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
|
2020-04-09 10:38:23 +00:00
|
|
|
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}
|
2024-03-19 05:58:11 +00:00
|
|
|
BuildRequires: %{python_module importlib-metadata}
|
Accepting request 822929 from system:homeautomation:home-assistant:unstable
- Update to version 0.10.3
Released July 15, 2020
- Added get_named(substring) method to retrieve holidays by name (dr-p)
- Added pop_named(substring) method to pop specific holiday/s by name (samtregar, dr-p)
- Support for Burundi (bmwachajr)
- Support for Latvia (rolandinsh)
- Support for Romania (dorianm)
- Spain fix (dr-p)
- Netherlands fix (RooieRakkert)
- Switzerland fixes (cgrigis)
- Germany fix (MikeTsenatek)
- Added korean_cal attribute to Korea and Vietnam (seriousran, pelennor)
- United States fixes (patrick-nicholson, dr-p)
- Singapore fixes + 2021 holidays (mborsetti)
Version 0.10.2
==============
Released April 13, 2020
- Support for Spain (piliamaurizio, jbroudou, dr-p, gerardo15)
- Support for Turkey (cemkaragozlu)
- Support for Korea (1kko, dr-p)
- Support for Vietnam (1kko, dr-p)
- Support for Morocco (abensrhir, dr-p)
- Mexico fix (Rosi2143, dr-p)
- Croatia fix (sebojanko, dr-p)
- US Georgia fix (jbroudou, dr-p)
- Austria province ISO3166-2 adoption (jbroudou, dr-p)
- Portugal typos & name fixes (reinaldoramosarxi)
- US MLK renamed (snoopyjc, dr-p)
- ISO-3 codes export fix (dr-p)
OBS-URL: https://build.opensuse.org/request/show/822929
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-holidays?expand=0&rev=14
2020-07-29 10:47:07 +00:00
|
|
|
BuildRequires: %{python_module korean-lunar-calendar}
|
2024-06-20 13:17:20 +00:00
|
|
|
BuildRequires: %{python_module numpy}
|
2024-01-23 03:12:36 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module polib}
|
2021-05-03 13:21:57 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-03-15 13:20:55 +00:00
|
|
|
BuildRequires: %{python_module python-dateutil}
|
2019-03-12 09:07:33 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2021-05-03 13:18:24 +00:00
|
|
|
BuildRequires: %{python_module testsuite}
|
2024-01-23 03:12:36 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-12 09:07:33 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-15 13:20:55 +00:00
|
|
|
Requires: python-python-dateutil
|
2019-03-12 09:07:33 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2019-03-17 15:31:46 +00:00
|
|
|
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.
|
2019-03-12 09:07:33 +00:00
|
|
|
|
|
|
|
|
%prep
|
2024-01-23 03:12:36 +00:00
|
|
|
%setup -q -n python-holidays-%{version}
|
2019-03-12 09:07:33 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-01-23 03:12:36 +00:00
|
|
|
%pyproject_wheel
|
2019-03-12 09:07:33 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-01-23 03:12:36 +00:00
|
|
|
%pyproject_install
|
2019-03-15 13:20:55 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2024-01-23 03:12:36 +00:00
|
|
|
scripts/l10n/generate_mo_files.py
|
2021-05-03 13:21:57 +00:00
|
|
|
%pytest
|
2019-03-12 09:07:33 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc CHANGES README.rst
|
2024-01-23 03:12:36 +00:00
|
|
|
%{python_sitelib}/holidays
|
|
|
|
|
%{python_sitelib}/holidays-%{version}.dist-info
|
2019-03-12 09:07:33 +00:00
|
|
|
|
|
|
|
|
%changelog
|