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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 10D9613835B for ; Mon, 15 Mar 2021 12:49:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FA8BE0864; Mon, 15 Mar 2021 12:49:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 47496E0864 for ; Mon, 15 Mar 2021 12:49:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 42B08340D20 for ; Mon, 15 Mar 2021 12:49:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ABA385C4 for ; Mon, 15 Mar 2021 12:49:40 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1615812571.589439b846d5978febce08c58ec24cfaccd7e092.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/gunicorn/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-servers/gunicorn/Manifest www-servers/gunicorn/gunicorn-20.1.0.ebuild X-VCS-Directories: www-servers/gunicorn/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 589439b846d5978febce08c58ec24cfaccd7e092 X-VCS-Branch: master Date: Mon, 15 Mar 2021 12:49:40 +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: 7e1538ec-9bed-4d28-986e-f730f04ca1d7 X-Archives-Hash: 8ac01eb0ac3dfdc6c786f9bc41d8d3d9 commit: 589439b846d5978febce08c58ec24cfaccd7e092 Author: Marek Szuba gentoo org> AuthorDate: Mon Mar 15 11:49:30 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Mon Mar 15 12:49:31 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=589439b8 www-servers/gunicorn: bump to 20.1.0 Pre-release, it seems - absent from PyPI, packaged on GitHub but not listed as the latest release there, not mentioned on gunicorn.org either. Nb. there are now tests of eventlet- and gevent-based workers, which fail if the relevant Python modules are not installed. For the time being just remove these tests (neither dev-python/eventlet nor dev-python/gevent currently support pypy3, and both miss certain arch keywords) so that alternative worker types remain entirely optional as far as the tree is concerned, in the long run we probably should have USE flags for these. Signed-off-by: Marek Szuba gentoo.org> www-servers/gunicorn/Manifest | 1 + www-servers/gunicorn/gunicorn-20.1.0.ebuild | 47 +++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/www-servers/gunicorn/Manifest b/www-servers/gunicorn/Manifest index 60da7a8e397..49551020085 100644 --- a/www-servers/gunicorn/Manifest +++ b/www-servers/gunicorn/Manifest @@ -1 +1,2 @@ DIST gunicorn-20.0.4.tar.gz 373841 BLAKE2B d6f0b5b901697ebc6ee987af5766174a845de8bfad03ce95638ed087b92175e9b2f0e9a49fda70f8f9c6fdc15e1ef1a431c069270af068fb29780abcedf63fc3 SHA512 706620f165e36c178a6d3e65f51a9bb7746abd40dfc7c0f1b3b523771be953dd03b36111f192407aef474ad44afdffd11b6502e51376d11465ffac2255822d5e +DIST gunicorn-20.1.0.tar.gz 354960 BLAKE2B bae414a8da7a4dbdf79e0b46f517138534521a1a8544f4ea2e1e27e6778d2f6ad8d6a8af02590fedad47d305acdea53f1cdbc4deeda3619fc4a5ffef0932bea1 SHA512 4fd905f62adc30e044cf2a56a1a77e14bc633258267d6bfbd4f6a68494f93f377e9fb9ed94fab7f11f9d7813857a680974a88c4b6bf97d4f1b74792a81810111 diff --git a/www-servers/gunicorn/gunicorn-20.1.0.ebuild b/www-servers/gunicorn/gunicorn-20.1.0.ebuild new file mode 100644 index 00000000000..7905e095b6e --- /dev/null +++ b/www-servers/gunicorn/gunicorn-20.1.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( pypy3 python3_{7..9} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="A WSGI HTTP Server for UNIX" +HOMEPAGE="https://gunicorn.org https://pypi.org/project/gunicorn https://github.com/benoitc/gunicorn" +# Not on PyPI yet as of 2021-03-15 +SRC_URI="https://github.com/benoitc/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT PSF-2 doc? ( BSD )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos" + +RDEPEND="dev-python/setproctitle[${PYTHON_USEDEP}]" + +DOCS=( README.rst ) + +distutils_enable_sphinx 'docs/source' --no-autodoc +distutils_enable_tests pytest + +src_prepare() { + # These fail if respective optional packages have not been installed + rm -f tests/workers/test_g{eventlet,gevent}.py + + 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() { + elog "Note that 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" + elog +}