Commit Graph

206 Commits

Author SHA1 Message Date
Bruno Bord 04c211c49d
Back to development => 10.1.0.dev0 2020-06-05 11:03:22 +02:00
Bruno Bord 20e4551110
v10.0.0
closes #375
2020-06-05 10:54:42 +02:00
Bruno Bord f37155251b
Removed the ``IsoRegistry.get_calendar_class()`` method
refs #375, #495
2020-06-05 10:35:06 +02:00
Bruno Bord d208a5616f
Back to development => 9.3.0.dev0 2020-06-02 09:57:12 +02:00
Bruno Bord caadba54eb
v9.2.0
Added all Swiss Cantons to workalendar!
2020-06-02 09:48:50 +02:00
Bruno Renié 454fd081f4
switzerland: add rules for all cantons
Information based on https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland
2020-05-22 15:34:41 +02:00
Bruno Bord 8167326044
Back to development => 9.1.0.dev1 2020-05-22 14:32:35 +02:00
Bruno Bord 8d06a41a52
v9.0.1
Mainly bugfixes for Israel & Hong-Kong calendars
2020-05-22 14:23:34 +02:00
Bruno Bord d5403b563c
Integrating Hong-Kong holidays for 2021
refs #496
2020-05-22 14:11:29 +02:00
Bruno Bord d6536522a2
Fixing duplicated holidays in Hong-Kong and Hong-Kong Bank holiday calendars
refs #496
2020-05-22 11:27:52 +02:00
Ela Avrahami d7dfc6dd3f Adding a change log point 2020-05-13 16:11:58 +03:00
Bruno Bord 61a120296b
Back to dev => 9.1.0.dev0 2020-04-24 15:26:26 +02:00
Bruno Bord f3cb05f8f2
v9.0.0
**BREAKING CHANGES** in the Registry API.

* Dropped the ``IsoRegistry.items()`` method,
* Started deprecation of the ``IsoRegistry.get_calendar_class`` method.
2020-04-24 15:17:38 +02:00
Bruno Bord dc3fcf1b91
Alias ``IsoRegistry.get_calendar_class()`` to ``get()``
The ``get_calendar_class`` method will be dropped in a further release. In the meantime, they'll be both equivalent.

refs #375, closes #418.
2020-04-24 15:06:16 +02:00
Bruno Bord 028305289e
The ``IsoRegistry.items()`` method has been removed from the API
This is a **BREAKING CHANGE**.
You must use the ``get_calendars()`` to perform the same registry queries
refs #375, closes #491.
2020-04-24 11:48:32 +02:00
Bruno Bord c5c5a39834
Back to development => 8.5.0.dev0 2020-04-17 14:07:04 +02:00
Bruno Bord 3c00cf98ce
v8.4.0
**New Calendar**

- Added Kenyan calendar, by @KidkArolis (#484)

**Minor fixes**

- Fixed Lithuania calendar to use the core flags for Assumption and All Saints (#468).
- Fixed Malta calendar ; January 1st was already included, no need to add it to the ``FIXED_HOLIDAYS`` property (#469).
- Small refactor in Netherlands calendar to use core constants (#470).
2020-04-17 13:56:42 +02:00
Bruno Bord d87de8cadf
Small refactor in Netherlands calendar to use core constants
closes #470
2020-04-17 11:16:10 +02:00
Bruno Bord a80adc1fc3
Fixed Malta calendar - January 1st was already included
There was no need to add it to the ``FIXED_HOLIDAYS`` property.

closes #469
2020-04-17 11:08:03 +02:00
Bruno Bord 67feaab1b9
Fixed Lithuania calender to use the core flags for Assumption and All Saints
closes #468
2020-04-17 11:00:56 +02:00
Karolis Narkevicius 620f77a348 Add Kenyan calendar 2020-04-17 09:47:29 +01:00
Bruno Bord 469ac9277f
Back to dev => 8.4.0.dev0 2020-04-14 10:15:05 +02:00
Bruno Bord 882175d2f3
v8.3.0 2020-04-14 10:07:23 +02:00
Bruno Bord c7c3408523
Adding the Hong-Kong Bank calendar
For banks, Saturdays are non-working days. Although, the same shift rules apply (holidays are shifted only if happening on SUN)

refs #477
2020-04-10 14:25:56 +02:00
Bruno Bord cdd659ef67
Fixing Hong-Kong holiday shift calculations
refs #477
2020-04-10 14:20:59 +02:00
Bruno Bord 311f6e222d
Back to development => 8.3.0.dev2 2020-04-10 10:55:08 +02:00
Bruno Bord a6f6868e49
v8.2.2 2020-04-10 10:47:42 +02:00
Bruno Bord 1c41e18ec1
Fixed Argentina's label for "Día Nacional de la Memoria"
refs #476
2020-04-03 14:51:49 +02:00
Bruno Bord 394d4ecd59
Fixed Argentina's label for "Malvinas Day"
refs #476
2020-04-03 14:47:35 +02:00
Bruno Bord 720fc37468
Fixed Argentina's "Malvinas Day" date for 2020
This holiday was shifted to March 31st because of the coronavirus crisis

refs #476
2020-04-03 14:44:47 +02:00
Bruno Bord e8f0aa0f46
Back to development => 8.3.0.dev1 2020-04-03 10:59:28 +02:00
Bruno Bord e757426826
v8.2.1
Change:

- Added BrazilBankCalendar to support `include_` flags and make it possible to extend and change these flags to support custom bank calendars (#474).
2020-04-03 10:45:49 +02:00
Iuri de Silvio be05e1ca77 Refactor BrazilBankCalendar to use `include_*` flags
It is really useful to allow reuse of this class.
2020-03-27 09:27:20 -03:00
Bruno Bord 90fc853b02
Back to dev => 8.3.0.dev0 2020-03-13 10:24:44 +01:00
Bruno Bord 6cb3dd1347
v8.2.0 2020-03-13 10:18:41 +01:00
Alex Hoffmann 19c2b7c536 Adding holidays for Belarus 2020-03-04 14:24:29 +01:00
Bruno Bord 1d1e769dfb
Back to dev => 8.2.0.dev0 2020-02-07 10:14:40 +01:00
Bruno Bord 4f1945792e
v8.1.0
- Added Israel holidays eves and removed holidays which are not affecting the working days in Israel (#461).
- Fix warning in China's holidays to dynamically read supported years, thx @fredrike (#459).
2020-02-07 10:06:04 +01:00
Bruno Bord 5f6e524742
Dynamically generate warning message for China holidays
Expanding @fredrike's idea, I've changed the way this warning message was generated.

Several reasons:

* Depending on your Python version, the message was sometimes a bit awkward, with years being in disorder (e.g.: "year 2019, 2020, 2018"). Dictionaries are strange.
* If we plan for the future, it wouldn't have been readable to have warnings with "2018, 2019, 2020, 2021, 2022, 2023, etc". An interval is more future-proof.
* Added tests, because tests are great ;o)

refs #459
2020-02-07 09:59:05 +01:00
Fredrik Erlandsson d67c02bb70
hina support years dynamic warning
also, updated Changelog.md
2020-02-07 09:58:36 +01:00
Ela Avrahami 45cfd6ad35 Fixing the Israel holidays 2020-02-06 13:12:29 +02:00
Bruno Bord d3d1ad6eac
Back to dev => 8.1.0.dev2 2020-01-24 18:07:07 +01:00
Bruno Bord 7a85e46f0e
v8.0.2 2020-01-24 18:01:59 +01:00
Bruno Bord 0ead89cf99
Fix Georgia miscalculation of several state holidays
refs #451

* Fix Robert E. Lee's Birthday label rules (renamed as of year 2016 into the neutral "State Holiday")
* (hopefully) Fixed Washington's Birthday observance around Christmas time
* Fix Confederate Memorial Day label rules (renamed as of year 2016 into the neutral "State Holiday")
2020-01-24 17:55:51 +01:00
Bruno Bord 123da9b0a8
Back to development => 8.1.0.dev1 2020-01-24 10:48:41 +01:00
Bruno Bord 1ffe5dad95
v8.0.1 2020-01-24 10:42:14 +01:00
Bruno Bord 8654b69bb0
Fix Family Day computation for British Columbia (Canada)
closes #454

It fixes two things:

* Family Day was introduced in 2013, workalendar was assuming it was there before
* In 2019, Family Day was moved from the 2nd to the 3rd MON of February
2020-01-24 10:30:45 +01:00
Bruno Bord d68a50ebac
Back to dev => 8.1.0.dev0 2020-01-10 11:46:07 +01:00
Bruno Bord 669129d23b
v8.0.0
- **BREAKING CHANGE** Drop Support for Python 2 - EOL January 1st 2020 (#442).
- Added Ukraine calendar, by @apelloni.
- Small cleanup in the ``.travis.yml`` file, thx to @Natim.

**ISO Registry API Change**

- Changes in the ``registry.items()`` method API.
  - This method is aliased to ``get_calendars()``. In a near release, the ``items()`` method will change its purpose.
  - The ``get_calendars()`` method accepts an empty/missing ``region_codes`` argument to retrieve the full registry. Please see the [ISO Registry documentation](https://peopledoc.github.io/workalendar/iso-registry.html) for extensive usage docs (#403, #375).
2020-01-10 11:39:43 +01:00
Rémy HUBSCHER ae2497ce55
Upgrade tox/travis config. 2020-01-10 11:08:19 +01:00