From b0d91608233708d4b0def9989171caac69da390c Mon Sep 17 00:00:00 2001 From: Lars Reimann Date: Tue, 3 Oct 2023 12:15:00 +0200 Subject: [PATCH] feat: drop Python 3.10 and add Python 3.12 --- .github/linters/.ruff.toml | 2 +- .github/workflows/main.yml | 4 ++-- .github/workflows/pr.yml | 4 ++-- .github/workflows/release.yml | 2 +- poetry.lock | 40 +++-------------------------------- pyproject.toml | 2 +- readthedocs.yml | 2 +- 7 files changed, 11 insertions(+), 45 deletions(-) diff --git a/.github/linters/.ruff.toml b/.github/linters/.ruff.toml index 03b79e1..9dc8ef0 100644 --- a/.github/linters/.ruff.toml +++ b/.github/linters/.ruff.toml @@ -1,6 +1,6 @@ ignore-init-module-imports = true line-length = 120 -target-version = "py310" +target-version = "py311" select = [ "F", diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e51c7ca..4e0377c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,13 +10,13 @@ jobs: fail-fast: false matrix: python-version: - - "3.10" - "3.11" + - "3.12" uses: lars-reimann/.github/.github/workflows/poetry-codecov-reusable.yml@main with: working-directory: . python-version: ${{ matrix.python-version }} module-name: safeds_examples - coverage: ${{ matrix.python-version == '3.10' }} + coverage: ${{ matrix.python-version == '3.11' }} secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index fe17b6c..2243e3a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,13 +14,13 @@ jobs: fail-fast: false matrix: python-version: - - "3.10" - "3.11" + - "3.12" uses: lars-reimann/.github/.github/workflows/poetry-codecov-reusable.yml@main with: working-directory: . python-version: ${{ matrix.python-version }} module-name: safeds_examples - coverage: ${{ matrix.python-version == '3.10' }} + coverage: ${{ matrix.python-version == '3.11' }} secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c06ca62..a3ac251 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ jobs: uses: lars-reimann/.github/.github/workflows/poetry-pypi-reusable.yml@main with: working-directory: . - python-version: "3.10" + python-version: "3.11" secrets: GITHUB_PAT: ${{ secrets.PAT }} PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} diff --git a/poetry.lock b/poetry.lock index 322855b..33711e9 100644 --- a/poetry.lock +++ b/poetry.lock @@ -12,7 +12,6 @@ files = [ ] [package.dependencies] -exceptiongroup = {version = "*", markers = "python_version < \"3.11\""} idna = ">=2.8" sniffio = ">=1.1" @@ -553,9 +552,6 @@ files = [ {file = "coverage-7.2.7.tar.gz", hash = "sha256:924d94291ca674905fe9481f12294eb11f2d3d3fd1adb20314ba89e94f44ed59"}, ] -[package.dependencies] -tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} - [package.extras] toml = ["tomli"] @@ -630,20 +626,6 @@ files = [ {file = "et_xmlfile-1.1.0.tar.gz", hash = "sha256:8eb9e2bc2f8c97e37a2dc85a09ecdcdec9d8a396530a6d5a33b30b9a92da0c5c"}, ] -[[package]] -name = "exceptiongroup" -version = "1.1.1" -description = "Backport of PEP 654 (exception groups)" -optional = false -python-versions = ">=3.7" -files = [ - {file = "exceptiongroup-1.1.1-py3-none-any.whl", hash = "sha256:232c37c63e4f682982c8b6459f33a8981039e5fb8756b2074364e5055c498c9e"}, - {file = "exceptiongroup-1.1.1.tar.gz", hash = "sha256:d484c3090ba2889ae2928419117447a14daf3c1231d5e30d0aae34f354f01785"}, -] - -[package.extras] -test = ["pytest (>=6)"] - [[package]] name = "executing" version = "1.2.0" @@ -2158,10 +2140,7 @@ files = [ ] [package.dependencies] -numpy = [ - {version = ">=1.23.2", markers = "python_version >= \"3.11\""}, - {version = ">=1.21.0", markers = "python_version >= \"3.10\" and python_version < \"3.11\""}, -] +numpy = {version = ">=1.23.2", markers = "python_version >= \"3.11\""} python-dateutil = ">=2.8.2" pytz = ">=2020.1" tzdata = ">=2022.1" @@ -2545,11 +2524,9 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "sys_platform == \"win32\""} -exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" pluggy = ">=0.12,<2.0" -tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] @@ -3443,17 +3420,6 @@ files = [ {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, ] -[[package]] -name = "tomli" -version = "2.0.1" -description = "A lil' TOML parser" -optional = false -python-versions = ">=3.7" -files = [ - {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, - {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, -] - [[package]] name = "tornado" version = "6.3.3" @@ -3636,5 +3602,5 @@ files = [ [metadata] lock-version = "2.0" -python-versions = "^3.10" -content-hash = "a7ac90c8d0d1742100b1b4d4ea73377b142b79ef33603d86107068f5cd5498ea" +python-versions = "^3.11" +content-hash = "09778ae1845a5302313a1d22f15389173c1e27d4a6687ac902e04e73704c18b2" diff --git a/pyproject.toml b/pyproject.toml index 7156faf..154d8a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ packages = [ ] [tool.poetry.dependencies] -python = "^3.10" +python = "^3.11" safe-ds = ">=0.15,<0.16" [tool.poetry.group.dev.dependencies] diff --git a/readthedocs.yml b/readthedocs.yml index cd0e3de..60a515a 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: '3.10' + python: '3.11' commands: - pip install poetry - poetry config virtualenvs.create false