Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #198 from seatgeek/josegonzalez-patch-1
Browse files Browse the repository at this point in the history
feat: drop 2.6 and 3.3 support
  • Loading branch information
josegonzalez authored Aug 20, 2018
2 parents 7674bc6 + 337d289 commit f647fdb
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 31 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ matrix:
include:
- python: "2.7"
env: TEST_SUITE=py.test
- python: "3.3"
env: TEST_SUITE=py.test
- python: "3.4"
env: TEST_SUITE=py.test
- python: "3.5"
Expand All @@ -13,17 +11,13 @@ matrix:
env: TEST_SUITE=py.test
- python: "pypy"
env: TEST_SUITE=py.test
- python: "2.6"
env: TEST_SUITE="py.test test_fuzzywuzzy.py test_fuzzywuzzy_pytest.py"
- python: "pypy3.5-5.8.0"
env: TEST_SUITE="py.test test_fuzzywuzzy.py test_fuzzywuzzy_pytest.py"
- python: 3.6
env: TEST_SUITE="python setup.py check --restructuredtext --strict --metadata"
install:
- pip install -U pip setuptools wheel
- pip install pytest==3.2.5 pycodestyle docutils Pygments
- if [ $TRAVIS_PYTHON_VERSION != 2.6 -a $TRAVIS_PYTHON_VERSION != "pypy3" ]; then pip install hypothesis; fi;
- if [ $TRAVIS_PYTHON_VERSION = 3.3 ]; then pip install enum34; fi;
- pip install pytest==3.2.5 pycodestyle docutils Pygments hypothesis
script:
- $TEST_SUITE
notifications:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Fuzzy string matching like a boss. It uses `Levenshtein Distance <https://en.wik
Requirements
============

- Python 2.4 or higher
- Python 2.7 or higher
- difflib
- `python-Levenshtein <https://github.com/ztane/python-Levenshtein/>`_ (optional, provides a 4-10x speedup in String
Matching, though may result in `differing results for certain cases <https://github.com/seatgeek/fuzzywuzzy/issues/128>`_)
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ def open_file(fname):
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
Expand Down
6 changes: 0 additions & 6 deletions test_fuzzywuzzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
if sys.version_info[0] == 3:
unicode = str

if sys.version_info[:2] == (2, 6):
# Monkeypatch to make tests work on 2.6
def assertLess(first, second, msg=None):
assert first > second
unittest.TestCase.assertLess = assertLess


class StringProcessingTest(unittest.TestCase):
def test_replace_non_letters_non_numbers_with_whitespace(self):
Expand Down
16 changes: 1 addition & 15 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
[tox]
envlist = py26, py27, py33, py34, py35, py36, pypy, pypy3
envlist = py27, py34, py35, py36, pypy, pypy3
skip_missing_interpreters = True

[testenv]
deps = pytest==3.2.5
pycodestyle
hypothesis
commands = py.test

# Hypothesis does not work in Python 2.6
[testenv:py26]
deps = pytest
pycodestyle
commands = py.test test_fuzzywuzzy.py test_fuzzywuzzy_pytest.py

# Hypothesis needs enum34 installed to work in Python 3.3 but doesn't
# officially support 3.3, so install it here to make tests run.
[testenv:py33]
deps = enum34
hypothesis
pytest
pycodestyle

0 comments on commit f647fdb

Please sign in to comment.