summaryrefslogtreecommitdiff
path: root/dev-python/pylama
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
commitd934827bf44b7cfcf6711964418148fa60877668 (patch)
tree0625f358789b5e015e49db139cc1dbc9be00428f /dev-python/pylama
parent2e34d110f164bf74d55fced27fe0000201b3eec5 (diff)
gentoo resync : 25.11.2020
Diffstat (limited to 'dev-python/pylama')
-rw-r--r--dev-python/pylama/Manifest2
-rw-r--r--dev-python/pylama/pylama-7.7.1-r1.ebuild (renamed from dev-python/pylama/pylama-7.7.1.ebuild)23
2 files changed, 13 insertions, 12 deletions
diff --git a/dev-python/pylama/Manifest b/dev-python/pylama/Manifest
index 46ccac33d783..94c2061fc35d 100644
--- a/dev-python/pylama/Manifest
+++ b/dev-python/pylama/Manifest
@@ -1,3 +1,3 @@
DIST pylama-7.7.1.tar.gz 34740 BLAKE2B a4bd5aed40c2c4e7bdb9f9968030f0954f0309cff80567b2252ee9576fdb4598714286bda63c22676789d4919662430ef2729089faa70b5cb590784eb47ef1f0 SHA512 298fabffcdf38e3e868e3965de87a0e761bc9dfcfe33320b53057c4e05598bcc22045481ec16ccb8df27f49ea41d6fef82b69fe7327905f93ce74d9350682cf0
-EBUILD pylama-7.7.1.ebuild 1223 BLAKE2B 7a9fa4b2b257b67ac98d90de0db7303337eef8eb9e2b5b4ad700b586742a721f4bfe40f40f45b676f1460af29ae8143059c3fb3da57dd2ab9e25aa2700774d8f SHA512 36f0bd5a8d9f80efd6ea17c40d7c2ba505c5d8980972dd6c18bcf7ae99900bb087549fbdf58a33081ca1c14a664212f4efea23f30a5584068e9a96fbf7ddf86f
+EBUILD pylama-7.7.1-r1.ebuild 1269 BLAKE2B 889d63f0de47f5f1ecdae0c11da7830708bba09a4adf57c22a3e013a82021c018426ac23e9eff319c471e2e72d6940bc68f0f97695a4f5675c17698a527773db SHA512 2a928dd023dc96790467056f990a5a3b80c7b0b8519427768c6afce27a6e874ffdb4edf677792d63853478b7ea19aa69927ed1b3823b8082deaff7f74127d731
MISC metadata.xml 364 BLAKE2B e25838a0c27434d26117da6629070f6a3af99f5e48bd572812b2dadc979b99d551c3857bc4fa5ef23f7c9f53e16ed8bd2c5b91f1a1cd624047abd292e5fe5399 SHA512 add19bb038ff79b28e6af0aabeb1cd634214a38892533c3a5e4ca2c1ac9761e758dace11d47a276b449f9e895d74829b5532b7566c1b152e6e3b3dab625f36b9
diff --git a/dev-python/pylama/pylama-7.7.1.ebuild b/dev-python/pylama/pylama-7.7.1-r1.ebuild
index 76978aea548b..ff229030c3fc 100644
--- a/dev-python/pylama/pylama-7.7.1.ebuild
+++ b/dev-python/pylama/pylama-7.7.1-r1.ebuild
@@ -3,7 +3,7 @@
EAPI="7"
-PYTHON_COMPAT=( python3_{6,7} )
+PYTHON_COMPAT=( python3_{7..9} )
DISTUTILS_USE_SETUPTOOLS="rdepend"
inherit distutils-r1
@@ -16,26 +16,24 @@ SRC_URI="https://github.com/klen/pylama/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
+KEYWORDS="~amd64 ~arm64 ~ia64 ~x86"
-BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="
>=dev-python/mccabe-0.5.2[${PYTHON_USEDEP}]
dev-python/pycodestyle[${PYTHON_USEDEP}]
dev-python/pydocstyle[${PYTHON_USEDEP}]
dev-python/pyflakes[${PYTHON_USEDEP}]
"
-DEPEND="
- ${RDEPEND}
+BDEPEND="
test? (
- dev-python/eradicate[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
- dev-python/radon[${PYTHON_USEDEP}]
+ dev-python/mypy[${PYTHON_USEDEP}]
+ dev-vcs/git
)
"
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
python_prepare_all() {
sed -e "s|exclude=\['plugins'\]|exclude=['plugins', 'tests']|" -i setup.py || die
sed -e 's|^\(def\) \(test_ignore_select\)|\1 _\2|' -i tests/test_config.py || die
@@ -43,5 +41,8 @@ python_prepare_all() {
}
python_test() {
- py.test -v tests || die "Tests failed with ${EPYTHON}"
+ # Disable eradicate until it is fixed:
+ # https://github.com/klen/pylama/issues/190
+ pytest -vv tests --deselect tests/test_linters.py::test_eradicate \
+ || die "Tests failed with ${EPYTHON}"
}