mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Drop unsupported Python 3.3
This commit is contained in:
parent
f8da7077d8
commit
ce0787f0d3
6 changed files with 5 additions and 10 deletions
|
|
@ -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=py33
|
|
||||||
- TOX_ENV=py34
|
- TOX_ENV=py34
|
||||||
- TOX_ENV=py35
|
- TOX_ENV=py35
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
Installing Pelican
|
Installing Pelican
|
||||||
##################
|
##################
|
||||||
|
|
||||||
Pelican currently runs best on Python 2.7.x and 3.3+; earlier versions of
|
Pelican currently runs best on Python 2.7.x and 3.4+; 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
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,13 @@ import six
|
||||||
from pelican.log import LimitFilter
|
from pelican.log import LimitFilter
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# SourceFileLoader is the recommended way in 3.3+
|
# SourceFileLoader is the recommended way in Python 3.3+
|
||||||
from importlib.machinery import SourceFileLoader
|
from importlib.machinery import SourceFileLoader
|
||||||
|
|
||||||
def load_source(name, path):
|
def load_source(name, path):
|
||||||
return SourceFileLoader(name, path).load_module()
|
return SourceFileLoader(name, path).load_module()
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# but it does not exist in 3.2-, so fall back to imp
|
# but it does not exist in Python 2.7, so fall back to imp
|
||||||
import imp
|
import imp
|
||||||
load_source = imp.load_source
|
load_source = imp.load_source
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function, unicode_literals
|
from __future__ import print_function, unicode_literals
|
||||||
|
|
||||||
import sys
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from pelican.tests.support import unittest
|
from pelican.tests.support import unittest
|
||||||
|
|
@ -9,8 +8,6 @@ from pelican.tests.support import unittest
|
||||||
|
|
||||||
class TestSuiteTest(unittest.TestCase):
|
class TestSuiteTest(unittest.TestCase):
|
||||||
|
|
||||||
@unittest.skipIf(sys.version_info[:2] == (3, 3),
|
|
||||||
"does not throw an exception on python 3.3")
|
|
||||||
def test_error_on_warning(self):
|
def test_error_on_warning(self):
|
||||||
with self.assertRaises(UserWarning):
|
with self.assertRaises(UserWarning):
|
||||||
warnings.warn('test warning')
|
warnings.warn('test warning')
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -61,10 +61,10 @@ 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.3',
|
|
||||||
'Programming Language :: Python :: 3.4',
|
'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 :: Implementation :: CPython',
|
||||||
'Topic :: Internet :: WWW/HTTP',
|
'Topic :: Internet :: WWW/HTTP',
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||||
],
|
],
|
||||||
|
|
|
||||||
3
tox.ini
3
tox.ini
|
|
@ -1,10 +1,9 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py{27,33,34,35,36},docs,flake8
|
envlist = py{27,34,35,36},docs,flake8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
basepython =
|
basepython =
|
||||||
py27: python2.7
|
py27: python2.7
|
||||||
py33: python3.3
|
|
||||||
py34: python3.4
|
py34: python3.4
|
||||||
py35: python3.5
|
py35: python3.5
|
||||||
py36: python3.6
|
py36: python3.6
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue