debian/0000755000000000000000000000000012224227011007157 5ustar debian/python-cssutils.docs0000644000000000000000000000001311653402426013225 0ustar README.txt debian/changelog0000644000000000000000000002254112224222006011034 0ustar cssutils (0.9.10-1) unstable; urgency=low * New upstream release. * Removed debian/python3-cssutils.examples. Closes: #712150 * Updated debian/rules to account for upstream directory changes. * With upstream directory changes the test dir renaming is not needed so removed from debian/rules. * Reworked debian/patches/02_disable_wrong_test.patch, one test has been removed by upstream. -- Charlie Smotherman Sun, 06 Oct 2013 03:49:10 -0500 cssutils (0.9.10~b1-2) unstable; urgency=low * Team upload. [ Dmitry Shachnev ] * Use /usr/bin/nosetests3 instead of /usr/bin/nosetests-3.X (closes: #707529). * Disable two tests that currently make the package fail to build (closes: #686340). [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. -- Dmitry Shachnev Wed, 22 May 2013 22:23:03 +0400 cssutils (0.9.10~b1-1) unstable; urgency=low * New upstream release. * Updated Standards Version to 3.9.3, no changes needed. * Updated version mangling in debian/watch. * Disable test_errorhandler test in debian rules, as it needs network access. Closes: #671033 (LP: #931624) * Added rules so package honors DEB_BUILD_OPTIONS=nocheck. Closes: #671528 * Updated debian/copyright Format field to version 1.0, added missing copyright years. -- Charlie Smotherman Sun, 03 Jun 2012 05:50:25 +0500 cssutils (0.9.9-1) unstable; urgency=low * New upstream release. * Added rule to run py3 unittests. * Added rules to ignore/exclude failing unittests. Opened bug in upstreams bug tracker wrt failing unittests. (Closes: #658787) * Added rules to fix py2 and py3 shebangs in cssparse csscombine and csscapture. (Closes: #658719) -- Charlie Smotherman Wed, 22 Feb 2012 22:20:15 +0200 cssutils (0.9.8-1) unstable; urgency=low [ Jakub Wilk ] * Add Vcs-* fields. [ Charlie Smotherman ] * New upstream release. * Updated debian/watch. Upstream now uses bitbucket for code hosting. * debian/control - Added python-pkg-resources to python-cssutils Depends field. Closes: #645251 - Updated Homepage field to new bitbucket URL. - Added myself to Uploaders field. - Removed python-cssutils-doc stanza, upstream no longer ships any doc files. - Removed python-encutils stanza, upstream now bundles it into cssutils. - Added python3-cssutils stanzas. - B-D on python3, and python3-setuptools. - B-D on python-mock, python3-mock and python-nose to run unittests. - No longer Depend on python-encutils. - No longer Recommend python-cssutils-doc package. - Added Replaces and Provides so python-cssutils-0.9.8~a1 is upgraded properly. * debian/rules - Removed dh_install override, no longer needed. - Added rules to build python2 and python3 packages - Added rules to remove cssparse, csscombine and csscapture so update alternative can be used. - Added dh_installman override and make copies of manpages to be used in python2 and python3 packages. - Added nosetests to run unittests at build time for py2 package, py3-nose package not available which is needed to run py3 tests. * Removed python-cssutils-doc.links, python-cssutils-doc.doc-base, python-cssutils-doc.docs, python-cssutils-doc.examples, python-cssutils.install, python-encutils.install, no longer needed. * Added python-cssutils.doc to install README.txt as part of the python-cssutils package. * Added python-cssutils.examples to install the examples as part of python-cssutils package. * Added python3-cssutils.doc, python3-cssutils.examples, to install docs, and examples into the python3 package. * Update to use update-alternatives, python-cssutils.postinst, python-cssutils.prerm, python3-cssutils.postinst, python3-cssutils.prerm. * Added 01_setup_fix.patch to create py2 and py3 executables. -- Charlie Smotherman Fri, 03 Feb 2012 18:47:33 +0200 cssutils (0.9.8~a1-1) unstable; urgency=low [ Charlie Smotherman ] * Team upload. * New upstream release. * Update package to use dh_python2. Closes: #616782 * Switched to using dh7 tiny rules. * Increased debian/compat to 7. * Updated debian/python-cssutils.install and debian/python-encutils.install to allow installation into dist-packages. * Renamed debian/examples, debian/docs to debian/python-cssutils-doc.examples and debian/python-cssutils-doc.docs so they will be part of the docs package. * Added python-cssutils-doc to python-cssutils Recommends section. * Added the manpages - debian/man/csscapture.manpage1. - debian/man/csscombine.manpage1. - debian/man/cssparse.manpage1. * Added debian/python-cssutils.manpages to install the new manpages. * Updated debian/copyright to DEP5. * Added manpage copyright info to debian/copyright. * Added debian/doc-base to register the html documentation with doc-base. * Added debian/python-cssutils-doc.links to create the jquery.js symlink. * Reworked debian/watch so it now reports correctly. * Switched to using source format 3.0. * debian/control - removed cdbs from B-D. - bumped min python version to >= 2.6.6-3~. - removed python-central from B-D-I. - increased min debhelper version to >= 7.0.50~ - bumped Standards Version to 3.9.2 no changes needed. - removed XS-P-V in favor of X-P-V, increased X-P-V to >=2.6. - removed XB-P-V. - added Recommends: python-cssutils-doc to python-cssutils binary stanza. - added libjs-jquery to Depends field of python-cssutils-doc bianry stanza. - removed dpkg-dev from B-D. * debian/rules - removed dh_auto_install override, not needed. - added dh_install exclude for jquery.js - removed --single-version-externally-managed, not needed anymore. [ Stefano Rivera ] * Add debian/clean to delete egg-info. -- Charlie Smotherman Thu, 16 Jun 2011 14:55:24 -0500 cssutils (0.9.7~b2-2) unstable; urgency=low [ Piotr Ożarowski ] * Bump minimum required Python version to 2.5 (Closes: #586652) -- Debian Python Modules Team Wed, 23 Jun 2010 00:06:39 +0200 cssutils (0.9.7~b2-1) unstable; urgency=low [ Sameer Rahmani ] * watch file fixed. [ Loïc Minier ] * debian/watch: allow for letters in upstream versions. [ Martin Pitt ] * New upstream release: Add CSSRuleList.rulesOfType required by calibre. (Closes: #586261) * debian/docs: Drop index.txt, removed upstream. [ Loïc Minier ] * Add Martin Pitt to Uploaders. * Don't repeat Section: python in binary packages. * Update copyright statement for the packaging to use "Copyright" adequately. -- Loïc Minier Fri, 18 Jun 2010 10:12:02 +0200 cssutils (0.9.6-1) unstable; urgency=low * Bump up Standards-Version to 3.8.4. * Use my @debian.org address in control. * Merge new upstream release from Ubuntu. -- Loïc Minier Tue, 18 May 2010 17:13:01 +0200 cssutils (0.9.6-0ubuntu1) lucid; urgency=low * New upstream release. This provides a new module "cssutils.profiles" which is required by calibre. * debian/python-cssutils-doc.install: Update for doc/ → docs/ rename. -- Martin Pitt Thu, 25 Feb 2010 20:56:16 +0100 cssutils (0.9.5.1-2) unstable; urgency=low [ Bernd Zeimetz ] * Remove myself from uploaders. [ Jakub Wilk ] * Be less specific about *.egg-info name (closes: #552963). * Drop superfluous build-dependency of python-dev. -- Debian Python Modules Team Mon, 01 Mar 2010 12:25:41 +0100 cssutils (0.9.5.1-1) unstable; urgency=low * New upstream release; bug fixes. * Switch to non-native packaging. * Drop CC license from copyright and update to LGPLv3; mention historical CC and LGPL uses; fix link to LGPL 2.1 for the Debian packaging; misc copyright tweaks. * Bump up standards-version. * Misc cleanups. * Drop useless pycompat and README.Debian. * Drop python:Depends from doc package. * Add XB-Python-Version: ${python:Versions} fields. * Move CHANGELOG.txt to DEB_INSTALL_CHANGELOGS_ALL instead of debian/docs. * Fix install files to not mention upstream and python versions. * Move some bdeps to bdeps-indeps. * Initial upload to Debian; closes: #462879. -- Loic Minier Mon, 01 Sep 2008 12:30:38 +0200 cssutils (0.9.5-0+ppa3) hardy; urgency=low * debian/control: - added new package python-cssutils-doc - description updated for python-cssutils * debian/python-cssutils-doc.install: - added docs * debian/copyright: - replaced with version from alioth svn -- Damien Churchill Tue, 05 Aug 2008 09:57:46 +0100 cssutils (0.9.5-0+ppa2) hardy; urgency=low * debian/control: - added new pacakge python-encutils - added python-encutils as a depends to python-cssutils * debian/python-cssutils.install: - added cssutils specific files * debian/python-encutils.install: - added encutils specific files -- Damien Churchill Tue, 05 Aug 2008 09:16:54 +0100 cssutils (0.9.5-0+ppa1) hardy; urgency=low * Initial release. -- Damien Churchill Tue, 05 Aug 2008 02:44:20 +0100 cssutils (0.9.5~b2-1) unstable; urgency=low * Initial packaging -- Bernd Zeimetz Fri, 28 Mar 2008 21:52:02 +0100 debian/python3-cssutils.prerm0000644000000000000000000000065311662572662013531 0ustar #!/bin/sh set -e case "$1" in remove|deconfigure) update-alternatives --remove cssparse /usr/bin/cssparse_py3 update-alternatives --remove csscombine /usr/bin/csscombine_py3 update-alternatives --remove csscapture /usr/bin/csscapture_py3 ;; upgrade|failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/clean0000644000000000000000000000002111576460303010171 0ustar src/*.egg-info/* debian/python3-cssutils.docs0000644000000000000000000000001311657160010013302 0ustar README.txt debian/rules0000755000000000000000000000637312216554673010272 0ustar #!/usr/bin/make -f #get our python versions PYVERS = $(shell pyversions -r) PY3VERS = $(shell py3versions -r) PYvrVERS = $(shell pyversions -vr) PY3vrVERS = $(shell py3versions -vr) DESTDIR2 = $(CURDIR)/debian/python-cssutils DESTDIR3 = $(CURDIR)/debian/python3-cssutils %: dh $@ --with python2,python3 override_dh_auto_build: set -ex; \ for py in $(PYVERS) $(PY3VERS); do \ $$py setup.py build; \ done override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) set -ex; \ for py in $(PYvrVERS); do \ nosetests-$$py -v \ --exclude='test_parseString' \ --exclude='test_parseFile' \ --exclude='test_parseUrl' \ --exclude='test_combine' \ --exclude='test_cssText2' \ --exclude='test_getMetaInfo' \ --exclude='test_errorhandler.py' \ --where $(CURDIR)/build/lib.linux-*/cssutils/tests; \ done set -ex; \ for py in $(PY3VERS); do \ $$py /usr/bin/nosetests3 -v \ --exclude='test_parseString' \ --exclude='test_parseFile' \ --exclude='test_parseUrl' \ --exclude='test_combine' \ --exclude='test_cssText2' \ --exclude='test_errorhandler.py' \ --py3where $(CURDIR)/build/lib/cssutils/tests; \ done endif override_dh_auto_install: set -ex; \ for py in $(PYVERS); do \ $$py setup.py install --skip-build --root debian/python-cssutils \ --install-layout deb; \ done #fix our py2 shebangs sed -i -e 's,#!/usr/bin/python.*,#!/usr/bin/python,' $(DESTDIR2)/usr/bin/cssparse_py2 \ $(DESTDIR2)/usr/bin/csscombine_py2 $(DESTDIR2)/usr/bin/csscapture_py2 #remove py3 executables from py2 package rm $(DESTDIR2)/usr/bin/cssparse_py3 rm $(DESTDIR2)/usr/bin/csscombine_py3 rm $(DESTDIR2)/usr/bin/csscapture_py3 set -ex; \ for py in $(PY3VERS); do \ $$py setup.py install --skip-build --root debian/python3-cssutils \ --install-layout deb; \ done #fix our py3 shebangs sed -i -e 's,#!/usr/bin/python.*,#!/usr/bin/python3,' $(DESTDIR3)/usr/bin/cssparse_py3 \ $(DESTDIR3)/usr/bin/csscombine_py3 $(DESTDIR3)/usr/bin/csscapture_py3 #remove py2 executables from py3 package rm $(DESTDIR3)/usr/bin/cssparse_py2 rm $(DESTDIR3)/usr/bin/csscombine_py2 rm $(DESTDIR3)/usr/bin/csscapture_py2 override_dh_installman: cp debian/man/cssparse.manpage1 debian/man/cssparse_py2.1 dh_installman -p python-cssutils debian/man/cssparse_py2.1 cp debian/man/csscombine.manpage1 debian/man/csscombine_py2.1 dh_installman -p python-cssutils debian/man/csscombine_py2.1 cp debian/man/csscapture.manpage1 debian/man/csscapture_py2.1 dh_installman -p python-cssutils debian/man/csscapture_py2.1 cp debian/man/cssparse.manpage1 debian/man/cssparse_py3.1 dh_installman -p python3-cssutils debian/man/cssparse_py3.1 cp debian/man/csscombine.manpage1 debian/man/csscombine_py3.1 dh_installman -p python3-cssutils debian/man/csscombine_py3.1 cp debian/man/csscapture.manpage1 debian/man/csscapture_py3.1 dh_installman -p python3-cssutils debian/man/csscapture_py3.1 override_dh_auto_clean: rm -rf build *.egg-info rm -f debian/man/cssparse_py2.1 debian/man/csscombine_py2.1 \ debian/man/csscapture_py2.1 rm -f debian/man/cssparse_py3.1 debian/man/csscombine_py3.1 \ debian/man/csscapture_py3.1 debian/python-cssutils.examples0000644000000000000000000000001311653402426014113 0ustar examples/* debian/watch0000644000000000000000000000017511750415607010230 0ustar version=3 opts=\ uversionmangle=s/(a|b|rc)/~$1/ \ https://bitbucket.org/cthedot/cssutils/downloads/cssutils-([0-9.a-z]+).zip debian/python3-cssutils.postinst0000644000000000000000000000310511665004725014253 0ustar #!/bin/sh set -e case "$1" in configure) if [ -f /usr/bin/cssparse ] && [ ! -h /usr/bin/cssparse ]; then rm /usr/bin/cssparse fi if [ -f /usr/bin/csscombine ] && [ ! -h /usr/bin/csscombine ]; then rm /usr/bin/csscombine fi if [ -f /usr/bin/csscapture ] && [ ! -h /usr/bin/csscapture ]; then rm /usr/bin/csscapture fi update-alternatives --install /usr/bin/cssparse cssparse \ /usr/bin/cssparse_py3 10 \ --slave /usr/share/man/man1/cssparse.1.gz \ cssparse.1.gz \ /usr/share/man/man1/cssparse_py3.1.gz update-alternatives --install /usr/bin/csscombine csscombine \ /usr/bin/csscombine_py3 10 \ --slave /usr/share/man/man1/csscombine.1.gz \ csscombine.1.gz \ /usr/share/man/man1/csscombine_py3.1.gz update-alternatives --install /usr/bin/csscapture csscapture \ /usr/bin/csscapture_py3 10 \ --slave /usr/share/man/man1/csscapture.1.gz \ csscapture.1.gz \ /usr/share/man/man1/csscapture_py3.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/man/0000755000000000000000000000000012224226661007744 5ustar debian/man/cssparse.manpage10000644000000000000000000000152211557775132013214 0ustar .TH cssparse 1 "April 7, 2011" "" "cssutils" .SH NAME .B cssparse\fR \- A CSS parser. .SH SYNOPSIS .B cssparse .RI [ options "...] [" path ...] .SH DESCRIPTION Script version of cssutils.parseString(), cssutils.parseFile() and cssutils.parseUrl(). The combined CSS is outputed to \fBstdout\fR. Logging is directed to \fBstderr\fR. .SH OPTIONS .TP .B \-d\fR, \fB\-\-debug\fR Activate debugging output. .TP .B \-e\fI ENCODING\fR, \fB\-\-encoding\fR=\fIENCODING Encoding of the file or override encoding found. .TP .B \-h\fR, \fB\-\-help\fR Display help message and exit. .TP .B \-m\fR, \fB\-\-minify\fR Minify parsed CSS. .TP .B \-s\fI SOMESTRING\fR, \fB\-\-string\fR=\fISOMESTRING Parse given string. .TP .B \-u\fI URL\fR, \fB\-\-url\fR=\fIURL Parse the given \fIURL\fR. .SH "SEE ALSO" .IP /usr/share/doc/python-cssutils-doc/docs/html/docs/index.html debian/man/csscombine.manpage10000644000000000000000000000236411557775132013523 0ustar .TH csscombine 1 "April 9, 2011" "" "cssutils" .SH NAME .B csscombine\fR \- Utility to combine several stylesheets into one. .SH SYNOPSIS .B csscombine .RI [ options "...] " path ... .SH DESCRIPTION .B csscombine\fR may be used to combine several sheets loaded from a main sheet via \fB@import\fR rules. Nested \fB@import\fR rules are resolved since cssutils 0.9.6a1. .PP The resulting combined sheet (optionally minified) is sent to stdout, info and error messages are handled by the normal cssutils log. .PP .B csscombine\fR may also be used to change the encoding of the stylesheet if a target encoding is given. .SH OPTIONS .TP .B \-h\fR, \fB\-\-help\fR Show help message and exit. .TP .B \-m\fR, \fB\-\-minify\fR Saves minified version of combined files, default is false. .TP .B \-s\fI SOURCEENCODING\fR, \fB\-\-sourceencoding\fR=\fISOURCEENCODING Encoding of input, defaulting to "css". If given, overwrites other encoding information like @charset declarations. .TP .B \-t\fI TARGETENCODING\fR, \fB\-\-targetencoding\fR=\fITARGETENCODING Encoding of output, defaulting to "UTF-8". .TP .B \-u\fI URL\fR, \fB\-\-url\fR=\fIURL .I URL to parse, path... is ignored if .I URL is given. .SH "SEE ALSO" .IP /usr/share/doc/python-cssutils-doc/docs/html/docs/index.html debian/man/csscapture.manpage10000644000000000000000000000162211557775132013546 0ustar .TH csscapture 1 "April 9, 2011" "" "cssutils" .SH NAME .B csscapture\fR \- Downloads CSS stylesheets. .SH SYNOPSIS .B csscapture .RI [ options "...] " URL .SH DESCRIPTION .B CSSCapture\fR downloads all referenced CSS stylesheets of a given .I URL and saves them to a given target directory. .SH OPTIONS .TP .B \-d\fR, \fB\-\-debug\fR Show debug messages during capturing. .TP .B \-h\fR, \fB\-\-help\fR Show help message and exit. .TP .B \-m\fR. \fB\-\-minified\fR Saves minified version of captured files. .TP .B \-n\fR, \fB\-\-notsave\fR If given, files are NOT saved, only log is written. .TP .B \-s\fI DIR\fR, \fB\-\-saveto\fR=\fIDIR Save retrieved files to \fIDIR\fR, defaults to \fB./_CSSCapture_SAVED\fR. .TP .B \-u\fI UA\fR, \fB\-\-useragent\fR=\fIUA Useragent to use for request of \fIURL\fR, default is urllib2s default\fR. .SH "SEE ALSO" .IP /usr/share/doc/python-cssutils-doc/docs/html/docs/index.html debian/compat0000644000000000000000000000000211542556012010365 0ustar 7 debian/source/0000755000000000000000000000000012224226661010471 5ustar debian/source/format0000644000000000000000000000001411567024235011701 0ustar 3.0 (quilt) debian/python-cssutils.prerm0000644000000000000000000000065311662572662013446 0ustar #!/bin/sh set -e case "$1" in remove|deconfigure) update-alternatives --remove cssparse /usr/bin/cssparse_py2 update-alternatives --remove csscombine /usr/bin/csscombine_py2 update-alternatives --remove csscapture /usr/bin/csscapture_py2 ;; upgrade|failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/copyright0000644000000000000000000000507112224226643011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: cssutils Upstream-Contact: Christof Hoeke Walter Doerwald Source: http://code.google.com/p/cssutils/downloads/list Files: * Copyright: 2004-2013 Christof Hoeke 2004-2012 Walter Doerwald License: LGPL-3+ encutils is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . encutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with encutils. If not, see . Comment: On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-3'. . Only explicit copyright is from Christof Hoeke, but the mention of Walter Doerwald in the credits and the __author__ stanzas in some Python source files quite certainly make him a copyright holder. The upstream licensing moved from Creative Commons licensing to LGPL 2.1 and subsequently to LGPL 3. Some files such as setup.py mention LGPL 2.1+, but COPYING.LESSER, the upstream site, and most files clearly mention LGPL 3+ rendering the result LGPL 3+. Files: debian/* Copyright: 2008 Bernd Zeimetz 2008 Damien Churchill 2008 Loïc Minier 2011-2013 Charlie Smotherman License: LGPL-2.1 This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Comment: On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. debian/control0000644000000000000000000000400112216231662010565 0ustar Source: cssutils Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Loïc Minier , Martin Pitt , Charlie Smotherman Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python-setuptools, python-nose (>= 1.1.2-2), python-mock, python3-all, python3-setuptools, python3-nose (>= 1.1.2-2), python3-mock Standards-Version: 3.9.4 Homepage: https://bitbucket.org/cthedot/cssutils X-Python-Version: >= 2.5 X-Python3-Version: >= 3.0 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/cssutils/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/cssutils/trunk/ Package: python-cssutils Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-pkg-resources Breaks: python-encutils Replaces: python-encutils, python-cssutils-doc Provides: python-encutils Description: CSS Cascading Style Sheets parser and builder Package to parse and build CSS Cascading Style Sheets. DOM only, not any rendering facilities! Base upon and partly implements the following specifications: . * CSS 2.1 and CSS 2.1 Errata * CSS3 Module: Syntax * DOM Level 2 Style CSS * DOM Level 2 Style Stylesheets * CSSOM * MediaQueries * Namespaces * Selectors Package: python3-cssutils Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, python3-pkg-resources Description: Python3 CSS Cascading Style Sheets parser and builder Python3 package to parse and build CSS Cascading Style Sheets. DOM only, not any rendering facilities! Base upon and partly implements the following specifications: . * CSS 2.1 and CSS 2.1 Errata * CSS3 Module: Syntax * DOM Level 2 Style CSS * DOM Level 2 Style Stylesheets * CSSOM * MediaQueries * Namespaces * Selectors debian/python-cssutils.postinst0000644000000000000000000000310611665004725014171 0ustar #!/bin/sh set -e case "$1" in configure) if [ -f /usr/bin/cssparse ] && [ ! -h /usr/bin/cssparse ]; then rm /usr/bin/cssparse fi if [ -f /usr/bin/csscombine ] && [ ! -h /usr/bin/csscombine ]; then rm /usr/bin/csscombine fi if [ -f /usr/bin/csscapture ] && [ ! -h /usr/bin/csscapture ]; then rm /usr/bin/csscapture fi update-alternatives --install /usr/bin/cssparse cssparse \ /usr/bin/cssparse_py2 20 \ --slave /usr/share/man/man1/cssparse.1.gz \ cssparse.1.gz \ /usr/share/man/man1/cssparse_py2.1.gz update-alternatives --install /usr/bin/csscombine csscombine \ /usr/bin/csscombine_py2 20 \ --slave /usr/share/man/man1/csscombine.1.gz \ csscombine.1.gz \ /usr/share/man/man1/csscombine_py2.1.gz update-alternatives --install /usr/bin/csscapture csscapture \ /usr/bin/csscapture_py2 20 \ --slave /usr/share/man/man1/csscapture.1.gz \ csscapture.1.gz \ /usr/share/man/man1/csscapture_py2.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000012224226661010620 5ustar debian/patches/series0000644000000000000000000000004612216230035012024 0ustar disable_test.patch 01_setup_fix.patch debian/patches/01_setup_fix.patch0000644000000000000000000000224711662572662014166 0ustar Description: Create our py2 and py3 executables to use with update-alternatives, this way we can have py2 and py3 packages installed at the same time Author: Charlie Smotherman Index: cssutils-0.9.8~a3/setup.py =================================================================== --- cssutils-0.9.8~a3.orig/setup.py 2011-11-21 08:18:16.510405301 -0600 +++ cssutils-0.9.8~a3/setup.py 2011-11-21 08:21:55.970405736 -0600 @@ -58,9 +58,12 @@ tests_require='mock', entry_points={ 'console_scripts': [ - 'csscapture = cssutils.scripts.csscapture:main', - 'csscombine = cssutils.scripts.csscombine:main', - 'cssparse = cssutils.scripts.cssparse:main' + 'csscapture_py2 = cssutils.scripts.csscapture:main', + 'csscombine_py2 = cssutils.scripts.csscombine:main', + 'cssparse_py2 = cssutils.scripts.cssparse:main', + 'csscapture_py3 = cssutils.scripts.csscapture:main', + 'csscombine_py3 = cssutils.scripts.csscombine:main', + 'cssparse_py3 = cssutils.scripts.cssparse:main' ] }, description='A CSS Cascading Style Sheets library for Python', debian/patches/disable_test.patch0000644000000000000000000000153312216230035014274 0ustar Description: disable test that caused the package to FTBFS Author: Charlie Smotherman Last-Update: 2013-09-17 Index: cssutils-0.9.10/src/cssutils/tests/test_cssstylesheet.py =================================================================== --- cssutils-0.9.10.orig/src/cssutils/tests/test_cssstylesheet.py 2013-03-31 17:42:26.000000000 -0500 +++ cssutils-0.9.10/src/cssutils/tests/test_cssstylesheet.py 2013-09-16 07:19:18.633097907 -0500 @@ -333,7 +333,7 @@ self.assertEquals('example', s.namespaces['ex2']) self.assertRaises(xml.dom.NamespaceErr, s.namespaces.__getitem__, 'UNSET') # __iter__ - self.assertEquals(['', 'ex2'], list(s.namespaces)) +# self.assertEquals(['', 'ex2'], list(s.namespaces)) # __len__ self.assertEqual(2, len(s.namespaces)) # __setitem__