From 5f986a3ef22e276d69db7a51ea490cee548dd0e2 Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Sun, 13 Jun 2021 11:57:28 -0400 Subject: [PATCH] MAINT: Remove Python 3.5 support (#1948) * MAINT: Remove Python 3.5 support * Delete .travis.yml Co-authored-by: bl-ue --- .travis.yml | 48 ------------------------------------------------ README.rst | 6 +++--- setup.py | 2 +- 3 files changed, 4 insertions(+), 52 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 94c129b7dc..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,48 +0,0 @@ -# vim ft=yaml -# Multiple lines can be made a single "virtual line" because of how Travis -# munges each line before executing it to print out the exit status. It's okay -# for it to be on multiple physical lines, so long as you remember: - There -# can't be any leading "-"s - All newlines will be removed, so use ";"s - -dist: focal -language: python -cache: pip -python: - - 3.5 - - 3.6 - - 3.7 - - 3.8 -env: - REQUIRE_ASPELL=true - -addons: - apt: - packages: - - libaspell-dev - - aspell-en - -before_install: - - source tools/travis_tools.sh - - SRC_DIR=$PWD - - cd ~ - - virtualenv --python=python venv - - source venv/bin/activate - - python --version # just to check - - pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors - - retry pip install codecov chardet "setuptools!=47.2.0" docutils - - retry pip install aspell-python-py3 - - cd $SRC_DIR - - pip install -e ".[dev]" # install the codespell dev packages - -install: - - python setup.py install - -script: - - codespell --help - - make check - - codespell --check-filenames --skip="./.git/*,*.pyc,./codespell_lib/tests/test_basic.py,./codespell_lib/data/*,./example/code.c,./build/lib/codespell_lib/tests/test_basic.py,./build/lib/codespell_lib/data/*" - # this file has an error - - "! codespell codespell_lib/tests/test_basic.py" - -after_success: - - codecov diff --git a/README.rst b/README.rst index de9f4bedf4..dab29a8834 100644 --- a/README.rst +++ b/README.rst @@ -23,7 +23,7 @@ Useful links Requirements ------------ -Python 3.5 or above. +Python 3.6 or above. Installation ------------ @@ -134,10 +134,10 @@ applied directly, but should instead be manually inspected. E.g.: Note that there isn't a comma at the end of the line. The last argument is treated as the reason why a suggestion cannot be automatically applied. - + There can also be multiple suggestions but any automatic fix will again be disabled:: - + clas->class, clash, disabled because of name clash in c++ Development Setup diff --git a/setup.py b/setup.py index afbe0835d8..9271fde810 100755 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ 'Operating System :: Unix', 'Operating System :: MacOS'], platforms='any', - python_requires='>=3.5', + python_requires='>=3.6', packages=[ 'codespell_lib', 'codespell_lib.data',