mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +00:00
Add dateutil requirement, get backwards compatability with holidays 0.9.5
This commit is contained in:
parent
6070b5a309
commit
d4c460e3dd
2 changed files with 6 additions and 8 deletions
|
|
@ -13,13 +13,10 @@ from datetime import date, timedelta
|
||||||
from convertdate.islamic import from_gregorian, to_gregorian
|
from convertdate.islamic import from_gregorian, to_gregorian
|
||||||
from lunarcalendar import Lunar, Converter
|
from lunarcalendar import Lunar, Converter
|
||||||
|
|
||||||
try:
|
from holidays import WEEKEND, HolidayBase
|
||||||
from holidays import WEEKEND, HolidayBase, easter, rd
|
from dateutil.easter import easter
|
||||||
except:
|
from dateutil.relativedelta import relativedelta as rd
|
||||||
from holidays.constants import WEEKEND
|
|
||||||
from holidays.holiday_base import HolidayBase
|
|
||||||
from dateutil.easter import easter
|
|
||||||
from dateutil.relativedelta import relativedelta as rd
|
|
||||||
|
|
||||||
# Official public holidays at a country level
|
# Official public holidays at a country level
|
||||||
# ------------ Holidays in Brazil---------------------
|
# ------------ Holidays in Brazil---------------------
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,6 @@ pandas>=0.23.4
|
||||||
matplotlib>=2.0.0
|
matplotlib>=2.0.0
|
||||||
LunarCalendar>=0.0.9
|
LunarCalendar>=0.0.9
|
||||||
convertdate>=2.1.2
|
convertdate>=2.1.2
|
||||||
holidays>=0.10.1
|
holidays>=0.9.5
|
||||||
setuptools-git>=1.2
|
setuptools-git>=1.2
|
||||||
|
python-dateutil>=2.8.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue