diff options
Diffstat (limited to 'dev-python/paste')
-rw-r--r-- | dev-python/paste/Manifest | 7 | ||||
-rw-r--r-- | dev-python/paste/files/paste-2.0.3-unbundle-tempita.patch | 36 | ||||
-rw-r--r-- | dev-python/paste/metadata.xml | 20 | ||||
-rw-r--r-- | dev-python/paste/paste-2.0.3-r1.ebuild | 73 | ||||
-rw-r--r-- | dev-python/paste/paste-2.0.3.ebuild | 71 |
5 files changed, 207 insertions, 0 deletions
diff --git a/dev-python/paste/Manifest b/dev-python/paste/Manifest new file mode 100644 index 000000000000..595e0bd4071a --- /dev/null +++ b/dev-python/paste/Manifest @@ -0,0 +1,7 @@ +AUX paste-2.0.3-unbundle-tempita.patch 1260 SHA256 7420cd9a9f34d73200b69451d6a3b6c11be2b77eb475a79f02b7d5542bfc8c57 SHA512 f21894596c81d984bd7820876e7dfc614728beba107294fecbab084ae1e023428d4d86bde31e428c2f0aa78647636d19f476129ff319dd2c90052218cf428c98 WHIRLPOOL 8da25704d482469e0c22b4cfd5211ef9dea0ec64e914fe807b798a6ee237e97367e75e4d8bd03d57fa344177bad56c92c52c3ff2496172a9c6032eb5e99bdd64 +DIST Paste-2.0.3.tar.gz 643935 SHA256 2346a347824c32641bf020c17967b49ae74d3310ec1bc9b958d4b84e2d985218 SHA512 174b06d77bc6e1d4079e8de7df40412ffda098364efd4e3f915f858be1188c8a6fb546fe4ab981ccc067ec77b7171083b2469e7db6fc3b777d5a24151c928362 WHIRLPOOL 0aa15c2c6ffdbf965f3763d296e28c75337d9e582ad8623d70a9a4df572457247d583682b7ecddc5206b1a997f22e4f46f68b013a1ca646b0d6d08559ac1447e +EBUILD paste-2.0.3-r1.ebuild 1872 SHA256 3a9f274cf3e47c403872ddb7b77125bad503d405117952aa8e2a8260343ced4a SHA512 cdc63f9e497b9434e7b0d62adaaf92b3ad8da6a93acbef85f858e4e1383e81b5c0101261af7dba7902091014c7104d0e973783dcfbbaec72aa2f06c2af229fd3 WHIRLPOOL a9d11809ffc9bc5ebc316574c52635e3ba11b8c72bf9ab589fcae65e738dc3e2c78d277aa661988fadb4ea371a686ff8cde9ffa37065491b9c465dba2c4e0289 +EBUILD paste-2.0.3.ebuild 1783 SHA256 48a085c078c8f63d091ae8a8902faec100041b3ed1312f31699280db4f7e2c09 SHA512 8beb71282d2c3ea118fd86e380a98dd85f8a50aa8d947b742dfcbfd891a669cdfdba56490c92eb02a4343cb282da37df9d0bffe4f85c3714d5ab0810119d02a2 WHIRLPOOL bc9320864ae7f28d972e0b5f0e3418a5a85ba072725fee45871e0a66f2e5a6dd64770cb4aca9965b85bee3f7dd474b4823cf39e255c8c17342baf5d3216db546 +MISC ChangeLog 4068 SHA256 6049ef4d01843bb617ce6db9f539e29fb1d3bb72ae87dc7eb8eb487a3f13ea25 SHA512 3732e33a835ebe771f8a70d726520efb8d85ba894b72ce9a46e24e5c69f4880830f02010eed331d06808b611eced64d6e26a7ecf4fefa5b3fc035e96a7ed5fb2 WHIRLPOOL 7ada9354a91a1c30183542eacda4b77fe2e57b360e28d3651ab29368a3364fa0014f3bd8f4e7f68a85aac576dec9eebec868f5199e5f03981a5fea7f19084f8c +MISC ChangeLog-2015 4923 SHA256 605bb235d4f2f08d774e664f44ec59f05ce103f9e5308c9c2a7ae15222deba40 SHA512 c8db1159751d0fa5b3522fe5f0ee50d89bb28de02a0392a240ed161fb221b26b167321e371c99e314c2200184f597639dc39ac5018b8751bf173e548497c358f WHIRLPOOL 864d51f7136749cbaf1a17f117c3bbf8c69cc676ef1dee56a5b31fc8898a2acce44d138d4248be84a43eb6ec07d11bedc4c598e0afc0ef8e889875514a16c74c +MISC metadata.xml 778 SHA256 bdbae4f213108ae60ce9f8f90ceb43f4bea8323155e90f5af7107fff3f2a12c0 SHA512 86b244a3dd365e74dfc12dfc283809840352cbe210b34c34ffda1929db29362d1e02b246920d8461cde70b087020d15cecd3ec5cfe0f168fb69fa45cdb66015a WHIRLPOOL 56a5da700b8b6e4ce0f155f2a863227e614bb94ced351f6f7ca47d12e4782b949d259b1c3f30eec9a127888ea95bfc44c1ad95ab063c25ba12cf5642b4bcaa8f diff --git a/dev-python/paste/files/paste-2.0.3-unbundle-tempita.patch b/dev-python/paste/files/paste-2.0.3-unbundle-tempita.patch new file mode 100644 index 000000000000..eef7abb4108e --- /dev/null +++ b/dev-python/paste/files/paste-2.0.3-unbundle-tempita.patch @@ -0,0 +1,36 @@ + paste/util/looper/__init__.py | 4 ++++ + paste/util/{looper.py => looper/_looper.py} | 0 + paste/util/template/__init__.py | 6 ++++++ + paste/util/{template.py => template/_template.py} | 0 + 4 files changed, 10 insertions(+) + +diff --git a/paste/util/looper/__init__.py b/paste/util/looper/__init__.py +new file mode 100644 +index 0000000..77d7e80 +--- /dev/null ++++ b/paste/util/looper/__init__.py +@@ -0,0 +1,4 @@ ++try: ++ from tempita._looper import * ++except ImportError: ++ from _looper import * +diff --git a/paste/util/looper.py b/paste/util/looper/_looper.py +similarity index 100% +rename from paste/util/looper.py +rename to paste/util/looper/_looper.py +diff --git a/paste/util/template/__init__.py b/paste/util/template/__init__.py +new file mode 100644 +index 0000000..a0a5730 +--- /dev/null ++++ b/paste/util/template/__init__.py +@@ -0,0 +1,6 @@ ++try: ++ from tempita import * ++ from tempita import paste_script_template_renderer ++except ImportError: ++ from _template import * ++ from _template import paste_script_template_renderer +diff --git a/paste/util/template.py b/paste/util/template/_template.py +similarity index 100% +rename from paste/util/template.py +rename to paste/util/template/_template.py diff --git a/dev-python/paste/metadata.xml b/dev-python/paste/metadata.xml new file mode 100644 index 000000000000..0d00d7f04c00 --- /dev/null +++ b/dev-python/paste/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 type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <use> + <flag name="flup">enable support for flup (and therefore for various + wgsi servers and middleware)</flag> + <flag name="openid">enable OpenID support</flag> + </use> + <longdescription lang="en">This package provides several pieces of "middleware" (or filters) that can + be nested to build web applications. Each piece of middleware uses the WSGI + (PEP 333) interface, and should be compatible with other middleware based on + those interfaces.</longdescription> + <upstream> + <remote-id type="pypi">Paste</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/paste/paste-2.0.3-r1.ebuild b/dev-python/paste/paste-2.0.3-r1.ebuild new file mode 100644 index 000000000000..743362b034d6 --- /dev/null +++ b/dev-python/paste/paste-2.0.3-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +MY_PN="Paste" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Tools for using a Web Server Gateway Interface stack" +HOMEPAGE="http://pythonpaste.org https://pypi.python.org/pypi/Paste" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris" +IUSE="doc flup openid" + +RDEPEND="dev-python/namespace-paste[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/tempita-0.5.2_pre20130828[${PYTHON_USEDEP}] + flup? ( dev-python/flup[$(python_gen_usedep 'python2*')] ) + openid? ( dev-python/python-openid[$(python_gen_usedep 'python2*')] )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +python_prepare_all() { + # Disable failing tests. + rm -f tests/test_cgiapp.py || die + sed \ + -e "s/test_find_file/_&/" \ + -e "s/test_deep/_&/" \ + -e "s/test_static_parser/_&/" \ + -i tests/test_urlparser.py || die "sed failed" + + # Remove a test that runs against the paste website. + rm -f tests/test_proxy.py || die + + local PATCHES=( + "${FILESDIR}"/${P}-unbundle-tempita.patch + ) + + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile egg_info --egg-base "${BUILD_DIR}/lib" +} + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +python_test() { + nosetests -P -v || die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install egg_info --egg-base "${BUILD_DIR}/lib" +} + +python_install_all() { + use doc && local HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + distutils-r1_python_install_all + + find "${D}" -name '*.pth' -delete || die +} diff --git a/dev-python/paste/paste-2.0.3.ebuild b/dev-python/paste/paste-2.0.3.ebuild new file mode 100644 index 000000000000..a41dcdc1d171 --- /dev/null +++ b/dev-python/paste/paste-2.0.3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit distutils-r1 + +MY_PN="Paste" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Tools for using a Web Server Gateway Interface stack" +HOMEPAGE="http://pythonpaste.org https://pypi.python.org/pypi/Paste" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris" +IUSE="doc flup openid" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/tempita-0.5.2_pre20130828[${PYTHON_USEDEP}] + flup? ( dev-python/flup[$(python_gen_usedep 'python2*')] ) + openid? ( dev-python/python-openid[$(python_gen_usedep 'python2*')] )" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +python_prepare_all() { + # Disable failing tests. + rm -f tests/test_cgiapp.py || die + sed \ + -e "s/test_find_file/_&/" \ + -e "s/test_deep/_&/" \ + -e "s/test_static_parser/_&/" \ + -i tests/test_urlparser.py || die "sed failed" + + # Remove a test that runs against the paste website. + rm -f tests/test_proxy.py || die + + local PATCHES=( + "${FILESDIR}"/${P}-unbundle-tempita.patch + ) + + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile egg_info --egg-base "${BUILD_DIR}/lib" +} + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +python_test() { + nosetests -P -v || die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install egg_info --egg-base "${BUILD_DIR}/lib" +} + +python_install_all() { + use doc && local HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + distutils-r1_python_install_all +} |