diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | debian/.gitignore | 9 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 66 | ||||
-rw-r--r-- | debian/copyright | 40 | ||||
-rw-r--r-- | debian/docs | 1 | ||||
-rw-r--r-- | debian/patches/intersphinx_mapping.patch | 17 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rw-r--r-- | debian/python-tinycss.install | 1 | ||||
-rw-r--r-- | debian/python3-tinycss.install | 1 | ||||
-rwxr-xr-x | debian/rules | 63 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/tinycss-doc.doc-base | 9 | ||||
-rw-r--r-- | debian/tinycss-doc.docs | 1 | ||||
-rw-r--r-- | debian/watch | 3 |
16 files changed, 223 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70af57f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!*/ +!debian/* diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..1e3f624 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,9 @@ +!.gitignore +!* +files +*.debhelper.log +*.substvars +tmp/ +python-tinycss/ +python3-tinycss/ +tinycss-doc/ diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ace9e26 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +tinycss (0.3-1) unstable; urgency=low + + * Initial release + + -- "P. J. McDermott" <pj@pehjota.net> Tue, 29 Oct 2013 14:40:06 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3161638 --- /dev/null +++ b/debian/control @@ -0,0 +1,66 @@ +Source: tinycss +Section: python +Priority: optional +Maintainer: "P. J. McDermott" <pj@pehjota.net> +Build-Depends: debhelper (>= 9), +# Needed to build Python 2 modules: + python-all (>= 2.6.6-3~), + python-setuptools, +# Needed to build Python 3 modules: + python3-all (>= 3.1.2-7~), + python3-setuptools, +# Needed to build tinycss.speedups Cython extension: + python-dev, + python3-dev, +# Needed to build documenation: + python-sphinx, +Standards-Version: 3.9.4 +Homepage: http://pythonhosted.org/tinycss/ +X-Python-Version: >= 2.6 +X-Python3-Version: >= 3.1 + +Package: python-tinycss +Architecture: any +Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}, +Description: Complete yet simple CSS parser for Python (Python 2) + tinycss is a complete yet simple CSS parser for Python. It supports the full + syntax and error handling for CSS 2.1 as well as some CSS 3 modules: + . + * CSS Color 3 + * CSS Paged Media 3 + . + It is designed to be easy to extend for new CSS modules and syntax, and + integrates well with cssselect for Selectors 3 support. + . + This package provides the Python 2 modules for the tinycss CSS parser. + +Package: python3-tinycss +Architecture: any +Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}, +Description: Complete yet simple CSS parser for Python (Python 3) + tinycss is a complete yet simple CSS parser for Python. It supports the full + syntax and error handling for CSS 2.1 as well as some CSS 3 modules: + . + * CSS Color 3 + * CSS Paged Media 3 + . + It is designed to be easy to extend for new CSS modules and syntax, and + integrates well with cssselect for Selectors 3 support. + . + This package provides the Python 3 modules for the tinycss CSS parser. + +Package: tinycss-doc +Section: doc +Architecture: all +Depends: ${misc:Depends}, ${sphinxdoc:Depends}, +Description: Rendering engine to convert HTML/CSS to PDF - documentation + tinycss is a complete yet simple CSS parser for Python. It supports the full + syntax and error handling for CSS 2.1 as well as some CSS 3 modules: + . + * CSS Color 3 + * CSS Paged Media 3 + . + It is designed to be easy to extend for new CSS modules and syntax, and + integrates well with cssselect for Selectors 3 support. + . + This package provides the documentation for the tinycss CSS parser. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b611d64 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,40 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: tinycss +Source: https://pypi.python.org/pypi/tinycss + +Files: * +Copyright: 2012 Simon Sapin +License: BSD-3-Clause + +Files: debian/* +Copyright: 2013 Patrick "P. J." McDermott <pj@pehjota.net> +License: BSD-3-Clause + +License: BSD-3-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + . + * The names of the contributors may not be used to endorse or + promote products derived from this software without specific + prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..a1320b1 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.rst diff --git a/debian/patches/intersphinx_mapping.patch b/debian/patches/intersphinx_mapping.patch new file mode 100644 index 0000000..708fee8 --- /dev/null +++ b/debian/patches/intersphinx_mapping.patch @@ -0,0 +1,17 @@ +Author: "P. J. McDermott" <pj@pehjota.net> +Forwarded: not-needed +Subject: Use non-None object inventory values in intersphinx_mapping + +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -249,4 +249,9 @@ + + + # Example configuration for intersphinx: refer to the Python standard library. +-intersphinx_mapping = {'http://docs.python.org/': None} ++intersphinx_mapping = { ++ 'http://docs.python.org/': ++ '/usr/share/doc/python' + ++ '.'.join([str(x) for x in sys.version_info[0:2]]) + ++ '/html/objects.inv', ++} diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..cc13fa9 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +intersphinx_mapping.patch diff --git a/debian/python-tinycss.install b/debian/python-tinycss.install new file mode 100644 index 0000000..0105c59 --- /dev/null +++ b/debian/python-tinycss.install @@ -0,0 +1 @@ +usr/lib/python2.*/ diff --git a/debian/python3-tinycss.install b/debian/python3-tinycss.install new file mode 100644 index 0000000..eae3930 --- /dev/null +++ b/debian/python3-tinycss.install @@ -0,0 +1 @@ +usr/lib/python3/ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..dd4e3d9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,63 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ --with python2,python3,sphinxdoc + +override_dh_auto_build: + set -ex; for python in $$(py3versions -r); do \ + $$python setup.py build; \ + done + dh_auto_build + +override_dh_auto_install: + set -ex; for python in $$(py3versions -r); do \ + $$python setup.py install --root=$$(pwd)/debian/tmp \ + --install-layout=deb; \ + done + dh_auto_install + +override_dh_installdocs: + python setup.py build_sphinx + dh_installdocs + +override_dh_compress: + dh_compress -X.rst + +override_dh_auto_clean: + dh_auto_clean + rm -Rf build/ docs/_build/ + +get-orig-source: + uscan --noconf --verbose --rename --force-download \ + --download-current-version + +unpack-orig-source: get-orig-source + # Remove currently unpacked source. + for f in * .[!.] .??*; do \ + if [ -e $${f} ] && [ $${f} != debian ] && \ + [ $${f} != .gitignore ]; then \ + rm -Rf $${f}; \ + fi; \ + done + # Unpack source archive. + set -e; \ + source=$$(dpkg-parsechangelog | sed -n 's/^Source: //p'); \ + version=$$(dpkg-parsechangelog | \ + sed -n 's/^Version: \([^-]*\).*$$/\1/p'); \ + tar -xzf ../$${source}_$${version}.orig.tar.gz + # Find directory containing unpacked source files. Move source files + # into the top-level directory. + set -e; \ + for f in */ .[!.]/ .??*/; do \ + if [ -d $${f} ] && [ $${f} != debian ]; then \ + for ff in $${f}/* $${f}/.[!.] $${f}/.??*; do \ + if [ -e $${ff} ]; then \ + mv $${ff} .; \ + fi; \ + done; \ + rmdir $${f}/; \ + fi; \ + done 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/tinycss-doc.doc-base b/debian/tinycss-doc.doc-base new file mode 100644 index 0000000..01240fd --- /dev/null +++ b/debian/tinycss-doc.doc-base @@ -0,0 +1,9 @@ +Document: tinycss +Title: tinycss manual +Author: Simon Sapin +Abstract: tinycss is a complete yet simple CSS parser for Python. +Section: Text + +Format: HTML +Index: /usr/share/doc/tinycss-doc/html/index.html +Files: /usr/share/doc/tinycss-doc/html/*.html diff --git a/debian/tinycss-doc.docs b/debian/tinycss-doc.docs new file mode 100644 index 0000000..dd2636a --- /dev/null +++ b/debian/tinycss-doc.docs @@ -0,0 +1 @@ +docs/_build/html/ diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..9733ea4 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 + +https://pypi.python.org/packages/source/t/tinycss/tinycss-(.*)\.tar\.gz |