dev-python/traitlets: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-03-15 15:25:08 +01:00
parent 313d408c16
commit c47a509612
6 changed files with 0 additions and 150 deletions

View File

@@ -1,3 +1 @@
DIST traitlets-5.0.5.tar.gz 128856 BLAKE2B ad3e5d6dbdf3f118a86be0106e0243146ff833c40300c5fd4c5704db323fcfa4b30d87a88e66608e3a54672c9a7cd6ce07bd9596827fa7ce08625626c9610f7e SHA512 ec5901bab493949f656269a6f7a9211f919a29510d22a6ed440f1e3577dfcb73a6aeca8a0e7d2a6e23192b9ab4844beef1012a847ef08180e64cfb1e2cd40bfa
DIST traitlets-5.1.0.tar.gz 135161 BLAKE2B adb948cd07a961196c3b02cd28c7dac274ba9152ddae0fab1d706d78643ff1f60e4478731d960e583eb6ad5088b2730efa31c6b3a806497ac5c8aa7b05e51502 SHA512 2b7aa7db355ddb5fa5dcdc091324b933cf7f8b189c033d43408af1bcda40cb242cd787f82098e042f1c65f07bf94b89d7d9f10019374388c47390565e7e3a467
DIST traitlets-5.1.1.tar.gz 130629 BLAKE2B 75a6f11d95e3989b9faffd576a1c9c45aa413b0b8c6ac853368902a60aad735ffd9699e721878af4e449d07ca6c2b0fae584fa2ae17707408ea9ca7591d38f75 SHA512 6ef5fcde81e1403b4b28c80e636c75f49819e319863dfa654aa5bbb96d18cca82ef8e7878cc8cccdb988d75201c3912fc49c31b673d7182a1f7d3cc78c115112

View File

@@ -1,33 +0,0 @@
From dbb604946745ed90c6e9f6ed17f2bde253042d52 Mon Sep 17 00:00:00 2001
From: Olga <olgamatoula@gmail.com>
Date: Fri, 7 May 2021 17:27:09 +0100
Subject: [PATCH] Fix string assertion for python3.10
---
traitlets/tests/test_traitlets_enum.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/traitlets/tests/test_traitlets_enum.py b/traitlets/tests/test_traitlets_enum.py
index 769e830b..a87dd705 100644
--- a/traitlets/tests/test_traitlets_enum.py
+++ b/traitlets/tests/test_traitlets_enum.py
@@ -5,6 +5,7 @@
import unittest
import enum
+import sys
from traitlets import HasTraits, TraitError, Enum, UseEnum, CaselessStrEnum, FuzzyEnum
@@ -87,7 +88,10 @@ def test_assign_scoped_enum_value_name(self):
example = self.Example()
example.color = value
self.assertIsInstance(example.color, Color)
- self.assertEqual(str(example.color), value)
+ if sys.version_info < (3, 10):
+ self.assertEqual(str(example.color), value)
+ else:
+ self.assertEqual(repr(example.color), value)
def test_assign_bad_enum_value_name__raises_error(self):
# -- CONVERT: string => Enum value (item)

View File

@@ -1,39 +0,0 @@
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

View File

@@ -1,30 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{7..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"
RDEPEND="
dev-python/ipython_genutils[${PYTHON_USEDEP}]
"
PATCHES=(
"${FILESDIR}/${P}-python3_10.patch"
)
distutils_enable_sphinx docs/source \
dev-python/ipython_genutils \
dev-python/sphinx_rtd_theme
distutils_enable_tests pytest

View File

@@ -1,25 +0,0 @@
# Copyright 1999-2022 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 hppa ppc ~ppc64 ~riscv ~s390 sparc ~x86"
PATCHES=(
"${FILESDIR}/${P}-py310.patch"
)
distutils_enable_sphinx docs/source \
dev-python/sphinx_rtd_theme
distutils_enable_tests pytest

View File

@@ -1,21 +0,0 @@
# Copyright 1999-2022 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 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86"
distutils_enable_sphinx docs/source \
dev-python/sphinx_rtd_theme
distutils_enable_tests pytest