Skip to content

Commit 934c536

Browse files
authored
Merge pull request #932 from danieldk/maintenance/require-python-3.9
Remove support for Python versions prior to 3.9
2 parents 5be631e + 199804d commit 934c536

File tree

4 files changed

+5
-34
lines changed

4 files changed

+5
-34
lines changed

.github/workflows/tests.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Configure Python version
2424
uses: actions/setup-python@v4
2525
with:
26-
python-version: "3.7"
26+
python-version: "3.9"
2727
architecture: x64
2828

2929
- name: black
@@ -48,12 +48,6 @@ jobs:
4848
os: [ubuntu-latest, windows-latest, macos-latest]
4949
python_version: ["3.12"]
5050
include:
51-
- os: windows-2019
52-
python_version: "3.6"
53-
- os: macos-latest
54-
python_version: "3.7"
55-
- os: ubuntu-latest
56-
python_version: "3.8"
5751
- os: windows-latest
5852
python_version: "3.9"
5953
- os: macos-latest
@@ -87,9 +81,6 @@ jobs:
8781
8882
- name: Run mypy
8983
run: python -m mypy thinc --no-implicit-reexport
90-
if: |
91-
matrix.python_version != '3.6' &&
92-
matrix.python_version != '3.7'
9384

9485
- name: Delete source directory
9586
run: rm -rf thinc

build-constraints.txt

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
# build version constraints for use with wheelwright + multibuild
2-
numpy==1.15.0; python_version<='3.7' and platform_machine!='aarch64'
3-
numpy==1.19.2; python_version<='3.7' and platform_machine=='aarch64'
4-
numpy==1.17.3; python_version=='3.8' and platform_machine!='aarch64'
5-
numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'
62
numpy>=1.25.0; python_version>='3.9'

requirements.txt

+2-10
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@ confection>=0.0.1,<1.0.0
1010
ml_datasets>=0.2.0,<0.3.0; python_version < "3.11"
1111
# Third-party dependencies
1212
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
13-
numpy>=1.15.0; python_version < "3.9"
14-
numpy>=1.19.0; python_version >= "3.9"
13+
numpy>=1.19.0
1514
packaging>=20.0
16-
# Backports of modern Python features
17-
dataclasses>=0.6,<1.0; python_version < "3.7"
18-
typing_extensions>=3.7.4.1,<4.5.0; python_version < "3.8"
19-
contextvars>=2.4,<3; python_version < "3.7"
2015
# Development dependencies
2116
cython>=0.25.0,<3.0
2217
hypothesis>=3.27.0,<6.72.2
@@ -25,11 +20,8 @@ pytest-cov>=2.7.0,<5.0.0
2520
coverage>=5.0.0,<8.0.0
2621
mock>=2.0.0,<3.0.0
2722
flake8>=3.5.0,<3.6.0
28-
mypy>=1.5.0,<1.6.0; platform_machine != "aarch64" and python_version >= "3.8"
23+
mypy>=1.5.0,<1.6.0; platform_machine != "aarch64"
2924
types-mock>=0.1.1
30-
types-contextvars>=0.1.2; python_version < "3.7"
31-
types-dataclasses>=0.1.3; python_version < "3.7"
32-
importlib_resources; python_version < "3.7"
3325
# Executing notebook tests
3426
ipykernel>=5.1.4,<5.2.0
3527
nbconvert>=5.6.1,<6.2.0

setup.cfg

+2-10
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ classifiers =
1717
Operating System :: Microsoft :: Windows
1818
Programming Language :: Cython
1919
Programming Language :: Python :: 3
20-
Programming Language :: Python :: 3.6
21-
Programming Language :: Python :: 3.7
22-
Programming Language :: Python :: 3.8
2320
Programming Language :: Python :: 3.9
2421
Programming Language :: Python :: 3.10
2522
Programming Language :: Python :: 3.11
@@ -29,7 +26,7 @@ classifiers =
2926
[options]
3027
zip_safe = false
3128
include_package_data = true
32-
python_requires = >=3.6
29+
python_requires = >=3.9
3330
setup_requires =
3431
cython>=0.25,<3.0
3532
numpy>=1.15.0
@@ -50,14 +47,9 @@ install_requires =
5047
confection>=0.0.1,<1.0.0
5148
# Third-party dependencies
5249
setuptools
53-
numpy>=1.15.0; python_version < "3.9"
54-
numpy>=1.19.0; python_version >= "3.9"
50+
numpy>=1.19.0
5551
pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0
5652
packaging>=20.0
57-
# Backports of modern Python features
58-
dataclasses>=0.6,<1.0; python_version < "3.7"
59-
typing_extensions>=3.7.4.1,<4.5.0; python_version < "3.8"
60-
contextvars>=2.4,<3; python_version < "3.7"
6153

6254
[options.entry_points]
6355
pytest_randomly.random_seeder =

0 commit comments

Comments
 (0)