summaryrefslogtreecommitdiff
path: root/dev-python/paste
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/paste')
-rw-r--r--dev-python/paste/Manifest3
-rw-r--r--dev-python/paste/files/paste-2.0.3-unbundle-tempita.patch36
-rw-r--r--dev-python/paste/paste-3.4.0.ebuild42
3 files changed, 44 insertions, 37 deletions
diff --git a/dev-python/paste/Manifest b/dev-python/paste/Manifest
index cd38350253e4..d08de5b704f8 100644
--- a/dev-python/paste/Manifest
+++ b/dev-python/paste/Manifest
@@ -1,4 +1,5 @@
-AUX paste-2.0.3-unbundle-tempita.patch 1260 BLAKE2B eee8a9ede07730cc6af7de910a0298bfac23f6d2b31467101375720782920d878716bf91a031ba651e00a61f3a7201708e94ecd8b78f1bd6a52c50ef2826f8d5 SHA512 f21894596c81d984bd7820876e7dfc614728beba107294fecbab084ae1e023428d4d86bde31e428c2f0aa78647636d19f476129ff319dd2c90052218cf428c98
DIST Paste-3.2.3.tar.gz 628900 BLAKE2B 3f6bc741a716f33b82fa3bf8e1ab6ba3c17a56ebf3f90ccce0c1a925f982a2a0b460f433e15045321bb4b7c22c6fe9238cf6c7c76b78dc86d414729b67f0791e SHA512 8775a4c6b1863355a2acb3b88258e342db768942ccf28edc8654d7a1a15c5a036f4f8c5c9d917d51e74c9260170234f9c499cefd709b0fbd39ffd4d1b7afcb79
+DIST Paste-3.4.0.tar.gz 630425 BLAKE2B a361450597e8dce1d9cb99ce2a723cb8feb08909975662e1fbe8b353c20900ac5d994e8373ea4db42776aee1901f51363f8338ba4e3c35462f3c3917161a02ef SHA512 fbe0d1f39d8147846b3a30f18e6776c31eb5bcd8f461c0bf7afc35533c65c2ddf74263807be1b73b76c49cd6cc73c210a37ca651ef1f34e727ccf0687478085a
EBUILD paste-3.2.3.ebuild 1746 BLAKE2B 21bc0c5925223b5f3a46166f048b061e7f69dfed80e540f5adf3103bb3cac0cc6b0c767088f7b984a985a46081fb6499de86b3252fdbe162ce60fc8cec6b81c3 SHA512 965981d5831e50d140e2783aa17d1b8be51d6e90d1dc88210f6b1f70f66fb6bb33fb37e71b87fae377e9c999fc5a321b0cb03aea6d6391941e7c722901f7f7f0
+EBUILD paste-3.4.0.ebuild 1113 BLAKE2B b5c4e17c21b8ddce564d868f7f372b82b847ffd20987e52ced41e69d8a354cff0fa3989f3c292c83c3e023553afe4f24d7f5c3e0bacacee255b7727934053fa8 SHA512 3b9ab839d8a7c5a09c3ed81b5807619885265008ec853652ed1c9363c671966a1ff9116d0880e365a890954201623691b7f4c56100610fc25f2b07c4f93c9bb1
MISC metadata.xml 802 BLAKE2B cb355da6c4b803a1777a5fdffe5c262d65d8580a0ac902a79ff3f631037ec16a8865969e5a9ea663c97960e5e52370a438b700148c9813bcb535c8385f588fb1 SHA512 44f4ded1a14298d020ca255a48d26d63cd2c1915e537c45718f630710caaa00453059bfe0f615bf3217db7d2b81fcbd419fc67e8b56ce6096c5844d53c6ab94c
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
deleted file mode 100644
index eef7abb4108e..000000000000
--- a/dev-python/paste/files/paste-2.0.3-unbundle-tempita.patch
+++ /dev/null
@@ -1,36 +0,0 @@
- 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/paste-3.4.0.ebuild b/dev-python/paste/paste-3.4.0.ebuild
new file mode 100644
index 000000000000..a86c3a7bb14d
--- /dev/null
+++ b/dev-python/paste/paste-3.4.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 )
+
+inherit distutils-r1
+
+MY_P="Paste-${PV}"
+DESCRIPTION="Tools for using a Web Server Gateway Interface stack"
+HOMEPAGE="https://pypi.org/project/Paste/"
+SRC_URI="mirror://pypi/${MY_P::1}/${PN^}/${MY_P}.tar.gz"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris"
+
+RDEPEND="dev-python/namespace-paste[${PYTHON_USEDEP}]
+ >=dev-python/six-1.4.0[${PYTHON_USEDEP}]"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs
+
+python_prepare_all() {
+ # TODO: 'Address already in use'
+ sed -e 's:test_address_family_v4:_&:' \
+ -i tests/test_httpserver.py || die
+
+ # Remove a test that runs against the paste website.
+ rm -f tests/test_proxy.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ find "${D}" -name '*.pth' -delete || die
+}