diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-11-06 15:28:37 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-11-06 17:22:23 +0100 |
commit | 62312eb0e09f165e61e0c7c52ab4944fccf894c3 (patch) | |
tree | e111bc8b583bd9f6879a95e1245d48f5d32cbdc7 /dev-python/pyscaffold/pyscaffold-2.4.4.ebuild | |
parent | dev-python/paramiko: Version Bump (diff) | |
download | gentoo-62312eb0e09f165e61e0c7c52ab4944fccf894c3.tar.gz gentoo-62312eb0e09f165e61e0c7c52ab4944fccf894c3.tar.bz2 gentoo-62312eb0e09f165e61e0c7c52ab4944fccf894c3.zip |
dev-python/pyscaffold: Version Bump
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/pyscaffold/pyscaffold-2.4.4.ebuild')
-rw-r--r-- | dev-python/pyscaffold/pyscaffold-2.4.4.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/pyscaffold/pyscaffold-2.4.4.ebuild b/dev-python/pyscaffold/pyscaffold-2.4.4.ebuild new file mode 100644 index 000000000000..4200639d400e --- /dev/null +++ b/dev-python/pyscaffold/pyscaffold-2.4.4.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) + +inherit distutils-r1 + +MY_PN="PyScaffold" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Tool for easily putting up the scaffold of a Python project" +HOMEPAGE="https://pypi.python.org/pypi/PyScaffold http://pyscaffold.readthedocs.org/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + >=dev-python/pbr-1.6[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm-1.7[${PYTHON_USEDEP}] + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + sed \ + -e 's: + pytest_runner::g' \ + -i setup.py || die + + # Creates all sort of mem problem due to fetch restrictions + rm tests/test_install.py || die + + # Online tests + sed \ + -e 's:test_api_with_cookiecutter:_&:g' \ + -e 's:test_pyscaffold_keyword:_&:g' \ + -i tests/*py || die + + distutils-r1_python_prepare_all +} + +python_test() { + git config --global user.email "you@example.com" + git config --global user.name "Your Name" + + TRAVIS=False py.test -v -v || die +} |