1 |
commit: 58070b36d4e49c82e83771f5fed35e8659d214a4 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 11 17:38:36 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 17:54:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58070b36 |
7 |
|
8 |
dev-python/webencodings: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/webencodings/metadata.xml | 6 +---- |
13 |
.../webencodings/webencodings-0.5.1-r2.ebuild | 30 ++++++++++++++++++++++ |
14 |
2 files changed, 31 insertions(+), 5 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/webencodings/metadata.xml b/dev-python/webencodings/metadata.xml |
17 |
index e6e5198bd394..4642c2dec132 100644 |
18 |
--- a/dev-python/webencodings/metadata.xml |
19 |
+++ b/dev-python/webencodings/metadata.xml |
20 |
@@ -9,10 +9,6 @@ |
21 |
<upstream> |
22 |
<remote-id type="pypi">webencodings</remote-id> |
23 |
<doc>https://pythonhosted.org/webencodings/</doc> |
24 |
- <maintainer status="unknown"> |
25 |
- <email>simon.sapin@××××.org</email> |
26 |
- <name>Simon Sapin</name> |
27 |
- </maintainer> |
28 |
- <remote-id type="github">SimonSapin/python-webencodings</remote-id> |
29 |
+ <remote-id type="github">gsnedders/python-webencodings</remote-id> |
30 |
</upstream> |
31 |
</pkgmetadata> |
32 |
|
33 |
diff --git a/dev-python/webencodings/webencodings-0.5.1-r2.ebuild b/dev-python/webencodings/webencodings-0.5.1-r2.ebuild |
34 |
new file mode 100644 |
35 |
index 000000000000..4880bd99460e |
36 |
--- /dev/null |
37 |
+++ b/dev-python/webencodings/webencodings-0.5.1-r2.ebuild |
38 |
@@ -0,0 +1,30 @@ |
39 |
+# Copyright 1999-2022 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=8 |
43 |
+ |
44 |
+DISTUTILS_USE_PEP517=setuptools |
45 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
46 |
+ |
47 |
+inherit distutils-r1 |
48 |
+ |
49 |
+DESCRIPTION="Character encoding aliases for legacy web content" |
50 |
+HOMEPAGE=" |
51 |
+ https://github.com/gsnedders/python-webencodings/ |
52 |
+ https://pypi.org/project/webencodings/ |
53 |
+" |
54 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
55 |
+ |
56 |
+LICENSE="BSD" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" |
59 |
+ |
60 |
+distutils_enable_tests pytest |
61 |
+ |
62 |
+python_prepare_all() { |
63 |
+ cat >> setup.cfg <<- EOF || die |
64 |
+ [tool:pytest] |
65 |
+ python_files=test*.py |
66 |
+ EOF |
67 |
+ distutils-r1_python_prepare_all |
68 |
+} |