From 959af429ac84246787bb990c71e456c359dea6b1 Mon Sep 17 00:00:00 2001 From: Dylan Verheul Date: Tue, 17 Sep 2024 08:26:14 +0200 Subject: [PATCH] Update package --- .editorconfig | 23 +++++++++++++++++++++++ .github/workflows/test.yml | 2 ++ MANIFEST.in | 4 +++- pyproject.toml | 9 ++++----- tox.ini | 5 ++--- 5 files changed, 34 insertions(+), 9 deletions(-) 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 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 0ed9cf9..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 @@ -11,5 +12,6 @@ include docs/*.rst docs/*.txt docs/*.py docs/Makefile graft src graft tests graft example -global-exclude *.pyc prune docs/_build +exclude example/db.sqlite3 +global-exclude *.py[cod] diff --git a/pyproject.toml b/pyproject.toml index a92b670..68b9294 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", @@ -24,9 +25,7 @@ classifiers = [ "Topic :: Software Development :: Libraries", "Topic :: Utilities", ] -dependencies = [ - "Django>=4.2", -] +dependencies = ["Django>=4.2"] description = "Icons for Django" keywords = ["django", "icons"] license = {file = "LICENSE"} @@ -73,7 +72,7 @@ unfixable = [ ] [tool.ruff.lint.isort] -known-first-party = ["django_marina", "app"] +known-first-party = ["django_icons", "app"] known-third-party = ["django"] [tool.coverage.run] @@ -81,7 +80,7 @@ branch = true source = ["src", "tests"] [tool.coverage.paths] -package = ["src/django_marina", "*/django_marina/src/django_marina"] +package = ["src/django_icons", "*/django_icons/src/django_icons"] [tool.coverage.report] show_missing = true diff --git a/tox.ini b/tox.ini index b40bc70..37926f1 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,7 @@ envlist = py311-{4.2,5.0,5.1,main}, py312-{4.2,5.0,5.1,main}, docs, - lint, + ruff, [testenv] basepython = @@ -32,9 +32,8 @@ deps = [testenv:ruff] basepython = python3.11 -allowlist_externals = ruff deps = ruff -commands = ruff . +commands = ruff check . [testenv:docs] basepython = python3.11