Skip to content

Commit 47e7aef

Browse files
committed
chore: drop python 3.6 for cibuildwheel driver
This drops python 3.6 for cibuildwheel. Building python 3.6 packages is still supported.
1 parent 5780092 commit 47e7aef

17 files changed

+45
-66
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22

33
jobs:
4-
osx-python3.6:
4+
osx-python3.9:
55
macos:
66
xcode: 12.5.1
77
environment:
@@ -17,9 +17,9 @@ jobs:
1717
command: venv/bin/python ./bin/run_tests.py
1818
no_output_timeout: 30m
1919

20-
linux-python3.6:
20+
linux-python3.9:
2121
docker:
22-
- image: circleci/python:3.6
22+
- image: circleci/python:3.9
2323
environment:
2424
PYTHON: python3
2525
# Temporarily restrict the tests that are run on CircleCI to prevent
@@ -41,5 +41,5 @@ workflows:
4141
version: 2
4242
all-tests:
4343
jobs:
44-
- osx-python3.6
45-
- linux-python3.6
44+
- osx-python3.9
45+
- linux-python3.9

.pre-commit-config.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ repos:
1717
rev: v2.37.1
1818
hooks:
1919
- id: pyupgrade
20-
name: PyUpgrade 3.6+
21-
args: ["--py36-plus"]
22-
exclude: ^bin/
23-
- id: pyupgrade
24-
name: PyUpgrade 3.7+ on bin
25-
exclude: ^(cibuildwheel|unit_test|test)/
20+
name: PyUpgrade 3.7+
2621
args: ["--py37-plus"]
2722

2823
# Autoremoves unused imports
@@ -52,9 +47,9 @@ repos:
5247
rev: v0.961
5348
hooks:
5449
- id: mypy
55-
name: mypy 3.6 on cibuildwheel/
56-
exclude: ^(bin|cibuildwheel/resources|docs)/.*py$
57-
args: ["--python-version=3.6"]
50+
name: mypy 3.7 on cibuildwheel/
51+
exclude: ^cibuildwheel/resources/.*py$
52+
args: ["--python-version=3.7"]
5853
additional_dependencies: &mypy-dependencies
5954
- nox
6055
- packaging>=21.0
@@ -70,11 +65,6 @@ repos:
7065
- types-requests
7166
- bracex
7267
- dataclasses
73-
- id: mypy
74-
name: mypy 3.7+ on bin/
75-
files: ^((bin|docs)/.*py)$
76-
args: ["--python-version=3.7"]
77-
additional_dependencies: *mypy-dependencies
7868
- id: mypy
7969
name: mypy 3.10
8070
args: ["--python-version=3.10"]

.travis.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ branches:
88

99
jobs:
1010
include:
11-
- name: Linux | x86_64 + i686 | Python 3.6
12-
python: 3.6
11+
- name: Linux | x86_64 + i686 | Python 3.7
12+
python: 3.7
1313
services: docker
1414
env: PYTHON=python
1515

16-
- name: Linux | arm64 | Python 3.6
17-
python: 3.6
16+
- name: Linux | arm64 | Python 3.7
17+
python: 3.7
1818
services: docker
1919
arch: arm64-graviton2
2020
group: edge
2121
virt: vm
2222
env: PYTHON=python
2323

24-
- name: Linux | ppc64le | Python 3.6
25-
python: 3.6
24+
- name: Linux | ppc64le | Python 3.7
25+
python: 3.7
2626
services: docker
2727
arch: ppc64le
2828
allow_failure: True
@@ -32,18 +32,18 @@ jobs:
3232
# c.f. https://travis-ci.community/t/running-out-of-disk-space-quota-when-using-docker-on-ppc64le/11634
3333
- PYTEST_ADDOPTS='-k "not test_manylinuxXXXX_only"'
3434

35-
- name: Windows | x86_64 | Python 3.6
35+
- name: Windows | x86_64 | Python 3.7
3636
os: windows
3737
language: shell
3838
before_install:
39-
- choco upgrade python3 -y --version 3.6.8 --limit-output
39+
- choco upgrade python3 -y --version 3.7.9 --limit-output
4040
# Update root certificates to fix SSL error; see http://www.chawn.com/RootCerts.htm
4141
- powershell "md C:\temp\certs; CertUtil -generateSSTFromWU C:\temp\certs\RootStore.sst; Get-ChildItem -Path C:\\temp\certs\Rootstore.sst | Import-Certificate -CertStoreLocation Cert:\\LocalMachine\\Root\\ | out-null"
4242
env:
4343
- PYTHON=C:\\Python36\\python
4444

45-
- name: Linux | s390x | Python 3.6
46-
python: 3.6
45+
- name: Linux | s390x | Python 3.7
46+
python: 3.7
4747
services: docker
4848
arch: s390x
4949
env: PYTHON=python

CI.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
This is a summary of the Python versions and platforms covered by the different CI platforms:
22

3-
| | 3.6 | 3.7 | 3.8 |
4-
|----------|------------------------------|-----------------------------|------------------|
5-
| Linux | Travis CI / CircleCI | AppVeyor¹ / GitHub Actions | Azure Pipelines |
6-
| macOS | CircleCI | AppVeyor¹ / GitHub Actions | Azure Pipelines |
7-
| Windows | Travis CI / Azure Pipelines | AppVeyor¹ / GitHub Actions | Azure Pipelines |
3+
| | 3.7 | 3.8 | 3.9 | 3.10 |
4+
|----------|-----------------------|---------------------------|----------|----------------|
5+
| Linux | AppVeyor¹ / Travis CI | Azure Pipelines / GitLab | CircleCI | GitHub Actions |
6+
| macOS | AppVeyor¹ / Travis CI | Azure Pipelines | CircleCI | GitHub Actions |
7+
| Windows | AppVeyor¹ / Travis CI | Azure Pipelines | | GitHub Actions |
88

99
> ¹ AppVeyor only runs the "basic" test to reduce load.
1010
11-
Non-x86 architectures are covered on Travis CI using Python 3.6.
11+
Non-x86 architectures are covered on Travis CI using Python 3.7.

azure-pipelines.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ jobs:
2020
python -m pip install -e ".[dev]" pytest-azurepipelines
2121
python ./bin/run_tests.py
2222
23-
- job: windows_36
24-
pool: {vmImage: 'windows-2019'}
25-
timeoutInMinutes: 180
26-
steps:
27-
- task: UsePythonVersion@0
28-
inputs:
29-
versionSpec: '3.6'
30-
- bash: |
31-
python -m pip install -e ".[dev]" pytest-azurepipelines
32-
python ./bin/run_tests.py
33-
3423
- job: windows_38
3524
pool: {vmImage: 'windows-2019'}
3625
timeoutInMinutes: 180

bin/update_dependencies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
# This file supports 3.6+
32

43
import os
54
import shutil

cibuildwheel/bashlex_eval.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010

1111
def local_environment_executor(command: List[str], env: Dict[str, str]) -> str:
12-
return subprocess.run(
13-
command, env=env, universal_newlines=True, stdout=subprocess.PIPE, check=True
14-
).stdout
12+
return subprocess.run(command, env=env, text=True, stdout=subprocess.PIPE, check=True).stdout
1513

1614

1715
@dataclass(frozen=True)

docs/contributing.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ This has been moved to using docker, so you only need the following instructions
9494
The dependency update script in the next section requires multiple python versions installed. One way to do this is to use `pyenv`:
9595

9696
```bash
97-
pyenv install 3.6.11
9897
pyenv install 3.7.8
9998
# Optionally add 3.8 and make it the local version;
10099
# otherwise assuming 3.8+ already is your current python version
@@ -103,7 +102,6 @@ pyenv install 3.7.8
103102
Then, you need to make the required virtual environments:
104103

105104
```bash
106-
$(pyenv prefix 3.6.11)/bin/python -m venv env36
107105
$(pyenv prefix 3.7.8)/bin/python -m venv env37
108106
```
109107

examples/circleci-minimal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
linux-wheels:
55
working_directory: ~/linux-wheels
66
docker:
7-
- image: circleci/python:3.6
7+
- image: circleci/python:3.9
88
steps:
99
- checkout
1010
- setup_remote_docker

examples/travis-ci-test-and-deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ os: linux
99
dist: focal
1010
language: python
1111
python:
12-
- 3.6
1312
- 3.7
1413
- 3.8
1514

0 commit comments

Comments
 (0)