Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/smartypants/
Date: Thu, 19 May 2022 12:54:36
Message-Id: 1652964822.006cdf16e6b7f5a770b49d67f4e35a0c44761758.mgorny@gentoo
1 commit: 006cdf16e6b7f5a770b49d67f4e35a0c44761758
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 19 12:52:16 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 19 12:53:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=006cdf16
7
8 dev-python/smartypants: Enable py3.11
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/smartypants/smartypants-2.0.1-r1.ebuild | 33 +++++++++++-----------
13 1 file changed, 17 insertions(+), 16 deletions(-)
14
15 diff --git a/dev-python/smartypants/smartypants-2.0.1-r1.ebuild b/dev-python/smartypants/smartypants-2.0.1-r1.ebuild
16 index c4a5c111cae5..826aa0e09c49 100644
17 --- a/dev-python/smartypants/smartypants-2.0.1-r1.ebuild
18 +++ b/dev-python/smartypants/smartypants-2.0.1-r1.ebuild
19 @@ -4,28 +4,29 @@
20 EAPI=8
21
22 DISTUTILS_USE_PEP517=setuptools
23 -PYTHON_COMPAT=( python3_{6..10} )
24 -
25 -MY_PN="${PN}.py"
26 -MY_P="${MY_PN}-${PV}"
27 +PYTHON_COMPAT=( python3_{8..11} )
28
29 inherit distutils-r1
30
31 +MY_P="${PN}.py-${PV}"
32 DESCRIPTION="ASCII quote-dot-dash to HTML entity converter"
33 -HOMEPAGE="https://pypi.python.org/pypi/smartypants/"
34 -
35 -if [[ ${PV} = 9999* ]]; then
36 - EGIT_REPO_URI="https://github.com/leohemsted/smartypants.py.git"
37 - EGIT_BRANCH="master"
38 - inherit git-r3
39 -else
40 - SRC_URI="https://github.com/leohemsted/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv sparc x86"
42 - S="${WORKDIR}/${MY_P}"
43 -fi
44 +HOMEPAGE="
45 + https://pypi.org/project/smartypants/
46 + https://github.com/leohemsted/smartypants.py/
47 +"
48 +SRC_URI="
49 + https://github.com/leohemsted/smartypants.py/archive/v${PV}.tar.gz
50 + -> ${P}.tar.gz
51 +"
52 +S=${WORKDIR}/${MY_P}
53
54 LICENSE="MIT"
55 SLOT="0"
56 +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv sparc x86"
57
58 distutils_enable_sphinx docs
59 -distutils_enable_tests setup.py
60 +distutils_enable_tests unittest
61 +
62 +python_test() {
63 + eunittest -s tests
64 +}