Skip to content

Commit

Permalink
Merge pull request #28 from Amertz08/feature/update-tox
Browse files Browse the repository at this point in the history
Update tox config
  • Loading branch information
Amertz08 authored Feb 1, 2025
2 parents 6ebd8ae + a1c1102 commit 9192a45
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 25 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion drf_ujson/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__author__ = "y.gavenchuk aka murminathor"
__version__ = (1, 7, 2)
__version__ = (1, 8, 0)
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[aliases]
test = pytest

[tool:pytest]
django_find_project = false
testpaths = tests
Expand Down
18 changes: 8 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
setup(
name="drf_ujson2",
version=".".join([str(i) for i in __version__]),
python_requires=">=3.6",
python_requires=">=3.10",
description="Django Rest Framework UJSON Renderer",
keywords="django,djangorestframework,ujson",
long_description=long_description,
Expand All @@ -20,18 +20,16 @@
url="https://github.com/Amertz08/drf_ujson2",
packages=find_packages(exclude=["tests"]),
install_requires=["django", "ujson>=2.0.1", "djangorestframework"],
extras_require={
"dev": ["pytest", "pytest-django", "pytest-runner", "pytest-cov", "pytest-mock"]
},
extras_require={"dev": ["pytest", "pytest-django", "pytest-cov", "pytest-mock"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
],
Expand Down
19 changes: 9 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
[tox]
envlist =
py37-django32
py{38,39,310}-django{32,4,41}
py{310,311,312}-django{42,5,51}
format
typing

[testenv]
extras = dev
deps =
django32: django~=3.2
django4: django~=4.0
django41: django~=4.1
django42: django~=4.2
django5: django~=5.0
django51: django~=5.1
commands =
pip list
python setup.py test
python -m pytest

[testenv:format]
skipsdist = true
Expand All @@ -33,7 +32,7 @@ commands = mypy drf_ujson

[gh-actions]
python =
3.7: py37-django32
3.8: py38-django32, py38-django4, py38-django41
3.9: py39-django32, py39-django4, py39-django41
3.10: py310-django32, py310-django4, py310-django41, format, typing
3.10: py39-django42, py39-django5, py39-django51
3.11: py39-django42, py39-django5, py39-django51
3.12: py39-django42, py39-django5, py39-django51
3.13: py310-django42, py310-django5, py310-django51, format, typing

0 comments on commit 9192a45

Please sign in to comment.