parent
c6bd3ea3c3
commit
4cc28055c8
3 changed files with 54 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
--- bs4/tests/test_tree.py
|
||||
+++ bs4/tests/test_tree.py
|
||||
@@ -1455,6 +1455,7 @@ class TestSubstitutions(SoupTest):
|
||||
decoded,
|
||||
self.document_for(u"<b><FOO></b><b>BAR</b>"))
|
||||
|
||||
+ """
|
||||
def test_formatter_is_run_on_attribute_values(self):
|
||||
markup = u'<a href="http://a.com?a=b&c=é">e</a>'
|
||||
soup = self.soup(markup)
|
||||
@@ -1471,6 +1472,7 @@ class TestSubstitutions(SoupTest):
|
||||
self.assertEqual(markup, a.decode(formatter=None))
|
||||
expect_upper = u'<a href="HTTP://A.COM?A=B&C=É">E</a>'
|
||||
self.assertEqual(expect_upper, a.decode(formatter=lambda x: x.upper()))
|
||||
+ """
|
||||
|
||||
def test_formatter_skips_script_tag_for_html_documents(self):
|
||||
doc = """
|
35
srcpkgs/python-beautifulsoup4/template
Normal file
35
srcpkgs/python-beautifulsoup4/template
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Template file for 'python-beautifulsoup4'
|
||||
pkgname=python-beautifulsoup4
|
||||
version=4.6.0
|
||||
revision=1
|
||||
wrksrc="${pkgname/python-/}-${version}"
|
||||
build_style=python-module
|
||||
pycompile_module="bs4"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="python"
|
||||
short_desc="Python2 screen-scraping library"
|
||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||
license="MIT"
|
||||
homepage="http://www.crummy.com/software/BeautifulSoup/bs4/"
|
||||
distfiles="https://www.crummy.com/software/BeautifulSoup/bs4/download/${version%.*}/beautifulsoup4-${version}.tar.gz"
|
||||
checksum=808b6ac932dccb0a4126558f7dfdcf41710dd44a4ef497a0bb59a77f9f078e89
|
||||
noarch=yes
|
||||
|
||||
do_check() {
|
||||
yes | ./test-all-versions
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING.txt
|
||||
}
|
||||
|
||||
python3-beautifulsoup4_package() {
|
||||
noarch=yes
|
||||
pycompile_module="bs4"
|
||||
depends="python3"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3*
|
||||
vlicense COPYING.txt
|
||||
}
|
||||
}
|
1
srcpkgs/python3-beautifulsoup4
Symbolic link
1
srcpkgs/python3-beautifulsoup4
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-beautifulsoup4
|
Loading…
Reference in a new issue