Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of changes
This updates the changelog for the 2.8.1 release, which includes the following changes:
Version 2.8.1 (2019-11-03)
Data updates
Bugfixes
tzoffset
andtzstr
"strong"caches on Python 2.7. Reported by @kainjow (gh issue Intermittent parse() KeyError failure with 2.8.0 #901).
ParserError
, a subclass ofValueError
, which has a nicer string representation. Patch by@gfyoung (gh pr Use custom ParserError class in parser exceptions #881).
parser.parse
will now raiseTypeError
whentzinfos
is passed atype that cannot be interpreted as a time zone. Prior to this
change, it would raise an
UnboundLocalError
instead. Patch by@jbrockmendel (gh pr Add+collect tests for tzinfos input types, fix missed case of invalid… #891).
bytes
object asthe time zone name to gettz in Python 3. Reported and fixed by
@labrys () (gh issue gettz on Python 3 fails with TypeError when passed bytes #927, gh pr Fix error message for gettz when passed bytes #935).
release. Patch by Hugo van Kemenade (gh pr Fix for Python 4 #950).
tz.UTC
in favor oftz.tzutc()
internally, to avoid an unnecessary function call. (gh pr Use tz.UTC in favor of tz.tzutc() where possible. #910).
dateutil.tz
was using a backported version ofcontextlib.nullcontext
even in Python 3.7 due to a malformedimport statement. (gh pr Fix incorrect import in Python 3.7+ #963).
Tests
suite. (gh pr Remove WarningTestMixin in favor of pytest.warns #969).
explicitly specified as an error in the warnings filter. (gh pr
Fix typo in setup.cfg warning configuration #966)
test_tzlocal_offset_equal
would fail in certainenvironments (such as FreeBSD) due to an invalid assumption about
what time zone names are provided. Reported and fixed by Kubilay
Kocak (gh issue Test failure: test_tzlocal_offset_equal[GMT-tzoff1] (dateutil 2.8.0) #918, pr Fix test_tzlocal_offset_equal[GMT-tzoff1] #928).
test_isoparser
related tobytes
/str
handling. Fixed by @fhuang5 (gh issue bytes/str conversion lines not hit in test_isoparser #776, gh pr Improve coverage in test_isoparser #879).
pr Register pytest markers #915)
adoption of
pytest
-style tests and the addition of parametrizationof several test cases. Patches by @jbrockmendel (gh prs use setup_class instead of setUp #735,
Remove duplicate tests #890, Add several parser test cases #892, Parametrize tests for ignore_tz, dayfirst, yearfirst #894).
Add+collect tests for tzinfos input types, fix missed case of invalid… #891).
forbidden. Patch by @shadchin (gh pr Fix tests if not TZ change allowed #893).
Documentation changes
and documentation. Patch by Hugo van Kemenade (gh pr Fix typos #952).
Misc
setup.py
tosetup.cfg
as possible. Fixedby @FakeNameSE, @aquinlan82, @jachen20, and @gurgenz221 (gh
issue Move all simple constants from setup.py into setup.cfg #871, gh pr Convert setup.py to declarative build file when possible #880).
parser
methods by functionality. Patch by@jbrockmendel (gh pr REF: collect parser methods by function #882).
release.py
over to usingpep517.build
for creatingreleases, rather than direct invocations of
setup.py
. Fixed by@smeng10 (gh issue Use pep517.build in release.py #869, gh pr add fix for 2019hackIllinois Use pep517.build in release.py #869 #875).
dependency management when making releases. Fixed by @smeng10 (gh
issue Add a "build" job in tox #870,r gh pr Fix the add a build job in tox #870 #876).
If you are listed here and would like to make any changes, unfortunately I'm springing this on you quite late in the game, as I plan to make a release tonight some time between 2019-11-03T05:00Z and 2019-11-03T06:59Z because I find it funny to make a release during an ambiguous datetime in my current local time zone (
America/New_York
).