Commit Graph

32 Commits

Author SHA256 Message Date
Ana Guerrero
b17c00c3d1 Accepting request 1157042 from devel:languages:python
Forwarded request #1156451 from bnavigator

- Update to 2.9.0.post0
    * Pinned setuptools_scm to <8, which should make the generated
      _version.py file compatible with all supported versions of
      Python. (We don't do this at openSUSE, we don't need Python 2
      installs from a setuptools_scm v8 build)
  - Version 2.9.0
    * Updated tzdata version to 2024a. (gh pr #1342)
    * Made all dateutil submodules lazily imported using PEP 562. On
      Python 3.7+, things like import dateutil;
      dateutil.tz.gettz("America/New_York") will now work without
      explicitly importing dateutil.tz, with the import occurring
      behind the scenes on first use. The old behavior remains on
      Python 3.6 and earlier. Fixed by Orson Adams. (gh issue #771,
      gh pr #1007)
    * Removed a call to datetime.utcfromtimestamp, which is
      deprecated as of Python 3.12. Reported by Hugo van Kemenade (gh
      pr #1284), fixed by Thomas Grainger (gh pr #1285).
  - Provide underscore name: some consuming packages go with that,
    don't fail unnecessarily
  - Drop no-utcfromtimestamp.patch

OBS-URL: https://build.opensuse.org/request/show/1157042
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=14
2024-03-13 21:16:35 +00:00
cc3b445351 Accepting request 1156451 from home:bnavigator:branches:devel:languages:python
- Update to 2.9.0.post0
  * Pinned setuptools_scm to <8, which should make the generated
    _version.py file compatible with all supported versions of
    Python. (We don't do this at openSUSE, we don't need Python 2
    installs from a setuptools_scm v8 build)
- Version 2.9.0
  * Updated tzdata version to 2024a. (gh pr #1342)
  * Made all dateutil submodules lazily imported using PEP 562. On
    Python 3.7+, things like import dateutil;
    dateutil.tz.gettz("America/New_York") will now work without
    explicitly importing dateutil.tz, with the import occurring
    behind the scenes on first use. The old behavior remains on
    Python 3.6 and earlier. Fixed by Orson Adams. (gh issue #771,
    gh pr #1007)
  * Removed a call to datetime.utcfromtimestamp, which is
    deprecated as of Python 3.12. Reported by Hugo van Kemenade (gh
    pr #1284), fixed by Thomas Grainger (gh pr #1285).
- Provide underscore name: some consuming packages go with that,
  don't fail unnecessarily
- Drop no-utcfromtimestamp.patch

OBS-URL: https://build.opensuse.org/request/show/1156451
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=30
2024-03-11 21:34:09 +00:00
Ana Guerrero
d86ab7f938 Accepting request 1111822 from devel:languages:python
- Add patch no-utcfromtimestamp.patch, stop using a deprecated function.
- Switch to pyproject and autosetup macros.
- Stop using greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1111822
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=13
2023-09-22 19:46:42 +00:00
Steve Kowalik
99034ec70a - Add patch no-utcfromtimestamp.patch, stop using a deprecated function.
- Switch to pyproject and autosetup macros.
- Stop using greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=28
2023-09-18 04:40:05 +00:00
Dominique Leuenberger
16233a1f61 Accepting request 1081587 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081587
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=12
2023-04-22 19:57:45 +00:00
f62684b5d6 Accepting request 1081567 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081567
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=26
2023-04-21 13:22:34 +00:00
Dominique Leuenberger
808a8f6313 Accepting request 908463 from devel:languages:python
- update to 2.8.2:
  - Updated tzdata version to 2021a. (gh pr #1128)
  - Fixed a bug in the parser where non-``ValueError`` exceptions would be raised
  during exception handling; this would happen, for example, if an
  ``IllegalMonthError`` was raised in ``dateutil`` code. Fixed by Mark Bailey.
  (gh issue #981, pr #987).
  - Fixed the custom ``repr`` for ``dateutil.parser.ParserError``, which was not
  defined due to an indentation error. (gh issue #991, gh pr #993)
  - Fixed a bug that caused ``b'`` prefixes to appear in parse_isodate exception
  messages. Reported and fixed by Paul Brown (@pawl) (gh pr #1122)
  - Make ``isoparse`` raise when trying to parse times with inconsistent use of
  `:` separator. Reported and fixed by @mariocj89 (gh pr #1125).
  - Fixed ``tz.gettz()`` not returning local time when passed an empty string.
  Reported by @labrys (gh issues #925, #926). Fixed by @ffe4 (gh pr #1024)
  * Documentation changes
  * Simplified handling of bytes and bytearray in ``_parser._timelex``.

OBS-URL: https://build.opensuse.org/request/show/908463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=11
2021-07-28 17:19:25 +00:00
147a78a24b - update to 2.8.2:
- Updated tzdata version to 2021a. (gh pr #1128)
  - Fixed a bug in the parser where non-``ValueError`` exceptions would be raised
  during exception handling; this would happen, for example, if an
  ``IllegalMonthError`` was raised in ``dateutil`` code. Fixed by Mark Bailey.
  (gh issue #981, pr #987).
  - Fixed the custom ``repr`` for ``dateutil.parser.ParserError``, which was not
  defined due to an indentation error. (gh issue #991, gh pr #993)
  - Fixed a bug that caused ``b'`` prefixes to appear in parse_isodate exception
  messages. Reported and fixed by Paul Brown (@pawl) (gh pr #1122)
  - Make ``isoparse`` raise when trying to parse times with inconsistent use of
  `:` separator. Reported and fixed by @mariocj89 (gh pr #1125).
  - Fixed ``tz.gettz()`` not returning local time when passed an empty string.
  Reported by @labrys (gh issues #925, #926). Fixed by @ffe4 (gh pr #1024)
  * Documentation changes
  * Simplified handling of bytes and bytearray in ``_parser._timelex``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=25
2021-07-26 21:42:45 +00:00
Dominique Leuenberger
b1b13e511d Accepting request 765162 from devel:languages:python
- Update to 2.8.1:
  * Updated tzdata version to 2019c.
  * Fixed a race condition in the tzoffset and tzstr "strong"
    caches on Python 2.7. Reported by @kainjow (gh issue #901).
  * Parsing errors will now raise ParserError, a subclass of
    ValueError, which has a nicer string representation. Patch by
    @gfyoung (gh pr #881).
  * 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. Patch by
    @jbrockmendel (gh pr #891).
  * Changed error message raised when when passing a bytes object as
    the time zone name to gettz in Python 3. Reported and fixed by
    @labrys () (gh issue #927, gh pr #935).
  * Changed compatibility logic to support a potential Python 4.0
    release. Patch by Hugo van Kemenade (gh pr #950).
  * Updated many modules to use tz.UTC in favor of tz.tzutc()
    internally, to avoid an unnecessary function call. (gh pr #910).
  * Fixed issue where dateutil.tz was using a backported version of
    contextlib.nullcontext even in Python 3.7 due to a malformed
    import statement. (gh pr #963).

OBS-URL: https://build.opensuse.org/request/show/765162
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=10
2020-01-19 20:00:44 +00:00
Tomáš Chvátal
28c4613d7b OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=23 2020-01-17 09:10:27 +00:00
Tomáš Chvátal
40953a8f6c - Update to 2.8.1:
* Updated tzdata version to 2019c.
  * Fixed a race condition in the tzoffset and tzstr "strong"
    caches on Python 2.7. Reported by @kainjow (gh issue #901).
  * Parsing errors will now raise ParserError, a subclass of
    ValueError, which has a nicer string representation. Patch by
    @gfyoung (gh pr #881).
  * 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. Patch by
    @jbrockmendel (gh pr #891).
  * Changed error message raised when when passing a bytes object as
    the time zone name to gettz in Python 3. Reported and fixed by
    @labrys () (gh issue #927, gh pr #935).
  * Changed compatibility logic to support a potential Python 4.0
    release. Patch by Hugo van Kemenade (gh pr #950).
  * Updated many modules to use tz.UTC in favor of tz.tzutc()
    internally, to avoid an unnecessary function call. (gh pr #910).
  * Fixed issue where dateutil.tz was using a backported version of
    contextlib.nullcontext even in Python 3.7 due to a malformed
    import statement. (gh pr #963).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=22
2020-01-16 08:50:31 +00:00
Dominique Leuenberger
70b70351fe Accepting request 744004 from devel:languages:python
- Replace %fdupes -s with plain %fdupes; hardlinks are better.

OBS-URL: https://build.opensuse.org/request/show/744004
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=9
2019-11-04 16:12:00 +00:00
1f0db1c766 - Replace %fdupes -s with plain %fdupes; hardlinks are better.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=20
2019-10-14 14:36:12 +00:00
Dominique Leuenberger
0262116be9 Accepting request 678904 from devel:languages:python
- Switch to _multibuild to not create buildcycle

- Update to 2.8.0 (2019-02-04)
  + Data updates
    * Updated tzdata version to to 2018i.
  + Features
    * Added support for EXDATE parameters when parsing rrule
      strings. Reported by @mlorant (gh issue #410), fixed by
      @nicoe (gh pr #859).
    * Added support for sub-minute time zone offsets in Python
      3.6+. Fixed by @cssherry (gh issue #582, pr #763)
    * 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. Weak
      value cache implemented by @cs-cordero (gh pr #672, #801),
      strong cache added by Gökçen Nurlu (gh issue #691, gh pr
      #761)
  + Bugfixes
    * 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. Reported by @href (gh issue #652). Fixed by
      @absreim (gh pr #693).
    * Fixed an issue where parser.parse would raise Decimal-
      specific errors instead of a standard ValueError if certain

OBS-URL: https://build.opensuse.org/request/show/678904
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=8
2019-02-26 21:15:38 +00:00
Tomáš Chvátal
2515ba7977 - Switch to _multibuild to not create buildcycle
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=18
2019-02-25 12:06:33 +00:00
Tomáš Chvátal
96fadf1edb Accepting request 677993 from home:frispete:python
- Update to 2.8.0 (2019-02-04)
  + Data updates
    * Updated tzdata version to to 2018i.
  + Features
    * Added support for EXDATE parameters when parsing rrule
      strings. Reported by @mlorant (gh issue #410), fixed by
      @nicoe (gh pr #859).
    * Added support for sub-minute time zone offsets in Python
      3.6+. Fixed by @cssherry (gh issue #582, pr #763)
    * 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. Weak
      value cache implemented by @cs-cordero (gh pr #672, #801),
      strong cache added by Gökçen Nurlu (gh issue #691, gh pr
      #761)
  + Bugfixes
    * 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. Reported by @href (gh issue #652). Fixed by
      @absreim (gh pr #693).
    * 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).
      Reported and fixed by @amureki (gh issue #662, gh pr #679).

OBS-URL: https://build.opensuse.org/request/show/677993
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=17
2019-02-21 12:00:56 +00:00
Dominique Leuenberger
730b5b54f5 Accepting request 659610 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659610
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=7
2018-12-26 23:27:54 +00:00
fa4ce3f0e2 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=15
2018-12-04 13:55:25 +00:00
Dominique Leuenberger
b2ca90e98b Accepting request 631025 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/631025
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=6
2018-08-31 07:47:49 +00:00
Tomáš Chvátal
bb47bbba31 Accepting request 631018 from home:alarrosa:branches:devel:languages:python
- Update to version 2.7.3
  * Update tzdata to 2018e. (gh pr #710)
  * Fixed an issue where decimal.Decimal would cast `NaN` or infinite value in a
    parser.parse, which will raise decimal.Decimal-specific errors. Reported and
    fixed by @amureki (gh issue #662, gh pr #679).
  * Fixed a ValueError being thrown if tzinfos call explicity returns ``None``.
    Reported by @pganssle (gh issue #661) Fixed by @parsethis (gh pr #681)
  * Fixed incorrect parsing of certain dates earlier than 100 AD when repesented
    in the form "%B.%Y.%d", e.g. "December.0031.30". (gh issue #687, pr #700)
  * 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. Reported by @href (gh
    issue #652). Fixed by @absreim (gh pr #693).
  * Corrected link syntax and updated URL to https for ISO year week number
    notation in relativedelta examples. (gh issue #670, pr #711)
  * Add doctest examples to tzfile documentation. Done by @weatherpattern and
    @pganssle (gh pr #671)
  * Updated the documentation for relativedelta. Removed references to tuple
    arguments for weekday, explained effect of weekday(_, 1) and better explained
    the order of operations that relativedelta applies. Fixed by @kvn219
    @huangy22 and @ElliotJH (gh pr #673)
  * Added changelog to documentation. (gh issue #692, gh pr #707)
  * Changed order of keywords in rrule docstring. Reported and fixed by
    @rmahajan14 (gh issue #686, gh pr #695).
  * Added documentation for ``dateutil.tz.gettz``. Reported by @pganssle (gh
    issue #647). Fixed by @weatherpattern (gh pr #704)
  * Cleaned up malformed RST in the ``tz`` documentation. (gh issue #702, gh pr
    #706)
  * Changed the default theme to sphinx_rtd_theme, and changed the sphinx
    configuration to go along with that. (gh pr #707)

OBS-URL: https://build.opensuse.org/request/show/631018
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=13
2018-08-23 07:13:29 +00:00
Dominique Leuenberger
87b731de8d Accepting request 509321 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/509321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=5
2017-07-17 07:00:45 +00:00
Thomas Bechtold
61a1528232 Accepting request 509266 from home:alois:branches:devel:languages:python
Update to 2.6.1

OBS-URL: https://build.opensuse.org/request/show/509266
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=11
2017-07-11 04:37:33 +00:00
Dominique Leuenberger
5e57fc90a7 Accepting request 493133 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/493133
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=4
2017-05-09 15:58:54 +00:00
Todd R
c340afcbf8 Accepting request 493124 from home:TheBlackCat:branches:devel:languages:python
Don't provide python2-dateutil, singlespec packages should use correct name.

OBS-URL: https://build.opensuse.org/request/show/493124
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=9
2017-05-06 04:25:58 +00:00
Dominique Leuenberger
6248d3247d Accepting request 483978 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/483978
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=3
2017-04-19 16:06:10 +00:00
Thomas Bechtold
3c872fbdba Accepting request 483324 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/483324
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=7
2017-03-31 06:47:26 +00:00
Dominique Leuenberger
07efceec5b Accepting request 439323 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/439323
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=2
2016-11-10 12:14:10 +00:00
0376d24c32 Accepting request 439318 from home:tbechtold:branches:devel:languages:python
- Use https for Source

OBS-URL: https://build.opensuse.org/request/show/439318
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=5
2016-11-09 08:46:45 +00:00
Thomas Bechtold
5ab5581c7e Accepting request 439260 from home:alois:branches:devel:languages:python
Update to 2.6.0

OBS-URL: https://build.opensuse.org/request/show/439260
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=4
2016-11-08 17:30:27 +00:00
Dominique Leuenberger
730d8e2d86 Accepting request 366048 from devel:languages:python
Renamed python-dateutil to match python package naming policies.

OBS-URL: https://build.opensuse.org/request/show/366048
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=1
2016-03-16 09:40:27 +00:00
Todd R
82e884314c Accepting request 365760 from home:tbechtold:branches:devel:languages:python
- Fix Obsoletes. No version upgrade was done during renaming.

OBS-URL: https://build.opensuse.org/request/show/365760
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=2
2016-03-04 15:44:53 +00:00
8d1c64a23e Accepting request 361661 from home:tbechtold:branches:devel:languages:python
Rename python-dateutil to python-python-dateutil

OBS-URL: https://build.opensuse.org/request/show/361661
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=1
2016-02-26 13:07:04 +00:00