Skip to content

Commit

Permalink
www-servers/gunicorn: Port to py3.9
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jun 12, 2020
1 parent 3d915b9 commit 2524436
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions www-servers/gunicorn/gunicorn-19.9.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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() {
Expand Down

0 comments on commit 2524436

Please sign in to comment.