1 |
commit: 0fd88eeb287fec71515944272f0a8c229f542c27 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 30 21:04:41 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 30 21:41:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fd88eeb |
7 |
|
8 |
dev-python/traitlets: Bump to 5.1.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/traitlets/Manifest | 1 + |
13 |
.../traitlets/files/traitlets-5.1.0-py310.patch | 39 ++++++++++++++++++++++ |
14 |
dev-python/traitlets/traitlets-5.1.0.ebuild | 26 +++++++++++++++ |
15 |
3 files changed, 66 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/traitlets/Manifest b/dev-python/traitlets/Manifest |
18 |
index 44a4e0a36d7..d652fc21cd8 100644 |
19 |
--- a/dev-python/traitlets/Manifest |
20 |
+++ b/dev-python/traitlets/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST traitlets-4.3.3.tar.gz 89838 BLAKE2B 04b50fabdc312c427f0cff6d4e8be0a5afcafe6d5a7a5804fb37e6f92b867e6a9c6401c23b7cdd7b0a6372eadaf3e8350018db5d21c5cbc546390138932a2820 SHA512 a7ae0276e5234d6d428908e1ec74c0b92f2b1b73e37402ad154151c41ef6e4aaaad53e8990d4233d8023c31d919e4ea66f100a82324abcb0e6ffb92283fd3c9e |
23 |
DIST traitlets-5.0.5.tar.gz 128856 BLAKE2B ad3e5d6dbdf3f118a86be0106e0243146ff833c40300c5fd4c5704db323fcfa4b30d87a88e66608e3a54672c9a7cd6ce07bd9596827fa7ce08625626c9610f7e SHA512 ec5901bab493949f656269a6f7a9211f919a29510d22a6ed440f1e3577dfcb73a6aeca8a0e7d2a6e23192b9ab4844beef1012a847ef08180e64cfb1e2cd40bfa |
24 |
+DIST traitlets-5.1.0.tar.gz 135161 BLAKE2B adb948cd07a961196c3b02cd28c7dac274ba9152ddae0fab1d706d78643ff1f60e4478731d960e583eb6ad5088b2730efa31c6b3a806497ac5c8aa7b05e51502 SHA512 2b7aa7db355ddb5fa5dcdc091324b933cf7f8b189c033d43408af1bcda40cb242cd787f82098e042f1c65f07bf94b89d7d9f10019374388c47390565e7e3a467 |
25 |
|
26 |
diff --git a/dev-python/traitlets/files/traitlets-5.1.0-py310.patch b/dev-python/traitlets/files/traitlets-5.1.0-py310.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..eed1b8e0985 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/traitlets/files/traitlets-5.1.0-py310.patch |
31 |
@@ -0,0 +1,39 @@ |
32 |
+From 9ee33f09bdae6bea94641ce39e24dc180df5517a Mon Sep 17 00:00:00 2001 |
33 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
34 |
+Date: Mon, 30 Aug 2021 23:07:38 +0200 |
35 |
+Subject: [PATCH] Revert "Fix string assertion for python3.10" |
36 |
+ |
37 |
+This reverts commit dbb604946745ed90c6e9f6ed17f2bde253042d52. |
38 |
+The relevant change has been reverted in Python 3.10.0rc1, breaking |
39 |
+the test again. |
40 |
+--- |
41 |
+ traitlets/tests/test_traitlets_enum.py | 6 +----- |
42 |
+ 1 file changed, 1 insertion(+), 5 deletions(-) |
43 |
+ |
44 |
+diff --git a/traitlets/tests/test_traitlets_enum.py b/traitlets/tests/test_traitlets_enum.py |
45 |
+index a87dd70..769e830 100644 |
46 |
+--- a/traitlets/tests/test_traitlets_enum.py |
47 |
++++ b/traitlets/tests/test_traitlets_enum.py |
48 |
+@@ -5,7 +5,6 @@ Test the trait-type ``UseEnum``. |
49 |
+ |
50 |
+ import unittest |
51 |
+ import enum |
52 |
+-import sys |
53 |
+ from traitlets import HasTraits, TraitError, Enum, UseEnum, CaselessStrEnum, FuzzyEnum |
54 |
+ |
55 |
+ |
56 |
+@@ -88,10 +87,7 @@ class TestUseEnum(unittest.TestCase): |
57 |
+ example = self.Example() |
58 |
+ example.color = value |
59 |
+ self.assertIsInstance(example.color, Color) |
60 |
+- if sys.version_info < (3, 10): |
61 |
+- self.assertEqual(str(example.color), value) |
62 |
+- else: |
63 |
+- self.assertEqual(repr(example.color), value) |
64 |
++ self.assertEqual(str(example.color), value) |
65 |
+ |
66 |
+ def test_assign_bad_enum_value_name__raises_error(self): |
67 |
+ # -- CONVERT: string => Enum value (item) |
68 |
+-- |
69 |
+2.33.0 |
70 |
+ |
71 |
|
72 |
diff --git a/dev-python/traitlets/traitlets-5.1.0.ebuild b/dev-python/traitlets/traitlets-5.1.0.ebuild |
73 |
new file mode 100644 |
74 |
index 00000000000..cc6e4c002e4 |
75 |
--- /dev/null |
76 |
+++ b/dev-python/traitlets/traitlets-5.1.0.ebuild |
77 |
@@ -0,0 +1,26 @@ |
78 |
+# Copyright 1999-2021 Gentoo Authors |
79 |
+# Distributed under the terms of the GNU General Public License v2 |
80 |
+ |
81 |
+EAPI=8 |
82 |
+ |
83 |
+PYTHON_COMPAT=( python3_{8..10} ) |
84 |
+DISTUTILS_USE_SETUPTOOLS=no |
85 |
+ |
86 |
+inherit distutils-r1 |
87 |
+ |
88 |
+DESCRIPTION="A configuration system for Python applications" |
89 |
+HOMEPAGE="https://github.com/ipython/traitlets" |
90 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
91 |
+ |
92 |
+LICENSE="BSD" |
93 |
+SLOT="0" |
94 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
95 |
+ |
96 |
+PATCHES=( |
97 |
+ "${FILESDIR}/${P}-py310.patch" |
98 |
+) |
99 |
+ |
100 |
+distutils_enable_sphinx docs/source \ |
101 |
+ dev-python/ipython_genutils \ |
102 |
+ dev-python/sphinx_rtd_theme |
103 |
+distutils_enable_tests pytest |