Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 311479 Details for
Bug 415539
new ebuild dev-python/bottle
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ebuild
bottle-0.10.9.ebuild (text/plain), 2.19 KB, created by
Ian Delaney (RETIRED)
on 2012-05-12 05:29:11 UTC
(
hide
)
Description:
ebuild
Filename:
MIME Type:
Creator:
Ian Delaney (RETIRED)
Created:
2012-05-12 05:29:11 UTC
Size:
2.19 KB
patch
obsolete
># Copyright 1999-2012 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/dev-python/django-appconf/django-appconf-0.5.ebuild,v 1.1 2012/04/25 12:25:31 tampakrap Exp $ > >EAPI=4 >PYTHON_DEPEND="2:2.6" >SUPPORT_PYTHON_ABIS=1 >RESTRICT_PYTHON_ABIS="2.5 3.*" > >inherit distutils > >DESCRIPTION="A fast and simple micro-framework for small web-applications" >HOMEPAGE="http://pypi.python.org/pypi/bottle" >SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" >KEYWORDS="~amd64" >IUSE="doc" > >LICENSE="MIT" >SLOT="0" >PYTHON_MODNAME=bottle.py > >RDEPEND="" >DEPEND="${RDEPEND} dev-python/setuptools" > ># dev friendly commentary; 1) They set root = os.path.abspath(root) + os.sep in bottle.py ># Subsequently relative path ./views needs sed -> ${S}/test/views in test/test_jinja2.py ># 2) ZeroDivisionError is absent from whatever file is tested in the test in test/test_outputfilter.py ># Subsequently ZeroDivisionError -> Internal Server Error which is error 500 in the page. ># 3)''' The virtual module needs a valid __file__ attribute. ># If not, the Google app engine development server crashes on windows.''' ># well linux isn't windows so it's not required for 'us' and the test suite does NOT warrant being held ># to ransom over an irrelevant and trivial test. That aside, the func DOES appear to allocate __file__ attribute. ># Yet another upstream issue to file. > >src_prepare() { > sed -e "s:./views:${S}/test/views:" -i test/test_jinja2.py || return > sed -e 's:ZeroDivisionError:Internal Server Error:g' -i test/test_outputfilter.py || return > sed -e "s/ self.assertTrue/# self.assertTrue/" -i test/test_importhook.py || return >} > ># more dev friendly commentary; 1 bottle.py; many test_file.py s. ># This works for python2.7 since discovery is new && unique to it. >#src_test() { ># PYTHONPATH=.:test:$EROOT ># testing() { ># $(PYTHON) -m unittest discover test ># } ># python_execute_function testing >#} > ># This generic approach works with coverage output. nosetests pulls errors which this doesn't in the same tests. > >src_test() { > testing() { > local exit_status=0 > $(PYTHON) -d -m test/testall || exit_status=1 > return $exit_status > } > python_execute_function testing >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 415539
:
311479
|
311629
|
311631