Skip to content

Conversation

@pyup-bot
Copy link
Contributor

This PR updates workalendar from 2.3.1 to 8.0.0.

Changelog

8.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).

7.2.0

New calendars

- Added Serbia calendar, by apelloni (435).
- Added Argentina calendar, by ftatarli (419).

Other changes

- Update China's public holidays for 2020, thx nut-free (429).
- Update Malaysia and Singapore for 2021 (Deepavali + Thaipusam) by jack-pace (432).
- Small refactorings on the Gevena (Switzerland) holiday class, thx to cw-intellineers (420).

7.1.1

- **Bugfix** for USA: Fixed incorrect implementation for Thanksgiving Friday, thx deveshvar (422).
- Fix Advanced usage documentation about Thanksgiving Day (426).
- Added Geneva calendar by cw-intellineers (420).

7.1.0

New calendars

- Added 27 Brazil calendars -- thanks a lot to luismalta & mileo, (409 & 415)

Enhancements

- Added compatibility with Python 3.8 (406).
- Added an IBGE_REGISTER to reference IBGE (brazilian) calendars with related tests (415).
- Improve ISO registry interface by raising an error when trying to register a non-Calendar class (412).

Other changes

- Fixes and additions to some Brazil calendars ; again, thanks to luismalta & mileo, (409 & 415)
- Fix Denmark, re-add Christmas Eve, which is widely treated as public holiday ; thx to KidkArolis, (414).
- Increase Malaysia coverage by adding tests for missing Deepavali & Thaipusam.
- Increase China coverage by adding tests for special extra-holidays & extra-working days cases.

7.0.0

- Drop `ephem` astronomical calculation library, in favor of `skyfield` and `skyfield-data` for providing minimal data files to enable computation (302, 348). Many thanks to GammaSagittarii for the tremendous help on finding the right way to compute Chinese Solar Terms. Also thanks to antvig and DainDwarf for testing the beta version (398).

6.0.1

- Fix Turkey Republic Day (399, thx to mhmtozc & Natim).

6.0.0

**Deprecation Notice:** *The global ISO registry now returns plain `dict` objects from its various methods.*

- Global registry now returns plain built-in dicts (375).
- Removed `EphemMixin` in favor of astronomical functions (302).
- Added first day counting when computing working_days delta (393), thx Querdos.

5.2.3

**Deprecation Warning:** *Currently the registry returns `OrderedDict` objects when you're querying for regions or subregions. Expect that the next major release will preferrably return plain'ol' `dict` objects. If your scripts rely on the order of the objects returned, you'll have to sort them yourself.*

- Fix Romania, make sure Easter and related holidays are calculated using the Orthodox calendar, thx to KidkArolis (389).

v5.2.2. (2019-07-07)

- Fix Denmark, remove observances (remove Palm Sunday, Constitution Day, Christmas Eve and New Year's Eve), thx to KidkArolis (387, 386).

5.2.1

- Refactored the package building procedure, now linked to `make package` ; added a note about this target in the PR template (366).
- Fixed United Kingom's 2020 holidays ; The Early May Bank Holiday has been moved to May 8th to commemorate the 75th anniversary of the end of WWII (381).

5.2.0

New Calendar

- Added JapanBank by raybuhr (379, 369).

Other changes

- Added adjustments to 2019-2020 Japan calendar due to the coronation of a new emperor (379).
- Add a note about the fact that contributors should not change the version number in the changelog and/or the ``setup.py`` file (380).

5.1.1

- Display missing lines in coverage report (376).
- Add "Europe Day" for Luxembourg (377).

5.1.0

New Calendar

- Added Turkey by tayyipgoren (371).

Other changes

- Change registry mechanism to avoid circular imports (288).
- Internal: Added a "Release" section to the Pull Request template.
- Internal: Added advices on the Changelog entry in the Contributing document.
- Bugfix: Fixing North Carolina shift rules when Christmas Day happens on Saturday (232).
- Documentation: rearrange country list in ``README.rst`` (sorting and fixing nested lists).
- Documentation: Renamed and changed format of the "Contributing guidelines" document, now in Markdown (GFM variant), with a few fixes (368).
- Internal: remove coverage targets ; now coverage reports are displayed for each tox job, but they won't output classes with 100% coverage.

5.0.3

- Bugfix: Panama - Fixed incorrect independence from Spain date, thanks to chopanpma (361).

5.0.2

- Bugfix: Israel - Fixed incorrect Purim/Shushan Purim dates in jewish leap years, thx orzarchi. This fix cancels the last (5.0.1) version, that will be deleted from PyPI.

5.0.1

**WARNING** This version contains known bugs on Israel calendar. Please do not use it in production.

- Bugfix: Israel - Fixed incorrect Purim/Shushan Purim dates in jewish leap years, thx orzarchi.

5.0.0

Major Changes & fixes

- Dropped Python 3.4 support (352).
- Added Malaysia Thaipusam days for the year 2019 & 2020 - thx burlak for the bug report (354).
- Fixed Deepavali dates for the year 2018 ; confirmed fixed dates that were set in the past.

Added calendars

- Added Florida specific calendars: Florida Legal, Florida Circuit Courts, Miami-Dade (216).

4.4.0

**WARNING**: This release will be the last one to support Python 3.4, which has [reached its End of Life and has been retired](https://www.python.org/dev/peps/pep-0429/release-schedule). Please upgrade.

Added calendar

- Added California specific calendars: California Education, Berkeley, San Francisco, West Hollywood (215).

Fixes

- Added a few refactors and tests for Australia Capital Territory holiday named "Family & Community Day", that lasted from 2007 to 2017 (25).
- Added South African 2019 National Elections as holiday (350), by RichardOB.

4.3.1

- Bugfix: Update 2019 Labour Day Holidays for China as changed by government recently (2019-03-22), by iamsk, and thanks to ltyely for their patch (345 & 347).

4.3.0

New Calendar

- Added Barbados by ludsoft.

Fixes

- Added isolated tests for shifting mechanics in USA calendars - previously untested (335).
- Added Berlin specific holidays (340).
- Added several one-off public holidays to UK calendar (336).

4.2.0

New calendars

- Added several US territories and other specific calendars:
- American Samoa territory (218).
- Chicago, Illinois (220).
- Guam territory (219).
- Suffolk County, Massachusetts (222).
- Added Cayman Islands, British Overseas Territory (328)

4.1.0

New calendars

**WARNING** Scotland (sub)calendars are highly experimental and because of their very puzzling rules, may be false. Please use them with care.

- Added Scotland calendars, i.e. Scotland, Aberdeen, Angus, Arbroath, Ayr, Carnoustie & Monifieth, Clydebank, Dumfries & Galloway, Dundee, East Dunbartonshire, Edinburgh, Elgin, Falkirk, Fife, Galashiels, Glasgow, Hawick, Inverclyde, Inverness, Kilmarnock, Lochaber, Monifieth, North Lanarkshire, Paisley, Perth, Scottish Borders, South Lanarkshire, Stirling, and West Dunbartonshire (31).

Bugfixes

- Fixed United Kingdom bank holiday for 2002 and 2012, thx ludsoft (315).
- Fix a small flake8 issue with wrong indentation (319).
- Fix Russia "Day of Unity" date, set to November 4th, thx alexitkes for the bug report (317).

4.0.0

- Solved the incompatibility between `pandas` latest version and Python 3.4. Upgraded travis distro to Xenial/16.04 LTS (307).
- Added instructions about the usage of the `iso_register` decorator in the pull-request template (309).

New Calendars

- Added New Zealand, by johnguant (306).
- Added Paraguay calendar, following the work of reichert (268).
- Added China calendar, by iamsk (304).
- Added Israel, by armona, tsehori (281).

3.2.1

Bugfixes

- Added DEEPAVALI days for 2019 and 2020, thx pvalenti (282).
- Fixed Germany Reformation Day miscalculation. Some German states include Reformation Day since the "beginning" ; in 2017, all states included Reformation Day as a holiday (500th anniversary of the Reformation) ; starting of 2018, 4 states added Reformation Day (295).

3.2.0

New Calendars

- Added China, by iamsk.

3.1.1

Bugfix

- Fixed ISO 3166-1 code for the `Slovenia` calendar (291, thx john-sandall).

3.1.0

Major changes

- Added support for Python 3.7 (283).
- Fixed the `SouthAfrica` holidays calendar, taking into account the specs of holidays that vary over the periods. As a consequence, it cleaned up erroneous holidays that were duplicated in some years (285). Thx to surfer190 for his review & suggestions.
- Bugfix for South Africa: disabled the possibility to compute holidays prior to the year 1910.

Minor changes

- Renamed Madagascar test class name into `MadagascarTest` (286).
- Separated the coverage jobs from the pure tests. Their report output was disturbing in development mode, you had to scroll your way up to find eventual failing tests (289).

3.0.0

Major changes

Large work on global registry: refs 13, 96, 257 & 284.

- Added Tests for Europe registry.
- Revamped and cleaned up Europe countries.
- Added the United States of America + States, American countries & sub-regions, African countries, Asian countries, Oceanian countries.
- The global registry usage is documented.

Breaking changes

- Changed Canada namespace to `workalendar.america.canada`.
- You don't have to declare a `name` properties for Calendar classes. It will be deducted from the docstring.
- Changed the `registry.items()` mandatory argument name to `region_codes` for more readability.

2.6.0

New Calendars

- Added Angola, by dvdmgl (276)

Bugfixes

- Portugal - removed carnival from Portuguese holidays, restored missing holidays (275)

Other changes

- Added All Souls Day to common (274)
- Allow the `add_working_days()` function to be provided a datetime, and returning a `date` (270).
- Added a `keep_datetime` option to keep the original type of the input argument for both ``add_working_days()`` and ``sub_working_days()`` functions (270).
- Fixed usage examples of ``get_first_weekday_after()`` docstring + in code (calendars and tests) ; do not use magic values, use MON, TUE, etc (271).
- Turned Changelog into a Markdown file (272).
- Added basic usage documentation, hosted by Github pages.
- Added advanced usage documentation.

2.5.0

- Bugfix: deduplicate South Africa holidays that were emitted as duplicates (265).
- Add the `get_working_days_delta` method to the core calendar class (260).

2.4.0

New Calendars

- Added Lithuania, by landler (254).
- Added Russia, by vanadium23 (259).

Bugfixes

- Fixed shifting ANZAC day for Australia states (249).
- Renamed Australian state classes to actual state names(eg. AustraliaNewSouthWales to NewSouthWales).
- Update ACT holidays (251).
- Fixing Federal Christmas Shift ; added a `include_veterans_day` flag to enable/disable Veteran's day on specific calendar - e.g. Mozilla's dedicated calendar (242).

Other

- **Deprecation:** Dropped support for Python 3.3 (245).
- Fixed Travis-ci configuration for Python 3.5 and al (252).
- Moved from `novafloss` to the `peopledoc` organization, the core People Doc Inc. organization (255).
- First step iteration on the "global registry" feature. European countries are now part of a registry loaded in the ``workalendar.registry`` module. Please use with care at the moment (248).
- Refactored Australia family and community day calculation (244).
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants