diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/pytest | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/pytest')
-rw-r--r-- | dev-python/pytest/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pytest/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/pytest/pytest-2.7.1.ebuild | 61 | ||||
-rw-r--r-- | dev-python/pytest/pytest-2.7.2.ebuild | 61 |
4 files changed, 132 insertions, 0 deletions
diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest new file mode 100644 index 000000000000..7348a291faf5 --- /dev/null +++ b/dev-python/pytest/Manifest @@ -0,0 +1,2 @@ +DIST pytest-2.7.1.tar.gz 531671 SHA256 530f23c79e1b13850e93f3a59720f1eca75bad01307dc4fd694a6a19619fb9cb SHA512 1bc23bf67a7400b48b718ef3a03591a3b2047d58b633c6eb16ca4732a9198b3fbbce5a2bfc93097322988b65498ee1a7278d7e035e10d91e6b58d1d3b2a61eba WHIRLPOOL d8eb985d967d8e4b48cab2df58b1e7415bb961087e9a53f4336dc830291b0aa5d4679a49429d6cd67510ec19470a397e07a7c505fd5555ee509c1ff508847b9c +DIST pytest-2.7.2.tar.gz 532836 SHA256 b30457f735420d0000d10a44bbd478cf03f8bf20e25bd77248f9bab40f4fd6a4 SHA512 5474a4fe58437a4971fb21b1b37dad3c08e18e5d154931ff23e597f881100a3515bf0cf71d06b143465594ad2a91a96f84f4836d84c39691143c8d88ca7a4360 WHIRLPOOL 6ab7371f952109ac476774222883e1381fe5ee6a54d967f2d90765f6c59c90634a16c42e8e2e1661169db6a9cb1327242ff2281cf1caeabd86a4dacd24f4bb06 diff --git a/dev-python/pytest/metadata.xml b/dev-python/pytest/metadata.xml new file mode 100644 index 000000000000..def7a965651c --- /dev/null +++ b/dev-python/pytest/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <upstream> + <remote-id type="pypi">pytest</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pytest/pytest-2.7.1.ebuild b/dev-python/pytest/pytest-2.7.1.ebuild new file mode 100644 index 000000000000..58c48ec00f14 --- /dev/null +++ b/dev-python/pytest/pytest-2.7.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 ) +inherit distutils-r1 + +DESCRIPTION="py.test: simple powerful testing with Python" +HOMEPAGE="http://pytest.org/ http://pypi.python.org/pypi/pytest" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc test" + +# When bumping, please check setup.py for the proper py version +PY_VER="1.4.25" +RDEPEND=">=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]" + +#pexpect dep based on https://bitbucket.org/hpk42/pytest/issue/386/tests-fail-with-pexpect-30 +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pexpect[${PYTHON_USEDEP}] ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +python_prepare_all() { + # Disable versioning of py.test script to avoid collision with + # versioning performed by the eclass. + sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed" + grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" + + # Prevent un-needed d'loading + sed -e "s/'sphinx.ext.intersphinx', //" -i doc/en/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + mkdir doc/en/.build || die + emake -C doc/en html + fi +} + +python_test() { + # test_nose.py not written to suit py3.2 in pypy3 + if [[ "${EPYTHON}" == pypy3 ]]; then + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py \ + --ignore=testing/test_nose.py \ + || die "tests failed with ${EPYTHON}" + else + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py \ + || die "tests failed with ${EPYTHON}" + fi +} + +python_install_all() { + use doc && dohtml -r doc/en/_build/html/ + distutils-r1_python_install_all +} diff --git a/dev-python/pytest/pytest-2.7.2.ebuild b/dev-python/pytest/pytest-2.7.2.ebuild new file mode 100644 index 000000000000..df049d6152ad --- /dev/null +++ b/dev-python/pytest/pytest-2.7.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 ) +inherit distutils-r1 + +DESCRIPTION="py.test: simple powerful testing with Python" +HOMEPAGE="http://pytest.org/ http://pypi.python.org/pypi/pytest" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc test" + +# When bumping, please check setup.py for the proper py version +PY_VER="1.4.29" +RDEPEND=">=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]" + +#pexpect dep based on https://bitbucket.org/hpk42/pytest/issue/386/tests-fail-with-pexpect-30 +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pexpect[${PYTHON_USEDEP}] ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +python_prepare_all() { + # Disable versioning of py.test script to avoid collision with + # versioning performed by the eclass. + sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed" + grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" + + # Prevent un-needed d'loading + sed -e "s/'sphinx.ext.intersphinx', //" -i doc/en/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + mkdir doc/en/.build || die + emake -C doc/en html + fi +} + +python_test() { + # test_nose.py not written to suit py3.2 in pypy3 + if [[ "${EPYTHON}" == pypy3 ]]; then + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py \ + --ignore=testing/test_nose.py \ + || die "tests failed with ${EPYTHON}" + else + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py \ + || die "tests failed with ${EPYTHON}" + fi +} + +python_install_all() { + use doc && dohtml -r doc/en/_build/html/ + distutils-r1_python_install_all +} |