drop Python 3.4 support

This commit is contained in:
Tal Einat 2020-04-07 13:02:06 +03:00
parent 9b9cb3e4db
commit c8ae57f7fc
No known key found for this signature in database
GPG Key ID: 613A98AF4C800CDA
4 changed files with 8 additions and 23 deletions

View File

@ -62,6 +62,8 @@ For more info, see the `documentation <http://fuzzysearch.rtfd.org>`_.
Installation
------------
`fuzzysearch` supports Python versions 2.7 and 3.5+.
.. code::
$ pip install fuzzysearch

View File

@ -10,13 +10,6 @@ environment:
- PYTHON: 'C:\Python27-x64'
TOX_ENV: 'py27'
PYTHON_APPDATA_DIR: 'C:\Users\appveyor\AppData\Roaming\Python'
- PYTHON: 'C:\Python34'
TOX_ENV: 'py34'
PYTHON_APPDATA_DIR: 'C:\Users\appveyor\AppData\Roaming\Python'
# - PYTHON: 'C:\Python34-x64'
# TOX_ENV: 'py34'
# DISTUTILS_USE_SDK: '1'
# PYTHON_APPDATA_DIR: 'C:\Users\appveyor\AppData\Roaming\Python'
- PYTHON: 'C:\Python35'
TOX_ENV: 'py35'
PYTHON_APPDATA_DIR: 'C:\Users\appveyor\AppData\Roaming\Python\Python35'

View File

@ -131,7 +131,6 @@ def run_setup(with_binary=True):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',

21
tox.ini
View File

@ -1,5 +1,5 @@
[tox]
envlist = py{27,34,35,36,37,38}-{with,without}_coverage-{,appveyor}
envlist = py{27,35,36,37,38}-{with,without}_coverage-{,appveyor}
[testenv]
install_command =
@ -12,18 +12,10 @@ install_command =
; CPPFLAGS=-Qunused-arguments
deps =
; use specific versions of testing tools with which this is known to work
py{34}-with_coverage: coverage<5
py{27,35,36,37,38}-with_coverage: coverage>=5,<6
with_coverage: coverage>=5,<6
py{27}: unittest2==1.1.0
py{27}: mock==1.3.0
py{27}: biopython<=1.76
py{34}: setuptools<44
py{34}: pip<19.2
; biopython 1.74 has numpy as a dependency, but the version must be
; limited to work on Python 3.4. (i.e `pip install numpy` no longer works
; on Python 3.4!)
py{34}: numpy<1.16
py{34}: biopython<=1.74
py{35}: biopython<=1.76
py{36,37,38}: biopython
whitelist_externals =
@ -36,19 +28,18 @@ commands =
; (but when running with coverage, coverage run -m unittest2 works)
py{27}-without_coverage: {envbindir}/unit2 discover tests -t {toxinidir}
py{27}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest2 discover tests
py{34,35,36,37,38}-without_coverage: {envpython} -m unittest discover tests
py{34,35,36,37,38}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
py{35,36,37,38}-without_coverage: {envpython} -m unittest discover tests
py{35,36,37,38}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
with_coverage: mv .coverage .coverage.with_extensions
{envpython} -c 'import os; [os.remove(os.path.join(d, fn)) for (d, dns, fns) in os.walk(os.path.join(r"{envsitepackagesdir}", "fuzzysearch")) for fn in fns if fn.endswith((".so", ".pyd"))]'
py{27}-without_coverage: {envbindir}/unit2 discover tests -t {toxinidir}
py{27}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest2 discover tests
py{34,35,36,37,38}-without_coverage: {envpython} -m unittest discover tests
py{34,35,36,37,38}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
py{35,36,37,38}-without_coverage: {envpython} -m unittest discover tests
py{35,36,37,38}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
with_coverage: mv .coverage .coverage.no_extensions
with_coverage: {envbindir}/coverage combine
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7