Merge remote-tracking branch 'origin/dev-python/pyvows'
authorW. Trevor King <wking@tremily.us>
Wed, 1 Oct 2014 11:53:24 +0000 (04:53 -0700)
committerW. Trevor King <wking@tremily.us>
Wed, 1 Oct 2014 11:53:24 +0000 (04:53 -0700)
Pull in this per-package branch with a subtree merge [1]:

  $ git merge -s ours --no-commit origin/dev-python/pyvows
  $ git read-tree --prefix=dev-python/pyvows/ -u origin/dev-python/pyvows
  $ git commit -v

so folks who aren't using a version of Layman that supports submodules
(currently everybody) can use this modular package.

[1]: https://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html

dev-python/pyvows/Manifest [new file with mode: 0644]
dev-python/pyvows/pyvows-2.0.3.ebuild [new symlink]
dev-python/pyvows/pyvows-9999.ebuild [new file with mode: 0644]

diff --git a/dev-python/pyvows/Manifest b/dev-python/pyvows/Manifest
new file mode 100644 (file)
index 0000000..7f473a6
--- /dev/null
@@ -0,0 +1 @@
+DIST pyvows-2.0.3.tar.gz 19463 SHA256 83c818d41c24d80f4551181c5e27737ea2e16eb28bfea01cec0638444685d74e SHA512 215b9f6444a1beb3e56b18e1fdffaee86594f4e450f2a2af27219b19d18d6346c7f5ef3c69d85974f55d22fee174b3e4ea0b91c39bf1e99266bd17153db8e1a0 WHIRLPOOL aad7f9d47b05ccaa23b46ca9a2a294cd52e0dbb4718f55dd78816ca948343de06812138344828b4b93af3b234e5c53079a0033dc7755c7074638ca9a8740b09e
diff --git a/dev-python/pyvows/pyvows-2.0.3.ebuild b/dev-python/pyvows/pyvows-2.0.3.ebuild
new file mode 120000 (symlink)
index 0000000..721a48c
--- /dev/null
@@ -0,0 +1 @@
+pyvows-9999.ebuild
\ No newline at end of file
diff --git a/dev-python/pyvows/pyvows-9999.ebuild b/dev-python/pyvows/pyvows-9999.ebuild
new file mode 100644 (file)
index 0000000..a949b13
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_PN="pyVows"
+MY_P="${MY_PN}-${PV}"
+
+if [[ "${PV}" == "9999" ]]; then
+       inherit git-2
+       EGIT_REPO_URI="git://github.com/heynemann/${PN}.git"
+       SRC_URI=""
+else
+       SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="A test engine based on Vows.js"
+HOMEPAGE="http://pyvows.org/ https://pypi.python.org/pypi/pyVows"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+       >=dev-python/gevent-0.13.6[${PYTHON_USEDEP}]
+       >=dev-python/preggy-0.11.1[${PYTHON_USEDEP}]
+       "
+DEPEND="
+       test? (
+               ${RDEPEND}
+               dev-python/colorama[${PYTHON_USEDEP}]
+               dev-python/coverage[${PYTHON_USEDEP}]
+       )"
+
+S="${WORKDIR}/${MY_P}"
+
+python_prepare_all() {
+       sed -i "s/packages=find_packages()/packages=find_packages(exclude=['tests', 'tests.*'])/" setup.py || die
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       "${EPYTHON}" -c 'import coverage; coverage.main()' run --source=pyvows ./pyvows/__main__.py ||
+               die "tests failed with ${EPYTHON}"
+}