add python2 version
This commit is contained in:
parent
10cfd45c85
commit
86b72cba50
|
@ -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 doesn’t 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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue