diff options
-rw-r--r-- | debian/changelog | 30 | ||||
-rw-r--r-- | debian/clean | 1 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 89 | ||||
-rw-r--r-- | debian/copyright | 27 | ||||
-rw-r--r-- | debian/pydist-overrides | 1 | ||||
-rw-r--r-- | debian/python-bleach-doc.doc-base | 22 | ||||
-rw-r--r-- | debian/python-bleach-doc.docs | 1 | ||||
-rw-r--r-- | debian/python-bleach-doc.links | 1 | ||||
-rw-r--r-- | debian/python-bleach.docs | 2 | ||||
l--------- | debian/python3-bleach.docs | 1 | ||||
-rwxr-xr-x | debian/rules | 14 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/source/local-options | 1 | ||||
-rw-r--r-- | debian/source/options | 1 | ||||
-rw-r--r-- | debian/watch | 2 |
16 files changed, 195 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b9d2d77 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,30 @@ +python-bleach (1.4-2) UNRELEASED; urgency=low + + * Bump debhelper compat level to 8, since this is required in Build-Depends. + * Add extend-diff-ignore for egg.info in debian/source/options. + * d/watch: Use github.com, githubredir is deprecated. + + -- Per Andersson <avtobiff@gmail.com> Sun, 16 Feb 2014 00:42:41 +0100 + +python-bleach (1.4-1) unstable; urgency=low + + * New upstream release + - License changed to Apache License 2.0 + - Add python*-six to Build-Dependends + * Shipping both python2 and python3 packages + - Add python3-html5lib to Build-Dependends + * Running tests during build + - Add python*-nose Build-Dependends + * Packaging license changed to Apache License 2.0 + * Bumped Standards-Version to 3.9.5, no changes needed + * Add common doc package + - Binary packages suggests this package + - Add python*-sphinx to Build-Depends + + -- Per Andersson <avtobiff@gmail.com> Fri, 14 Feb 2014 00:59:20 +0100 + +python-bleach (1.2.2-1) unstable; urgency=low + + * Initial release (Closes: #686902) + + -- Per Andersson <avtobiff@gmail.com> Sun, 09 Jun 2013 19:46:56 +0200 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..b8a1de3 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +bleach.egg-info/* diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b56d50a --- /dev/null +++ b/debian/control @@ -0,0 +1,89 @@ +Source: python-bleach +Section: python +Priority: optional +Maintainer: Per Andersson <avtobiff@gmail.com> +Standards-Version: 3.9.5 +Build-Depends: + debhelper (>= 8), + dh-python, + python-docutils, + python3-all, + python3-nose, + python3-setuptools, + python3-sphinx (>= 1.0.7+dfsg-1~), + python-all (>= 2.6.6-3~), + python-nose, + python-setuptools, + python-sphinx (>= 1.0.7+dfsg-1~), + python3-html5lib, + python3-six, + python-html5lib, + python-six +Homepage: http://github.com/jsocol/bleach/ +Vcs-Git: git://anonscm.debian.org/collab-maint/python-bleach.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/python-bleach.git;a=summary +X-Python-Version: >= 2.6 +X-Python3-Version: >= 3.2 + +Package: python-bleach +Architecture: all +Depends: ${misc:Depends}, ${python:Depends} +Suggests: python-bleach-doc +Description: whitelist-based HTML-sanitizing library (Python 2) + Bleach is an HTML sanitizing library that escapes or strips markup and + attributes based on a white list. Bleach can also linkify text safely, + applying filters that Django's urlize filter cannot, and optionally setting + rel attributes, even on links already in the text. + . + Bleach is intended for sanitizing text from untrusted sources. If you find + yourself jumping through hoops to allow your site administrators to do lots of + things, you're probably outside the use cases. Either trust those users, or + don't. + . + Because it relies on html5lib, Bleach is as good as modern browsers at dealing + with weird, quirky HTML fragments. And any of Bleach's methods will fix + unbalanced or mis-nested tags. + . + This is the Python 2 version of the package. + +Package: python3-bleach +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends} +Suggests: python-bleach-doc +Description: whitelist-based HTML-sanitizing library (Python 3) + Bleach is an HTML sanitizing library that escapes or strips markup and + attributes based on a white list. Bleach can also linkify text safely, + applying filters that Django's urlize filter cannot, and optionally setting + rel attributes, even on links already in the text. + . + Bleach is intended for sanitizing text from untrusted sources. If you find + yourself jumping through hoops to allow your site administrators to do lots of + things, you're probably outside the use cases. Either trust those users, or + don't. + . + Because it relies on html5lib, Bleach is as good as modern browsers at dealing + with weird, quirky HTML fragments. And any of Bleach's methods will fix + unbalanced or mis-nested tags. + . + This is the Python 3 version of the package. + +Package: python-bleach-doc +Architecture: all +Section: doc +Depends: ${misc:Depends}, ${sphinxdoc:Depends} +Description: whitelist-based HTML-sanitizing library (common documentation) + Bleach is an HTML sanitizing library that escapes or strips markup and + attributes based on a white list. Bleach can also linkify text safely, + applying filters that Django's urlize filter cannot, and optionally setting + rel attributes, even on links already in the text. + . + Bleach is intended for sanitizing text from untrusted sources. If you find + yourself jumping through hoops to allow your site administrators to do lots of + things, you're probably outside the use cases. Either trust those users, or + don't. + . + Because it relies on html5lib, Bleach is as good as modern browsers at dealing + with weird, quirky HTML fragments. And any of Bleach's methods will fix + unbalanced or mis-nested tags. + . + This is the common documentation package. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d1548fb --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Bleach +Source: http://github.com/jsocol/bleach/ + +Files: * +Copyright: 2012-2014 James Socol <james@mozilla.com> +License: Apache-2.0 + +Files: debian/* +Copyright: 2012-2014 Per Andersson <avtobiff@gmail.com> +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the full text of the Apache License version 2.0 can be + found in the file `/usr/share/common-licenses/Apache-2.0'. diff --git a/debian/pydist-overrides b/debian/pydist-overrides new file mode 100644 index 0000000..3738da5 --- /dev/null +++ b/debian/pydist-overrides @@ -0,0 +1 @@ +html5lib python-html5lib diff --git a/debian/python-bleach-doc.doc-base b/debian/python-bleach-doc.doc-base new file mode 100644 index 0000000..5f6ad8a --- /dev/null +++ b/debian/python-bleach-doc.doc-base @@ -0,0 +1,22 @@ +Document: python-bleach-doc +Title: Debian python-bleach Manual +Author: James Socol +Abstract: whitelist-based HTML-sanitizing library + Bleach is an HTML sanitizing library that escapes or strips markup and + attributes based on a white list. Bleach can also linkify text safely, + applying filters that Django's urlize filter cannot, and optionally setting + rel attributes, even on links already in the text. + . + Bleach is intended for sanitizing text from untrusted sources. If you find + yourself jumping through hoops to allow your site administrators to do lots of + things, you're probably outside the use cases. Either trust those users, or + don't. + . + Because it relies on html5lib, Bleach is as good as modern browsers at dealing + with weird, quirky HTML fragments. And any of Bleach's methods will fix + unbalanced or mis-nested tags. +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-bleach-doc/html/index.html +Files: /usr/share/doc/python-bleach-doc/html/* diff --git a/debian/python-bleach-doc.docs b/debian/python-bleach-doc.docs new file mode 100644 index 0000000..6d28621 --- /dev/null +++ b/debian/python-bleach-doc.docs @@ -0,0 +1 @@ +build/html diff --git a/debian/python-bleach-doc.links b/debian/python-bleach-doc.links new file mode 100644 index 0000000..9cb4b6c --- /dev/null +++ b/debian/python-bleach-doc.links @@ -0,0 +1 @@ +usr/share/doc/python-bleach-doc/html/_sources usr/share/doc/python-bleach-doc/rst diff --git a/debian/python-bleach.docs b/debian/python-bleach.docs new file mode 100644 index 0000000..d8eaba0 --- /dev/null +++ b/debian/python-bleach.docs @@ -0,0 +1,2 @@ +CONTRIBUTORS +README.rst diff --git a/debian/python3-bleach.docs b/debian/python3-bleach.docs new file mode 120000 index 0000000..dd4dd1a --- /dev/null +++ b/debian/python3-bleach.docs @@ -0,0 +1 @@ +python-bleach.docs
\ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..480b2cd --- /dev/null +++ b/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +#export DH_VERBOSE=1 +export PYBUILD_NAME=bleach + +%: + dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild + +override_dh_auto_build: + dh_auto_build -O--buildsystem=pybuild + PYTHONPATH=. http_proxy='localhost' sphinx-build -N -bhtml docs/ build/html + +override_dh_auto_test: + nosetests + nosetests3 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/local-options b/debian/source/local-options new file mode 100644 index 0000000..4aceb10 --- /dev/null +++ b/debian/source/local-options @@ -0,0 +1 @@ +unapply-patches diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..b2b7b88 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore="^[^/]+\.egg-info/" diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..03bb4bc --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://github.com/jsocol/bleach/tags .*/v?(\d[\d\.]+)\.tar\.gz |