[arch-commits] Commit in isodate/trunk (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Tue Jan 4 21:34:34 UTC 2022


    Date: Tuesday, January 4, 2022 @ 21:34:33
  Author: arojas
Revision: 1093077

Update to 0.6.1

Modified:
  isodate/trunk/PKGBUILD
Deleted:
  isodate/trunk/fix-interpret-decimal-object-as-an-integer.patch

--------------------------------------------------+
 PKGBUILD                                         |   15 +---
 fix-interpret-decimal-object-as-an-integer.patch |   67 ---------------------
 2 files changed, 4 insertions(+), 78 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-04 21:34:04 UTC (rev 1093076)
+++ PKGBUILD	2022-01-04 21:34:33 UTC (rev 1093077)
@@ -2,8 +2,8 @@
 
 pkgbase=isodate
 pkgname=('python-isodate')
-pkgver=0.6.0
-pkgrel=9
+pkgver=0.6.1
+pkgrel=1
 pkgdesc="An ISO 8601 date/time/duration parser and formatter"
 arch=('any')
 url="https://github.com/gweis/isodate/"
@@ -10,16 +10,9 @@
 license=('BSD')
 depends=('python-six')
 makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/i/isodate/isodate-$pkgver.tar.gz"
-        fix-interpret-decimal-object-as-an-integer.patch)
-sha1sums=('2c69e08c9894a9cd96c627146463260f5731df62'
-          '69f5b1c9478ab5c259924e52380af441055b2452')
+source=("https://files.pythonhosted.org/packages/source/i/isodate/isodate-$pkgver.tar.gz")
+sha1sums=('ea36ce1c780dd44f01225dca7f9995a6685a60cc')
 
-prepare() {
-  cd "$srcdir/$pkgbase-$pkgver"
-  patch -Np1 -i ../fix-interpret-decimal-object-as-an-integer.patch
-}
-
 build() {
   cd "$srcdir/$pkgbase-$pkgver"
   python setup.py build

Deleted: fix-interpret-decimal-object-as-an-integer.patch
===================================================================
--- fix-interpret-decimal-object-as-an-integer.patch	2022-01-04 21:34:04 UTC (rev 1093076)
+++ fix-interpret-decimal-object-as-an-integer.patch	2022-01-04 21:34:33 UTC (rev 1093077)
@@ -1,67 +0,0 @@
-From 03e2d16f3306e3450da0e69ae47c427d715457a9 Mon Sep 17 00:00:00 2001
-From: Tomas Hrnciar <thrnciar at redhat.com>
-Date: Fri, 30 Oct 2020 10:01:24 +0100
-Subject: [PATCH]  Fix interpret decimal.Decimal object as an integer
-
-Ref: https://docs.python.org/3.8/whatsnew/3.8.html
-
-Many builtin and extension functions that take integer arguments will
-now emit a deprecation warning for Decimals, Fractions and any other
-objects that can be converted to integers only with a loss (e.g. that
-have the `__int__()` method but do not have the `__index__()` method).
-In future version they will be errors. (Contributed by Serhiy
-Storchaka in bpo-36048.)
-
----
- src/isodate/duration.py       | 6 ++++--
- src/isodate/tests/__init__.py | 3 +++
- 2 files changed, 7 insertions(+), 2 deletions(-)
-
-diff --git a/src/isodate/duration.py b/src/isodate/duration.py
-index 6d1848c..96127ab 100644
---- a/src/isodate/duration.py
-+++ b/src/isodate/duration.py
-@@ -180,7 +180,8 @@ class Duration(object):
-                 newday = maxdays
-             else:
-                 newday = other.day
--            newdt = other.replace(year=newyear, month=newmonth, day=newday)
-+            newdt = other.replace(
-+                year=int(newyear), month=int(newmonth), day=newday)
-             # does a timedelta + date/datetime
-             return self.tdelta + newdt
-         except AttributeError:
-@@ -264,7 +265,8 @@ class Duration(object):
-                 newday = maxdays
-             else:
-                 newday = other.day
--            newdt = other.replace(year=newyear, month=newmonth, day=newday)
-+            newdt = other.replace(
-+                year=int(newyear), month=int(newmonth), day=newday)
-             return newdt - self.tdelta
-         except AttributeError:
-             # other probably was not compatible with data/datetime
-diff --git a/src/isodate/tests/__init__.py b/src/isodate/tests/__init__.py
-index b1d46bd..7208cbd 100644
---- a/src/isodate/tests/__init__.py
-+++ b/src/isodate/tests/__init__.py
-@@ -29,6 +29,7 @@ Collect all test suites into one TestSuite instance.
- '''
- 
- import unittest
-+import warnings
- from isodate.tests import (test_date, test_time, test_datetime, test_duration,
-                            test_strf, test_pickle)
- 
-@@ -37,6 +38,8 @@ def test_suite():
-     '''
-     Return a new TestSuite instance consisting of all available TestSuites.
-     '''
-+    warnings.filterwarnings("error", module=r"isodate(\..)*")
-+
-     return unittest.TestSuite([
-         test_date.test_suite(),
-         test_time.test_suite(),
--- 
-2.26.2
-



More information about the arch-commits mailing list