From 3de603f738cbdea0e04d31c79f99bcb3a2de60d9 Mon Sep 17 00:00:00 2001 From: JWM Date: Fri, 16 Aug 2024 10:40:15 +0200 Subject: [PATCH 1/3] Remove Python version 3.7; Add Python 3.12 --- .github/workflows/python-package.yml | 2 +- setup.py | 2 +- tox.ini | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a393811b..64cf0adb 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -14,7 +14,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 }} diff --git a/setup.py b/setup.py index 5d67d035..ad241ef5 100644 --- a/setup.py +++ b/setup.py @@ -29,11 +29,11 @@ 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 'Operating System :: OS Independent', 'Programming Language :: Python', - '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', diff --git a/tox.ini b/tox.ini index 10fd59b7..a48d3098 100644 --- a/tox.ini +++ b/tox.ini @@ -1,26 +1,26 @@ [tox] envlist = - py37, py38, py39, py310, py311 + py38, py39, py310, py311, py312 clean, check, [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 pypy: {env:TOXPYTHON:pypy} - 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,test,html,latexpdf,check,report,coverage}: python3 setenv = PYTHONPATH={toxinidir}/tests From 8232fb63bcf314b3efed992c367c27f3d06aeeb9 Mon Sep 17 00:00:00 2001 From: JWM Date: Fri, 16 Aug 2024 10:49:11 +0200 Subject: [PATCH 2/3] Add warning to exclude that is not resolved yet in the sphinx traceability extension --- warnings_config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/warnings_config.json b/warnings_config.json index e59637db..888ab4b0 100644 --- a/warnings_config.json +++ b/warnings_config.json @@ -6,7 +6,8 @@ "exclude": [ "WARNING: Connection failed: ", "WARNING: Connection failed: ", - "CRITICAL:root:No such Coverity Configuration Service" + "CRITICAL:root:No such Coverity Configuration Service", + "WARNING: cannot cache unpickable configuration value: 'traceability_attributes_sort' \\(because it contains a function, class, or module object\\)" ] } } From a3a56c8808b4743f31221c053995c870721751eb Mon Sep 17 00:00:00 2001 From: JWM Date: Fri, 16 Aug 2024 10:57:46 +0200 Subject: [PATCH 3/3] Add python_requires='>=3.8' to setup.py --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index ad241ef5..76b93458 100644 --- a/setup.py +++ b/setup.py @@ -42,6 +42,7 @@ packages=find_packages(exclude=['tests', 'example']), include_package_data=True, install_requires=requires, + python_requires='>=3.8', namespace_packages=['mlx'], keywords=[ 'coverity',