Skip to content

Releases: rezemika/humanized_opening_hours

Version 1.0.0 beta 3

02 Dec 12:03

Choose a tag to compare

Version 1.0.0 beta 3 Pre-release
Pre-release
  • Fixes an error in MonthDayRange.is_included() making it return False for month ranges spanning over years (see #26).
  • Adds italian in the README.
  • Updates requirements.

Version 1.0.0 beta 2

28 Oct 14:37

Choose a tag to compare

Version 1.0.0 beta 2 Pre-release
Pre-release
  • Adds german, russian, dutch, polish, portuguese and italian translations.
  • Capitalizes the weekday names in plaintext_week_description().
  • Fixes Python 3.6+ compatibility.
  • Fixes MonthDayDate date getting.
  • Fixes a test case for the next_change() method.
  • Updates requirements.

Many thanks to all the Hacktoberfest participants!

Version 1.0.0 beta 1

09 Aug 19:27
v1.0.0b1

Choose a tag to compare

Version 1.0.0 beta 1 Pre-release
Pre-release
  • Fixes handling of closed periods (which were considered as open).
  • Replaces the DayPeriods namedtuples with a Day class.
  • Renames the get_day_periods() method to get_day().
  • Fixes regexes in the sanitize() function.
  • Fixes the monthday_date_month() method of the transformer.
  • Raises a ParseError when a minute is not between 0 and 60.
  • Fixes a sanitization regex for "H:MM" formats.
  • Raises a ParseError for <time_selector> closed formats, as their parsing does not completely work yet.
  • Adds a temporary_location() contextmanager.
  • Adds a "fake support" of commas as rule separator.

Version 1.0.0 alpha 5

15 Jul 11:36

Choose a tag to compare

Version 1.0.0 alpha 5 Pre-release
Pre-release
  • Rewrites a part of the parsing logic.
  • Rewrites all the rendering logic for field description.
  • Adds a merge parameter to the opening_periods_between() method.
  • Adds a skip_sanitizing parameter to OHParser.
  • Adds a coverage Make command.
  • Adds many unit tests to improve coverage.
  • Rewrites some conditions in the next_change() method.
  • Fixes a bug when rendering a TimeSpan with a variable time with offset.
  • Fixes the centroid() function in the from_geojson() classmethod.
  • Removes a useless exception catching.

Version 1.0.0 alpha 4

10 Jul 12:52

Choose a tag to compare

Version 1.0.0 alpha 4 Pre-release
Pre-release
  • Updates and fixes errors in README.
  • Adds an opening_periods_between() method.
  • The is_open() method now returns True if the beginning of the opening period is equal to the given moment.
  • Fixes a bug in the 'get_current_rule()' method and adds unit tests for it.
  • A few bugfixes and PEP-8 corrections.

Version 1.0.0 alpha 3

28 Jun 15:38

Choose a tag to compare

Version 1.0.0 alpha 3 Pre-release
Pre-release
  • Fixes a mistranslation when rendering a field with a variable time with offset.
  • Fixes various bugs in background.
  • Adds an is_24_7 attribute to OHParser.
  • Adds an equality method to OHParser.
  • Improves and updates documentation.

Version 1.0.0 alpha 2

25 Jun 12:50

Choose a tag to compare

Version 1.0.0 alpha 2 Pre-release
Pre-release
  • Uses babel.lists.format_list() for rendering.join_list().
  • Uses the current locale's first weekday as default for the plaintext_week_description() method.
  • Fixes the plaintext_week_description() for timespans spanning over midnight.
  • Review locales management for the DescriptionTransformer.

Version 1.0.0 alpha 1

23 Jun 18:45

Choose a tag to compare

Version 1.0.0 alpha 1 Pre-release
Pre-release

This version is a new major rewrite (and should be the last) of the parsing logic.

  • The parsing is now slower but much closer to the official specifications and almost all field patterns are supported.
  • HOH now handles the periods spanning over midnight.
  • The OHParser class now has a from_geojson() classmethod, allowing to get an instance from a GeoJSON.
  • The HOHRenderer class is fused into the main OHParser class.
  • The solar hours are now automatically calculated by the astral module for any date.

Version 0.6.2

14 Jun 20:15

Choose a tag to compare

Handles the separator_for_readability in rules, for fields like Dec 25: off.

Version 0.6.1

08 Jun 15:23

Choose a tag to compare

This minor version fixes the OHRenderer.plaintext_week_description() method and fixes getting of the README file.