Skip to content

Commit

Permalink
Release version 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanss committed Sep 4, 2014
1 parent fc61893 commit 85b46a0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
12 changes: 12 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
Version 0.3
===========

Released September 4, 2014

- Adds federal holidays for Mexico
- Holiday objects can now be combined with the addition operator (see examples
in README)
- optional parameter `default` added to get() method to make it behave the same
as dict.get()


Version 0.2
===========

Expand Down
31 changes: 9 additions & 22 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ If the above fails, please use easy_install instead:
$ easy_install holidays
Available Countries
-------------------

============== ==== ======================================================
Country Abbr Prov/State Options
============== ==== ======================================================
Canada() CA() AB, BC, MB, NB, NL, NS, NT, NU, **ON**, PE, QC, SK, YU
Mexico() MX() None
UnitedStates() US() None
============== ==== ======================================================
============ ==== ======================================================
Country Abbr Prov/State Options
============ ==== ======================================================
Canada CA AB, BC, MB, NB, NL, NS, NT, NU, **ON**, PE, QC, SK, YU
Mexico MX None
UnitedStates US None
============ ==== ======================================================


API
Expand All @@ -93,7 +94,7 @@ observed

prov
A string specifying a province/state that has unique statutory holidays.
(Default: Canada='ON', UnitedStates=None)
(Default: Canada='ON', Mexico=None, UnitedStates=None)


More Examples
Expand Down Expand Up @@ -196,20 +197,6 @@ More Examples
>>> north_america += holidays.UnitedStates()
>>> north_america += holidays.Mexico()
# When adding two holiday objects together the optional parameters
# (observed, expand, prov) from the first object will be used
>>> ca = holidays.CA(years=[2013, 2014], expand=False, prov='BC')
>>> us = holidays.US(years=[2014, 2015], expand=True)
>>> (ca + us).years
set([2013, 2014, 2015])
>>> (ca + us).prov
"BC"
>>> (ca + us).expand
False
>>> (us + ca).expand
True
# Sometimes we may not be able to use the official federal statutory
# holiday list in our code. Let's pretend we work for a company that
# does not include Columbus Day as a statutory holiday but does include
Expand Down
2 changes: 1 addition & 1 deletion holidays.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Website: https://github.com/ryanss/holidays.py
# License: MIT (see LICENSE file)

__version__ = '0.3-dev'
__version__ = '0.3'


from datetime import date, datetime
Expand Down

0 comments on commit 85b46a0

Please sign in to comment.