From 69f690d1498343f779d2cd8896a64c4a02f8a92a Mon Sep 17 00:00:00 2001 From: Lena Bertho Date: Wed, 13 Nov 2024 09:49:06 +0100 Subject: [PATCH] pyproject, tox, tests: set oldest version supported to 3.10 Below 3.10, annotations for dict and list requires to import List and Dict from typing but pyserde does not support it Normally we don't have any python environnement with python 3.8 or 3.9 We can't support python 3.12 and after in the tests because pytest-virtualenv do not support it yet --- .github/workflows/tests.yml | 2 +- pyproject.toml | 5 +++-- tox.ini | 4 +--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0cc6fa3..abbcfa0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.10', '3.11'] steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 5b81eac..54fd2a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ name = "cython_setuptools" description = "Cython setuptools integration" dynamic = ["version"] readme = "README.md" -requires-python = "~=3.8" +requires-python = "~=3.10" keywords = ["cython", "setuptools"] authors = [{name = "Luper Rouch", email= "luper.rouch@gmail.com"}] maintainers = [{ name = "Marco Treglia", email = "mtreglia@gopro.com" }] @@ -33,7 +33,8 @@ dev = [ "virtualenv", "cython", "pytest-virtualenv", - "six"] + "six", +] [metadata] long_description = "file:README.md" diff --git a/tox.ini b/tox.ini index 23e62e9..96ef0f5 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,9 @@ [tox] -envlist = py38, py39, py310, py311 +envlist = py310, py311 isolated_build = true [gh-actions] python = - 3.8: py38, - 3.9: py39, 3.10: py310, flake8 3.11: py311,