[arch-commits] Commit in isodate/repos/community-any (3 files)

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


    Date: Tuesday, January 4, 2022 @ 21:34:44
  Author: arojas
Revision: 1093079

archrelease: copy trunk to community-any

Added:
  isodate/repos/community-any/PKGBUILD
    (from rev 1093078, isodate/trunk/PKGBUILD)
Deleted:
  isodate/repos/community-any/PKGBUILD
  isodate/repos/community-any/fix-interpret-decimal-object-as-an-integer.patch

--------------------------------------------------+
 PKGBUILD                                         |   69 +++++++++------------
 fix-interpret-decimal-object-as-an-integer.patch |   67 --------------------
 2 files changed, 31 insertions(+), 105 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-04 21:34:40 UTC (rev 1093078)
+++ PKGBUILD	2022-01-04 21:34:44 UTC (rev 1093079)
@@ -1,38 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-
-pkgbase=isodate
-pkgname=('python-isodate')
-pkgver=0.6.0
-pkgrel=9
-pkgdesc="An ISO 8601 date/time/duration parser and formatter"
-arch=('any')
-url="https://github.com/gweis/isodate/"
-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')
-
-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
-}
-
-check() {
-  cd "$srcdir/$pkgbase-$pkgver"
-  python setup.py test
-}
-
-package_python-isodate() {
-  cd "$srcdir/$pkgbase-$pkgver"
-  python setup.py install --root="$pkgdir/" --optimize=1
-  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
-  head -26 src/isodate/isodates.py > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: isodate/repos/community-any/PKGBUILD (from rev 1093078, isodate/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-01-04 21:34:44 UTC (rev 1093079)
@@ -0,0 +1,31 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=isodate
+pkgname=('python-isodate')
+pkgver=0.6.1
+pkgrel=1
+pkgdesc="An ISO 8601 date/time/duration parser and formatter"
+arch=('any')
+url="https://github.com/gweis/isodate/"
+license=('BSD')
+depends=('python-six')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/i/isodate/isodate-$pkgver.tar.gz")
+sha1sums=('ea36ce1c780dd44f01225dca7f9995a6685a60cc')
+
+build() {
+  cd "$srcdir/$pkgbase-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir/$pkgbase-$pkgver"
+  python setup.py test
+}
+
+package_python-isodate() {
+  cd "$srcdir/$pkgbase-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  head -26 src/isodate/isodates.py > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Deleted: fix-interpret-decimal-object-as-an-integer.patch
===================================================================
--- fix-interpret-decimal-object-as-an-integer.patch	2022-01-04 21:34:40 UTC (rev 1093078)
+++ fix-interpret-decimal-object-as-an-integer.patch	2022-01-04 21:34:44 UTC (rev 1093079)
@@ -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