diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-06-12 16:59:16 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-06-12 17:40:17 +0200 |
commit | 2524436f448eefe5b8bf61dd6bda35944e2b949e (patch) | |
tree | 10762596c32c968b4113af9a624213b9f6a20a03 /www-servers/gunicorn | |
parent | dev-python/setproctitle: Port to py3.9 (diff) | |
download | gentoo-2524436f448eefe5b8bf61dd6bda35944e2b949e.tar.gz gentoo-2524436f448eefe5b8bf61dd6bda35944e2b949e.tar.bz2 gentoo-2524436f448eefe5b8bf61dd6bda35944e2b949e.zip |
www-servers/gunicorn: Port to py3.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'www-servers/gunicorn')
-rw-r--r-- | www-servers/gunicorn/gunicorn-19.9.0.ebuild | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/www-servers/gunicorn/gunicorn-19.9.0.ebuild b/www-servers/gunicorn/gunicorn-19.9.0.ebuild index a3c4673b2fcb..7a3d0bb71655 100644 --- a/www-servers/gunicorn/gunicorn-19.9.0.ebuild +++ b/www-servers/gunicorn/gunicorn-19.9.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6..9} ) inherit distutils-r1 @@ -13,25 +13,22 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT PSF-2 doc? ( BSD )" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 x86" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND="dev-python/setproctitle[${PYTHON_USEDEP}]" -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] +BDEPEND=" test? ( dev-python/mock[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-cov[${PYTHON_USEDEP}] dev-python/unittest2[${PYTHON_USEDEP}] )" DOCS="README.rst" distutils_enable_sphinx 'docs/source' --no-autodoc +distutils_enable_tests pytest -python_test() { - py.test -v || die "Testing failed with ${EPYTHON}" +src_prepare() { + sed -e 's:--cov=gunicorn --cov-report=xml::' -i setup.cfg || die + distutils-r1_src_prepare } python_install_all() { |