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

  $ git merge -s ours --no-commit origin/dev-python/exam
  $ git read-tree --prefix=dev-python/exam/ -u origin/dev-python/exam
  $ 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

1  2 
dev-python/exam/exam-9999.ebuild

index 0000000000000000000000000000000000000000,da565e66d81303a4f8ee23064ffecb41b8c82fde..da565e66d81303a4f8ee23064ffecb41b8c82fde
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,42 +1,42 @@@
+ # Copyright 1999-2014 Gentoo Foundation
+ # Distributed under the terms of the GNU General Public License v2
+ # $Header: $
+ EAPI=5
+ PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+ inherit distutils-r1
+ if [[ "${PV}" == "9999" ]]; then
+       inherit git-2
+       EGIT_REPO_URI="git://github.com/Fluxx/${PN}.git"
+       SRC_URI=""
+ else
+       SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+ fi
+ DESCRIPTION="Helpers for better testing"
+ HOMEPAGE="https://github.com/Fluxx/exam https://pypi.python.org/pypi/exam"
+ LICENSE="MIT"
+ SLOT="0"
+ KEYWORDS="~amd64 ~x86"
+ IUSE="test"
+ RDEPEND="
+       dev-python/mock[${PYTHON_USEDEP}]
+       "
+ DEPEND="
+       test? (
+               ${RDEPEND}
+               dev-python/nose[${PYTHON_USEDEP}]
+       )"
+ 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() {
+       esetup.py test
+ }