14
0

Compare commits

...

16 Commits

Author SHA256 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
4 changed files with 59 additions and 13 deletions

BIN
python-dateutil-2.8.2.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
python-dateutil-2.9.0.post0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,44 @@
-------------------------------------------------------------------
Tue Mar 5 13:44:20 UTC 2024 - Ben Greiner <code@bnavigator.de>
- 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
-------------------------------------------------------------------
Mon Sep 18 04:39:14 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch no-utcfromtimestamp.patch, stop using a deprecated function.
- Switch to pyproject and autosetup macros.
- Stop using greedy globs in %files.
-------------------------------------------------------------------
Fri Apr 21 12:32:11 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:44:14 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Mon Jul 26 21:41:48 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-python-dateutil
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
@@ -26,22 +25,27 @@
%define psuffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-python-dateutil%{psuffix}
Version: 2.8.2
Version: 2.9.0.post0
Release: 0
Summary: A Python Datetime Library
License: Apache-2.0 OR BSD-3-Clause
URL: https://dateutil.readthedocs.org/en/latest/
Source0: https://files.pythonhosted.org/packages/source/p/python-dateutil/python-dateutil-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 24.3}
# Don't pin to <8 like upstream does: gh#dateutil/dateutil#1346
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module six >= 1.5}
BuildRequires: %{python_module wheel}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six >= 1.5
Obsoletes: python-dateutil < %{version}
Provides: python-dateutil = %{version}
Obsoletes: python-dateutil < %{version}-%{release}
Provides: python-dateutil = %{version}-%{release}
Provides: python-python_dateutil = %{version}-%{release}
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module freezegun}
@@ -85,16 +89,16 @@ datetime module.
Orthodox or Julian algorithms.
%prep
%setup -q -n python-dateutil-%{version}
%autosetup -p1 -n python-dateutil-%{version}
#cleanup and MSdos style end of line separators
dos2unix LICENSE NEWS PKG-INFO README.rst
%build
%python_build
%pyproject_wheel
%install
%if !%{with test}
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
@@ -109,7 +113,8 @@ export LANG=en_US.UTF-8
%files %{python_files}
%doc NEWS PKG-INFO README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/dateutil
%{python_sitelib}/python_dateutil-%{version}.dist-info
%endif
%changelog