From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BE55D158003 for ; Wed, 18 May 2022 16:59:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBB55E08BD; Wed, 18 May 2022 16:59:16 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B4CEDE08BD for ; Wed, 18 May 2022 16:59:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DF5E13419F8 for ; Wed, 18 May 2022 16:59:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7563E474 for ; Wed, 18 May 2022 16:59:14 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1652893149.a6e8f87c13ad895e90628f77942c3110902c4b81.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/gunicorn/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-servers/gunicorn/gunicorn-20.1.0-r1.ebuild X-VCS-Directories: www-servers/gunicorn/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: a6e8f87c13ad895e90628f77942c3110902c4b81 X-VCS-Branch: master Date: Wed, 18 May 2022 16:59:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f7df5049-0a96-40a3-b468-b3a54cacadd4 X-Archives-Hash: 6c24cd4b635870b045464ff59031dc72 commit: a6e8f87c13ad895e90628f77942c3110902c4b81 Author: Michał Górny gentoo org> AuthorDate: Wed May 18 15:57:27 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed May 18 16:59:09 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6e8f87c www-servers/gunicorn: Use PEP517 build Signed-off-by: Michał Górny gentoo.org> www-servers/gunicorn/gunicorn-20.1.0-r1.ebuild | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/www-servers/gunicorn/gunicorn-20.1.0-r1.ebuild b/www-servers/gunicorn/gunicorn-20.1.0-r1.ebuild new file mode 100644 index 000000000000..05fa401375cd --- /dev/null +++ b/www-servers/gunicorn/gunicorn-20.1.0-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{8..10} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="A WSGI HTTP Server for UNIX" +HOMEPAGE=" + https://gunicorn.org/ + https://github.com/benoitc/gunicorn/ + https://pypi.org/project/gunicorn/ +" +SRC_URI=" + https://github.com/benoitc/gunicorn/archive/${PV}.tar.gz + -> ${P}.tar.gz +" + +LICENSE="MIT PSF-2 doc? ( BSD )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + dev-python/setproctitle[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/${PN}-20.1.0-tests_optional_modules.patch + "${FILESDIR}"/${P}-new-eventlet.patch +) + +DOCS=( README.rst ) + +distutils_enable_sphinx 'docs/source' --no-autodoc +distutils_enable_tests pytest + +src_prepare() { + sed -e 's:--cov=gunicorn --cov-report=xml::' -i setup.cfg || die + distutils-r1_src_prepare +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/source/_build/html/. ) + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature_header "Alternative worker types need additional packages to be installed:" + optfeature "eventlet-based greenlets workers" "dev-python/eventlet" + optfeature "gevent-based greenlets workers" "dev-python/gevent" +}