summaryrefslogtreecommitdiff
path: root/dev-python/pyhamcrest
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pyhamcrest
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyhamcrest')
-rw-r--r--dev-python/pyhamcrest/Manifest12
-rw-r--r--dev-python/pyhamcrest/files/sphinx-rtd.patch20
-rw-r--r--dev-python/pyhamcrest/metadata.xml15
-rw-r--r--dev-python/pyhamcrest/pyhamcrest-1.8.2.ebuild49
-rw-r--r--dev-python/pyhamcrest/pyhamcrest-1.8.3.ebuild61
-rw-r--r--dev-python/pyhamcrest/pyhamcrest-1.8.5.ebuild49
-rw-r--r--dev-python/pyhamcrest/pyhamcrest-1.9.0.ebuild52
7 files changed, 258 insertions, 0 deletions
diff --git a/dev-python/pyhamcrest/Manifest b/dev-python/pyhamcrest/Manifest
new file mode 100644
index 000000000000..709e86b46678
--- /dev/null
+++ b/dev-python/pyhamcrest/Manifest
@@ -0,0 +1,12 @@
+AUX sphinx-rtd.patch 671 SHA256 13cce25797dc77faeef6c89742fe0d48f5ed00d79253bf89298895146ee73889 SHA512 c90fe86017d3173e21eb8013bb433e29999c433709224f180c60ec3d8bb1086eb26b713cd3d5dbea04a60a20d8a8e2b8d87f2252aae9286dd41f3bcdd0b51aaa WHIRLPOOL 14da55384df5637f3c0b69d3550b4fc4a00597004751af8ab67d864d980cdd06f14c9d2daaef4a460dc0d42d241d54bf530df068345c9907db1e4cc059355c55
+DIST PyHamcrest-1.8.2.tar.gz 372308 SHA256 bd14093c561f9af8ce8271a630929f4a45be7a4e79bec53c83b876a0547d303e SHA512 ff90a6bb1e2319d25ba8c29e998796544d5840599e7d9a4a178022e6b5bcabd23d35433073152a2707d555aab3aa96c316b8db54d7ec1c0ca2ef1cdf50e4df40 WHIRLPOOL e207d109420ea3d1eb6cf14c65a3d2eb9e1dcabcc30b7917f4c95cb445a554c2fea8e5766213fd513c9323c33b58a63f0d9b102b52062ed7f61b148aeba3c770
+DIST PyHamcrest-1.8.3.tar.gz 376145 SHA256 118c48351451ec027cceed781841c19b836739e21f71a26649fe97fca0d346d5 SHA512 4e11a3ca93886c58b512b5ad77f95c2df3771476d6ca0e99eb6e20c0292819a5f985b7004b3523c756255e503cfe4e266fdb776b285e430a7bd987164f9df14a WHIRLPOOL 4210a503b5eb1f60e7f6757d21b0887f96cfe8b5f261d490f5589d3bbd0e099b91d1dd0264025e3730c94b78419cc8e762e66ded8e33dba3b37dc3764beba4ea
+DIST PyHamcrest-1.8.5.tar.gz 376456 SHA256 db990f17477bb0e78f726e8b04fe3ac78f697011e5c8ecb0928567db14efca55 SHA512 7841f704fdad8653bad923dc243431b4c3d82a9646d1138528356162bd556bc5d16178fbc6b1f27918e8ac1df6c54afb4d5eb8b3286536df33dd85ace475ea2d WHIRLPOOL 721fd1101a32b44bfd1cc8e8fc5e63a776ce5c5b3e126311f7f185cee092ebe6035151737db1b99edeca0e9d395a4eb1c1811a83aaed015be4dc6ce2499609f3
+DIST PyHamcrest-1.9.0.tar.gz 376623 SHA256 8ffaa0a53da57e89de14ced7185ac746227a8894dbd5a3c718bf05ddbd1d56cd SHA512 3b8393d0079b619b208ec7f06ed5133c4ff9d9dba050f818adf56347fc2225fd1c85d60f3dc262b7b9722061f0b8e4966180b6b96245a371e578d0d51633b4b0 WHIRLPOOL 2fcd5a30131c7bdf87fe79640d2eee9b4c773be9a25fd79fc8b82d8915d5cd00c6c574b02224e8a2b83cf1590d69884d15c5d300e053b8edcf9468fbe03861a5
+EBUILD pyhamcrest-1.8.2.ebuild 1085 SHA256 cd534a0d38f4f75367c647849d632cf9d170e35e9f2034b6bcde61ea48ae7a3d SHA512 231e01a0c1d10ff8c0fe4ba2ea4030af2c46990b026a46579d2e1e182899c2ed0151e0aaae596255821d2dfc3f0f7d9f031ce20c807d4ef81f800762ff2a060f WHIRLPOOL 9c38a729c1eff2642e252290e1059297d3c7c130dae0355c7c7cb502ab5bb8b5bacb446592613f4ed774ef14fc40ceae9a6e555509bcc03da24f6cdf3eae6b7c
+EBUILD pyhamcrest-1.8.3.ebuild 1285 SHA256 c3a8c90ed94c8885bbf5a4a15984150b5b69d025cee29c57d5dd4dd25224bba4 SHA512 d48f80e91e0978346aef2becba2ea1892d1c415e67ae849cbb473ea0c919560012eb862950861a87609df833732241e7ffe988826f93df95f4349eb9c80d84fc WHIRLPOOL 88d1398191b12885a25a4f287974f436367bf56a2812ae0490b66751bba682a4753b8d4bf209e8b9415a8707c1ef2ff6c7826426e320ad1dd4c060b700f95662
+EBUILD pyhamcrest-1.8.5.ebuild 1050 SHA256 ff371f7f8374d6725a7b22af4246ac1675271c3d25f587111b8f0426fd559d25 SHA512 a87720d361612b9a069042e38d1e1eb003e1cbabbdba788bb428afbba623361b6e856669c212df110e98116d1215e0c2d863736f4210e30d0280cc96a1b34001 WHIRLPOOL fb09aff0e400ee2a39a1cb20b1a1ea19406e42b36696bdc86b84ea45ca5cb08235ea39c726893c7a1ad4c2a688cf11c563c7d74b0178b739b4aeff51ba94de31
+EBUILD pyhamcrest-1.9.0.ebuild 1228 SHA256 70f82e4e3b421d717b43a55712ef04ed9f68a93c3a88bf31c4cb7ac0a4154826 SHA512 47b473c3ce3088a2313bb77716ef64e7ba31316dddbf8fa3f7e9b13a2fcff053f72c457440e7711308fbfb39c45d503169d753c2e0e784f4ff8e8ef6dd09353e WHIRLPOOL e9d24edcdaaa30e6f05de23315ceb12e671359fe587589c78658b3d86f9258d608c205a80ceb961f4c91a81781b58c4c4680bc4c858a23559368bd32393b22c6
+MISC ChangeLog 2718 SHA256 70aa30433185990d8f26bc34722bf5fef78ae4c04a177682e17f2aa9e3feeb5c SHA512 878fac2e90cbcc93d85cd24158fb51f30b07e670f8525d5412b09df89d7331ffaca77c3951fc69f8e870ca5c81940dd93f775de382969a7cc32985f2ae4cf124 WHIRLPOOL eb862f2d1839818484c588e0e17899a6629ce26427c6b7027f1420182b9951b10f5bf972f8d525b41050d8752d785d4632c9a8c06f56355dadd98f200eeb491e
+MISC ChangeLog-2015 1592 SHA256 719081054f809a231a895e76803e48628595cb6a665e125f2a3331f56d20772b SHA512 9c114235eaff4ffa9bcc9a6e84621967431ea4f22976a766bafba8713f8e4572b79a1e48d3a7419eb1ecfe6986bcd8f796b63e65e6fb589958e0ff0975fe85ed WHIRLPOOL c7ee2ff5674594c948a7ca828fcd4b8468e0d85ab07f40701f23108d6f838d287629196ca03e9a456582d8a5c963a23917c93cf3615fd79c4c4d476f529fa2a0
+MISC metadata.xml 468 SHA256 86bd836bc99c9e0ba2a731f0c003b273e3e0cc4c154501ccdcc91db36732229a SHA512 3103292cf733c1962b6ef200b1f8dbab17c211dfd4b5ab0dee86d3516d07f8ac9c41b940b384c97924325bfc44b0f804cd7c1d7bcd9d1dd4106c25c279d7957f WHIRLPOOL 0b462d7b3445d8931589dd244dd299dbd41dcbeb0b1605650c541cd120629d6b49d1b310b874d11b0d7b3f3d48f763c6c524e5f0734fe6a3ce92fddcb8b88689
diff --git a/dev-python/pyhamcrest/files/sphinx-rtd.patch b/dev-python/pyhamcrest/files/sphinx-rtd.patch
new file mode 100644
index 000000000000..2974c98a56a3
--- /dev/null
+++ b/dev-python/pyhamcrest/files/sphinx-rtd.patch
@@ -0,0 +1,20 @@
+diff --git a/doc/conf.py b/doc/conf.py
+index fb5d79e..7d3571b 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -13,6 +13,7 @@
+
+ import sys, os
+ import six
++import sphinx_rtd_theme
+
+ # If extensions (or modules to document with autodoc) are in another directory,
+ # add these directories to sys.path here. If the directory is relative to the
+@@ -106,6 +107,7 @@ html_theme = 'sphinx_rtd_theme'
+
+ # Add any paths that contain custom themes here, relative to this directory.
+ #html_theme_path = []
++html_theme_path = [ sphinx_rtd_theme.get_html_theme_path() ]
+
+ # The name for this set of Sphinx documents. If None, it defaults to
+ # "<project> v<release> documentation".
diff --git a/dev-python/pyhamcrest/metadata.xml b/dev-python/pyhamcrest/metadata.xml
new file mode 100644
index 000000000000..a1eae924e1c4
--- /dev/null
+++ b/dev-python/pyhamcrest/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <use>
+ <flag name="numpy">Enable optional dependence on dev-python/numpy</flag>
+ </use>
+ <upstream>
+ <remote-id type="pypi">PyHamcrest</remote-id>
+ <remote-id type="github">hamcrest/PyHamcrest</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pyhamcrest/pyhamcrest-1.8.2.ebuild b/dev-python/pyhamcrest/pyhamcrest-1.8.2.ebuild
new file mode 100644
index 000000000000..7fa0b79b7a0c
--- /dev/null
+++ b/dev-python/pyhamcrest/pyhamcrest-1.8.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 python3_4 )
+
+inherit distutils-r1
+
+MY_PN="PyHamcrest"
+
+DESCRIPTION="Hamcrest framework for matcher objects"
+HOMEPAGE="https://github.com/hamcrest/PyHamcrest"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc examples numpy test"
+
+CDEPEND="
+ >=dev-python/six-1.4[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'numpy? ( dev-python/numpy[${PYTHON_USEDEP}] )' 'python*')
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( >=dev-python/sphinx-1.2.2[${PYTHON_USEDEP}] )
+ test? (
+ ${CDEPEND}
+ >=dev-python/pytest-2.6[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${CDEPEND}"
+
+python_compile_all() {
+ use doc && emake -C doc html
+}
+
+python_test() {
+ py.test -v || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/_build/html/. )
+ use examples && local EXAMPLES=( examples/. )
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/pyhamcrest/pyhamcrest-1.8.3.ebuild b/dev-python/pyhamcrest/pyhamcrest-1.8.3.ebuild
new file mode 100644
index 000000000000..d008ae878f69
--- /dev/null
+++ b/dev-python/pyhamcrest/pyhamcrest-1.8.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 python3_4 )
+
+inherit distutils-r1
+
+MY_PN="PyHamcrest"
+
+DESCRIPTION="Hamcrest framework for matcher objects"
+HOMEPAGE="https://github.com/hamcrest/PyHamcrest"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc examples numpy test"
+
+CDEPEND="
+ >=dev-python/six-1.4[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'numpy? ( dev-python/numpy[${PYTHON_USEDEP}] )' 'python*')
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.2.2[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+ )
+ test? (
+ ${CDEPEND}
+ >=dev-python/pytest-2.6[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${CDEPEND}"
+
+python_prepare_all() {
+ local PATCHES=(
+ "${FILESDIR}"/sphinx-rtd.patch
+ )
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ use doc && esetup.py build_sphinx
+ #use doc && emake -C doc html
+}
+
+python_test() {
+ py.test -v || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/_build/html/. )
+ use examples && local EXAMPLES=( examples/. )
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/pyhamcrest/pyhamcrest-1.8.5.ebuild b/dev-python/pyhamcrest/pyhamcrest-1.8.5.ebuild
new file mode 100644
index 000000000000..306c22de306b
--- /dev/null
+++ b/dev-python/pyhamcrest/pyhamcrest-1.8.5.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 python3_4 )
+
+inherit distutils-r1
+
+MY_PN="PyHamcrest"
+
+DESCRIPTION="Hamcrest framework for matcher objects"
+HOMEPAGE="https://github.com/hamcrest/PyHamcrest"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc examples test"
+
+CDEPEND=">=dev-python/six-1.4[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.2.2[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+ )
+ test? (
+ ${CDEPEND}
+ >=dev-python/pytest-2.6[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${CDEPEND}"
+
+python_compile_all() {
+ use doc && esetup.py build_sphinx
+}
+
+python_test() {
+ py.test -v || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/_build/html/. )
+ use examples && local EXAMPLES=( examples/. )
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/pyhamcrest/pyhamcrest-1.9.0.ebuild b/dev-python/pyhamcrest/pyhamcrest-1.9.0.ebuild
new file mode 100644
index 000000000000..b8007ad5a05f
--- /dev/null
+++ b/dev-python/pyhamcrest/pyhamcrest-1.9.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+MY_PN="PyHamcrest"
+
+DESCRIPTION="Hamcrest framework for matcher objects"
+HOMEPAGE="https://github.com/hamcrest/PyHamcrest"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc examples test"
+
+RDEPEND=">=dev-python/six-1.4[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.2.2[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+ )
+ test? (
+ >=dev-python/pytest-2.6[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+RESTRICT="test"
+# the pypi tarball is missing the tests
+# and the 1.9.0 tag is missing in GitHub
+
+python_compile_all() {
+ use doc && esetup.py build_sphinx
+}
+
+python_test() {
+ py.test -v || die "Tests failed under ${EPYTHON}"
+ "${PYTHON}" tests/object_import.py || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/_build/html/. )
+ use examples && dodoc -r examples
+
+ distutils-r1_python_install_all
+}