mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-06 06:03:11 +03:00
SKETCH: Drop build constraints for python 3.9+
This commit is contained in:
parent
7ebba86402
commit
3899e82e6f
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
|
@ -30,7 +30,7 @@ jobs:
|
||||||
- name: Configure Python version
|
- name: Configure Python version
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.7"
|
python-version: "3.9"
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
||||||
- name: black
|
- name: black
|
||||||
|
@ -60,10 +60,6 @@ jobs:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
python_version: ["3.12"]
|
python_version: ["3.12"]
|
||||||
include:
|
include:
|
||||||
- os: windows-latest
|
|
||||||
python_version: "3.7"
|
|
||||||
- os: macos-latest
|
|
||||||
python_version: "3.8"
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
python_version: "3.9"
|
python_version: "3.9"
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
# build version constraints for use with wheelwright
|
|
||||||
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.17.3; 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'
|
|
|
@ -6,8 +6,7 @@ requires = [
|
||||||
"preshed>=3.0.2,<3.1.0",
|
"preshed>=3.0.2,<3.1.0",
|
||||||
"murmurhash>=0.28.0,<1.1.0",
|
"murmurhash>=0.28.0,<1.1.0",
|
||||||
"thinc>=8.1.8,<8.3.0",
|
"thinc>=8.1.8,<8.3.0",
|
||||||
"numpy>=1.15.0; python_version < '3.9'",
|
"numpy>=1.25.0",
|
||||||
"numpy>=1.25.0; python_version >= '3.9'",
|
|
||||||
]
|
]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,7 @@ typer>=0.3.0,<0.10.0
|
||||||
smart-open>=5.2.1,<7.0.0
|
smart-open>=5.2.1,<7.0.0
|
||||||
weasel>=0.1.0,<0.4.0
|
weasel>=0.1.0,<0.4.0
|
||||||
# Third party dependencies
|
# Third party dependencies
|
||||||
numpy>=1.15.0; python_version < "3.9"
|
numpy>=1.19.0
|
||||||
numpy>=1.19.0; python_version >= "3.9"
|
|
||||||
requests>=2.13.0,<3.0.0
|
requests>=2.13.0,<3.0.0
|
||||||
tqdm>=4.38.0,<5.0.0
|
tqdm>=4.38.0,<5.0.0
|
||||||
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
|
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
|
||||||
|
@ -23,7 +22,6 @@ langcodes>=3.2.0,<4.0.0
|
||||||
# Official Python utilities
|
# Official Python utilities
|
||||||
setuptools
|
setuptools
|
||||||
packaging>=20.0
|
packaging>=20.0
|
||||||
typing_extensions>=3.7.4.1,<4.5.0; python_version < "3.8"
|
|
||||||
# Development dependencies
|
# Development dependencies
|
||||||
pre-commit>=2.13.0
|
pre-commit>=2.13.0
|
||||||
cython>=0.25,<3.0
|
cython>=0.25,<3.0
|
||||||
|
@ -32,7 +30,7 @@ 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>=1.5.0,<1.6.0; platform_machine != "aarch64" and python_version >= "3.8"
|
mypy>=1.5.0,<1.6.0; platform_machine != "aarch64"
|
||||||
types-mock>=0.1.1
|
types-mock>=0.1.1
|
||||||
types-setuptools>=57.0.0
|
types-setuptools>=57.0.0
|
||||||
types-requests
|
types-requests
|
||||||
|
|
17
setup.cfg
17
setup.cfg
|
@ -30,18 +30,7 @@ project_urls =
|
||||||
[options]
|
[options]
|
||||||
zip_safe = false
|
zip_safe = false
|
||||||
include_package_data = true
|
include_package_data = true
|
||||||
python_requires = >=3.7
|
python_requires = >=3.9
|
||||||
# NOTE: This section is superseded by pyproject.toml and will be removed in
|
|
||||||
# spaCy v4
|
|
||||||
setup_requires =
|
|
||||||
cython>=0.25,<3.0
|
|
||||||
numpy>=1.15.0; python_version < "3.9"
|
|
||||||
numpy>=1.19.0; python_version >= "3.9"
|
|
||||||
# We also need our Cython packages here to compile against
|
|
||||||
cymem>=2.0.2,<2.1.0
|
|
||||||
preshed>=3.0.2,<3.1.0
|
|
||||||
murmurhash>=0.28.0,<1.1.0
|
|
||||||
thinc>=8.1.8,<8.3.0
|
|
||||||
install_requires =
|
install_requires =
|
||||||
# Our libraries
|
# Our libraries
|
||||||
spacy-legacy>=3.0.11,<3.1.0
|
spacy-legacy>=3.0.11,<3.1.0
|
||||||
|
@ -58,15 +47,13 @@ install_requires =
|
||||||
typer>=0.3.0,<0.10.0
|
typer>=0.3.0,<0.10.0
|
||||||
smart-open>=5.2.1,<7.0.0
|
smart-open>=5.2.1,<7.0.0
|
||||||
tqdm>=4.38.0,<5.0.0
|
tqdm>=4.38.0,<5.0.0
|
||||||
numpy>=1.15.0; python_version < "3.9"
|
numpy>=1.19.0
|
||||||
numpy>=1.19.0; python_version >= "3.9"
|
|
||||||
requests>=2.13.0,<3.0.0
|
requests>=2.13.0,<3.0.0
|
||||||
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
|
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
|
||||||
jinja2
|
jinja2
|
||||||
# Official Python utilities
|
# Official Python utilities
|
||||||
setuptools
|
setuptools
|
||||||
packaging>=20.0
|
packaging>=20.0
|
||||||
typing_extensions>=3.7.4.1,<4.5.0; python_version < "3.8"
|
|
||||||
langcodes>=3.2.0,<4.0.0
|
langcodes>=3.2.0,<4.0.0
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
|
|
|
@ -5,6 +5,7 @@ from pathlib import Path
|
||||||
def test_build_dependencies():
|
def test_build_dependencies():
|
||||||
# Check that library requirements are pinned exactly the same across different setup files.
|
# Check that library requirements are pinned exactly the same across different setup files.
|
||||||
libs_ignore_requirements = [
|
libs_ignore_requirements = [
|
||||||
|
"cython",
|
||||||
"numpy",
|
"numpy",
|
||||||
"pytest",
|
"pytest",
|
||||||
"pytest-timeout",
|
"pytest-timeout",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user