Skip to content

Commit

Permalink
Upgrade tox
Browse files Browse the repository at this point in the history
  • Loading branch information
pamella committed May 22, 2024
1 parent 056dcfe commit 4e342d7
Show file tree
Hide file tree
Showing 8 changed files with 246 additions and 190 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ on:

jobs:
test:
name: Test (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
django-version: ["3.2", "4.0", "4.1", "4.2", "5.0", "5.1"]

steps:
- uses: actions/checkout@v4
Expand All @@ -22,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
python -m pip install tox tox-gh
- name: Run tests with tox
run: tox
- name: Run Codecov
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ tests/__init__.py

# Development task artifacts
*.db
Pipfile

# Visual Studio Code config files
.vscode

# pytest
.pytest_cache/
.pytest_cache/
2 changes: 1 addition & 1 deletion requirements/dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
django>=3.0.3,<5.1
diff-cover # Changeset diff test coverage
pip-tools # Requirements file management
tox # virtualenv management for tests
tox>=4.15.0 # virtualenv management for tests
tox-battery # Makes tox aware of requirements file changes
twine # Utility for PyPI package uploads
wheel # For generation of wheels for PyPI
192 changes: 110 additions & 82 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --output-file=requirements/dev.txt --resolver=backtracking requirements/base.in requirements/dev.in requirements/quality.in
# pip-compile --output-file=requirements/dev.txt requirements/base.in requirements/dev.in requirements/quality.in
#
asgiref==3.7.2
annotated-types==0.7.0
# via pydantic
asgiref==3.8.1
# via django
astroid==2.15.8
# via
Expand All @@ -13,133 +15,156 @@ astroid==2.15.8
# pylint-celery
# pylint-flask
# requirements-detector
bandit==1.7.5
authlib==1.3.0
# via safety
bandit==1.7.8
# via -r requirements/quality.in
build==1.0.3
build==1.2.1
# via pip-tools
certifi==2023.11.17
cachetools==5.3.3
# via tox
certifi==2024.2.2
# via requests
cffi==1.16.0
# via cryptography
chardet==5.2.0
# via diff-cover
# via
# diff-cover
# tox
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via
# pip-tools
# safety
cryptography==41.0.7
# via secretstorage
diff-cover==8.0.1
# typer
colorama==0.4.6
# via tox
cryptography==42.0.7
# via
# authlib
# secretstorage
diff-cover==9.0.0
# via -r requirements/dev.in
dill==0.3.7
dill==0.3.8
# via pylint
distlib==0.3.7
distlib==0.3.8
# via virtualenv
django==5.0
django==5.0.6
# via
# -r requirements/dev.in
# djangorestframework
djangorestframework==3.14.0
djangorestframework==3.15.1
# via -r requirements/base.in
docutils==0.20.1
docutils==0.21.2
# via readme-renderer
dodgy==0.2.1
# via prospector
dparse==0.6.3
# via safety
filelock==3.13.1
dparse==0.6.4b0
# via
# safety
# safety-schemas
filelock==3.14.0
# via
# tox
# virtualenv
flake8==3.8.4
# via flake8-polyfill
flake8-polyfill==1.0.2
# via pep8-naming
gitdb==4.0.11
# via gitpython
gitpython==3.1.40
# via bandit
idna==3.6
idna==3.7
# via requests
importlib-metadata==7.0.0
# via
# keyring
# twine
isort==5.12.0
importlib-metadata==7.1.0
# via twine
isort==5.13.2
# via
# -r requirements/quality.in
# pylint
jaraco-classes==3.3.0
jaraco-classes==3.4.0
# via keyring
jaraco-context==5.3.0
# via keyring
jaraco-functools==4.0.1
# via keyring
jeepney==0.8.0
# via
# keyring
# secretstorage
jinja2==3.1.2
# via diff-cover
keyring==24.3.0
jinja2==3.1.4
# via
# diff-cover
# safety
keyring==25.2.1
# via twine
lazy-object-proxy==1.9.0
lazy-object-proxy==1.10.0
# via astroid
markdown-it-py==3.0.0
# via rich
markupsafe==2.1.3
markupsafe==2.1.5
# via jinja2
marshmallow==3.21.2
# via safety
mccabe==0.6.1
# via
# flake8
# prospector
# pylint
mdurl==0.1.2
# via markdown-it-py
more-itertools==10.1.0
# via jaraco-classes
nh3==0.2.14
more-itertools==10.2.0
# via
# jaraco-classes
# jaraco-functools
nh3==0.2.17
# via readme-renderer
packaging==23.2
packaging==24.0
# via
# build
# dparse
# marshmallow
# pyproject-api
# requirements-detector
# safety
# safety-schemas
# tox
pbr==6.0.0
# via stevedore
pep8-naming==0.10.0
# via prospector
pip-tools==7.3.0
pip-tools==7.4.1
# via -r requirements/dev.in
pkginfo==1.9.6
pkginfo==1.10.0
# via twine
platformdirs==4.1.0
platformdirs==4.2.2
# via
# pylint
# tox
# virtualenv
pluggy==1.3.0
pluggy==1.5.0
# via
# diff-cover
# tox
prospector==1.4.1.1
# via -r requirements/quality.in
py==1.11.0
# via tox
pycodestyle==2.6.0
# via
# flake8
# prospector
pycparser==2.21
pycparser==2.22
# via cffi
pydantic==2.7.1
# via
# safety
# safety-schemas
pydantic-core==2.18.2
# via pydantic
pydocstyle==6.3.0
# via prospector
pyflakes==2.2.0
# via
# flake8
# prospector
pygments==2.17.2
pygments==2.18.0
# via
# diff-cover
# readme-renderer
Expand Down Expand Up @@ -168,17 +193,19 @@ pylint-plugin-utils==0.8.2
# pylint-celery
# pylint-django
# pylint-flask
pyproject-hooks==1.0.0
# via build
pytz==2023.3.post1
# via djangorestframework
pyproject-api==1.6.1
# via tox
pyproject-hooks==1.1.0
# via
# build
# pip-tools
pyyaml==6.0.1
# via
# bandit
# prospector
readme-renderer==42.0
readme-renderer==43.0
# via twine
requests==2.31.0
requests==2.32.2
# via
# requests-toolbelt
# safety
Expand All @@ -189,70 +216,71 @@ requirements-detector==1.2.2
# via prospector
rfc3986==2.0.0
# via twine
rich==13.7.0
rich==13.7.1
# via
# bandit
# safety
# twine
ruamel-yaml==0.18.5
# via safety
# typer
ruamel-yaml==0.18.6
# via
# safety
# safety-schemas
ruamel-yaml-clib==0.2.8
# via ruamel-yaml
safety==2.3.4
safety==3.2.0
# via -r requirements/quality.in
safety-schemas==0.0.2
# via safety
secretstorage==3.3.3
# via keyring
semver==3.0.2
# via requirements-detector
setoptconf==0.3.0
# via prospector
six==1.16.0
# via tox
smmap==5.0.1
# via gitdb
shellingham==1.5.4
# via typer
snowballstemmer==2.2.0
# via pydocstyle
sqlparse==0.4.4
sqlparse==0.5.0
# via django
stevedore==5.1.0
stevedore==5.2.0
# via bandit
toml==0.10.2
# via requirements-detector
tomli==2.0.1
# via
# build
# dparse
# pip-tools
# pylint
# pyproject-api
# pyproject-hooks
# tox
tomlkit==0.12.3
tomlkit==0.12.5
# via pylint
tox==3.28.0
tox==4.15.0
# via
# -r requirements/dev.in
# tox-battery
tox-battery==0.6.2
tox-battery==0.6.1
# via -r requirements/dev.in
twine==4.0.2
twine==5.1.0
# via -r requirements/dev.in
typing-extensions==4.8.0
typer==0.12.3
# via safety
typing-extensions==4.11.0
# via
# asgiref
# astroid
urllib3==2.1.0
# pydantic
# pydantic-core
# safety
# safety-schemas
# typer
urllib3==2.2.1
# via
# requests
# safety
# twine
virtualenv==20.25.0
virtualenv==20.26.2
# via tox
wheel==0.42.0
wheel==0.43.0
# via
# -r requirements/dev.in
# pip-tools
wrapt==1.16.0
# via astroid
zipp==3.17.0
zipp==3.18.2
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
Expand Down
Loading

0 comments on commit 4e342d7

Please sign in to comment.