summaryrefslogtreecommitdiff
path: root/dev-python/bottle
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/bottle
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/bottle')
-rw-r--r--dev-python/bottle/Manifest8
-rw-r--r--dev-python/bottle/bottle-0.12.12.ebuild47
-rw-r--r--dev-python/bottle/bottle-0.12.13.ebuild47
-rw-r--r--dev-python/bottle/files/bottle-0.12.8-py3.5-backport.patch36
-rw-r--r--dev-python/bottle/metadata.xml11
5 files changed, 149 insertions, 0 deletions
diff --git a/dev-python/bottle/Manifest b/dev-python/bottle/Manifest
new file mode 100644
index 000000000000..a2d790f65368
--- /dev/null
+++ b/dev-python/bottle/Manifest
@@ -0,0 +1,8 @@
+AUX bottle-0.12.8-py3.5-backport.patch 1720 SHA256 6555279b83b8dae80b38fc0c45549c1dc8e2fb367a7f6efc8e6b6dde99dd2bc8 SHA512 10f8b95d77d35db582be9bb937ca0c52050c22faa191f373b34039c6ddec24a8e71ce26f6bc9c3f3af7973670343b2f3131c02ed626e3d161a636f8c9e4cdd2b WHIRLPOOL 42ce896786b4f16736fc0e0ae96a7cd5a4b7ea86c5257f6bbcee1db7051d60aacb8f735e4472a1192f8b4fbf75b23f477e42187cbb252b9180296e0c68b876a8
+DIST bottle-0.12.12.tar.gz 71554 SHA256 3d4b6b0e22f67b421c273105b30d9a21fd147eaf0c1576172378ee034fbf5313 SHA512 cdba3859129680f08b8c641708fd884ccf46d404786cbf48435d752fece998a446f49799e4e05e979b967843866f3e966a35a6cac7aed3270df55fae508bae31 WHIRLPOOL 68bd9399c55409139bd93b588240a3569ff9773b30949d86b5a9bba7882dd6d824cb22883c922f3f910764c9655e0e91fb40b3c9675790a67e1b6330122ab741
+DIST bottle-0.12.13.tar.gz 70870 SHA256 39b751aee0b167be8dffb63ca81b735bbf1dd0905b3bc42761efedee8f123355 SHA512 86d106eb08e0b736a85aa69871f2d1e23c1d6f71948b85718daf131002c53c000e092ffdfe5b36c60460473467a2ca2b5af19767344689ffe638245e6859a80b WHIRLPOOL 4193ca33071e0d87a430f24bf2adaf2a0b02bb576bba4483ce6ef848f91a0202d028f8982e60d3c8946abdc2230ddf63a737346e006b8880c0c5a436b67bb01a
+EBUILD bottle-0.12.12.ebuild 1398 SHA256 12856a543a7af1467d241a991850e5c1ce8400abee806d3165c92a5af078cf9c SHA512 2f188388a75f910aa83e6ca4f92629bf5dad50fc5c6354fbfb925e237345423a277d912fd72470e32ecd3bfe890b051410a637c2eb99c9e5e901a43b95c5ea61 WHIRLPOOL 3c4df50395837bc71c0093409967534c96ba19ac422d804373e66853f50380dbb34c35a691167fa00c3cff8150df50ee9486cc361afabc0ae4d9897135e7417f
+EBUILD bottle-0.12.13.ebuild 1407 SHA256 daa31ee8d03930633c055d0f01e720f77fd59f1ade8861265a8b91b104bd093a SHA512 62fcec603a3d971dcaff9fb0def085f714481f66bef950a0db8c4fcf1a53d5c309af4f7d304542a314949aafe172b7cec6eea649adfbae8ad7a97269f7082731 WHIRLPOOL 871002825906ac25a5941ea915ef9c8e8acee1ceb8deb0a3b36570dfc750966905d73d90bf5e27c967c3c4670602581304ed6dbde8044c3d582c2b73f65f421f
+MISC ChangeLog 3544 SHA256 c812c1d2cd73c2dd37e451531be581b7d7fdd93752d5d361db7e53d9530936cf SHA512 b8aa16dd1b7728fcf8f99ed01cadc28c43c8438c4cc5dd37e81133b5866a572cb88b5f7a45aeafa1137dc425064494001ddfcc76ed95182d7eebddfa2b024cde WHIRLPOOL 7aef496b34adfc61c8d6dcc8d85e362d39b121a4205f8a1f48f04f06925bd5fff4f5ae48761b53e2e1c040a02ca7effd4a38480677e76297b61ae0f28dcb8f87
+MISC ChangeLog-2015 6764 SHA256 a7db6ab906b1c1eab6ed4a5e68661f0c7cb392efd580b7cb1437ddf985851695 SHA512 2091f57661d7fde150e89539beb0ee4a07270ae2ebc224a2411f99f7074deed8a9d8a40bd5397dabfd14611d5897015f584ecfc0ebf1006a9090d7beacd5d208 WHIRLPOOL ab95985e3d917b91eec50acea3997b949f5b1eb1c79ab98fb52c49fbf8cc156872c069801937d665315a003e608b5be2bec38a51adce73125f28f8e39f12814a
+MISC metadata.xml 319 SHA256 c68401be807c9c0b76131bd67a9e63009d04faa20d3311e43315ed1684353b70 SHA512 2ff50f032ea6042a32a7d391906ff95d00115367770423874aa6ee638b1db03fc0b7fabc484e1ecc002eff1e5abf5d45075463b76b7d512535d4820c46b56251 WHIRLPOOL 186df464fcb578f2fdb8ca9e9dae71fb30b5ce43283c25a1fc83c2b494fd713db8e3887f28c38f264b72a31f01d3a5c2b7405ec54bd93b15258c8d22c29b223a
diff --git a/dev-python/bottle/bottle-0.12.12.ebuild b/dev-python/bottle/bottle-0.12.12.ebuild
new file mode 100644
index 000000000000..fb49855fb507
--- /dev/null
+++ b/dev-python/bottle/bottle-0.12.12.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="A fast and simple micro-framework for small web-applications"
+HOMEPAGE="https://pypi.python.org/pypi/bottle http://bottlepy.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
+IUSE="test"
+
+DEPEND="test? ( dev-python/mako[$(python_gen_usedep 'python*')] )"
+RDEPEND=""
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.12.8-py3.5-backport.patch
+)
+
+python_prepare_all() {
+ sed -i -e '/scripts/d' setup.py || die
+
+ # Remove test file requring connection to network
+ rm test/test_server.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ # A few odd fails in the suite under pypy
+ # https://github.com/bottlepy/bottle/issues/714
+ "${PYTHON}" test/testall.py || die "tests failed under ${EPYTHON}"
+}
+
+pkg_postinst() {
+ optfeature "Templating support" dev-python/mako
+ elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)"
+ elog "we do as most other distros and do not install the script anymore."
+ elog "If you do want/have to call it directly rather than through your app,"
+ elog "please use the following instead:"
+ elog ' `python -m bottle`'
+}
diff --git a/dev-python/bottle/bottle-0.12.13.ebuild b/dev-python/bottle/bottle-0.12.13.ebuild
new file mode 100644
index 000000000000..9c67c5945c15
--- /dev/null
+++ b/dev-python/bottle/bottle-0.12.13.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="A fast and simple micro-framework for small web-applications"
+HOMEPAGE="https://pypi.python.org/pypi/bottle http://bottlepy.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="test"
+
+DEPEND="test? ( dev-python/mako[$(python_gen_usedep 'python*')] )"
+RDEPEND=""
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.12.8-py3.5-backport.patch
+)
+
+python_prepare_all() {
+ sed -i -e '/scripts/d' setup.py || die
+
+ # Remove test file requring connection to network
+ rm test/test_server.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ # A few odd fails in the suite under pypy
+ # https://github.com/bottlepy/bottle/issues/714
+ "${PYTHON}" test/testall.py || die "tests failed under ${EPYTHON}"
+}
+
+pkg_postinst() {
+ optfeature "Templating support" dev-python/mako
+ elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)"
+ elog "we do as most other distros and do not install the script anymore."
+ elog "If you do want/have to call it directly rather than through your app,"
+ elog "please use the following instead:"
+ elog ' `python -m bottle`'
+}
diff --git a/dev-python/bottle/files/bottle-0.12.8-py3.5-backport.patch b/dev-python/bottle/files/bottle-0.12.8-py3.5-backport.patch
new file mode 100644
index 000000000000..86e1ac04bc41
--- /dev/null
+++ b/dev-python/bottle/files/bottle-0.12.8-py3.5-backport.patch
@@ -0,0 +1,36 @@
+ test/test_environ.py | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/test/test_environ.py b/test/test_environ.py
+old mode 100755
+new mode 100644
+index 2b8079b..2feebe3
+--- a/test/test_environ.py
++++ b/test/test_environ.py
+@@ -592,7 +592,7 @@ class TestResponse(unittest.TestCase):
+ r.set_cookie('name2', 'value', max_age=datetime.timedelta(days=1))
+ cookies = sorted([value for name, value in r.headerlist
+ if name.title() == 'Set-Cookie'])
+- self.assertEqual(cookies[0], 'name1=value; Max-Age=5')
++ self.assertEqual(cookies[0].lower(), 'name1=value; max-age=5')
+ self.assertEqual(cookies[1], 'name2=value; Max-Age=86400')
+
+ def test_set_cookie_expires(self):
+@@ -602,7 +602,7 @@ class TestResponse(unittest.TestCase):
+ r.set_cookie('name2', 'value', expires=datetime.datetime(1970,1,1,0,0,43))
+ cookies = sorted([value for name, value in r.headerlist
+ if name.title() == 'Set-Cookie'])
+- self.assertEqual(cookies[0], 'name1=value; expires=Thu, 01 Jan 1970 00:00:42 GMT')
++ self.assertEqual(cookies[0].lower(), 'name1=value; expires=thu, 01 jan 1970 00:00:42 gmt')
+ self.assertEqual(cookies[1], 'name2=value; expires=Thu, 01 Jan 1970 00:00:43 GMT')
+
+ def test_delete_cookie(self):
+@@ -611,7 +611,7 @@ class TestResponse(unittest.TestCase):
+ response.delete_cookie('name')
+ cookies = [value for name, value in response.headerlist
+ if name.title() == 'Set-Cookie']
+- self.assertTrue('name=;' in cookies[0])
++ self.assertTrue('Max-Age=-1' in cookies[0])
+
+ def test_set_header(self):
+ response = BaseResponse()
diff --git a/dev-python/bottle/metadata.xml b/dev-python/bottle/metadata.xml
new file mode 100644
index 000000000000..0701f0aad2af
--- /dev/null
+++ b/dev-python/bottle/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="pypi">bottle</remote-id>
+ </upstream>
+</pkgmetadata>