mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-04 07:57:52 +03:00
Officially drop support of Python 2.6, 3.1 and 3.2
These old versions are not supported anymore since February 2016 for 3.2 and October 2013 (!) for 2.6. It's becoming even hard to use and to test, as more and more libraries and tools (flake8 for example) decide to drop the support of these versions too.
This commit is contained in:
parent
e5083515f9
commit
f53334ba0a
@ -1,8 +1,6 @@
|
||||
language: python
|
||||
python:
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
- "3.2"
|
||||
- "3.3"
|
||||
- "3.4"
|
||||
- "3.5"
|
||||
|
@ -28,7 +28,7 @@ WebKit or Gecko. The CSS layout engine is written in Python, designed for
|
||||
pagination, and meant to be easy to hack on.
|
||||
|
||||
* Free software: BSD licensed
|
||||
* Python 2.6+ or 3.1+
|
||||
* Python 2.7 or 3.3+
|
||||
* Website: http://weasyprint.org/
|
||||
* Latest documentation: http://weasyprint.org/docs/
|
||||
* Source code and issue tracker: https://github.com/Kozea/WeasyPrint
|
||||
|
@ -3,7 +3,7 @@ Installing
|
||||
|
||||
WeasyPrint |version| depends on:
|
||||
|
||||
* CPython_ 2.6, 2.7 or ≥ 3.2
|
||||
* CPython_ 2.7 or ≥ 3.3
|
||||
* cairo_ [#]_
|
||||
* Pango_
|
||||
* CFFI_ ≥ 0.6
|
||||
|
5
setup.py
5
setup.py
@ -35,9 +35,6 @@ REQUIREMENTS = [
|
||||
'Pyphen>=0.8'
|
||||
# C dependencies: Gdk-Pixbuf (optional), Pango, cairo.
|
||||
]
|
||||
if sys.version_info < (2, 7) or (3,) <= sys.version_info < (3, 2):
|
||||
# In the stdlib from 2.7 and 3.2:
|
||||
REQUIREMENTS.append('argparse')
|
||||
|
||||
if sys.version_info < (3,):
|
||||
REQUIREMENTS.append('CairoSVG >= 1.0.20, < 2')
|
||||
@ -58,10 +55,8 @@ setup(
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: BSD License',
|
||||
'Programming Language :: Python :: 2',
|
||||
'Programming Language :: Python :: 2.6',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.2',
|
||||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
|
30
tox.ini
30
tox.ini
@ -1,30 +0,0 @@
|
||||
[tox]
|
||||
envlist = py26-cairo-1.8.2, py26-cairo-1.10.0, py26, py27, py32, py33, py34, pypy
|
||||
|
||||
[testenv]
|
||||
deps=pytest-cov
|
||||
commands=py.test -s []
|
||||
|
||||
[testenv:py27]
|
||||
deps=
|
||||
pytest-cov
|
||||
flake8
|
||||
commands=
|
||||
py.test -s []
|
||||
flake8 weasyprint
|
||||
|
||||
[testenv:py26-cairo-1.8.2]
|
||||
; Building old cairo on an modern system might require setting
|
||||
; "png_REQUIRES=libpng" as an environment variable for ./configure
|
||||
basepython=python2.6
|
||||
setenv=LD_LIBRARY_PATH=../cairo-1.8.2/lib
|
||||
commands=
|
||||
py.test -s []
|
||||
python -c 'import cairocffi; version = cairocffi.cairo_version_string(); print "Cairo version", version; assert version == "1.8.2"'
|
||||
|
||||
[testenv:py26-cairo-1.10.0]
|
||||
basepython=python2.6
|
||||
setenv=LD_LIBRARY_PATH=../cairo-1.10.0/lib
|
||||
commands=
|
||||
py.test -s []
|
||||
python -c 'import cairocffi; version = cairocffi.cairo_version_string(); print "Cairo version", version; assert version == "1.10.0"'
|
Loading…
Reference in New Issue
Block a user