1 |
commit: 00a7732c10628605c09f902bfbe553b4ed77f1f5 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 19 00:07:50 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 19 00:10:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00a7732c |
7 |
|
8 |
dev-python/parse_type: add 0.6.0 |
9 |
|
10 |
2to3 workaround is no longer necessary |
11 |
|
12 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
13 |
|
14 |
dev-python/parse_type/Manifest | 1 + |
15 |
.../files/parse_type-0.6.0-setupwarn.patch | 7 +++++ |
16 |
dev-python/parse_type/parse_type-0.6.0.ebuild | 35 ++++++++++++++++++++++ |
17 |
3 files changed, 43 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/parse_type/Manifest b/dev-python/parse_type/Manifest |
20 |
index 2c26335f1aed..eef79930970f 100644 |
21 |
--- a/dev-python/parse_type/Manifest |
22 |
+++ b/dev-python/parse_type/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST parse_type-0.5.6.tar.gz 270970 BLAKE2B 1140a21977dbb3c81f622b45c0d2d3cfedb4a3e8ceeb1f55c185c61bafd17599ec8555e37661316583b9ce0f09d8672fc28ae10c9f1630fd7deecf207381f81a SHA512 6729af4383baceea48cf0bbd73e7e3f580cfbb867965814ba354ea5de6794583782c929557f6f1c7f8bd45703a69b2f890455cfd749690f851f1853562da0c40 |
25 |
+DIST parse_type-0.6.0.tar.gz 270864 BLAKE2B 776e58bb7027bf33bd47f266296f29b0e04d94911a91b2962d644671517659839e8a0600b4424076f5f6775a4c9db27774195d8dce908eac61fcf59377dcdbc4 SHA512 ace12b013306d5d330ffecca2f929667169da24b6593f86c13820ff34628fb00ef045c37f5c8b6ddc1094d5a8ed6fb929918871b1d0493ef6719d2bb3d2293de |
26 |
|
27 |
diff --git a/dev-python/parse_type/files/parse_type-0.6.0-setupwarn.patch b/dev-python/parse_type/files/parse_type-0.6.0-setupwarn.patch |
28 |
new file mode 100644 |
29 |
index 000000000000..4dbf73e1a02e |
30 |
--- /dev/null |
31 |
+++ b/dev-python/parse_type/files/parse_type-0.6.0-setupwarn.patch |
32 |
@@ -0,0 +1,7 @@ |
33 |
+--- a/setup.cfg |
34 |
++++ b/setup.cfg |
35 |
+@@ -17,3 +17,3 @@ |
36 |
+ [upload_docs] |
37 |
+-upload-dir = build/docs/html |
38 |
++upload_dir = build/docs/html |
39 |
+ |
40 |
|
41 |
diff --git a/dev-python/parse_type/parse_type-0.6.0.ebuild b/dev-python/parse_type/parse_type-0.6.0.ebuild |
42 |
new file mode 100644 |
43 |
index 000000000000..9f7efb75efc1 |
44 |
--- /dev/null |
45 |
+++ b/dev-python/parse_type/parse_type-0.6.0.ebuild |
46 |
@@ -0,0 +1,35 @@ |
47 |
+# Copyright 2021-2022 Gentoo Authors |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+ |
50 |
+EAPI=8 |
51 |
+ |
52 |
+DISTUTILS_USE_PEP517=setuptools |
53 |
+PYTHON_COMPAT=( python3_{8..10} ) |
54 |
+inherit distutils-r1 |
55 |
+ |
56 |
+DESCRIPTION="Extension to the parse module" |
57 |
+HOMEPAGE="https://pypi.org/project/parse-type/" |
58 |
+SRC_URI="https://github.com/jenisys/parse_type/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
59 |
+ |
60 |
+LICENSE="BSD" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
63 |
+ |
64 |
+RDEPEND=" |
65 |
+ dev-python/parse[${PYTHON_USEDEP}] |
66 |
+ dev-python/six[${PYTHON_USEDEP}]" |
67 |
+ |
68 |
+distutils_enable_tests pytest |
69 |
+ |
70 |
+PATCHES=( |
71 |
+ "${FILESDIR}"/${P}-setupwarn.patch |
72 |
+) |
73 |
+ |
74 |
+DOCS=( CHANGES.txt README.rst ) |
75 |
+ |
76 |
+python_prepare_all() { |
77 |
+ distutils-r1_python_prepare_all |
78 |
+ |
79 |
+ # disable unnecessary html test report and its pytest-html dependency |
80 |
+ sed -i '/^addopts/,/report.xml$/d' pytest.ini || die |
81 |
+} |