diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-12 00:27:30 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 00:27:30 +0000 |
commit | b64d0a148e0f89feef6bf61eb4dfc9b239b1e2b6 (patch) | |
tree | bd4757564891376bc8e524f451259d1d85a9e472 | |
parent | 34477250c1ab80c3dc2ddf30872903c7e959ff75 (diff) |
automatic import of python-holidays-ext
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-holidays-ext.spec | 150 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 152 insertions, 0 deletions
@@ -0,0 +1 @@ +/holidays-ext-0.0.8.tar.gz diff --git a/python-holidays-ext.spec b/python-holidays-ext.spec new file mode 100644 index 0000000..7c53a5e --- /dev/null +++ b/python-holidays-ext.spec @@ -0,0 +1,150 @@ +%global _empty_manifest_terminate_build 0 +Name: python-holidays-ext +Version: 0.0.8 +Release: 1 +Summary: Extended holidays package +License: MIT +URL: https://github.com/kaixuyang/holidays-extension +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/19/7c/3d447a4b3acd3a6b9cf65a24182a139aae6ae5781ac6ca23918632ed26be/holidays-ext-0.0.8.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-pandas +Requires: python3-dateutil +Requires: python3-LunarCalendar-ext +Requires: python3-convertdate +Requires: python3-holidays + +%description +# Holidays Extension + +This repo forks the [Facebook Prophet](https://github.com/facebook/prophet) +library, and serve as an extension of the [Python holidays](https://github.com/dr-prodigy/python-holidays) +library. The holidays are customized and extended. + +To use this library, simply do + +```python +from holidays_ext.get_holidays import get_holiday +from holidays_ext.get_holidays import get_holiday_df + +holidays = get_holiday( + country_list=["UnitedStates", "Russia"], + years=[2019, 2020] +) +holidays + +holidays_df = get_holiday_df( + country_list=["UnitedStates", "China", "India"], + years=[2018, 2019, 2020, 2021] +) +holidays_df +``` + + +%package -n python3-holidays-ext +Summary: Extended holidays package +Provides: python-holidays-ext +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-holidays-ext +# Holidays Extension + +This repo forks the [Facebook Prophet](https://github.com/facebook/prophet) +library, and serve as an extension of the [Python holidays](https://github.com/dr-prodigy/python-holidays) +library. The holidays are customized and extended. + +To use this library, simply do + +```python +from holidays_ext.get_holidays import get_holiday +from holidays_ext.get_holidays import get_holiday_df + +holidays = get_holiday( + country_list=["UnitedStates", "Russia"], + years=[2019, 2020] +) +holidays + +holidays_df = get_holiday_df( + country_list=["UnitedStates", "China", "India"], + years=[2018, 2019, 2020, 2021] +) +holidays_df +``` + + +%package help +Summary: Development documents and examples for holidays-ext +Provides: python3-holidays-ext-doc +%description help +# Holidays Extension + +This repo forks the [Facebook Prophet](https://github.com/facebook/prophet) +library, and serve as an extension of the [Python holidays](https://github.com/dr-prodigy/python-holidays) +library. The holidays are customized and extended. + +To use this library, simply do + +```python +from holidays_ext.get_holidays import get_holiday +from holidays_ext.get_holidays import get_holiday_df + +holidays = get_holiday( + country_list=["UnitedStates", "Russia"], + years=[2019, 2020] +) +holidays + +holidays_df = get_holiday_df( + country_list=["UnitedStates", "China", "India"], + years=[2018, 2019, 2020, 2021] +) +holidays_df +``` + + +%prep +%autosetup -n holidays-ext-0.0.8 + +%build +%py3_build + +%install +%py3_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-ext -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.8-1 +- Package Spec generated @@ -0,0 +1 @@ +e28d67aa572a13c74fda9502b1cb40f6 holidays-ext-0.0.8.tar.gz |