Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump aniso8601 from 8.1.1 to 9.0.0 #937

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 18, 2021

Bumps aniso8601 from 8.1.1 to 9.0.0.

Changelog

Sourced from aniso8601's changelog.

aniso8601 9.0.0

Release date: 2021-02-18

Changes

  • Add support for concise interval format (see 27 <https://bitbucket.org/nielsenb/aniso8601/issues/27/support-for-short-syntax-for-intervals>_)
  • Add explicit bounds of [000, 366] to day of year component :code:_parse_ordinal_date, this adds the same limits to dates of the format YYYYDDD or YYYY-DDD when using :code:parse_date
  • Add :code:range_check_date, :code:range_check_time, :code:range_check_duration, :code:range_check_repeating_interval, and :code:range_check_timezone range checking class methods to :code:BaseTimeBuilder there are no datetime or non-repeating interval check function as they are made of already checked parts
  • :code:PythonTimeBuilder now calls the appropriate range check functions using the :code:range_check_date, :code:range_check_time, :code:range_check_duration, :code:range_check_repeating_interval, and :code:range_check_timezone methods defined in :code:aniso8601.builders
  • Add :code:range_check_duration to :code:PythonTimeBuilder which calls :code:BaseTimeBuilder.range_check_duration and performs additional checks against maximum timedelta size
  • Add :code:range_check_interval to :code:PythonTimeBuilder which handles building concise dates and performs additional checks against maximum timedelta size
  • Add :code:get_datetime_resolution which behaves like :code:get_time_resolution but accepts a ISO 8601 date time as an argument, return value is a :code:TimeResolution
  • Add :code:exceptions.RangeCheckError as a parent type of all failures in the range check methods, it descends from :code:ValueError
  • Add :code:get_duration_resolution which behaves like other resolution helpers, return value is a :code:DurationResolution
  • Add :code:get_interval_resolution which behaves like other resolution helpers, return value is a :code:IntervalResolution
  • Negative durations now fail at the parse step and simply raise :code:ISOFormatError, calling a :code:PythonTimeBuilder.build_duration directly with a negative duration component will yield an :code:ISOFormatError in the range check
  • Raise :code:DayOutOfBoundsError if calendar day exceeds number of days in calendar month
  • Raise :code:DayOutOfBoundsError if ordinal day exceeds number of days in calendar year (366 now raises :code:DayOutOfBoundsError in non-leap year)
  • Raise :code:ISOFormatError when date or time string contains extra whitespace
  • Raise :code:ISOFormatError on multiple fraction separators (comma, full-stop) in a time string
  • Raise :code:ISOFormatError when duration contains multiple duration designators ("P"), or time designators ("T")
  • :code:PythonTimeBuilder.build_duration raises :code:YearOutOfBoundsError, :code:MonthOutOfBoundsError, :code:WeekOutOfBoundsError, :code:HoursOutOfBoundsError, :code:MinutesOutOfBoundsError, or :code:SecondsOutOfBoundsError when a given duration component would result in a :code:timedelta that would exceed the maximum size
  • Raise :code:ISOFormatError if number of delimiters is not exactly 1 in :code:parse_interval
  • Raise :code:ISOFormatError when either part of an interval string before of after the delimiter is empty
  • Raise :code:YearOutOfBoundsError in :code:PythonTimeBuilder.build_interval if an interval with a duration would exceed the maximum or minimum years for Python date objects
  • Simplify :code:parse_date, :code:build_date will now be called with explicit :code:None arguments instead of date components not in the parsed string excluded from the call
  • Change :code:get_date_resolution to call :code:parse_date and return the resolution based on the smallest parsed component
  • Simplify :code:parse_time, :code:build_time will now be called with explicit :code:None arguments instead of date components not in the parsed string excluded from the call
  • Change :code:get_time_resolution to call :code:parse_time and return the resolution based on the smallest parsed component
  • :code:TupleBuilder now builds :code:DateTuple, :code:TimeTuple, :code:DatetimeTuple, :code:DurationTuple, :code:IntervalTuple, :code:RepeatingIntervalTuple and :code:TimezoneTuple namedtuples
  • Simplify :code:parse_duration, :code:build_duration will now be called with explicit :code:None arguments when components of a prescribed duration are not present in the ISO 8601 duration string instead of being excluded from the call
  • Remove unused :code:decimalfraction.find_separator
  • Remove unused :code:PythonTimeBuilder._split_to_microseconds
  • Removed :code:NegativeDurationError

Deprecation

  • Update on Python 2 support: Python 2 support was slated to be removed in 7.0.0 but was not, it will remain until a test fails on Python 2 but not Python 3
  • Using Setuptools to run tests (:code:python setup.py tests) will be removed in the next major or minor version (either 9.1.0, 10.0.0)
Commits
  • c6969e8 Add _get_interval_component_resolution test.
  • c6b58c9 Add _get_interval_resolution test.
  • 0996c42 Add get_datetime_resolution.
  • 1e98e17 Add documentation for new resolution functions.
  • 367c118 Correct tuplebuilder documentation to reflect namedtuples.
  • 0284015 Start of BUILDERS implementation documentation.
  • d48d99c More documentation.
  • 8c7c5d2 Move duration range checking to range_check_duration.
  • ec5d27d Move all additional range checking to range_check_interval and
  • e8c39be Remove unused _split_to_microseconds.
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Feb 18, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 2, 2021

A newer version of aniso8601 exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants