summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /www-servers/gunicorn
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'www-servers/gunicorn')
-rw-r--r--www-servers/gunicorn/Manifest3
-rw-r--r--www-servers/gunicorn/files/gunicorn-0.14.0-noegg.patch64
-rw-r--r--www-servers/gunicorn/files/gunicorn-19.0.0-gaiohttp.patch59
-rw-r--r--www-servers/gunicorn/gunicorn-0.17.4.ebuild47
-rw-r--r--www-servers/gunicorn/gunicorn-19.0.0.ebuild54
-rw-r--r--www-servers/gunicorn/gunicorn-19.1.1.ebuild52
-rw-r--r--www-servers/gunicorn/metadata.xml20
7 files changed, 299 insertions, 0 deletions
diff --git a/www-servers/gunicorn/Manifest b/www-servers/gunicorn/Manifest
new file mode 100644
index 000000000000..1bc7ab3b7169
--- /dev/null
+++ b/www-servers/gunicorn/Manifest
@@ -0,0 +1,3 @@
+DIST gunicorn-0.17.4.tar.gz 372737 SHA256 0f5b63f87ab66b9aaca6938e2b97dd6e785498a0cb4567560996192d7e40ad21 SHA512 e227e2e3b1240d1090c0ef86db884ed68dea92f7d4de6a949afee00a0c258a1cf77309391fd88a6c9861942a246495018b81443e8be3055c14af2373e1f4d793 WHIRLPOOL 873220a9c0065ec5df81ad807d212b641dc3d5a4a9a0dceae28c17f07d1d9a63110a25fd1881bac765198cd10600ca5b802ba20f3a763da8db2ecf7d8bc0e25f
+DIST gunicorn-19.0.0.tar.gz 382899 SHA256 0ccb71a2d9e0764fb3abc5dc6f7a44d5d44e3137545be8869befc8aedc02878e SHA512 5e041cfd65c664e687538c1ab1680949492fa76abe8e39f9ab3f8b5239f5ca4f1d91cbb9235e6d671ecd13eec1e58eb440c42f21534488c6acafb34c65288c41 WHIRLPOOL 21bf2f771125c575c85eb8c3c3a8c4b95a29f5e29a157affde2bf2446b29ccef1f192c9f93f5ebe86b1a1196c716a0d9101e94c4f2fcfa7f7304cf5e351b051c
+DIST gunicorn-19.1.1.tar.gz 385155 SHA256 82715511fb6246fad4ba66d812eb93416ae8371b464fa88bf3867c9c177daa14 SHA512 1b42f0dadb8ced12954e821ad3dc7fad67ae6f1123218fe79e32d7089d9ae65bcd973613c226d9a16b11d7d35632990f2c9499594c7a383a79698a1c2db471de WHIRLPOOL 29c99b33b72d00dc248adedf89517804f58ee4ee36a3c9fdddb9d65ee047dd57d381d719e1ed44b7b5284f11ac703d29f3d66fd077f996de2ab9effa8fb15fda
diff --git a/www-servers/gunicorn/files/gunicorn-0.14.0-noegg.patch b/www-servers/gunicorn/files/gunicorn-0.14.0-noegg.patch
new file mode 100644
index 000000000000..7be449f5c6c3
--- /dev/null
+++ b/www-servers/gunicorn/files/gunicorn-0.14.0-noegg.patch
@@ -0,0 +1,64 @@
+diff --git a/tests/003-test-config.py b/tests/003-test-config.py
+index 4d9ef92..218a8e4 100644
+--- a/tests/003-test-config.py
++++ b/tests/003-test-config.py
+@@ -24,12 +24,7 @@ def paster_ini():
+ return os.path.join(dirname, "..", "examples", "frameworks", "pylonstest", "nose.ini")
+
+ def PasterApp():
+- try:
+- from paste.deploy import loadapp, loadwsgi
+- except ImportError:
+- raise SkipTest()
+- from gunicorn.app.pasterapp import PasterApplication
+- return PasterApplication("no_usage")
++ raise SkipTest()
+
+ class AltArgs(object):
+ def __init__(self, args=None):
+@@ -59,43 +54,8 @@ def test_defaults():
+ t.eq(s.default, c.settings[s.name].get())
+
+ def test_property_access():
+- c = config.Config()
+- for s in config.KNOWN_SETTINGS:
+- getattr(c, s.name)
+-
+- # Class was loaded
+- t.eq(c.worker_class, SyncWorker)
+-
+- # Debug affects workers
+- t.eq(c.workers, 1)
+- c.set("workers", 3)
+- t.eq(c.workers, 3)
+-
+- # Address is parsed
+- t.eq(c.address, ("127.0.0.1", 8000))
+-
+- # User and group defaults
+- t.eq(os.geteuid(), c.uid)
+- t.eq(os.getegid(), c.gid)
+-
+- # Proc name
+- t.eq("gunicorn", c.proc_name)
+-
+- # Not a config property
+- t.raises(AttributeError, getattr, c, "foo")
+- # Force to be not an error
+- class Baz(object):
+- def get(self):
+- return 3.14
+- c.settings["foo"] = Baz()
+- t.eq(c.foo, 3.14)
+-
+- # Attempt to set a cfg not via c.set
+- t.raises(AttributeError, setattr, c, "proc_name", "baz")
+-
+- # No setting for name
+- t.raises(AttributeError, c.set, "baz", "bar")
+-
++ raise SkipTest()
++
+ def test_bool_validation():
+ c = config.Config()
+ t.eq(c.debug, False)
diff --git a/www-servers/gunicorn/files/gunicorn-19.0.0-gaiohttp.patch b/www-servers/gunicorn/files/gunicorn-19.0.0-gaiohttp.patch
new file mode 100644
index 000000000000..7561ab2f3027
--- /dev/null
+++ b/www-servers/gunicorn/files/gunicorn-19.0.0-gaiohttp.patch
@@ -0,0 +1,59 @@
+From 86f740420cb12cf071f7dc7981330353e258931a Mon Sep 17 00:00:00 2001
+From: Andrew Svetlov <andrew.svetlov@gmail.com>
+Date: Sun, 22 Jun 2014 15:19:27 +0300
+Subject: [PATCH] Don't install gaiohttp if python < 3.3
+
+---
+ setup.py | 18 ++++++++++++++++--
+ 1 file changed, 16 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index be54106..f538734 100644
+--- a/setup.py
++++ b/setup.py
+@@ -5,12 +5,15 @@
+
+
+ import os
+-from setuptools import setup, find_packages, Command
++from setuptools import setup, Command
+ import sys
+
+ from gunicorn import __version__
+
+
++ASYNCIO_COMPAT = sys.version_info >= (3, 3)
++
++
+ CLASSIFIERS = [
+ 'Development Status :: 4 - Beta',
+ 'Environment :: Other Environment',
+@@ -65,6 +68,17 @@ def run(self):
+
+ REQUIREMENTS = []
+
++py_modules = []
++
++for root, folders, files in os.walk('gunicorn'):
++ for f in files:
++ if f.endswith('.py') and (ASYNCIO_COMPAT or f != 'gaiohttp.py'):
++ full = os.path.join(root, f[:-3])
++ parts = full.split(os.path.sep)
++ modname = '.'.join(parts)
++ py_modules.append(modname)
++
++
+ setup(
+ name = 'gunicorn',
+ version = __version__,
+@@ -78,7 +92,7 @@ def run(self):
+
+ classifiers = CLASSIFIERS,
+ zip_safe = False,
+- packages = find_packages(exclude=['examples', 'tests']),
++ py_modules = py_modules,
+ include_package_data = True,
+
+ tests_require = tests_require,
+--
+1.9.3
diff --git a/www-servers/gunicorn/gunicorn-0.17.4.ebuild b/www-servers/gunicorn/gunicorn-0.17.4.ebuild
new file mode 100644
index 000000000000..6871afdd9d26
--- /dev/null
+++ b/www-servers/gunicorn/gunicorn-0.17.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="2.5 3.1 *-jython"
+DISTUTILS_SRC_TEST="nosetests"
+
+inherit distutils eutils
+
+DESCRIPTION="A WSGI HTTP Server for UNIX"
+HOMEPAGE="http://gunicorn.org http://pypi.python.org/pypi/gunicorn"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="doc test"
+KEYWORDS="amd64 x86"
+
+RDEPEND="dev-python/setproctitle"
+DEPEND="dev-python/setuptools
+ doc? ( dev-python/sphinx )
+ test? ( dev-python/pytest )"
+
+DOCS="README.rst"
+
+src_prepare() {
+ # these tests requires an already installed version of gunicorn
+ rm tests/test_003-config.py
+}
+
+src_compile() {
+ distutils_src_compile
+
+ if use doc; then
+ einfo "Generation of documentation"
+ cd docs
+ sphinx-build -b html source build || die "Generation of documentation failed"
+ fi
+}
+
+src_install() {
+ distutils_src_install
+
+ use doc && dohtml -r docs/build/
+}
diff --git a/www-servers/gunicorn/gunicorn-19.0.0.ebuild b/www-servers/gunicorn/gunicorn-19.0.0.ebuild
new file mode 100644
index 000000000000..d079c54e181a
--- /dev/null
+++ b/www-servers/gunicorn/gunicorn-19.0.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="A WSGI HTTP Server for UNIX"
+HOMEPAGE="http://gunicorn.org http://pypi.python.org/pypi/gunicorn"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="doc examples test"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/setproctitle[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+DOCS="README.rst"
+
+python_prepare() {
+ # these tests requires an already installed version of gunicorn
+ rm tests/test_003-config.py
+
+ sed -ie "s/..\/bin/\/usr\/bin\//" docs/Makefile || die
+
+ epatch "${FILESDIR}/${P}-gaiohttp.patch"
+
+ distutils-r1_python_prepare
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ py.test -v || die "Testing failed with ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/build/html/. )
+
+ distutils-r1_python_install_all
+
+ if use examples; then
+ insinto /usr/share/doc/${P}
+ doins -r examples
+ fi
+}
diff --git a/www-servers/gunicorn/gunicorn-19.1.1.ebuild b/www-servers/gunicorn/gunicorn-19.1.1.ebuild
new file mode 100644
index 000000000000..b7eceefe76a7
--- /dev/null
+++ b/www-servers/gunicorn/gunicorn-19.1.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="A WSGI HTTP Server for UNIX"
+HOMEPAGE="http://gunicorn.org http://pypi.python.org/pypi/gunicorn"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="doc examples test"
+KEYWORDS="amd64 x86"
+
+RDEPEND="dev-python/setproctitle[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+DOCS="README.rst"
+
+python_prepare() {
+ # these tests requires an already installed version of gunicorn
+ rm tests/test_003-config.py
+
+ sed -ie "s/..\/bin/\/usr\/bin\//" docs/Makefile || die
+
+ distutils-r1_python_prepare
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ py.test -v || die "Testing failed with ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/build/html/. )
+
+ distutils-r1_python_install_all
+
+ if use examples; then
+ insinto /usr/share/doc/${P}
+ doins -r examples
+ fi
+}
diff --git a/www-servers/gunicorn/metadata.xml b/www-servers/gunicorn/metadata.xml
new file mode 100644
index 000000000000..9f4816df4ece
--- /dev/null
+++ b/www-servers/gunicorn/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>rafaelmartins@gentoo.org</email>
+ <name>Rafael G. Martins</name>
+ </maintainer>
+ <maintainer>
+ <email>bugs@bergstroem.nu</email>
+ <name>Johan Bergström</name>
+ <description>Co-maintainer, CC on bugs.</description>
+ </maintainer>
+ <longdescription lang="en">Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a
+ pre-fork worker model ported from Ruby's Unicorn project. The Gunicorn
+ server is broadly compatible with various web frameworks, simply
+ implemented, light on server resources, and fairly speedy. </longdescription>
+ <upstream>
+ <remote-id type="pypi">gunicorn</remote-id>
+ </upstream>
+</pkgmetadata>