mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 22:48:07 -07:00
dev-python/flask-restless: Clean old versions up
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
DIST flask-restless-0.15.0.tar.gz 515022 SHA256 78c07508018f6c417c3f383553d249ae08acf66864b786c1cbb5464cda2b5502 SHA512 156223295a2b1fcb270ed132a9023caa77632559155342381277f427fa069457977f8122bb21425281f1039aaef48c411a5f2677be403a0965abad4af199d775 WHIRLPOOL baaba2a60c424eb75faca35a0840d15b5215489c8ae6c39e513183253d66657f03e6e9544ff57edb0e1b7591f436bb46d7909a8f53179ad866c0fb63daa73111
|
||||
DIST flask-restless-0.16.0.tar.gz 520939 SHA256 df1c8e0e10923dbb7d6515dd6ecdcc9f0a88136f8378bbd23028371ceff40b9c SHA512 fd2910163c3210e7951924bfc57d62e249489a3dec978b935b22b6fa15a277bbdb82928e1baa42605a9c3b018cbd9ac70767acec98cfd0d33778aafbd04c9aee WHIRLPOOL af3725e69970818e259ac3dcd1d76bce273c1922a8e7a0a964dda72ee131a1fcd38103795907f116a776d917febb541e9def82d221aad0b30155c2ce12d0ce80
|
||||
DIST flask-restless-0.17.0.tar.gz 527502 SHA256 8c82c4c5c7977b88fd2fc8e6586252afb64b4f802ef4197dfe5630b3fc9a69eb SHA512 96183a8bb285a916e6ad680089c70b4c00fcc72ea26a6862537314f6b588b597ff78f2f1c3de0ae24f7dfc7af53a3412c8179801afa9eaeaeb3505695d44076e WHIRLPOOL 21eec21cd4afb51860ce253b1745cf7b9ee63337e3a4f3fb0b2309f76fc4446189c59741f786575ba7f5d993eee8f7839a0baa35ad191abc2551fc7b5403544e
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_4} pypy )
|
||||
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Flask extension for easy ReSTful API generation"
|
||||
HOMEPAGE="https://flask-restless.readthedocs.io/ https://github.com/jfinkels/flask-restless"
|
||||
SRC_URI="https://github.com/jfinkels/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( AGPL-3 BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="doc examples test"
|
||||
|
||||
RDEPEND=">=dev-python/flask-0.7[${PYTHON_USEDEP}]
|
||||
dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
|
||||
dev-python/sqlalchemy[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil:0[${PYTHON_USEDEP}]
|
||||
dev-python/mimerender[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-httpdomain-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-issuetracker-0.11[${PYTHON_USEDEP}]
|
||||
dev-python/flask-themes[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/mapping.patch )
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
if ! "${PYTHON}" -c "import flask_restless"; then
|
||||
eerror "flask-restless is not installed. Building of the docs"
|
||||
eerror "requires flask-restless to be installed."
|
||||
eerror "emerge with USE=-doc followed bu USE=doc"
|
||||
die
|
||||
fi
|
||||
# Changes connect to read issues @ github
|
||||
rm -f docs/changelog.rst
|
||||
einfo "Generating html docs for ${PN}"
|
||||
PYTHONPATH=${PYTHONPATH}"${S}"/docs emake -C docs html \
|
||||
|| die "Generating html docs for ${PN} failed"
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests -w tests || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
Reference in New Issue
Block a user