mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-17 08:40:56 +00:00
update holidays dependency according to the new structure (#1295)
* update holidays dependency according to the new structure * fix backward compatibility problem * by-pass version dependency for holidays package Co-authored-by: Ben Letham <bletham@gmail.com>
This commit is contained in:
parent
0a270b4a19
commit
6070b5a309
2 changed files with 9 additions and 2 deletions
|
|
@ -11,9 +11,16 @@ from calendar import Calendar, MONDAY
|
|||
from datetime import date, timedelta
|
||||
|
||||
from convertdate.islamic import from_gregorian, to_gregorian
|
||||
from holidays import WEEKEND, HolidayBase, easter, rd
|
||||
from lunarcalendar import Lunar, Converter
|
||||
|
||||
try:
|
||||
from holidays import WEEKEND, HolidayBase, easter, rd
|
||||
except:
|
||||
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
|
||||
# ------------ Holidays in Brazil---------------------
|
||||
class Brazil(HolidayBase):
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ pandas>=0.23.4
|
|||
matplotlib>=2.0.0
|
||||
LunarCalendar>=0.0.9
|
||||
convertdate>=2.1.2
|
||||
holidays>=0.9.5,<0.10.1
|
||||
holidays>=0.10.1
|
||||
setuptools-git>=1.2
|
||||
|
|
|
|||
Loading…
Reference in a new issue