Commit Graph

135 Commits

Author SHA1 Message Date
Bruno Bord f0cfe9c6b2
Implementing tests for all Switzerland Cantons
* Moving Switzerland tests to their own module
* All Cantons have associated tests: Aargau, Appenzell Innerrhoden, Appenzell Ausserrhoden, Bern, Basel-Landschaft, Basel-Stadt, Fribourg, Geneva, Glarus, Graubünden, Jura, Luzern, Neuchâtel, Nidwalden, Obwalden, St. Gallen, Schaffhausen, Solothurn, Schwyz, Thurgau, Ticino, Uri, Vaud, Valais, Zug, Zurich
* Tests added for Switzerland ISO registry entries (+ subregions)
2020-05-29 18:04:28 +02:00
Karolis Narkevicius 620f77a348 Add Kenyan calendar 2020-04-17 09:47:29 +01:00
Alex Hoffmann 19c2b7c536 Adding holidays for Belarus 2020-03-04 14:24:29 +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
Bruno Bord 7558b6bf2c
Drop Python 2.7 support
refs #442, #330
2020-01-10 10:47:10 +01:00
Rémy HUBSCHER 5c5e676eee
Add link to travis status image. 2019-12-13 18:00:07 +01:00
annessi 663669d3ea Updated README and Changelog 2019-12-11 16:48:55 +01:00
annessi 3d4f579fe6 Added Serbia to the european countries 2019-12-05 14:07:10 +01:00
ftatarli 7e3c16ce07
Argentina Holidays
- Added Argentina holidays
2019-11-29 14:29:18 +01:00
Christopher Wittlinger 11c64a6895 Corrected the Readme and supplied unit test for the Geneva calendar 2019-11-18 16:38:07 +01:00
Bruno Bord 0fbc4fdce0
Added Python 3.8 compatibility 2019-10-25 18:16:38 +02:00
Bruno Bord 87b0f715bf
v7.0.0 2019-09-20 12:15:44 +02:00
raybuhr 9a0974f74c Add JapanBank class (#379)
* add JapanBank class. FYI: The Bank of Japan lists all holidays and other dates closed
on their public website, https://www.boj.or.jp/en/about/outline/holi.htm/.
* make some adjustments in the Japan calendar (see below)

In researching this dates, I found that the Japan calendar also needed to be updated because of adjustments in 2019 and 2020 due to the new emperor. Some fixed holidays were added and some variable holidays got shifted around.

I have tested and verified all the Bank of Japan holidays match what has been publicly posted for 2019 and 2020. I have also compared the national holidays of Japan to what is available at https://www.timeanddate.com/holidays/japan/.
2019-07-04 15:41:40 +02:00
Tayyip G b8b6d99821 Added Turkey calendar
refs #371

This branch is based on @tayyipgoren original work.

It adds an optional islamic delta to apply on-demand, by custom or specifically per year.
Also added tests for New Years shift, which happens on Sunday.
2019-06-24 09:08:23 +02:00
Bruno Bord b595928a1a Converting CONTRIBUTING.rst to contributing.md
Markdown file generated using the following command:

```
pandoc -f rst -t markdown_github --atx-headers CONTRIBUTING.rst > contributing.md
```

It's been then refined to fit the GFM format

closes #368
2019-06-21 15:49:46 +02:00
Bruno Bord fe6e83c780 Sort Country list alphabetically & rearrange nested lists 2019-06-14 09:42:34 +02:00
Bruno Bord db6b559937 Florida specific calendars
Namely:

* Florida Legal,
* Florida Circuit Courts,
* Miami-Dade.

Main sources:

* https://en.wikipedia.org/wiki/Holidays_with_paid_time_off_in_the_United_States#Florida
* https://www.firstjudicialcircuit.org/about-court/court-holidays

closes #216
2019-05-17 16:57:30 +02:00
Bruno Bord 61fa04f398 Drop Python 3.4 support
closes #352
2019-05-17 12:15:24 +02:00
Ludo 4bdf7d7560 Add Barbados Calendar 2019-03-14 17:49:41 +01:00
Rémy HUBSCHER 3fb2dd3af9
Add Cayman Islands.
Fixes #328
2019-02-21 11:16:15 +01:00
Bruno Bord 214a4562f2 Added Suffolk County, Massachusetts calendar
closes #222
2019-02-14 17:40:52 +01:00
Bruno Bord be9a5f388d Added Guam (US territory)
closes #219
2019-02-14 16:58:23 +01:00
Bruno Bord cf0969612f Added Chicago, Illinois calendar
closes #220
2019-02-14 14:40:28 +01:00
Bruno Bord b5a4ed47e6 Added the American Samoa calendar (US territory)
closes #218
2019-02-14 12:27:26 +01:00
Bruno Bord fb35a15e1a Adding Scotland calendars
refs #31

* Scotland base calendars
* Major towns and cities have their own calendars

Four years after the beginning, I'm back.
2019-02-07 14:53:53 +01:00
Armon Avrahamy 30ba99805b Add Israel calendar
Holidays which are not included:

- There are holidays which are taken as day off by large portions of the
pupulation but are not considered official holidays, e.g. Chanuka.
- There are a lot of jewish holidays which are not public holidays
- There are muslim holidays which are conisdered days off for the Muslim
population
- Holidays which are optional paid leave e.g. Jerusalem Day
- School holidays
2019-01-24 14:45:12 +01:00
Bin 6da38553c4 add new calendar: China 2019-01-24 14:02:41 +01:00
Bruno Bord 6424d60378 Added Paraguay calendar
based on the work of @reichert in #268.

Changes:

* Added tests for Paraguay class,
* Added the date variation for Heroes Day, Founding of Asunción and Boqueron Battle Victory Day in 2017,
* Added erroneous Independance day set to May 15th, wikipedia doesn't mention it,
* Removed New Years Eve, wikipedia doesn't mention it,
* Fixed flake8 issues,
* Added Paraguay to the list on the README file,
* Added changelog entry.
2019-01-24 13:14:52 +01:00
Rhys Davies 619600246f
Add New Zealand Calendar 2019-01-11 08:32:30 +13:00
Bruno Bord 1e00faa535 Added Python 3.7 support 2018-09-20 13:58:33 +02:00
David Miguel 1a2daa4225 Add Angola holidays
https://pt.wikipedia.org/wiki/Feriados_em_Angola
http://www.consuladogeral-angola.pt/feriados-nacionais/

Issue #276
2018-08-23 17:36:52 +01:00
Bruno Bord 8c90e0b8ef Basic usage documentation
Starting a Github Pages based documentation, targeting users, integrators and eventual contributors.
The first step is "Basic usage" doc.
2018-07-12 14:59:57 +02:00
Bruno Bord c06d185f88 Merge branch 'add-russia' of https://github.com/vanadium23/workalendar into vanadium23-add-russia 2018-03-28 11:23:56 +02:00
vanadium23 9fd8cb70a4 [Feat] add russia calendar holidays (add-russia) 2018-03-17 22:16:32 +03:00
Lauri Andler 1980910d91
Merge branch 'master' into add-lithuania 2018-01-04 15:32:05 +02:00
Bruno Bord 2faeb18662 refs #255 -- Changing organization name to "peopledoc" 2017-11-20 17:12:17 +01:00
Lauri Andler eec88dfc9e Added lithuania to readme 2017-11-07 14:22:17 +02:00
Frederico Lima f4c6603249 Change doc files 2017-07-25 14:14:28 -03:00
Ned Lowe 228f4f7064 Hong Kong is in Asia, not Europe 2017-07-03 16:34:59 +08:00
Ned Lowe 1afc7ac352 Add Hong Kong calendar. Factor out the Christmas/Boxing Day Sunday shift as its used in the UK and in HK. Add a test to Poland as an example to ensure it *doesn't* shift countries which don't shift Christmas. Add complicated Sunday shift for the third day of CNY - I would rather loop this than hardcode it, but I didn't want to change the core approach until it had been discussed. 2017-06-25 18:59:10 +08:00
Gregory Yap 8e3eb3e32a Finalizing and squashing commits for Malaysia branch 2017-06-06 17:30:33 +08:00
Bruno Bord ecf74dc5b6 refs #194 -- Added Singapore calendar, including the sunday shift 2017-05-30 12:38:29 +02:00
Bruno Bord 713fce0fb4 v1.2.0 2017-05-30 10:47:39 +02:00
Bruno Renié 485b79a0ba Merge branch 'master' into feature/ch-vd 2017-02-28 08:30:30 +01:00
Bruno Bord 08cca95fff Merge branch 'RO_dimcal' of https://github.com/gregn610/workalendar into gregn610-RO_dimcal
Conflicts:
	CHANGELOG
2017-02-27 17:49:19 +01:00
Bruno Bord d6bbe6bc31 Merge branch 'MT_dimcal' of https://github.com/gregn610/workalendar into gregn610-MT_dimcal
Conflicts:
	CHANGELOG
2017-02-27 17:36:44 +01:00
Bruno Bord 41567498aa Merge branch 'LV_dimcal' of https://github.com/gregn610/workalendar into gregn610-LV_dimcal
Conflicts:
	CHANGELOG
2017-02-27 17:26:29 +01:00
Bruno Renié ce4b7e3e83 Switzerland: add rules for canton of Vaud
Switzerland public holidays are canton-specific:

https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland

Canton of Vaud doesn't have Labor day or boxing day, but has its own
"Lundi du Jeûne Fédéral" in september.
2017-02-27 14:38:13 +01:00
Greg N 3b88c81ab6 Add Romania 2017-01-15 15:56:12 +01:00
Greg N 84949d28c4 Add Malta 2017-01-14 15:00:28 +01:00