1
0
Fork 0
forked from github/pelican

Remove Python 3.4 references

This PR removes the Python 3.4 tox task and updates references in the
code to Python 3.5+.

tox complains about Python 3.4, which is EOL after next month:

> py34 installed: DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
This commit is contained in:
John Franey 2019-02-06 10:23:27 -04:00
commit 63a72fc619
6 changed files with 4 additions and 7 deletions

View file

@ -5,7 +5,6 @@ env:
- TOX_ENV=docs
- TOX_ENV=flake8
- TOX_ENV=py27
- TOX_ENV=py34
- TOX_ENV=py35
matrix:
include:

View file

@ -1,7 +1,7 @@
Installing Pelican
##################
Pelican currently runs best on Python 2.7.x and 3.4+; earlier versions of
Pelican currently runs best on Python 2.7.x and 3.5+; earlier versions of
Python are not supported.
You can install Pelican via several different methods. The simplest is via

View file

@ -367,7 +367,7 @@ class HTMLReader(BaseReader):
class _HTMLParser(HTMLParser):
def __init__(self, settings, filename):
try:
# Python 3.4+
# Python 3.5+
HTMLParser.__init__(self, convert_charrefs=False)
except TypeError:
HTMLParser.__init__(self)

View file

@ -22,7 +22,7 @@ from pelican.settings import read_settings
from pelican.utils import SafeDatetime, slugify
try:
from html import unescape # py3.4+
from html import unescape # py3.5+
except ImportError:
from six.moves.html_parser import HTMLParser
unescape = HTMLParser().unescape

View file

@ -62,7 +62,6 @@ setup(
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',

View file

@ -1,10 +1,9 @@
[tox]
envlist = py{27,34,35,36,37},docs,flake8
envlist = py{27,35,36,37},docs,flake8
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7