Skip to content

Commit

Permalink
Increase minimum Python version to 3.7 (#2241)
Browse files Browse the repository at this point in the history
This does not make the code incompatible with Python 3.6, but does not check for Python 3.6 compatibility anymore which makes it possible to include Python >=3.7 only code.

To be clear, the minimum required Python version is now Python 3.7, so using features which are only in 3.7 and above is perfectly fine.

This removes Ubuntu 18.04 test from the CI because 18.04 uses Python 3.6 and therefore 18.04 in its default configuration is now no longer supported.
  • Loading branch information
wenzeslaus committed Mar 2, 2022
1 parent 01e30f7 commit 87fdb47
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 50 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/build_ubuntu-18.04.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
name: ${{ matrix.os }} build

runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
container: ${{ matrix.os }}
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
include:
- os: ubuntu-20.04
python-version: "3.10"
min-python-version: "3.6"
min-python-version: "3.7"
pylint-version: "2.12.2"

runs-on: ${{ matrix.os }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
strategy:
matrix:
os:
- ubuntu-18.04
- ubuntu-20.04
fail-fast: false

Expand Down
2 changes: 1 addition & 1 deletion REQUIREMENTS.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h3>General requirements:</h3>
<a href="https://gdal.org">https://gdal.org</a>
</li>

<li><b>Python &gt;= 3.6</b> (for temporal framework, scripts, wxGUI, and ctypes interface)<br>
<li><b>Python &gt;= 3.7</b> (for temporal framework, scripts, wxGUI, and ctypes interface)<br>
<a href="https://www.python.org">https://www.python.org</a>
</li>

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 88
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
target-version = ['py37', 'py38', 'py39', 'py310']
include = '\.pyi?$'
exclude = '''
(
Expand Down

0 comments on commit 87fdb47

Please sign in to comment.