Skip to content

Commit

Permalink
dev-python/click-threading: apply distutils_enable_tests, add py37 co…
Browse files Browse the repository at this point in the history
…mpat, remove py27 for 0.4.4

Closes: https://bugs.gentoo.org/660650
Signed-off-by: Wim Muskee <wimmuskee@gmail.com>
  • Loading branch information
wimmuskee committed Dec 8, 2019
1 parent 8e112a7 commit c9763d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions dev-python/click-threading/click-threading-0.3.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=6
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )

inherit distutils-r1

Expand All @@ -13,14 +13,10 @@ SRC_URI="https://github.com/click-contrib/${PN}/archive/${PV}.tar.gz -> ${P}-gh.
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

RDEPEND=">=dev-python/click-5.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
DEPEND="${RDEPEND}"

DOCS=( README.rst )

python_test() {
py.test -v || die "Tests fail with ${EPYTHON}"
}
distutils_enable_tests pytest
10 changes: 3 additions & 7 deletions dev-python/click-threading/click-threading-0.4.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=6
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
PYTHON_COMPAT=( python{3_5,3_6,3_7} )

inherit distutils-r1

Expand All @@ -13,14 +13,10 @@ SRC_URI="https://github.com/click-contrib/${PN}/archive/${PV}.tar.gz -> ${P}-gh.
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

RDEPEND=">=dev-python/click-5.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
DEPEND="${RDEPEND}"

DOCS=( README.rst )

python_test() {
py.test -v || die "Tests fail with ${EPYTHON}"
}
distutils_enable_tests pytest

0 comments on commit c9763d9

Please sign in to comment.