Releases: rezemika/humanized_opening_hours
Releases · rezemika/humanized_opening_hours
Version 1.0.0 beta 3
- 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
- Adds german, russian, dutch, polish, portuguese and italian translations.
- Capitalizes the weekday names in
plaintext_week_description(). - Fixes Python 3.6+ compatibility.
- Fixes
MonthDayDatedate 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
- Fixes handling of closed periods (which were considered as open).
- Replaces the
DayPeriodsnamedtuples with aDayclass. - Renames the
get_day_periods()method toget_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> closedformats, 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
- Rewrites a part of the parsing logic.
- Rewrites all the rendering logic for field description.
- Adds a
mergeparameter to theopening_periods_between()method. - Adds a
skip_sanitizingparameter toOHParser. - Adds a
coverageMake 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 thefrom_geojson()classmethod. - Removes a useless exception catching.
Version 1.0.0 alpha 4
- 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
- Fixes a mistranslation when rendering a field with a variable time with offset.
- Fixes various bugs in background.
- Adds an
is_24_7attribute toOHParser. - Adds an equality method to
OHParser. - Improves and updates documentation.
Version 1.0.0 alpha 2
- Uses
babel.lists.format_list()forrendering.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
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
OHParserclass now has afrom_geojson()classmethod, allowing to get an instance from a GeoJSON. - The
HOHRendererclass is fused into the mainOHParserclass. - The solar hours are now automatically calculated by the
astralmodule for any date.
Version 0.6.2
Version 0.6.1
This minor version fixes the OHRenderer.plaintext_week_description() method and fixes getting of the README file.