chiark / gitweb /
Drop Python 3.4 support.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 14 Jul 2019 19:32:26 +0000 (21:32 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 14 Jul 2019 19:32:26 +0000 (21:32 +0200)
It was EOL'd in March 2019 and I don't want to bother with it anymore.

doc/plugins/math-and-code.rst
doc/plugins/plots-and-graphs.rst
doc/themes/pelican.rst
plugins/m/test/test_dot.py
plugins/m/test/test_math.py

index e00dfadbd489821d4de9c3692b5c127e21f9e33a..aa80350729c02c69561483ec0d7313404c5a26f4 100644 (file)
@@ -60,11 +60,6 @@ files, put them including the ``m/`` directory into one of your
 ``pelicanconf.py``. This plugin assumes presence of
 `m.htmlsanity <{filename}/plugins/htmlsanity.rst>`_.
 
-.. note-danger::
-
-    Note that this plugin, unlike most of the others, requires at least Python
-    3.5 to run properly.
-
 .. code:: python
 
     PLUGINS += ['m.htmlsanity', 'm.math']
index 2e6101c3b2f236a853de710fc8ffe261dde6b7b8..a1fdeec3b35a4ec7236fed52f54b1cbae6092c79 100644 (file)
@@ -239,11 +239,6 @@ including the ``m/`` directory into one of your :py:`PLUGIN_PATHS` and add
 ``m.dot`` package to your :py:`PLUGINS` in ``pelicanconf.py``. For the
 Python doc theme, it's enough to just list it in :py:`PLUGINS`.
 
-.. note-danger::
-
-    Note that this plugin, unlike most of the others, requires at least Python
-    3.5 to run properly.
-
 .. code:: python
 
     PLUGINS += ['m.dot']
index fbedcf2df739cfd69ea8efc66b75b9e011acd7dd..929abeed7b6c921e31967aa0e6d7321a2c2f0c5e 100644 (file)
@@ -70,11 +70,9 @@ Install Pelican either via ``pip`` or using your system package manager.
 .. note-danger::
 
     In order to use the m.css theme or `plugins <{filename}/plugins.rst>`_, you
-    need to install Pelican 4 and the Python 3 version of it. Most of the
-    plugins work with Python 3.4, while some (such as the
-    `math plugin <{filename}/plugins/math-and-code.rst#math>`_) need 3.5.
-    Python 2 is not supported and compatibility with Pelican 3.7 has been
-    dropped.
+    need to install Pelican 4 and the Python 3 version of it. The theme and
+    plugins work with Python 3.5 and newer. Python 2 is not supported and
+    compatibility with Pelican 3.7 has been dropped.
 
 .. code:: sh
 
index 51ae70cbaa5c71e3904364df85a085b4b9d33d86..a2697c08dec7ec4783c725a5efd6fa54031e9331 100644 (file)
@@ -24,7 +24,6 @@
 
 import re
 import subprocess
-import sys
 import unittest
 
 from distutils.version import LooseVersion
@@ -38,9 +37,8 @@ class Dot(PelicanPluginTestCase):
     def __init__(self, *args, **kwargs):
         super().__init__(__file__, '', *args, **kwargs)
 
-    @unittest.skipUnless(LooseVersion(sys.version) >= LooseVersion("3.5") and
-                         LooseVersion(dot_version()) >= LooseVersion("2.40.1"),
-                         "The dot plugin requires at least Python 3.5 installed. Dot < 2.40.1 has a completely different output.")
+    @unittest.skipUnless(LooseVersion(dot_version()) >= LooseVersion("2.40.1"),
+                         "Dot < 2.40.1 has a completely different output.")
     def test(self):
         self.run_pelican({
             'PLUGINS': ['m.htmlsanity', 'm.components', 'm.dot'],
@@ -49,9 +47,8 @@ class Dot(PelicanPluginTestCase):
 
         self.assertEqual(*self.actual_expected_contents('page.html'))
 
-    @unittest.skipUnless(LooseVersion(sys.version) >= LooseVersion("3.5") and
-                         LooseVersion(dot_version()) < LooseVersion("2.40.1"),
-                         "The dot plugin requires at least Python 3.5 installed. Dot < 2.40.1 has a completely different output.")
+    @unittest.skipUnless(LooseVersion(dot_version()) < LooseVersion("2.40.1"),
+                         "Dot < 2.40.1 has a completely different output.")
     def test_238(self):
         self.run_pelican({
             'PLUGINS': ['m.htmlsanity', 'm.components', 'm.dot'],
index 59ea68febbce8e9ecd8772aa98740920468b4e8f..2638298ff77fe652dc0491ec4fac5c2bd5c91343 100644 (file)
 
 import os
 import pickle
-import sys
 import shutil
 import unittest
 
 from hashlib import sha1
 
-from distutils.version import LooseVersion
-
 from . import PelicanPluginTestCase
 
 class Math(PelicanPluginTestCase):
     def __init__(self, *args, **kwargs):
         super().__init__(__file__, '', *args, **kwargs)
 
-    @unittest.skipUnless(LooseVersion(sys.version) >= LooseVersion("3.5") and shutil.which('latex'),
-                         "The math plugin requires at least Python 3.5 and LaTeX installed")
+    @unittest.skipUnless(shutil.which('latex'),
+                         "The math plugin requires LaTeX installed")
     def test(self):
         self.run_pelican({
             'PLUGINS': ['m.htmlsanity', 'm.components', 'm.math'],