Skip to content

Commit

Permalink
build: add support for python newer versions in CI GH workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Apr 24, 2024
1 parent 8a3b5f8 commit ac5f842
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
)
2 changes: 1 addition & 1 deletion src/enmerkar_underscore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ac5f842

Please sign in to comment.