From ac5f842390e0cfe752abded7486d97309af9efae Mon Sep 17 00:00:00 2001 From: Maria Grimaldi Date: Thu, 18 Apr 2024 12:03:32 -0400 Subject: [PATCH] build: add support for python newer versions in CI GH workflows --- .github/workflows/ci.yml | 4 ++-- setup.py | 7 +++---- src/enmerkar_underscore/__init__.py | 2 +- tox.ini | 7 +++---- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73c4961..4250987 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,8 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8'] - toxenv: [django32, django42] + python-version: ['3.8', '3.11', '3.12'] + toxenv: ['django42'] steps: - uses: actions/checkout@v1 diff --git a/setup.py b/setup.py index ce5c344..d4b0433 100644 --- a/setup.py +++ b/setup.py @@ -135,10 +135,9 @@ def get_version(*file_paths): 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Framework :: Django', - 'Framework :: Django :: 2.2', - 'Framework :: Django :: 3.0', - 'Framework :: Django :: 3.1', - 'Framework :: Django :: 3.2', + 'Framework :: Django :: 4.2', ], ) diff --git a/src/enmerkar_underscore/__init__.py b/src/enmerkar_underscore/__init__.py index 66c2b0f..b15d8a4 100644 --- a/src/enmerkar_underscore/__init__.py +++ b/src/enmerkar_underscore/__init__.py @@ -15,7 +15,7 @@ from markey.machine import tokenize, parse_arguments -__version__ = '2.2.1' +__version__ = '2.3.0' def extract(fileobj, keywords, comment_tags, options): """Extracts translation messages from underscore template files. diff --git a/tox.ini b/tox.ini index 24a3764..7615aa0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,19 +1,18 @@ [tox] -envlist = py38-django{32,42} +envlist = py{38,311,312}-django{42} [testenv] skipsdist = True usedevelop = True deps = -r{toxinidir}/requirements/tox.txt - django32: Django>=3.2,<3.3 django42: Django>=4.2,<4.3 -e. -commands = +commands = python -Wd -m pytest {posargs} [testenv:docs] -commands = +commands = pip install -e {toxinidir} pip install -e {toxinidir}[docs] sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html