diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/beaker | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/beaker')
-rw-r--r-- | dev-python/beaker/Manifest | 5 | ||||
-rw-r--r-- | dev-python/beaker/beaker-1.6.4-r1.ebuild | 48 | ||||
-rw-r--r-- | dev-python/beaker/beaker-1.8.1.ebuild | 51 | ||||
-rw-r--r-- | dev-python/beaker/metadata.xml | 12 |
4 files changed, 116 insertions, 0 deletions
diff --git a/dev-python/beaker/Manifest b/dev-python/beaker/Manifest new file mode 100644 index 000000000000..8fa8e7fdd948 --- /dev/null +++ b/dev-python/beaker/Manifest @@ -0,0 +1,5 @@ +DIST Beaker-1.6.4.tar.gz 54480 BLAKE2B 809b2d23fb95a21ab442b3be20ff5372630697baaf507fd26d8aefabeed422401de890c8de165a079bde4a05230cea244a8d5bf31b8b89e60a88b840de9cdedf SHA512 5a6835d01d0b1bee57844525f1223d74edd26f07cc769df6a8cfa77f44dda4435eb96639175928a1caf7c4f927ac3a674c0fd0e7f50f1aea91da7880de3a6704 +DIST beaker-1.8.1.tar.gz 80541 BLAKE2B b60ba47a41f5f039699324dcb403d99cbf3d7e7cdbf593e275e1d41e6abc86dc829fd9a582b80e6274d6459624218585239b1b623e70636e2a1d736c584ce245 SHA512 bd9c4a4bbf21749a59c50ffff1d1dbff8bc9116394f79924efc6be637fb8c1ffef91a8363da3375bffdcb0ba291b71b57f75303f3fbe111e8670a390058e9fa5 +EBUILD beaker-1.6.4-r1.ebuild 1279 BLAKE2B 21ee7eccb3f54aa1b033b8e63168338493b605fb63760cfc0bc0f3fe6511bdd3c551cf4184f6780b3a70b0887947e6bcfc73c5fb10a2d46d5c1121b3859ba15f SHA512 08ad13c4fa1c65ce293c3dbb0d03261d5012b568d3f2bad43ac9c584b29f9f4661961074f6934468de7ca1d4015e6739f896ed912fa77d0b908f9f7020b3bd15 +EBUILD beaker-1.8.1.ebuild 1342 BLAKE2B 94d9deaa07e9d8073c9545b9f0a14ca19cdc13845b14b9e7711308631dc4f927749d006970aea29013b029f73352df461db495fd1903ee072c806d615f8757a2 SHA512 246582f9e0da6e00b5d2b1e8e62a3819997b6b81dd88901d41ceca2fdfe6fcbc5f1e83f735ef1ad0bc094cf482dd6bc8b5c1b524e5467bc5042e698561815464 +MISC metadata.xml 376 BLAKE2B 5cb61bb094fd8e020b5e83aedd79fa283143e9156935fbb3d6666186b81a17d544634349ff10b50bd9568895eddf54dcdb2c304a4fd6fe51bb37931cbb181074 SHA512 09586c7ae4aa5259c0776ef77713538e8b8dc730da802d95b3de5501aa6c88c96c1967740ff77a124821bbd93b13e9547879f452d46325916237aeaddf58c353 diff --git a/dev-python/beaker/beaker-1.6.4-r1.ebuild b/dev-python/beaker/beaker-1.6.4-r1.ebuild new file mode 100644 index 000000000000..036565cc9980 --- /dev/null +++ b/dev-python/beaker/beaker-1.6.4-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# py3.3 unfit with some types +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +MY_PN="Beaker" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A Session and Caching library with WSGI Middleware" +HOMEPAGE=" + https://github.com/bbangert/beaker + https://beaker.readthedocs.io/en/latest/ + https://pypi.org/project/Beaker/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ~hppa ia64 ~ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="test" + +# webtest-based tests are skipped when webtest is not installed +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/webtest[${PYTHON_USEDEP}] )" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +python_prepare_all() { + # Workaround for http://bugs.python.org/issue11276. + sed -e "s/import anydbm/& as anydbm/;/import anydbm/a dbm = anydbm" \ + -i beaker/container.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + cp -r -l tests "${BUILD_DIR}"/ || die + pushd "${BUILD_DIR}"/tests > /dev/null + nosetests || die "Tests fail with ${EPYTHON}" + popd > /dev/null +} diff --git a/dev-python/beaker/beaker-1.8.1.ebuild b/dev-python/beaker/beaker-1.8.1.ebuild new file mode 100644 index 000000000000..dcc0f9c15654 --- /dev/null +++ b/dev-python/beaker/beaker-1.8.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) + +inherit distutils-r1 + +DESCRIPTION="A Session and Caching library with WSGI Middleware" +HOMEPAGE=" + https://github.com/bbangert/beaker + https://beaker.readthedocs.io/en/latest/ + https://pypi.org/project/Beaker/" +# pypi tarball lacks tests +SRC_URI="https://github.com/bbangert/beaker/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ~hppa ia64 ~ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="test" + +RDEPEND="virtual/python-funcsigs[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + $(python_gen_impl_dep sqlite) + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + || ( + dev-python/pycryptodome[${PYTHON_USEDEP}] + dev-python/pycrypto[${PYTHON_USEDEP}] + ) + dev-python/sqlalchemy[${PYTHON_USEDEP}] + dev-python/webtest[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + # disarm pycrypto dep to allow || ( pycryptodome pycrypto ) + sed -i -e "/TEST/s:'pycrypto'::" setup.py || die + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test +} + +pkg_postinst() { + elog "beaker also has optional support for packages" + elog "pycrypto and pycryptopp" +} diff --git a/dev-python/beaker/metadata.xml b/dev-python/beaker/metadata.xml new file mode 100644 index 000000000000..708dfb0218b6 --- /dev/null +++ b/dev-python/beaker/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">Beaker</remote-id> + <remote-id type="github">bbangert/beaker</remote-id> + </upstream> +</pkgmetadata> |