add python2 version

This commit is contained in:
Frédéric Péters 2019-02-16 23:00:36 +01:00
parent 10cfd45c85
commit 86b72cba50
2 changed files with 32 additions and 1 deletions

30
debian/control vendored
View File

@ -7,6 +7,13 @@ Uploaders:
Build-Depends:
debhelper (>= 11),
dh-python,
python-all,
python-pytest-cov,
python-pytest-runner,
python-setuptools,
python-sphinx,
python-sphinx-rtd-theme,
python-webencodings,
python3-all,
python3-pytest-cov,
python3-pytest-runner,
@ -82,3 +89,26 @@ Description: Low-level CSS parser (test data)
given as component values that can be parsed further with other functions.
.
This package contains the test data of the library.
Package: python-tinycss2
Architecture: all
Depends:
${misc:Depends},
${python2:Depends},
python-tinycss2-common,
Suggests:
python-tinycss2-doc,
Description: Low-level CSS parser (Python2 version)
tinycss2 is a rewrite of tinycss with a simpler API, based on the more recent
CSS Syntax Level 3 specification.
.
tinycss2 is low-level in that it doesnt parse all of CSS: it doesn't know
about the syntax of any specific properties or at-rules. Instead, it provides a
set of functions that can be composed to support exactly the parts of CSS
you're interested in, including new or non-standard rules or properties,
without modifying tinycss or having a complex hook/plugin system.
.
In many cases, parts of the parsed values (such as the content of a AtRule) is
given as component values that can be parsed further with other functions.
.
This package contains the Python 2 version of the library.

3
debian/rules vendored
View File

@ -8,11 +8,12 @@ include /usr/share/dpkg/pkg-info.mk
export PYBUILD_NAME=tinycss2
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_install:
dh_auto_install
rm -rf debian/python3-tinycss2/usr/lib/python*/*-packages/tinycss2/css-parsing-tests
rm -rf debian/python2-tinycss2/usr/lib/python*/*-packages/tinycss2/css-parsing-tests
mkdir -p debian/python-tinycss2-common/usr/share/python-tinycss2-common
cp -r tinycss2/css-parsing-tests debian/python-tinycss2-common/usr/share/python-tinycss2-common/css-parsing-tests
rm -f debian/python-tinycss2-common/usr/share/python-tinycss2-common/css-parsing-tests/LICENSE