Skip to content

Commit

Permalink
Drop compatibility with Python 3.2
Browse files Browse the repository at this point in the history
Python 3.3 now is the minimum (Pygments 2.0 no longer supports Python
3.2 anyway).
  • Loading branch information
unbrice committed May 24, 2015
1 parent ca94746 commit a7b1af7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
language: python
python:
- "3.2"
- "3.3"
- "3.4"
install:
- pip install --use-wheel --use-mirrors -r build-requirements.txt
- pip install --use-wheel --use-mirrors coveralls
- python -c 'import sys; sys.exit(sys.version_info[:2] <= (3, 2))' || pip install --use-wheel --use-mirrors --upgrade "pygments==1.6"
script:
- coverage run --source=py1 setup.py test
# Checks that pip can install the package.
Expand Down
1 change: 0 additions & 1 deletion build-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
mock
sphinx>=1.3
sphinx_rtd_theme>=0.1.8

6 changes: 1 addition & 5 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@

import io
import unittest
try:
from unittest import mock
except ImportError:
# Allows compatibility with Python < 3.3 if mock is installed.
import mock
from unittest import mock
import sys

from py1 import constants
Expand Down
6 changes: 1 addition & 5 deletions tests/test_user_code_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@

import io
import unittest
try:
from unittest import mock
except ImportError:
# Allows compatibility with Python < 3.3 if mock is installed.
import mock
from unittest import mock
import sys

from py1 import user_code_template
Expand Down

0 comments on commit a7b1af7

Please sign in to comment.