1 |
commit: f132cd28d18dd8c4106e97a446bb1657ae1810d7 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 31 08:49:36 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 31 08:49:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f132cd28 |
7 |
|
8 |
dev-python/toml: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/toml/Manifest | 1 - |
13 |
dev-python/toml/files/toml-0.10.1-skip-numpy.patch | 37 ------------------- |
14 |
dev-python/toml/toml-0.10.1-r1.ebuild | 42 ---------------------- |
15 |
3 files changed, 80 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/toml/Manifest b/dev-python/toml/Manifest |
18 |
index 1a21f124aef..cb2d13b7ae5 100644 |
19 |
--- a/dev-python/toml/Manifest |
20 |
+++ b/dev-python/toml/Manifest |
21 |
@@ -1,3 +1,2 @@ |
22 |
-DIST toml-0.10.1-1.tar.gz 22559 BLAKE2B 17d9d9c78f2b78a6fc5bc0efd8530af5514d2f965eb1896a0eaca9a6d8ce1dda3a5dc825a8b6cd2a2096a582bd35952e6f0a3372021c739c69186d5a2c5642be SHA512 0a2348bffc889e63f4c6f8ae4faf022cceff069b178d086a37ff03e97e0f24b4b5a72810a345692f21810f3f41908b6981da902862adb06286bdb2941e9e0d60 |
23 |
DIST toml-0.10.2-1.tar.gz 23325 BLAKE2B dedab7d08dadca963e62d64e9108e254dd73b78761985faa892792823027befc6473ae02c35c275a216b4544d1af8776afa78e39c63c95eb856e2bccf1de49c4 SHA512 5c706a3ae336e6b29bdce9752b91c677f7610cbcc1af4169cc24779e248031406cd19ac367725b2aa7903e4b1db71fa59255238c0270b2c146fd5d7e12d9a5da |
24 |
DIST toml-test-280497fa5f12e43d7233aed0d74e07ca61ef176b.tar.gz 19593 BLAKE2B e9deba7c5d1eea7bd87fcf5e5c74bda4c2b9e9686e597e3ad51516f60eb8d192fb01d052ac57729c6f0851e2715cc6409a904affd637c9b099cabc1b12ad5d52 SHA512 7bd69b8c14f09bf431094b52d988eb233922527719ba5047ff769d2e709c2039fb6fb1c8144e630ad2a58835d19e0e4cc51433a427596d37f8eccb6d73d7e5c0 |
25 |
|
26 |
diff --git a/dev-python/toml/files/toml-0.10.1-skip-numpy.patch b/dev-python/toml/files/toml-0.10.1-skip-numpy.patch |
27 |
deleted file mode 100644 |
28 |
index 5c6808d2daf..00000000000 |
29 |
--- a/dev-python/toml/files/toml-0.10.1-skip-numpy.patch |
30 |
+++ /dev/null |
31 |
@@ -1,37 +0,0 @@ |
32 |
-From 93901215b45db2ab9d50987ac109c29acbe34600 Mon Sep 17 00:00:00 2001 |
33 |
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
34 |
-Date: Mon, 25 May 2020 16:38:17 +0200 |
35 |
-Subject: [PATCH] Skip numpy tests when numpy is not available |
36 |
- |
37 |
-Make it possible to successfully run tests without numpy installed. |
38 |
-This package is becoming quite hard profile, and being able to test it |
39 |
-without building numpy first would be a nice feature. |
40 |
---- |
41 |
- tests/test_api.py | 4 ++-- |
42 |
- 1 file changed, 2 insertions(+), 2 deletions(-) |
43 |
- |
44 |
-diff --git a/tests/test_api.py b/tests/test_api.py |
45 |
-index dd12eb3..67bcd88 100644 |
46 |
---- a/tests/test_api.py |
47 |
-+++ b/tests/test_api.py |
48 |
-@@ -103,7 +103,7 @@ def test_array_sep(): |
49 |
- |
50 |
- |
51 |
- def test_numpy_floats(): |
52 |
-- import numpy as np |
53 |
-+ np = pytest.importorskip('numpy') |
54 |
- |
55 |
- encoder = toml.TomlNumpyEncoder() |
56 |
- d = {'a': np.array([1, .3], dtype=np.float64)} |
57 |
-@@ -120,7 +120,7 @@ def test_numpy_floats(): |
58 |
- |
59 |
- |
60 |
- def test_numpy_ints(): |
61 |
-- import numpy as np |
62 |
-+ np = pytest.importorskip('numpy') |
63 |
- |
64 |
- encoder = toml.TomlNumpyEncoder() |
65 |
- d = {'a': np.array([1, 3], dtype=np.int64)} |
66 |
--- |
67 |
-2.26.2 |
68 |
- |
69 |
|
70 |
diff --git a/dev-python/toml/toml-0.10.1-r1.ebuild b/dev-python/toml/toml-0.10.1-r1.ebuild |
71 |
deleted file mode 100644 |
72 |
index 9e2ffd0b501..00000000000 |
73 |
--- a/dev-python/toml/toml-0.10.1-r1.ebuild |
74 |
+++ /dev/null |
75 |
@@ -1,42 +0,0 @@ |
76 |
-# Copyright 1999-2020 Gentoo Authors |
77 |
-# Distributed under the terms of the GNU General Public License v2 |
78 |
- |
79 |
-EAPI=7 |
80 |
- |
81 |
-PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) |
82 |
- |
83 |
-inherit distutils-r1 |
84 |
- |
85 |
-TOML_TEST_VER="280497fa5f12e43d7233aed0d74e07ca61ef176b" |
86 |
- |
87 |
-DESCRIPTION="Python library for handling TOML files" |
88 |
-HOMEPAGE="https://github.com/uiri/toml" |
89 |
-SRC_URI="https://github.com/uiri/${PN}/archive/${PV}.tar.gz -> ${P}-1.tar.gz |
90 |
- test? ( https://github.com/BurntSushi/toml-test/archive/${TOML_TEST_VER}.tar.gz -> toml-test-${TOML_TEST_VER}.tar.gz )" |
91 |
-IUSE="test" |
92 |
- |
93 |
-LICENSE="BSD" |
94 |
-SLOT="0" |
95 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86" |
96 |
- |
97 |
-BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
98 |
- test? ( |
99 |
- $(python_gen_cond_dep ' |
100 |
- dev-python/numpy[${PYTHON_USEDEP}] |
101 |
- ' python3_{6,7,8}) |
102 |
- )" |
103 |
- |
104 |
-DOCS=( README.rst ) |
105 |
-PATCHES=( |
106 |
- "${FILESDIR}"/toml-0.10.1-skip-numpy.patch |
107 |
-) |
108 |
- |
109 |
-distutils_enable_tests pytest |
110 |
- |
111 |
-python_prepare_all() { |
112 |
- if use test; then |
113 |
- mv "${WORKDIR}/toml-test-${TOML_TEST_VER#v}" "${S}/toml-test" || die |
114 |
- fi |
115 |
- |
116 |
- distutils-r1_python_prepare_all |
117 |
-} |