diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-08-30 23:04:41 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-08-30 23:41:41 +0200 |
commit | 0fd88eeb287fec71515944272f0a8c229f542c27 (patch) | |
tree | c582bd9c05f72a0d5d25184085d27b28225edcc3 /dev-python/traitlets | |
parent | app-admin/awscli: Bump to 1.20.32 (diff) | |
download | gentoo-0fd88eeb287fec71515944272f0a8c229f542c27.tar.gz gentoo-0fd88eeb287fec71515944272f0a8c229f542c27.tar.bz2 gentoo-0fd88eeb287fec71515944272f0a8c229f542c27.zip |
dev-python/traitlets: Bump to 5.1.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/traitlets')
-rw-r--r-- | dev-python/traitlets/Manifest | 1 | ||||
-rw-r--r-- | dev-python/traitlets/files/traitlets-5.1.0-py310.patch | 39 | ||||
-rw-r--r-- | dev-python/traitlets/traitlets-5.1.0.ebuild | 26 |
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/traitlets/Manifest b/dev-python/traitlets/Manifest index 44a4e0a36d73..d652fc21cd82 100644 --- a/dev-python/traitlets/Manifest +++ b/dev-python/traitlets/Manifest @@ -1,2 +1,3 @@ DIST traitlets-4.3.3.tar.gz 89838 BLAKE2B 04b50fabdc312c427f0cff6d4e8be0a5afcafe6d5a7a5804fb37e6f92b867e6a9c6401c23b7cdd7b0a6372eadaf3e8350018db5d21c5cbc546390138932a2820 SHA512 a7ae0276e5234d6d428908e1ec74c0b92f2b1b73e37402ad154151c41ef6e4aaaad53e8990d4233d8023c31d919e4ea66f100a82324abcb0e6ffb92283fd3c9e DIST traitlets-5.0.5.tar.gz 128856 BLAKE2B ad3e5d6dbdf3f118a86be0106e0243146ff833c40300c5fd4c5704db323fcfa4b30d87a88e66608e3a54672c9a7cd6ce07bd9596827fa7ce08625626c9610f7e SHA512 ec5901bab493949f656269a6f7a9211f919a29510d22a6ed440f1e3577dfcb73a6aeca8a0e7d2a6e23192b9ab4844beef1012a847ef08180e64cfb1e2cd40bfa +DIST traitlets-5.1.0.tar.gz 135161 BLAKE2B adb948cd07a961196c3b02cd28c7dac274ba9152ddae0fab1d706d78643ff1f60e4478731d960e583eb6ad5088b2730efa31c6b3a806497ac5c8aa7b05e51502 SHA512 2b7aa7db355ddb5fa5dcdc091324b933cf7f8b189c033d43408af1bcda40cb242cd787f82098e042f1c65f07bf94b89d7d9f10019374388c47390565e7e3a467 diff --git a/dev-python/traitlets/files/traitlets-5.1.0-py310.patch b/dev-python/traitlets/files/traitlets-5.1.0-py310.patch new file mode 100644 index 000000000000..eed1b8e0985c --- /dev/null +++ b/dev-python/traitlets/files/traitlets-5.1.0-py310.patch @@ -0,0 +1,39 @@ +From 9ee33f09bdae6bea94641ce39e24dc180df5517a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Mon, 30 Aug 2021 23:07:38 +0200 +Subject: [PATCH] Revert "Fix string assertion for python3.10" + +This reverts commit dbb604946745ed90c6e9f6ed17f2bde253042d52. +The relevant change has been reverted in Python 3.10.0rc1, breaking +the test again. +--- + traitlets/tests/test_traitlets_enum.py | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/traitlets/tests/test_traitlets_enum.py b/traitlets/tests/test_traitlets_enum.py +index a87dd70..769e830 100644 +--- a/traitlets/tests/test_traitlets_enum.py ++++ b/traitlets/tests/test_traitlets_enum.py +@@ -5,7 +5,6 @@ Test the trait-type ``UseEnum``. + + import unittest + import enum +-import sys + from traitlets import HasTraits, TraitError, Enum, UseEnum, CaselessStrEnum, FuzzyEnum + + +@@ -88,10 +87,7 @@ class TestUseEnum(unittest.TestCase): + example = self.Example() + example.color = value + self.assertIsInstance(example.color, Color) +- if sys.version_info < (3, 10): +- self.assertEqual(str(example.color), value) +- else: +- self.assertEqual(repr(example.color), value) ++ self.assertEqual(str(example.color), value) + + def test_assign_bad_enum_value_name__raises_error(self): + # -- CONVERT: string => Enum value (item) +-- +2.33.0 + diff --git a/dev-python/traitlets/traitlets-5.1.0.ebuild b/dev-python/traitlets/traitlets-5.1.0.ebuild new file mode 100644 index 000000000000..cc6e4c002e4e --- /dev/null +++ b/dev-python/traitlets/traitlets-5.1.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_SETUPTOOLS=no + +inherit distutils-r1 + +DESCRIPTION="A configuration system for Python applications" +HOMEPAGE="https://github.com/ipython/traitlets" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +PATCHES=( + "${FILESDIR}/${P}-py310.patch" +) + +distutils_enable_sphinx docs/source \ + dev-python/ipython_genutils \ + dev-python/sphinx_rtd_theme +distutils_enable_tests pytest |