diff --git a/CHANGES b/CHANGES index 64168ffcf..aad73d871 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,17 @@ WeasyPrint changelog ==================== + +Version 0.29 +------------ + +*Not released yet.* + +Bug fixes: +* `#323: `_: + Fix CairoSVG 2.0 pre-release dependency in Python 2.x. + + Version 0.28 ------------ diff --git a/setup.py b/setup.py index 4f55c3d18..0aea9b33e 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,6 @@ 'html5lib>=0.999', 'tinycss==0.3', 'cssselect>=0.6', - 'CairoSVG>=1.0.20', 'cffi>=0.6', 'cairocffi>=0.5', 'Pyphen>=0.8' @@ -40,6 +39,11 @@ # In the stdlib from 2.7 and 3.2: REQUIREMENTS.append('argparse') +if sys.version_info < (3,): + REQUIREMENTS.append('CairoSVG >= 1.0.20, < 2') +else: + REQUIREMENTS.append('CairoSVG >= 1.0.20') + setup( name='WeasyPrint', version=VERSION,