From 7b590be045dfecb55e0117cb6c995e50f021b92c Mon Sep 17 00:00:00 2001 From: jce Date: Thu, 11 Jan 2024 15:00:45 +0100 Subject: [PATCH] Deprecate Python 3.8 and test 3.12 --- .github/workflows/python-package.yml | 4 ++-- setup.py | 4 ++-- tox.ini | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b49dbd7..cfbb066 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -59,7 +59,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.7' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/setup.py b/setup.py index e82fc06..7448bbb 100644 --- a/setup.py +++ b/setup.py @@ -27,11 +27,11 @@ 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Documentation', 'Topic :: Documentation :: Sphinx', 'Topic :: Utilities', @@ -41,7 +41,7 @@ package_data={'mlx.xunit2rst': ['mlx/*.mako', 'mlx/assets/*']}, include_package_data=True, install_requires=requires, - python_requires='>=3.7', + python_requires='>=3.8', namespace_packages=['mlx'], keywords=['xUnit', 'JUnit', 'XML', 'reStructuredText', 'sphinx', 'rst', 'testing', 'traceability', 'documentation'], entry_points={ diff --git a/tox.ini b/tox.ini index 79b287a..caa31aa 100644 --- a/tox.ini +++ b/tox.ini @@ -2,25 +2,25 @@ envlist = clean, check, - py37, py38, py39, py310, py311 + py38, py39, py310, py311, py312 doc, [gh-actions] python = - 3.7: py37 3.8: py38 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 [testenv] basepython = py: python3 - py37: {env:TOXPYTHON:python3.7} py38: {env:TOXPYTHON:python3.8} py39: {env:TOXPYTHON:python3.9} py310: {env:TOXPYTHON:python3.10} py311: {env:TOXPYTHON:python3.11} + py312: {env:TOXPYTHON:python3.12} {clean,check,codecov,doc}: python3 passenv = *