diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/webtest | |
download | gentoo-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 'dev-python/webtest')
-rw-r--r-- | dev-python/webtest/Manifest | 4 | ||||
-rw-r--r-- | dev-python/webtest/files/webtest-1.3-doctest-ellipsis.patch | 38 | ||||
-rw-r--r-- | dev-python/webtest/files/webtest-1.3.4-index_fixt.patch | 13 | ||||
-rw-r--r-- | dev-python/webtest/files/webtest-1.4.3-doctest.patch | 15 | ||||
-rw-r--r-- | dev-python/webtest/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/webtest/webtest-1.4.3-r1.ebuild | 62 | ||||
-rw-r--r-- | dev-python/webtest/webtest-2.0.16.ebuild | 72 | ||||
-rw-r--r-- | dev-python/webtest/webtest-2.0.17.ebuild | 68 | ||||
-rw-r--r-- | dev-python/webtest/webtest-2.0.18.ebuild | 68 |
9 files changed, 348 insertions, 0 deletions
diff --git a/dev-python/webtest/Manifest b/dev-python/webtest/Manifest new file mode 100644 index 000000000000..2469a75672e9 --- /dev/null +++ b/dev-python/webtest/Manifest @@ -0,0 +1,4 @@ +DIST WebTest-1.4.3.zip 80008 SHA256 0439d951afdf6c58d19e0a83e30855d0bb7e35ab177d9261add71fc5a724b6ab SHA512 87436f182edc3178481f4ec3d073399784e353d6480790470891a18d3605c2bb5a1f4effe0ffa0ce241f1256e99f1a4e3e5fcd2896acb8931aeb60a88fa2bfa2 WHIRLPOOL e509a71a213b9085473536afb51142c4cd9fe99b52870139498fe5b68e8326e8b23df9af3502f0d3ebffbe0076165564d38ef143d9b229bb94b23bb857ca6fe9 +DIST WebTest-2.0.16.zip 88232 SHA256 24ad0c9ee377f16df4d0bd626a64a75eec901852ac788bdb70e0261bff0026eb SHA512 da09abba8ed52c8d673acf547f47df6919b534b33b746944610fc78bd3695f36e3718f89e68f8aec7852b6cf98da0f0b5500dfe9427fd7926e5304ad216eafbb WHIRLPOOL 68d392000c8767ef9b5d4cc657bd6e99ec75eb4cb20cacdabdcca87942894b290f957854fb7dfb7c9eb8312877575c4e4d258e78c05f985e972b02ee04ec2643 +DIST WebTest-2.0.17.zip 88435 SHA256 36457f708a57e4295a2c05aaf47b620b66e25429dd9170c59d0718ff7934a0b7 SHA512 5a1e26108af1cb5fc5db10bf10a48c98815ccacb84c692ecedfc6ef02427bedaa3bdfc466a89faa51c82474da2bd393aae5f17821c516966999c5d2e5f12628d WHIRLPOOL 2c7c504fd6087cc116f28de8113f456901535d6d098845bc1b3551264ee9ea5c7bc9fad4699015eecb974a0423edf60e0715d93025ed3d05da91a6235dc6e1fb +DIST WebTest-2.0.18.zip 88440 SHA256 beb569e6d707cb4cd82c226c97b7e1f41cd62bae656d89e687107eef8376c7fd SHA512 98f61325a2cb0db3c0aec317f3acf8a741531fece33fa359615cdee8738cb2c4523156971c1fd420c900b0d3ece4adc15f2e77975f40376f0e58370ff7b5fe79 WHIRLPOOL 5057d1c1518656f4869a6baa41617815972044b91b2dbc8d56b2adcb379fefcf01de57b90cd7ee98664c004619f2170d5a6f0fd9a175a83ef758af0ee7d5c48c diff --git a/dev-python/webtest/files/webtest-1.3-doctest-ellipsis.patch b/dev-python/webtest/files/webtest-1.3-doctest-ellipsis.patch new file mode 100644 index 000000000000..38b01ae215b0 --- /dev/null +++ b/dev-python/webtest/files/webtest-1.3-doctest-ellipsis.patch @@ -0,0 +1,38 @@ +diff --git a/docs/index.txt b/docs/index.txt +index f472102..1edf711 100644 +--- a/docs/index.txt ++++ b/docs/index.txt +@@ -271,7 +271,7 @@ Then you can submit: + >>> res = form.submit() + >>> # Or submit a button: + >>> res = form.submit('submit') +- >>> print(res) ++ >>> print(res) # doctest:+ELLIPSIS + Response: 200 OK + Content-Type: text/plain + ... +@@ -331,7 +331,7 @@ Examples: + <class 'BeautifulSoup.BeautifulSoup'> + >>> res.html.body.div.string + u'hey!' +- >>> res.lxml ++ >>> res.lxml # doctest:+ELLIPSIS + <Element html at ...> + >>> res.lxml.xpath('//body/div')[0].text + 'hey!' +@@ -343,13 +343,13 @@ Examples: + >>> res = TestResponse(content_type='application/xml', + ... body='<xml><message>hey!</message></xml>') + >>> res.request = TestRequest.blank('/') +- >>> res.xml ++ >>> res.xml # doctest:+ELLIPSIS + <Element ...> + >>> res.xml[0].tag + 'message' + >>> res.xml[0].text + 'hey!' +- >>> res.lxml ++ >>> res.lxml # doctest:+ELLIPSIS + <Element xml at ...> + >>> res.lxml[0].tag + 'message'
\ No newline at end of file diff --git a/dev-python/webtest/files/webtest-1.3.4-index_fixt.patch b/dev-python/webtest/files/webtest-1.3.4-index_fixt.patch new file mode 100644 index 000000000000..5cb75c7ea138 --- /dev/null +++ b/dev-python/webtest/files/webtest-1.3.4-index_fixt.patch @@ -0,0 +1,13 @@ +--- /dev/null 2012-05-03 18:34:53.288000099 +0800 ++++ docs/index_fixt.py 2012-05-07 00:07:55.392854158 +0800 +@@ -0,0 +1,10 @@ ++# -*- coding: utf-8 -*- ++from doctest import ELLIPSIS ++ ++ ++def setup_test(test): ++ for example in test.examples: ++ example.options.setdefault(ELLIPSIS, 1) ++ ++setup_test.__test__ = False ++ diff --git a/dev-python/webtest/files/webtest-1.4.3-doctest.patch b/dev-python/webtest/files/webtest-1.4.3-doctest.patch new file mode 100644 index 000000000000..15b65c517079 --- /dev/null +++ b/dev-python/webtest/files/webtest-1.4.3-doctest.patch @@ -0,0 +1,15 @@ +This doctest relies on dictionary key order, so remove it. +--- a/docs/index.txt ++++ b/docs/index.txt +@@ -321,11 +321,6 @@ + <Element html at ...> + >>> res.lxml.xpath('//body/div')[0].text + 'hey!' +- >>> res = TestResponse(content_type='application/json', +- ... body=b'{"a":1,"b":2}') +- >>> res.request = TestRequest.blank('/') +- >>> list(res.json.values()) +- [1, 2] + >>> res = TestResponse(content_type='application/xml', + ... body=b'<xml><message>hey!</message></xml>') + >>> res.request = TestRequest.blank('/') diff --git a/dev-python/webtest/metadata.xml b/dev-python/webtest/metadata.xml new file mode 100644 index 000000000000..3fcee65b5fb1 --- /dev/null +++ b/dev-python/webtest/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <upstream> + <remote-id type="pypi">WebTest</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/webtest/webtest-1.4.3-r1.ebuild b/dev-python/webtest/webtest-1.4.3-r1.ebuild new file mode 100644 index 000000000000..89f842048e91 --- /dev/null +++ b/dev-python/webtest/webtest-1.4.3-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3} ) + +inherit distutils-r1 + +MY_PN="WebTest" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Helper to test WSGI applications" +HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm ~hppa ia64 ppc ~ppc64 s390 sh sparc x86 ~x86-fbsd" +IUSE="doc test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=dev-python/webob-0.9.2[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + app-arch/unzip + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/nose[${PYTHON_USEDEP}] + dev-python/pyquery[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" +PATCHES=( "${FILESDIR}/webtest-1.4.3-doctest.patch" ) + +python_compile_all() { + if use doc; then + sphinx-build docs html || die + fi +} + +src_test() { + DISTUTILS_NO_PARALLEL_BUILD=1 distutils-r1_src_test +} + +python_test() { + # Tests raise ImportErrors with our default PYTHONPATH. + unset PYTHONPATH + nosetests || die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + + if [[ ${EPYTHON} == python3* ]]; then + rm -f "${D}$(python_get_sitedir)"/webtest/lint3.py + fi +} + +python_install_all() { + use doc && local HTML_DOCS=( html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/webtest/webtest-2.0.16.ebuild b/dev-python/webtest/webtest-2.0.16.ebuild new file mode 100644 index 000000000000..d23c11372d0d --- /dev/null +++ b/dev-python/webtest/webtest-2.0.16.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 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} ) + +inherit distutils-r1 + +MY_PN="WebTest" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Helper to test WSGI applications" +HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ppc ppc64 x86" +IUSE="doc test" + +#nose<1.3.0 +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/waitress-0.8.5[${PYTHON_USEDEP}] + >=dev-python/webob-1.2[${PYTHON_USEDEP}] + dev-python/beautifulsoup:4[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + app-arch/unzip + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/nose[${PYTHON_USEDEP}] + dev-python/pyquery[${PYTHON_USEDEP}] + dev-python/pastedeploy[${PYTHON_USEDEP}] + dev-python/wsgiproxy2[${PYTHON_USEDEP}] + dev-python/coverage[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 ) + )" + +S="${WORKDIR}/${MY_P}" + +# Makes testing easier; otherwise we get errors from pkg_resources. +DISTUTILS_IN_SOURCE_BUILD=1 + +python_prepare_all() { + # Prevent un-needed d'loading during doc build + sed -s 's:intersphinx_mapping:_&:' -i docs/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + sphinx-build docs html || die + fi +} + +src_test() { + DISTUTILS_NO_PARALLEL_BUILD=1 distutils-r1_src_test +} + +python_test() { + # Tests raise ImportErrors with our default PYTHONPATH. + local -x PYTHONPATH= + nosetests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/webtest/webtest-2.0.17.ebuild b/dev-python/webtest/webtest-2.0.17.ebuild new file mode 100644 index 000000000000..559939211820 --- /dev/null +++ b/dev-python/webtest/webtest-2.0.17.ebuild @@ -0,0 +1,68 @@ +# 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} ) + +inherit distutils-r1 + +MY_PN="WebTest" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Helper to test WSGI applications" +HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" +IUSE="doc test" + +# nose<1.3.0 appears a leftover never updated in requires.txt. tests pass fine with latest +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/waitress-0.8.5[${PYTHON_USEDEP}] + >=dev-python/webob-1.2[${PYTHON_USEDEP}] + dev-python/beautifulsoup:4[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + app-arch/unzip + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/nose[${PYTHON_USEDEP}] + dev-python/pyquery[${PYTHON_USEDEP}] + dev-python/pastedeploy[${PYTHON_USEDEP}] + dev-python/wsgiproxy2[${PYTHON_USEDEP}] + dev-python/coverage[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 ) + )" + +S="${WORKDIR}/${MY_P}" + +# Makes testing easier; otherwise we get errors from pkg_resources. +DISTUTILS_IN_SOURCE_BUILD=1 + +python_prepare_all() { + # Prevent un-needed d'loading during doc build + sed -s 's:intersphinx_mapping:_&:' -i docs/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + sphinx-build docs html || die + fi +} + +python_test() { + # Tests raise ImportErrors with our default PYTHONPATH. + local -x PYTHONPATH= + nosetests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/webtest/webtest-2.0.18.ebuild b/dev-python/webtest/webtest-2.0.18.ebuild new file mode 100644 index 000000000000..0b9b7cadff0d --- /dev/null +++ b/dev-python/webtest/webtest-2.0.18.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2015 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} ) + +inherit distutils-r1 + +MY_PN="WebTest" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Helper to test WSGI applications" +HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" +IUSE="doc test" + +# nose<1.3.0 appears a leftover never updated in requires.txt. tests pass fine with latest +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/waitress-0.8.5[${PYTHON_USEDEP}] + >=dev-python/webob-1.2[${PYTHON_USEDEP}] + dev-python/beautifulsoup:4[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + app-arch/unzip + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/nose[${PYTHON_USEDEP}] + dev-python/pyquery[${PYTHON_USEDEP}] + dev-python/pastedeploy[${PYTHON_USEDEP}] + dev-python/wsgiproxy2[${PYTHON_USEDEP}] + dev-python/coverage[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 ) + )" + +S="${WORKDIR}/${MY_P}" + +# Makes testing easier; otherwise we get errors from pkg_resources. +DISTUTILS_IN_SOURCE_BUILD=1 + +python_prepare_all() { + # Prevent un-needed d'loading during doc build + sed -s 's:intersphinx_mapping:_&:' -i docs/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + sphinx-build docs html || die + fi +} + +python_test() { + # Tests raise ImportErrors with our default PYTHONPATH. + local -x PYTHONPATH= + nosetests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( html/. ) + distutils-r1_python_install_all +} |