Skip to content

Commit

Permalink
[REF] setup.py: Deprecate py3.8-
Browse files Browse the repository at this point in the history
python3.8 is obsolote and OS are removing old python version

e.g. ubuntu-latest (24.04) is not available to install py3.8-
and github actions are using this OS version

Also, other packages are removing support for py3.8-
e.g. pylint

[REF] github-actions: Use new py3.13

[REF] tox: update-readme force to use new py3.13 instead of py3.10
  • Loading branch information
moylop260 committed Jan 22, 2025
1 parent 9901472 commit 498810d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,23 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
tox_env: ["py"]
include:
- python: '3.12'
- python: '3.13'
os: ubuntu-latest
tox_env: 'lint'
- python: '3.12'
- python: '3.13'
os: ubuntu-latest
tox_env: 'update-readme'
- python: '3.12'
- python: '3.13'
os: ubuntu-latest
tox_env: 'build'
- python: '3.12'
- python: '3.13'
os: ubuntu-latest
tox_env: 'cprofile'
exclude:
# macos-14 AKA macos-latest has switched to being an ARM runner, only supporting newer versions of Python
# https://github.com/actions/setup-python/issues/825#issuecomment-2096792396
- python: '3.7'
os: macos-latest
- python: '3.8'
os: macos-latest
- python: '3.9'
os: macos-latest
- python: '3.10'
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ def generage_long_description():
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"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",
"Programming Language :: Python :: 3.13",
"Topic :: Utilities",
],
project_urls={
Expand All @@ -87,7 +86,7 @@ def generage_long_description():
"Odoo Community Association",
"pre-commit-hook",
],
python_requires=">=3.7",
python_requires=">=3.9",
install_requires=generate_dependencies(),
extras_require={},
entry_points={
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ envlist =
lint,
update-readme,
build,
py37,
py38,
py39,
py310,
py311,
py312,
py313,

[testenv]
parallel_show_output=true
Expand All @@ -32,7 +31,7 @@ commands =
pytest -vv -rA {posargs:-k test_profile_checks}

[testenv:update-readme]
basepython = {env:TOXPYTHON:python3.10}
basepython = {env:TOXPYTHON:python3.13}
setenv =
{[testenv]setenv}
BUILD_README=true
Expand Down

0 comments on commit 498810d

Please sign in to comment.