Merge pull request #2528 from johnfraney/fix-failing-ci

Remove Python 3.4
This commit is contained in:
Justin Mayer 2019-02-16 17:00:01 +01:00 committed by GitHub
commit e967988eff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 37 additions and 37 deletions

View file

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

View file

@ -1,7 +1,7 @@
Installing Pelican 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. Python are not supported.
You can install Pelican via several different methods. The simplest is via You can install Pelican via several different methods. The simplest is via

View file

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

View file

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

View file

@ -81,9 +81,9 @@ def main():
to_sym = args.to_symlink or args.clean to_sym = args.to_symlink or args.clean
if args.action: if args.action:
if args.action is 'list': if args.action == 'list':
list_themes(args.verbose) list_themes(args.verbose)
elif args.action is 'path': elif args.action == 'path':
print(_THEMES_PATH) print(_THEMES_PATH)
elif to_install or args.to_remove or to_sym: elif to_install or args.to_remove or to_sym:
if args.to_remove: if args.to_remove:

View file

@ -787,8 +787,11 @@ def folder_watcher(path, extensions, ignores=[]):
dirs[:] = [x for x in dirs if not x.startswith(os.curdir)] dirs[:] = [x for x in dirs if not x.startswith(os.curdir)]
for f in files: for f in files:
if f.endswith(tuple(extensions)) and \ valid_extension = f.endswith(tuple(extensions))
not any(fnmatch.fnmatch(f, ignore) for ignore in ignores): file_ignored = any(
fnmatch.fnmatch(f, ignore) for ignore in ignores
)
if valid_extension and not file_ignored:
try: try:
yield os.stat(os.path.join(root, f)).st_mtime yield os.stat(os.path.join(root, f)).st_mtime
except OSError as e: except OSError as e:

View file

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

View file

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