Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/isodate/, dev-python/isodate/files/
Date: Fri, 14 Jan 2022 08:08:18
Message-Id: 1642147688.06be8ed478cdde03ffb33c81800d50e94d862b0d.mgorny@gentoo
1 commit: 06be8ed478cdde03ffb33c81800d50e94d862b0d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 14 07:17:34 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 14 08:08:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06be8ed4
7
8 dev-python/isodate: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/isodate/Manifest | 1 -
13 dev-python/isodate/files/isodate-0.6.0-py310.patch | 95 ----------------------
14 dev-python/isodate/isodate-0.6.0-r2.ebuild | 27 ------
15 3 files changed, 123 deletions(-)
16
17 diff --git a/dev-python/isodate/Manifest b/dev-python/isodate/Manifest
18 index 2b123252cee2..b8cafbfbdce8 100644
19 --- a/dev-python/isodate/Manifest
20 +++ b/dev-python/isodate/Manifest
21 @@ -1,2 +1 @@
22 -DIST isodate-0.6.0.tar.gz 28480 BLAKE2B a7499c736b67193ac73026df7a7c9d9bd5b743a5d556fe5e8ba0a62e8a5238d64afb88547a27e4bcbe706483e3e1e97eecd437e4e1c730c20652cff5926502fc SHA512 e977748e13ee2c94ab47bfc47113d152280e9acff6f70e773de73717392148dd2c111a7db2d9fa3679d37936c6ed9a23dc526cb00bd601df45459b6a244f9f7d
23 DIST isodate-0.6.1.tar.gz 28443 BLAKE2B 2b451e4dd9a9979feb930090cf045b21c984e962222edc59eff6f08a448258833ac5c368701ed2a703d48c1238122cbe7f628d136124920730bbd96fa04519dc SHA512 437e420ec7ee68dedded825f30d3289eeb0da526208443e5a8e50fe70f12309515e1285b21132d26e6d4c1683f90dfa1d401582042b5e4381fe7ab0e34af26b6
24
25 diff --git a/dev-python/isodate/files/isodate-0.6.0-py310.patch b/dev-python/isodate/files/isodate-0.6.0-py310.patch
26 deleted file mode 100644
27 index 81b38b48a2a9..000000000000
28 --- a/dev-python/isodate/files/isodate-0.6.0-py310.patch
29 +++ /dev/null
30 @@ -1,95 +0,0 @@
31 -From 40358ac82b948ea8377d5ca32b576def31b39a84 Mon Sep 17 00:00:00 2001
32 -From: Jose Eduardo <jose.eduardo.gd@×××××.com>
33 -Date: Fri, 19 Jul 2019 16:21:56 +0100
34 -Subject: [PATCH 1/8] Avoid unclosed file warning
35 -
36 ----
37 - setup.py | 3 ++-
38 - 1 file changed, 2 insertions(+), 1 deletion(-)
39 -
40 -diff --git a/setup.py b/setup.py
41 -index e39446f..9634625 100644
42 ---- a/setup.py
43 -+++ b/setup.py
44 -@@ -30,7 +30,8 @@
45 -
46 -
47 - def read(*rnames):
48 -- return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
49 -+ with open(os.path.join(os.path.dirname(__file__), *rnames)) as read_file:
50 -+ return read_file.read()
51 -
52 -
53 - setup(name='isodate',
54 -
55 -From 91bf24dd1610d5f6ac5d4867457f0703046017d2 Mon Sep 17 00:00:00 2001
56 -From: Jose Eduardo <jose.eduardo.gd@×××××.com>
57 -Date: Fri, 19 Jul 2019 16:22:22 +0100
58 -Subject: [PATCH 2/8] Raise warnings produced by isodate as errors during tests
59 -
60 ----
61 - src/isodate/tests/__init__.py | 3 +++
62 - tox.ini | 2 ++
63 - 2 files changed, 5 insertions(+)
64 -
65 -diff --git a/src/isodate/tests/__init__.py b/src/isodate/tests/__init__.py
66 -index b1d46bd..7208cbd 100644
67 ---- a/src/isodate/tests/__init__.py
68 -+++ b/src/isodate/tests/__init__.py
69 -@@ -29,6 +29,7 @@
70 - '''
71 -
72 - import unittest
73 -+import warnings
74 - from isodate.tests import (test_date, test_time, test_datetime, test_duration,
75 - test_strf, test_pickle)
76 -
77 -@@ -37,6 +38,8 @@ def test_suite():
78 - '''
79 - Return a new TestSuite instance consisting of all available TestSuites.
80 - '''
81 -+ warnings.filterwarnings("error", module=r"isodate(\..)*")
82 -+
83 - return unittest.TestSuite([
84 - test_date.test_suite(),
85 - test_time.test_suite(),
86 -
87 -From fc0fb3278da5f463ca5b2f0a3acafbbf2869bd7a Mon Sep 17 00:00:00 2001
88 -From: Jose Eduardo <jose.eduardo.gd@×××××.com>
89 -Date: Fri, 19 Jul 2019 16:29:43 +0100
90 -Subject: [PATCH 4/8] Fix Python 3.8 DeprecationWarning
91 -
92 -Ref: https://docs.python.org/3.8/whatsnew/3.8.html
93 -
94 -> Many builtin and extension functions that take integer arguments will
95 -> now emit a deprecation warning for Decimals, Fractions and any other
96 -> objects that can be converted to integers only with a loss (e.g. that
97 -> have the `__int__()` method but do not have the `__index__()` method).
98 -> In future version they will be errors. (Contributed by Serhiy
99 -> Storchaka in bpo-36048.)
100 ----
101 - src/isodate/duration.py | 4 ++--
102 - 1 file changed, 2 insertions(+), 2 deletions(-)
103 -
104 -diff --git a/src/isodate/duration.py b/src/isodate/duration.py
105 -index 6d1848c..d923cee 100644
106 ---- a/src/isodate/duration.py
107 -+++ b/src/isodate/duration.py
108 -@@ -180,7 +180,7 @@ def __add__(self, other):
109 - newday = maxdays
110 - else:
111 - newday = other.day
112 -- newdt = other.replace(year=newyear, month=newmonth, day=newday)
113 -+ newdt = other.replace(year=int(newyear), month=int(newmonth), day=newday)
114 - # does a timedelta + date/datetime
115 - return self.tdelta + newdt
116 - except AttributeError:
117 -@@ -264,7 +264,7 @@ def __rsub__(self, other):
118 - newday = maxdays
119 - else:
120 - newday = other.day
121 -- newdt = other.replace(year=newyear, month=newmonth, day=newday)
122 -+ newdt = other.replace(year=int(newyear), month=int(newmonth), day=newday)
123 - return newdt - self.tdelta
124 - except AttributeError:
125 - # other probably was not compatible with data/datetime
126
127 diff --git a/dev-python/isodate/isodate-0.6.0-r2.ebuild b/dev-python/isodate/isodate-0.6.0-r2.ebuild
128 deleted file mode 100644
129 index a7b6227bc1e5..000000000000
130 --- a/dev-python/isodate/isodate-0.6.0-r2.ebuild
131 +++ /dev/null
132 @@ -1,27 +0,0 @@
133 -# Copyright 1999-2021 Gentoo Authors
134 -# Distributed under the terms of the GNU General Public License v2
135 -
136 -EAPI=8
137 -
138 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
139 -inherit distutils-r1
140 -
141 -DESCRIPTION="ISO 8601 date/time/duration parser and formatter"
142 -HOMEPAGE="https://pypi.org/project/isodate/"
143 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
144 -
145 -LICENSE="BSD"
146 -SLOT="0"
147 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
148 -
149 -RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
150 -
151 -distutils_enable_tests unittest
152 -
153 -PATCHES=(
154 - "${FILESDIR}"/${P}-py310.patch
155 -)
156 -
157 -python_test() {
158 - eunittest -s "${BUILD_DIR}/lib"
159 -}