dev-python/venusian: Version bump, fix tests

Update the nosetest command for newer nosetest versions.
Tests now pass correctly.
Bump the package using git commit since upstream doesn't seem to be making releases.
Add python 3.5, 3.6 to PYTHON_COMPAT.

Package-Manager: Portage-2.3.5, Repoman-2.3.2_p30
This commit is contained in:
Brian Dolbec
2017-04-05 18:19:28 -07:00
parent 60a8fb88ce
commit 5037e92872
2 changed files with 38 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST venusian-1.0.tar.gz 45747 SHA256 1720cff2ca9c369c840c1d685a7c7a21da1afa687bfe62edd93cae4bf429ca5a SHA512 770780c4e4532b16e119365d3c9531e85aede9c2be2e3a333cfe43856271c7b232ce1b27c1379f677a7191c24e8736bf5307be7a926b613f7b81644d404e8453 WHIRLPOOL 1eedda1a8d6e15caf4af136ddd08298c7201342a841b267a489b8fb483d3d97b330e3adbe75e5bd28fcd3b62d6b6b5de57f5a520923d05195560afbfb682315d
DIST venusian-1.0_p20161030.zip 64972 SHA256 3d9d2b8a6e1f200484902c7d06b3b082b8224e92a25a281e4eebbcc5d94616c6 SHA512 d6e08beb7c6e29e8a30c2c94eb431bc1c2181dbe0a7fb911eb042035998b6c6a0c9fb827d46172916b3dd594335543c2670eb2100eeafac4cc25ec360b8adc57 WHIRLPOOL 21dcc263345e9cb7e3b55ffaaadcffcc4aea204274fd492fa68e2a2b96243ef0c479d413cf0b47f19408bbf9be34221ca2a2dae9d3be54326e8997840872ad19

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
COMMIT="ec4032596e3aec987ba29b62cac701608ef3b523"
inherit distutils-r1
DESCRIPTION="A library for deferring decorator actions"
HOMEPAGE="http://www.pylonsproject.org/"
#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SRC_URI="https://github.com/Pylons/venusian/archive/${COMMIT}.zip -> ${P}.zip"
LICENSE="repoze"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="
"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/nose[${PYTHON_USEDEP}]
>=dev-python/nose-exclude-0.1.9[${PYTHON_USEDEP}] )
"
S="${WORKDIR}/${PN}-${COMMIT}"
python_test() {
# copy the zipfile to the fixtures dir, setup.py doesn't
cp "${S}"/venusian/tests/fixtures/zipped.zip "${BUILD_DIR}"/lib/venusian/tests/fixtures/ || die "Failed to cp zipfile.zip"
cd "${BUILD_DIR}/lib/venusian"
nosetests --exclude-dir=tests/fixtures || die "Tests fail with ${EPYTHON}"
}