./time/py-dateutil, Extensions to the standard datetime module

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 2.8.1, Package name: py37-dateutil-2.8.1, Maintainer: pkgsrc-users

The `dateutil` module provides powerful extensions to the standard `datetime`
module, available in Python.


* Computing of relative deltas (next month, next year, next monday, last week
of month, etc);
* Computing of relative deltas between two given date and/or datetime objects;
* Computing of dates based on very flexible recurrence rules, using a superset
of the iCalendar specification. Parsing of RFC strings is supported as well.
* Generic parsing of dates in almost any string format;
* Timezone (tzinfo) implementations for tzfile(5) format files
(/etc/localtime, /usr/share/zoneinfo, etc), TZ environment string (in all
known formats), iCalendar format files, given ranges (with help from
relative deltas), local machine timezone, fixed offset timezone, UTC
timezone, and Windows registry-based time zones.
* Internal up-to-date world timezone information based on Olson's database.
* Computing of Easter Sunday dates for any given year, using Western, Orthodox
or Julian algorithms;
* More than 400 test cases.

Required to run:
[devel/py-setuptools] [lang/py-six] [lang/python37]

Required to build:
[pkgtools/cwrappers] [devel/py-setuptools_scm]

Master sites:

SHA1: bd26127e57f83a10f656b62c46524c15aeb844dd
RMD160: 8e14a1fac932b4062904a05c11da0d1ffb5a2bbb
Filesize: 323.97 KB

Version history: (Expand)

CVS history: (Expand)

   2020-10-06 12:51:22 by Thomas Klausner | Files touched by this commit (13)
Log message:
*: use py-hypothesis via versioned_dependencies.mk
   2020-05-18 12:40:11 by Adam Ciarcinski | Files touched by this commit (5)
Log message:
pytest from versioned depends
   2019-11-06 21:49:22 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dateutil: updated to 2.8.1

Version 2.8.1:

Data updates
- Updated tzdata version to 2019c.

- Fixed a race condition in the ``tzoffset`` and ``tzstr`` "strong" \ 
caches on
  Python 2.7.
- Parsing errors will now raise ``ParserError``, a subclass of ``ValueError``,
  which has a nicer string representation.
- ``parser.parse`` will now raise ``TypeError`` when ``tzinfos`` is passed a
  type that cannot be interpreted as a time zone. Prior to this change, it
  would raise an ``UnboundLocalError`` instead.
- Changed error message raised when when passing a ``bytes`` object as the time
  zone name to gettz in Python 3.
- Changed compatibility logic to support a potential Python 4.0 release.
- Updated many modules to use ``tz.UTC`` in favor of ``tz.tzutc()`` internally,
  to avoid an unnecessary function call.
- Fixed issue where ``dateutil.tz`` was using a backported version of
  ``contextlib.nullcontext`` even in Python 3.7 due to a malformed import

- Switched from using assertWarns to using pytest.warns in the test suite.
- Fix typo in setup.cfg causing PendingDeprecationWarning to not be explicitly
  specified as an error in the warnings filter.
- Fixed issue where ``test_tzlocal_offset_equal`` would fail in certain
  environments (such as FreeBSD) due to an invalid assumption about what time
  zone names are provided.
- Fixed a minor bug in ``test_isoparser`` related to ``bytes``/``str``
- Explicitly listed all markers used in the pytest configuration.
- Extensive improvements to the parser test suite, including the adoption of
  ``pytest``-style tests and the addition of parametrization of several test
- Added tests for tzinfos input types.
- Fixed failure of test suite when changing the TZ variable is forbidden.
- Pinned all test dependencies on Python 3.3.

Documentation changes
- Fixed many misspellings, typos and styling errors in the comments and

- Added Python 3.8 to the trove classifiers.
- Moved as many keys from ``setup.py`` to ``setup.cfg`` as possible.
- Reorganized ``parser`` methods by functionality.
- Switched ``release.py`` over to using ``pep517.build`` for creating releases,
  rather than direct invocations of ``setup.py``.
- Added a "build" environment into the tox configuration, to handle \ 
  management when making releases.
   2019-02-06 11:07:46 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dateutil: updated to 2.8.0

Version 2.8.0 (2019-02-04)

Data updates
- Updated tzdata version to to 2018i.

- Added support for EXDATE parameters when parsing rrule strings.
- Added support for sub-minute time zone offsets in Python 3.6+.
- Switched the tzoffset, tzstr and gettz caches over to using weak
  references, so that the cache expires when no other references to the
  original tzinfo objects exist. This cache-expiry behavior is not
  guaranteed in the public interface and may change in the future. To improve
  performance in the case where transient references to the same time zones
  are repeatedly created but no strong reference is continuously held, a
  smaller "strong value" cache was also added.

- Added time zone inference when initializing an rrule with a specified
  UNTIL but without an explicitly specified DTSTART; the time zone
  of the generated DTSTART will now be taken from the UNTIL rule.
- Fixed an issue where parser.parse would raise Decimal-specific errors
  instead of a standard ValueError if certain malformed values were parsed
  (e.g. NaN or infinite values).
- Fixed issue in parser where a tzinfos call explicitly returning
  None would throw a ValueError.
- Fixed incorrect parsing of certain dates earlier than 100 AD when repesented
  in the form "%B.%Y.%d", e.g. "December.0031.30".
- Add support for ISO 8601 times with comma as the decimal separator in the
  dateutil.parser.isoparse function.
- Changed handling of T24:00 to be compliant with the standard. T24:00
  now represents midnight on the *following* day.
- Fixed an issue where isoparser.parse_isotime was unable to handle the
  24:00 variant representation of midnight.
- Added support for more than 6 fractional digits in isoparse.
- Added 'z' (lower case Z) as valid UTC time zone in isoparser.
- Fixed a bug with base offset changes during DST in tzfile, and refactored
  the way base offset changes are detected.
- Fixed error condition in tz.gettz when a non-ASCII timezone is passed on
  Windows in Python 2.7.
- Improved performance and inspection properties of tzname methods.
- Removed unnecessary binary_type compatibility shims.
- Changed python setup.py test to print an error to stderr and exit
  with 1 instead of 0.
- Added a pyproject.toml file with build requirements and an explicitly
  specified build backend.

Documentation changes
- Added documentation for the rrule.rrulestr function.
- Added documentation for dateutil.tz.gettz.
- Add documentation for the dateutil.tz.win module and mocked out certain
  Windows-specific modules so that autodoc can still be run on non-Windows
- Added changelog to documentation.
- Changed order of keywords in the rrule docstring.
- Improved documentation on the use of until and count parameters in
- Added an example of how to use a custom parserinfo subclass to parse
  non-standard datetime formats in the examples documentation for parser.
- Added doctest examples to tzfile documentation.
- Updated the documentation for relativedelta's weekday arguments.
- Improved explanation of the order that relativedelta components are
  applied in.
- Expanded the description and examples in the relativedelta class.
- Improved the contributing documentation to clarify where to put new changelog
- Fixed a broken doctest in the relativedelta module.
- Changed the default theme to sphinx_rtd_theme, and changed the sphinx
  configuration accordingly.
- Reorganized dateutil.tz documentation and fixed issue with the
  dateutil.tz docstring.
- Cleaned up malformed RST in the tz documentation.
- Corrected link syntax and updated URL to https for ISO year week number
  notation in relativedelta examples.
   2018-10-29 12:10:07 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dateutil: updated to 2.7.5

Version 2.7.5:

Data updates
- Update tzdata to 2018g
   2018-10-26 10:06:11 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dateutil: updated to 2.7.4

Version 2.7.4:

Data updates
- Updated tzdata version to 2018f.
   2018-05-14 10:10:37 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dateutil: updated to 2.7.3

Version 2.7.3:

Data updates
- Update tzdata to 2018e.

- Fixed an issue where decimal.Decimal would cast NaN or infinite value in a
  parser.parse, which will raise decimal.Decimal-specific errors.
- Fixed a ValueError being thrown if tzinfos call explicity returns None.
- Fixed incorrect parsing of certain dates earlier than 100 AD when repesented
  in the form "%B.%Y.%d", e.g. "December.0031.30".
- Fixed a bug where automatically generated DTSTART was naive even if a
  specified UNTIL had a time zone. Automatically generated DTSTART will now
  take on the timezone of an UNTIL date, if provided.
   2018-04-02 15:27:23 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dateutil: updated to 2.7.2

Version 2.7.2:

- Fixed an issue with the setup script running in non-UTF-8 environment.