diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-16 20:27:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-16 20:27:28 +0000 |
commit | 2fd57282f0262ca084e05b0f2c63fbada395d02b (patch) | |
tree | 4e0f23cea9ce9fd972e70ebc5214bf36fed465cc /dev-python/isodate | |
parent | c3bc61051d7f12b4c682efa7a5460bbc8815649e (diff) |
gentoo resync : 16.01.2021
Diffstat (limited to 'dev-python/isodate')
-rw-r--r-- | dev-python/isodate/Manifest | 5 | ||||
-rw-r--r-- | dev-python/isodate/files/isodate-0.6.0-py310.patch | 95 | ||||
-rw-r--r-- | dev-python/isodate/isodate-0.6.0-r2.ebuild | 27 | ||||
-rw-r--r-- | dev-python/isodate/isodate-0.6.1.ebuild | 4 |
4 files changed, 3 insertions, 128 deletions
diff --git a/dev-python/isodate/Manifest b/dev-python/isodate/Manifest index e84bb21f3f94..0d1f3baae0b3 100644 --- a/dev-python/isodate/Manifest +++ b/dev-python/isodate/Manifest @@ -1,6 +1,3 @@ -AUX isodate-0.6.0-py310.patch 3387 BLAKE2B 669a1eb70890aa2be676be24489f4434dcf9b8f56cda20bef91913e8d648ede59b78b5e6697cf5d56461db43e9a0df14d76c2210ee0f434d0e7303a9a7eeee18 SHA512 a9c9662f95c60895eef90278d8f628cc06f56d6ed24780e03b7e45d13acf677dce4114e450876bc47fd47c637c933f48a47eb4bbb2b628ec1da7e4063059b694 -DIST isodate-0.6.0.tar.gz 28480 BLAKE2B a7499c736b67193ac73026df7a7c9d9bd5b743a5d556fe5e8ba0a62e8a5238d64afb88547a27e4bcbe706483e3e1e97eecd437e4e1c730c20652cff5926502fc SHA512 e977748e13ee2c94ab47bfc47113d152280e9acff6f70e773de73717392148dd2c111a7db2d9fa3679d37936c6ed9a23dc526cb00bd601df45459b6a244f9f7d DIST isodate-0.6.1.tar.gz 28443 BLAKE2B 2b451e4dd9a9979feb930090cf045b21c984e962222edc59eff6f08a448258833ac5c368701ed2a703d48c1238122cbe7f628d136124920730bbd96fa04519dc SHA512 437e420ec7ee68dedded825f30d3289eeb0da526208443e5a8e50fe70f12309515e1285b21132d26e6d4c1683f90dfa1d401582042b5e4381fe7ab0e34af26b6 -EBUILD isodate-0.6.0-r2.ebuild 635 BLAKE2B ee9637a41170335b79bc5c62ea9f720bc55a0bcdbf3ed8582222eaefe9b535dcc5c4e43111bf83c171270c061ca5a02a84d43886ab101f9bfadf035fab229936 SHA512 87c920abf4aa581db54331e80c45f39cdbf6189e1117d2afa3b7300f90cac860507d2f9a505faebc0f8bfc6dc3f7193dee1f9a905d163ce9e20a9b70c7c620a6 -EBUILD isodate-0.6.1.ebuild 598 BLAKE2B adbb483ff491354fa7d2d955c2fff865118d3ef44376be65f02c80066e4230e6423a81db3648ebdaeb1069836c253c8c1cd56147a881ab2b744abae1ffcc78d2 SHA512 ef8b8eb40216aeb326ea1e2bd5289ae9a2517b8f24377ede17806e213a797c0e7c60bf2e6772f367ed10982b994c184974502abf744e1368999a54f40ed3df01 +EBUILD isodate-0.6.1.ebuild 590 BLAKE2B c01830456406d1fab85e68cbb790fd4c42f7f8cf7808616086d8c59cd55095a1ba6aef6bfefa3164c1ad7cebb5120a1b5388852ccfbf90b8f7ac602a96af2527 SHA512 4d8cf104fc165e3ecef0cefc7508e17589aff8a125976dc5920936eac962d20cb7bc8fc09f48783e9bd58a516dcc3d931baed1b8311b1e15f9976876e65dce23 MISC metadata.xml 1176 BLAKE2B 559d17eb8968603df379f3ae23b313b69bd64d246c912f33f2911a65d53f3914da6893635c023d4f72095807e26334dc2e3750d31986c2175006ed436587bb86 SHA512 b7697a229b5b31cfbd6991c3e07f1a44f2d20c0c65badee9b0a1b6e9bcbe6f7bb7ba3fa6a48ccab5a4e2a385f83453f371275fe1770bed6cd14e101c1c470be2 diff --git a/dev-python/isodate/files/isodate-0.6.0-py310.patch b/dev-python/isodate/files/isodate-0.6.0-py310.patch deleted file mode 100644 index 81b38b48a2a9..000000000000 --- a/dev-python/isodate/files/isodate-0.6.0-py310.patch +++ /dev/null @@ -1,95 +0,0 @@ -From 40358ac82b948ea8377d5ca32b576def31b39a84 Mon Sep 17 00:00:00 2001 -From: Jose Eduardo <jose.eduardo.gd@gmail.com> -Date: Fri, 19 Jul 2019 16:21:56 +0100 -Subject: [PATCH 1/8] Avoid unclosed file warning - ---- - setup.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index e39446f..9634625 100644 ---- a/setup.py -+++ b/setup.py -@@ -30,7 +30,8 @@ - - - def read(*rnames): -- return open(os.path.join(os.path.dirname(__file__), *rnames)).read() -+ with open(os.path.join(os.path.dirname(__file__), *rnames)) as read_file: -+ return read_file.read() - - - setup(name='isodate', - -From 91bf24dd1610d5f6ac5d4867457f0703046017d2 Mon Sep 17 00:00:00 2001 -From: Jose Eduardo <jose.eduardo.gd@gmail.com> -Date: Fri, 19 Jul 2019 16:22:22 +0100 -Subject: [PATCH 2/8] Raise warnings produced by isodate as errors during tests - ---- - src/isodate/tests/__init__.py | 3 +++ - tox.ini | 2 ++ - 2 files changed, 5 insertions(+) - -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 @@ - ''' - - 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(), - -From fc0fb3278da5f463ca5b2f0a3acafbbf2869bd7a Mon Sep 17 00:00:00 2001 -From: Jose Eduardo <jose.eduardo.gd@gmail.com> -Date: Fri, 19 Jul 2019 16:29:43 +0100 -Subject: [PATCH 4/8] Fix Python 3.8 DeprecationWarning - -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 | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/isodate/duration.py b/src/isodate/duration.py -index 6d1848c..d923cee 100644 ---- a/src/isodate/duration.py -+++ b/src/isodate/duration.py -@@ -180,7 +180,7 @@ def __add__(self, other): - 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 +264,7 @@ def __rsub__(self, other): - 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/dev-python/isodate/isodate-0.6.0-r2.ebuild b/dev-python/isodate/isodate-0.6.0-r2.ebuild deleted file mode 100644 index a7b6227bc1e5..000000000000 --- a/dev-python/isodate/isodate-0.6.0-r2.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} pypy3 ) -inherit distutils-r1 - -DESCRIPTION="ISO 8601 date/time/duration parser and formatter" -HOMEPAGE="https://pypi.org/project/isodate/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" - -RDEPEND="dev-python/six[${PYTHON_USEDEP}]" - -distutils_enable_tests unittest - -PATCHES=( - "${FILESDIR}"/${P}-py310.patch -) - -python_test() { - eunittest -s "${BUILD_DIR}/lib" -} diff --git a/dev-python/isodate/isodate-0.6.1.ebuild b/dev-python/isodate/isodate-0.6.1.ebuild index e6be6118fb17..1d51b68f610e 100644 --- a/dev-python/isodate/isodate-0.6.1.ebuild +++ b/dev-python/isodate/isodate-0.6.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" RDEPEND="dev-python/six[${PYTHON_USEDEP}]" |