BREAKING: Require Python 3.8 to run repo2docker

pull/1411/head
Simon Li 2025-02-12 17:52:28 +00:00
rodzic 72816ca708
commit c1ddf464d6
5 zmienionych plików z 15 dodań i 19 usunięć

Wyświetl plik

@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: "3.9" python-version: "3.13"
- name: install build requirements - name: install build requirements
run: | run: |

Wyświetl plik

@ -51,7 +51,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
ubuntu_version: ["24.04"] ubuntu_version: ["24.04"]
python_version: ["3.9"] python_version: ["3.13"]
repo_type: repo_type:
- base - base
- conda - conda
@ -64,17 +64,13 @@ jobs:
- unit - unit
- venv - venv
- contentproviders - contentproviders
include:
# The actions/setup-python action with Python version 3.6 isn't
# possible to use with the ubuntu-22.04 runner, so we use ubuntu-20.04
# for this test where Python 3.6 remain available.
- ubuntu_version: "20.04"
python_version: "3.6"
repo_type: venv
# Playwright test # Playwright test
- ubuntu_version: "24.04" - ui
python_version: "3.13" include:
repo_type: ui # The earliest actions/setup-python versions depend on the runner.
- ubuntu_version: "22.04"
python_version: "3.8"
repo_type: venv
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

Wyświetl plik

@ -15,10 +15,10 @@ repos:
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: args:
- --py36-plus - --py38-plus
# check-tmp is a Python based test script run in created environments # check-tmp is a Python based test script run in created environments
# that can be at least Python 3.5 even though we require Python 3.6 for # that can be Python 3.5, older than the Python version required to run
# repo2docker itself. # repo2docker.
exclude: check-tmp exclude: check-tmp
# Autoformat: Python code # Autoformat: Python code
@ -27,12 +27,12 @@ repos:
hooks: hooks:
- id: black - id: black
args: args:
- --target-version=py36
- --target-version=py37
- --target-version=py38 - --target-version=py38
- --target-version=py39 - --target-version=py39
- --target-version=py310 - --target-version=py310
- --target-version=py311 - --target-version=py311
- --target-version=py312
- --target-version=py313
# Autoformat: Python code # Autoformat: Python code
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort

Wyświetl plik

@ -36,7 +36,7 @@ For more information, please visit
1. Docker to build & run the repositories. The [community edition](https://store.docker.com/search?type=edition&offering=community) 1. Docker to build & run the repositories. The [community edition](https://store.docker.com/search?type=edition&offering=community)
is recommended. is recommended.
2. Python 3.6+. 2. Python 3.8+.
Supported on Linux and macOS. [See documentation note about Windows support.](http://repo2docker.readthedocs.io/en/latest/install.html#note-about-windows-support) Supported on Linux and macOS. [See documentation note about Windows support.](http://repo2docker.readthedocs.io/en/latest/install.html#note-about-windows-support)

Wyświetl plik

@ -62,7 +62,7 @@ setup(
"toml", "toml",
"traitlets", "traitlets",
], ],
python_requires=">=3.6", python_requires=">=3.8",
author="Project Jupyter Contributors", author="Project Jupyter Contributors",
author_email="jupyter@googlegroups.com", author_email="jupyter@googlegroups.com",
url="https://repo2docker.readthedocs.io/en/latest/", url="https://repo2docker.readthedocs.io/en/latest/",