diff options
Diffstat (limited to 'dev-python/flask-appconfig')
-rw-r--r-- | dev-python/flask-appconfig/Manifest | 3 | ||||
-rw-r--r-- | dev-python/flask-appconfig/flask-appconfig-0.11.1-r1.ebuild | 50 | ||||
-rw-r--r-- | dev-python/flask-appconfig/metadata.xml | 13 |
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/flask-appconfig/Manifest b/dev-python/flask-appconfig/Manifest new file mode 100644 index 000000000000..3ab75e8e9c8a --- /dev/null +++ b/dev-python/flask-appconfig/Manifest @@ -0,0 +1,3 @@ +DIST flask-appconfig-0.11.1.tar.gz 14545 BLAKE2B 71cb3252707ee546aaa16ed36f1c605c5e90d49070a64aa381f23fcc1fa9147724a8794b8530738115c3b0505537487c63b3131c586b4383884b58f6141cd515 SHA512 9ebc42be5ef247b1f14b85f7b65600a1595ecdc70e792c0cd495347254b07675a3b7a306df8d2f2663626ceafa4ce7700f6f26cd0f1bcd974ba6bbab293847ee +EBUILD flask-appconfig-0.11.1-r1.ebuild 1219 BLAKE2B c4990b3715f60bb277c3373413b3cb6eac7c44a8d2804af753e027dbf18e56297dfaa9ed0724bf1902d50ac2c5c4a3a5cef302c94e8a5fa0f55fb5a3901153ef SHA512 28edc3c6370258c78a8c44ee7a401f2eb0f43b37b7386c3343bb15b5b4bc454676630ac7e377134eca050cb66b2e976db9af4fd8414b246debde239711b4320e +MISC metadata.xml 449 BLAKE2B 062ef689f336373983993c0c666feb9a5fa6a6d6a19d3509a6856c6f75a4b810fbf6ed6ea42511073691d83c23a63c5cf3a78db1f0e41d2001b146d8b950e30c SHA512 6a71fd90326834e06eab6e45aeddf17940a9140d7ac41e9fbd1dd8551042066a7fe4f6eb6840d5e2363deffb9d00d59283aea87c113b4b190590d545cd283122 diff --git a/dev-python/flask-appconfig/flask-appconfig-0.11.1-r1.ebuild b/dev-python/flask-appconfig/flask-appconfig-0.11.1-r1.ebuild new file mode 100644 index 000000000000..2e1c7689325f --- /dev/null +++ b/dev-python/flask-appconfig/flask-appconfig-0.11.1-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6}} ) + +inherit distutils-r1 + +DESCRIPTION="Configures Flask applications in a canonical way" +HOMEPAGE="https://github.com/mbr/flask-appconfig" +# PyPI tarballs don't include tests +# https://github.com/mbr/flask-appconfig/pull/4 +SRC_URI="https://github.com/mbr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + dev-python/click[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + sed -i "s/, 'sphinx.ext.intersphinx'//" docs/conf.py || die + # These conflict with recent flask versions, #589548 + sed -i '/entry_points={/,/},$/d' setup.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + sphinx-build docs docs/_build/html || die + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + py.test || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/flask-appconfig/metadata.xml b/dev-python/flask-appconfig/metadata.xml new file mode 100644 index 000000000000..0f9d841b0609 --- /dev/null +++ b/dev-python/flask-appconfig/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sbraz@gentoo.org</email> + <name>Louis Sautier</name> + </maintainer> + <upstream> + <remote-id type="pypi">flask-appconfig</remote-id> + <remote-id type="github">mbr/flask-appconfig</remote-id> + <bugs-to>https://github.com/mbr/flask-appconfig/issues</bugs-to> + </upstream> +</pkgmetadata> |