From a6196807ed5bf32552d43d8b692c94ee0db68584 Mon Sep 17 00:00:00 2001 From: Dylan Verheul Date: Tue, 17 Sep 2024 08:32:34 +0200 Subject: [PATCH 1/3] Update package --- .github/workflows/test.yml | 2 ++ MANIFEST.in | 5 ++++- pyproject.toml | 1 + tox.ini | 14 ++++++-------- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b746aaa..828ff23 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,6 +41,8 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Update repositories + run: sudo apt-get update - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: diff --git a/MANIFEST.in b/MANIFEST.in index f96cb96..12f3e7a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,6 @@ include LICENSE include MANIFEST.in +include .editorconfig include *.yaml include pyproject.toml include *.md @@ -10,5 +11,7 @@ include tox.ini include docs/*.rst docs/*.txt docs/*.py docs/Makefile graft src graft tests -global-exclude *.pyc +graft example prune docs/_build +exclude example/db.sqlite3 +global-exclude *.py[cod] diff --git a/pyproject.toml b/pyproject.toml index c524c54..1398682 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,7 @@ classifiers = [ "Framework :: Django", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", diff --git a/tox.ini b/tox.ini index 5673c0b..37926f1 100644 --- a/tox.ini +++ b/tox.ini @@ -3,11 +3,11 @@ args_are_paths = false envlist = py38-{4.2}, py39-{4.2}, - py310-{4.2,5.0,main}, - py311-{4.2,5.0,main}, - py312-{4.2,5.0,main}, + py310-{4.2,5.0,5.1,main}, + py311-{4.2,5.0,5.1,main}, + py312-{4.2,5.0,5.1,main}, docs, - lint, + ruff, [testenv] basepython = @@ -24,18 +24,16 @@ setenv = commands = python manage.py test {posargs} deps = - 4.0: Django==4.0.* - 4.1: Django==4.1.* 4.2: Django==4.2.* 5.0: Django==5.0.* + 5.1: Django==5.1.* main: https://github.com/django/django/archive/main.tar.gz -r{toxinidir}/requirements-test.txt [testenv:ruff] basepython = python3.11 -allowlist_externals = ruff deps = ruff -commands = ruff . +commands = ruff check . [testenv:docs] basepython = python3.11 From 0e103cc0f2453d0163aa46eea6ac42227a0790b7 Mon Sep 17 00:00:00 2001 From: Dylan Verheul Date: Thu, 19 Sep 2024 08:29:09 +0200 Subject: [PATCH 2/3] Update package --- .editorconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..0ab351a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,23 @@ +# https://editorconfig.org/ + +root = true + +[*] +indent_style = space +indent_size = 4 +insert_final_newline = true +trim_trailing_whitespace = true +end_of_line = lf +charset = utf-8 + +[*.py] +max_line_length = 88 + +[*.toml] +indent_size = 2 + +[docs/**.rst] +max_line_length = 79 + +[*.{yaml,yml}] +indent_size = 2 From c17ee21410badd6e4b8ee451aa0820c1742cb8e4 Mon Sep 17 00:00:00 2001 From: Dylan Verheul Date: Thu, 19 Sep 2024 08:30:40 +0200 Subject: [PATCH 3/3] Update package --- requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-test.txt b/requirements-test.txt index ff952e6..6b9c7f1 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,3 +1,3 @@ -tox==4.18.1 +tox==4.20.0 coverage==7.6.1 ruff==0.6.5