Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-util/codespell/
Date: Thu, 12 Mar 2020 12:39:51
Message-Id: 1584016735.219402d4f23e42463b83542af0f54cdbd91c1d6e.andrewammerlaan@gentoo
1 commit: 219402d4f23e42463b83542af0f54cdbd91c1d6e
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Thu Mar 12 12:38:55 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Thu Mar 12 12:38:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=219402d4
7
8 dev-util/codespell: version bump and add py3_8
9
10 also enabled tests
11
12 Package-Manager: Portage-2.3.93, Repoman-2.3.20
13 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
14
15 dev-util/codespell/Manifest | 2 +-
16 ...spell-1.15.0.ebuild => codespell-1.16.0.ebuild} | 22 +++++++++++++++++++---
17 2 files changed, 20 insertions(+), 4 deletions(-)
18
19 diff --git a/dev-util/codespell/Manifest b/dev-util/codespell/Manifest
20 index 78b8ef7..a5db985 100644
21 --- a/dev-util/codespell/Manifest
22 +++ b/dev-util/codespell/Manifest
23 @@ -1 +1 @@
24 -DIST codespell-1.15.0.tar.gz 121819 BLAKE2B 494fadd4cee14b5280ffc5989914d81853f3d68e1292f367832297f8a604611f0ec8244b7ae0f9bae7cc798956d1797fa163229ef38d8949e162cf2e10314074 SHA512 5a8489ddb59a514670f02be336c023ccc4c3a1bc0f86e0ec1292d599837ce6f3ec8e1dbb66013d9ec25d5183129ee810623165fb8bbacc71759695581a3c1795
25 +DIST codespell-1.16.0.tar.gz 136752 BLAKE2B 8abe6ac0fc162263cdfbcbfc4868786e41f9d95e32658a042f062d12f22248ace1cb7f1213c1436314d88973d683fb8c4c1fce86cd08bd6af72b7b5eae1f0086 SHA512 8ac1f05dba47ebebdaecff212a36af4d888585d91efe9bb75bb4e3148a39528222a088936dc265f9ad5d87319b786863d2c07a170a13a061c31ee6c6ee10bbe8
26
27 diff --git a/dev-util/codespell/codespell-1.15.0.ebuild b/dev-util/codespell/codespell-1.16.0.ebuild
28 similarity index 51%
29 rename from dev-util/codespell/codespell-1.15.0.ebuild
30 rename to dev-util/codespell/codespell-1.16.0.ebuild
31 index caf8227..f86ee93 100644
32 --- a/dev-util/codespell/codespell-1.15.0.ebuild
33 +++ b/dev-util/codespell/codespell-1.16.0.ebuild
34 @@ -1,9 +1,12 @@
35 -# Copyright 1999-2019 Gentoo Authors
36 +# Copyright 1999-2020 Gentoo Authors
37 # Distributed under the terms of the GNU General Public License v2
38
39 EAPI=7
40
41 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
42 +DISTUTILS_USE_SETUPTOOLS=rdepend
43 +
44 +PYTHON_COMPAT=( python3_{6,7,8} )
45 +
46 inherit distutils-r1
47
48 DESCRIPTION="Check text files for common misspellings"
49 @@ -15,4 +18,17 @@ SRC_URI="https://github.com/${PN}-project/${PN}/archive/v${PVR}.tar.gz -> ${P}.t
50 LICENSE="GPL-2 CC-BY-SA-3.0"
51 SLOT="0"
52 KEYWORDS="~amd64 ~x86"
53 -IUSE=""
54 +
55 +distutils_enable_tests pytest
56 +
57 +python_prepare_all() {
58 + # do not depend on pytest-cov
59 + sed -i -e '/addopts/d' setup.cfg || die
60 +
61 + # This will fail if the package itself
62 + # is not yet installed
63 + sed -i -e 's:test_command:_&:' \
64 + codespell_lib/tests/test_basic.py
65 +
66 + distutils-r1_python_prepare_all
67 +}