Drop support for python 3.6

This commit is contained in:
Adriane Boyd 2023-09-25 09:23:55 +02:00
parent 36d4767aca
commit 9b51cd8a30
4 changed files with 8 additions and 15 deletions

View File

@ -60,8 +60,6 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, windows-latest, macos-latest]
python_version: ["3.11"] python_version: ["3.11"]
include: include:
- os: ubuntu-20.04
python_version: "3.6"
- os: windows-latest - os: windows-latest
python_version: "3.7" python_version: "3.7"
- os: macos-latest - os: macos-latest
@ -95,7 +93,6 @@ jobs:
- name: Run mypy - name: Run mypy
run: | run: |
python -m mypy spacy python -m mypy spacy
if: matrix.python_version != '3.6'
- name: Delete source directory and .egg-info - name: Delete source directory and .egg-info
run: | run: |

View File

@ -1,6 +1,6 @@
# build version constraints for use with wheelwright + multibuild # build version constraints for use with wheelwright
numpy==1.15.0; python_version<='3.7' and platform_machine!='aarch64' numpy==1.15.0; python_version=='3.7' and platform_machine!='aarch64'
numpy==1.19.2; python_version<='3.7' and platform_machine=='aarch64' numpy==1.19.2; python_version=='3.7' and platform_machine=='aarch64'
numpy==1.17.3; python_version=='3.8' and platform_machine!='aarch64' numpy==1.17.3; python_version=='3.8' and platform_machine!='aarch64'
numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64' numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'
numpy>=1.25.0; python_version>='3.9' numpy>=1.25.0; python_version>='3.9'

View File

@ -33,12 +33,11 @@ pytest-timeout>=1.3.0,<2.0.0
mock>=2.0.0,<3.0.0 mock>=2.0.0,<3.0.0
flake8>=3.8.0,<6.0.0 flake8>=3.8.0,<6.0.0
hypothesis>=3.27.0,<7.0.0 hypothesis>=3.27.0,<7.0.0
mypy>=0.990,<1.1.0; platform_machine != "aarch64" and python_version >= "3.7" mypy>=0.990,<1.1.0; platform_machine != "aarch64"
types-dataclasses>=0.1.3; python_version < "3.7"
types-mock>=0.1.1 types-mock>=0.1.1
types-setuptools>=57.0.0 types-setuptools>=57.0.0
types-requests types-requests
types-setuptools>=57.0.0 types-setuptools>=57.0.0
black==22.3.0 black==22.3.0
cython-lint>=0.15.0; python_version >= "3.7" cython-lint>=0.15.0
isort>=5.0,<6.0 isort>=5.0,<6.0

View File

@ -17,7 +17,6 @@ classifiers =
Operating System :: Microsoft :: Windows Operating System :: Microsoft :: Windows
Programming Language :: Cython Programming Language :: Cython
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.9
@ -31,15 +30,13 @@ project_urls =
[options] [options]
zip_safe = false zip_safe = false
include_package_data = true include_package_data = true
python_requires = >=3.6 python_requires = >=3.7
# NOTE: This section is superseded by pyproject.toml and will be removed in # NOTE: This section is superseded by pyproject.toml and will be removed in
# spaCy v4 # spaCy v4
setup_requires = setup_requires =
cython>=0.25,<3.0 cython>=0.25,<3.0
# The newest supported pip for python 3.6 has bugs related to markers in numpy>=1.15.0; python_version < "3.9"
# this section, so this does not contain the same constraints as numpy>=1.19.0; python_version >= "3.9"
# pyproject.toml
numpy>=1.15.0
# We also need our Cython packages here to compile against # We also need our Cython packages here to compile against
cymem>=2.0.2,<2.1.0 cymem>=2.0.2,<2.1.0
preshed>=3.0.2,<3.1.0 preshed>=3.0.2,<3.1.0