Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/text-unidecode/
Date: Sat, 25 Apr 2020 00:37:32
Message-Id: 1587775035.2db41d8dd36beba0c565cfabaeb169f8ccb4f355.Alessandro-Barbieri@gentoo
1 commit: 2db41d8dd36beba0c565cfabaeb169f8ccb4f355
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Fri Apr 24 22:03:17 2020 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sat Apr 25 00:37:15 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2db41d8d
7
8 dev-python/text-unidecode: new package
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-python/text-unidecode/Manifest | 1 +
14 dev-python/text-unidecode/metadata.xml | 15 ++++++++++
15 .../text-unidecode/text-unidecode-1.3.ebuild | 33 ++++++++++++++++++++++
16 3 files changed, 49 insertions(+)
17
18 diff --git a/dev-python/text-unidecode/Manifest b/dev-python/text-unidecode/Manifest
19 new file mode 100644
20 index 0000000..7cf837a
21 --- /dev/null
22 +++ b/dev-python/text-unidecode/Manifest
23 @@ -0,0 +1 @@
24 +DIST text-unidecode-1.3.tar.gz 76885 BLAKE2B b783963b4fce6588d45d48a498de566c08df83ae62c72caf599648df195eb94b7c02090503590ab8c747af0d210847ddfbf0772289e170361914db20c049828e SHA512 aeaf0e79bd0545ca7a4fe700d5a7dac1d5900841fcfe8a5a568c84ba7d3bee5f75eaac0531f4a01d689a550ac5bc7e1acaeb8132293f220db8387fae2eb6a150
25
26 diff --git a/dev-python/text-unidecode/metadata.xml b/dev-python/text-unidecode/metadata.xml
27 new file mode 100644
28 index 0000000..3f17f6d
29 --- /dev/null
30 +++ b/dev-python/text-unidecode/metadata.xml
31 @@ -0,0 +1,15 @@
32 +<?xml version='1.0' encoding='UTF-8'?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>lssndrbarbieri@×××××.com</email>
37 + <name>Alessandro Barbieri</name>
38 + </maintainer>
39 + <upstream>
40 + <remote-id type="pypi">text-unidecode</remote-id>
41 + <maintainer status="unknown">
42 + <email>kmike84@×××××.com</email>
43 + <name>Mikhail Korobov</name>
44 + </maintainer>
45 + </upstream>
46 +</pkgmetadata>
47
48 diff --git a/dev-python/text-unidecode/text-unidecode-1.3.ebuild b/dev-python/text-unidecode/text-unidecode-1.3.ebuild
49 new file mode 100644
50 index 0000000..496d2de
51 --- /dev/null
52 +++ b/dev-python/text-unidecode/text-unidecode-1.3.ebuild
53 @@ -0,0 +1,33 @@
54 +# Copyright 1999-2020 Gentoo Authors
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI="7"
58 +
59 +PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
60 +inherit distutils-r1
61 +
62 +DESCRIPTION="The most basic Text::Unidecode port"
63 +HOMEPAGE="https://github.com/kmike/text-unidecode"
64 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
65 +
66 +LICENSE="|| ( Artistic GPL-1 GPL-2+ )"
67 +SLOT="0"
68 +KEYWORDS="~amd64 ~x86"
69 +IUSE="test"
70 +RESTRICT="!test? ( test )"
71 +
72 +DEPEND="test? ( dev-python/pytest )"
73 +RDEPEND=""
74 +
75 +python_prepare_all() {
76 + sed -i '/pytest-runner/d' setup.py
77 + distutils-r1_python_prepare_all
78 +}
79 +
80 +python_test() {
81 + distutils_install_for_testing
82 + cd "${TEST_DIR}" || die
83 + cp "${S}/test_unidecode.py" . || die
84 + cp "${S}/setup.cfg" . || die
85 + pytest || die "Tests fail with ${EPYTHON}"
86 +}