From a80f2993417c8d8c6b4f6399237bdff22557ed1f Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sun, 26 Nov 2023 12:11:44 +0100 Subject: [PATCH 01/13] [CHANGE] Update templates for AAv4 --- example/templates/example/base.html | 13 +++++++++---- example/templates/example/index.html | 9 +++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/example/templates/example/base.html b/example/templates/example/base.html index 4aaaef0..6955d45 100644 --- a/example/templates/example/base.html +++ b/example/templates/example/base.html @@ -1,12 +1,17 @@ -{% extends 'allianceauth/base.html' %} +{% extends 'allianceauth/base-bs5.html' %} + {% load i18n %} -{% block page_title %}{% translate "Example Plugin" %}{% endblock %} +{% block page_title %} + {% translate "Example Plugin" %} +{% endblock %} + +{% block header_nav_brand %} + {% translate "Example Plugin" %} +{% endblock header_nav_brand %} {% block content %}
-

{% translate "Example Plugin" %}

- {% block details %}{% endblock %}
{% endblock %} diff --git a/example/templates/example/index.html b/example/templates/example/index.html index 420f8a2..c78f621 100644 --- a/example/templates/example/index.html +++ b/example/templates/example/index.html @@ -1,14 +1,15 @@ {% extends 'example/base.html' %} + {% load i18n %} {% load humanize %} {% block details %} -
-
-
{% translate "Panel Headline" %}
+
+
+
{% translate "Headline" %}
-
+
{{ text }}
From 4cf5385bbea95a54f17d6d7765998fde40f5bc5c Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Tue, 26 Dec 2023 16:13:29 +0100 Subject: [PATCH 02/13] [MISC] Test suite updated --- .github/workflows/automated-checks.yml | 63 ++++++++++++++++++++------ .pre-commit-config.yaml | 2 +- testauth/base.py | 19 +++++--- testauth/local.py | 5 +- tox.ini | 9 +--- 5 files changed, 66 insertions(+), 32 deletions(-) diff --git a/.github/workflows/automated-checks.yml b/.github/workflows/automated-checks.yml index 3136e44..98c9911 100644 --- a/.github/workflows/automated-checks.yml +++ b/.github/workflows/automated-checks.yml @@ -1,4 +1,4 @@ -name: Checks +name: Tests on: push: @@ -34,19 +34,44 @@ jobs: uses: pre-commit/action@v3.0.1 # Run Test Coverage - test-coverage: - needs: [ pre-commit ] - name: Test Coverage (Python ${{ matrix.python-version }}) + test-coverage-aa-stable: + needs: [pre-commit] + name: AA Latest (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }} with ${{ matrix.database }}) runs-on: ubuntu-latest strategy: - # Set Python and Django versions to test for the stable release of AllianceAuth + # Set Python and Django version to test for the stable release of AllianceAuth matrix: python-version: - '3.8' - '3.9' - '3.10' - '3.11' + - '3.12' + # MySQL versions to test against + database: + # https://endoflife.date/mysql + - mysql:8.0 # [LTS] Maintained until: 30 Apr 2026 + - mysql:8.1 # Latest official release + # https://endoflife.date/mariadb and https://mariadb.com/kb/en/mariadb-server-release-dates/ + - mariadb:10.4 # Maintained until: 18 June 2024 + - mariadb:10.5 # Maintained until: 24 June 2025 + - mariadb:10.6 # [LTS] Maintained until: July 2026 + - mariadb:10.11 # [LTS] Maintained until: February 2028 + - mariadb:11.0 # Maintained until: June 2024 + - mariadb:11.1 # Maintained until: August 2024 + +# continue-on-error: ${{ matrix.python-version == '3.11-dev' }} + + services: + database: + image: ${{ matrix.database }} + env: + MYSQL_ROOT_PASSWORD: temp_password_aa_tox_tests + MYSQL_DATABASE: tox_allianceauth + ports: + - 3306:3306 + options: --tmpfs /var/lib/mysql steps: - name: Checkout @@ -69,32 +94,40 @@ jobs: python -m pip install --upgrade tox tox-gh-actions - name: Run Tox + env: + TOX_ENV: allianceauth-stable + DB_HOST: 127.0.0.1 + DB_USER: root + DB_PASSWORD: temp_password_aa_tox_tests # Run tox using the version of Python in `PATH` - run: tox -v + run: tox -v -e ${{ env.TOX_ENV }} # - name: Upload Coverage # if: ${{ # ( -# github.event_name == 'pull_request' || -# ( -# github.event_name == 'push' && -# github.ref == 'refs/heads/master' +# github.event_name == 'pull_request' +# || ( +# github.event_name == 'push' +# && github.ref == 'refs/heads/master' +# ) # ) +# && ( +# matrix.python-version == '3.10' +# && matrix.database == 'mariadb:10.11' # ) -# && matrix.python-version == '3.11' # }} # uses: codecov/codecov-action@v3 # with: # token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos # files: coverage.xml # optional -# flags: unittests # optional -# name: codecov-umbrella # optional -# fail_ci_if_error: true # optional (default = false) +## flags: unittests # optional +## name: codecov-umbrella # optional +## fail_ci_if_error: true # optional (default = false) # verbose: true # optional (default = false) # Pypi Build Test pypi-build-test: - needs: [ test-coverage ] + needs: [ test-coverage-aa-stable ] name: PyPi Build Test runs-on: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ee4215e..84773e2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -112,7 +112,7 @@ repos: hooks: - id: django-upgrade args: - - --target-version=4.0 # Minimum supported Django version for AA. Update as needed. + - --target-version=4.2 # Minimum supported Django version for AA. Update as needed. - repo: https://github.com/asottile/pyupgrade rev: v3.15.0 diff --git a/testauth/base.py b/testauth/base.py index 701ead9..633c632 100644 --- a/testauth/base.py +++ b/testauth/base.py @@ -6,16 +6,11 @@ If you wish to make changes, overload the setting in your project's settings file (local.py). """ -# Standard Library import os -# Third Party -from celery.schedules import crontab - -# Django from django.contrib import messages +from celery.schedules import crontab -# pylint: disable=line-too-long INSTALLED_APPS = [ "allianceauth", # needs to be on top of this list to support favicons in Django admin (see https://gitlab.com/allianceauth/allianceauth/-/issues/1301) "django.contrib.admin", @@ -27,8 +22,10 @@ "django.contrib.humanize", "django_celery_beat", "bootstrapform", + "django_bootstrap5", # https://github.com/zostera/django-bootstrap5 "sortedm2m", "esi", + "allianceauth.framework", "allianceauth.authentication", "allianceauth.services", "allianceauth.eveonline", @@ -36,6 +33,11 @@ "allianceauth.notifications", "allianceauth.thirdparty.navhelper", "allianceauth.analytics", + "allianceauth.menu", + "allianceauth.theme", + "allianceauth.theme.darkly", + "allianceauth.theme.flatly", + "allianceauth.theme.materia", ] SECRET_KEY = "wow I'm a really bad default secret key" @@ -71,6 +73,7 @@ BASE_DIR = os.path.dirname(PROJECT_DIR) MIDDLEWARE = [ + "allianceauth.menu.middleware.MenuSyncMiddleware", "django.middleware.security.SecurityMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "allianceauth.authentication.middleware.UserSettingsMiddleware", @@ -80,7 +83,6 @@ "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", - "allianceauth.analytics.middleware.AnalyticsMiddleware", ] ROOT_URLCONF = "allianceauth.urls" @@ -190,6 +192,9 @@ SITE_NAME = "Alliance Auth" +DEFAULT_THEME = "allianceauth.theme.flatly.auth_hooks.FlatlyThemeHook" +DEFAULT_THEME_DARK = "allianceauth.theme.darkly.auth_hooks.DarklyThemeHook" # Legacy AAv3 user.profile.night_mode=1 + LOGIN_URL = "auth_login_user" # view that handles login logic LOGIN_REDIRECT_URL = "authentication:dashboard" # default destination when logging in if no redirect specified diff --git a/testauth/local.py b/testauth/local.py index 986ffa6..a45c0b2 100644 --- a/testauth/local.py +++ b/testauth/local.py @@ -14,7 +14,10 @@ # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.10/howto/static-files/ -STATICFILES_DIRS = [os.path.join(PROJECT_DIR, f"{PACKAGE}/static")] +# STATICFILES_DIRS = [os.path.join(PROJECT_DIR, f"{PACKAGE}/static")] +STATICFILES_DIRS = [ + f"{PACKAGE}/static", +] SITE_URL = "https://example.com" CSRF_TRUSTED_ORIGINS = [SITE_URL] diff --git a/tox.ini b/tox.ini index 3bff00c..b1cfdbc 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,7 @@ requires = tox>=4.2 env_list = - py{311, 310, 39, 38} + py{312, 311, 310, 39, 38} [testenv] deps = @@ -16,10 +16,3 @@ commands = coverage report coverage xml install_command = python -m pip install -U {opts} {packages} - -[gh-actions] -python = - 3.8: py38 - 3.9: py39 - 3.10: py310 - 3.11: py311 From 402deb2921c3afd01be92dcad7b86875decc3851 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Tue, 26 Dec 2023 16:18:35 +0100 Subject: [PATCH 03/13] [MISC] GH workflow simplified again --- .github/workflows/automated-checks.yml | 32 ++++---------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/.github/workflows/automated-checks.yml b/.github/workflows/automated-checks.yml index 98c9911..4625a8a 100644 --- a/.github/workflows/automated-checks.yml +++ b/.github/workflows/automated-checks.yml @@ -34,9 +34,9 @@ jobs: uses: pre-commit/action@v3.0.1 # Run Test Coverage - test-coverage-aa-stable: - needs: [pre-commit] - name: AA Latest (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }} with ${{ matrix.database }}) + test-coverage: + needs: [ pre-commit ] + name: Test Coverage (Python ${{ matrix.python-version }}) runs-on: ubuntu-latest strategy: @@ -48,30 +48,6 @@ jobs: - '3.10' - '3.11' - '3.12' - # MySQL versions to test against - database: - # https://endoflife.date/mysql - - mysql:8.0 # [LTS] Maintained until: 30 Apr 2026 - - mysql:8.1 # Latest official release - # https://endoflife.date/mariadb and https://mariadb.com/kb/en/mariadb-server-release-dates/ - - mariadb:10.4 # Maintained until: 18 June 2024 - - mariadb:10.5 # Maintained until: 24 June 2025 - - mariadb:10.6 # [LTS] Maintained until: July 2026 - - mariadb:10.11 # [LTS] Maintained until: February 2028 - - mariadb:11.0 # Maintained until: June 2024 - - mariadb:11.1 # Maintained until: August 2024 - -# continue-on-error: ${{ matrix.python-version == '3.11-dev' }} - - services: - database: - image: ${{ matrix.database }} - env: - MYSQL_ROOT_PASSWORD: temp_password_aa_tox_tests - MYSQL_DATABASE: tox_allianceauth - ports: - - 3306:3306 - options: --tmpfs /var/lib/mysql steps: - name: Checkout @@ -127,7 +103,7 @@ jobs: # Pypi Build Test pypi-build-test: - needs: [ test-coverage-aa-stable ] + needs: [ test-coverage ] name: PyPi Build Test runs-on: ubuntu-latest From 9dd975d784c4b9e0cba97c6ae0699496be02f357 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Tue, 26 Dec 2023 16:19:49 +0100 Subject: [PATCH 04/13] [MISC] pre-commit applied --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 71efbdc..a3b0f05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", ] From e937ab16662e7dff172a03689fbf5afe457b4db0 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Tue, 26 Dec 2023 16:22:24 +0100 Subject: [PATCH 05/13] [MISC] Tox env removed from GH workflow --- .github/workflows/automated-checks.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/automated-checks.yml b/.github/workflows/automated-checks.yml index 4625a8a..b3cbbf2 100644 --- a/.github/workflows/automated-checks.yml +++ b/.github/workflows/automated-checks.yml @@ -70,13 +70,8 @@ jobs: python -m pip install --upgrade tox tox-gh-actions - name: Run Tox - env: - TOX_ENV: allianceauth-stable - DB_HOST: 127.0.0.1 - DB_USER: root - DB_PASSWORD: temp_password_aa_tox_tests # Run tox using the version of Python in `PATH` - run: tox -v -e ${{ env.TOX_ENV }} + run: tox -v # - name: Upload Coverage # if: ${{ From db74ca5e25ba35ff37aec431d1e358c9321dd595 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Tue, 26 Dec 2023 16:25:33 +0100 Subject: [PATCH 06/13] [MISC] AA dpendency raised --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a3b0f05..ebbd29f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dynamic = [ "version", ] dependencies = [ - "allianceauth>=3.6.1", + "allianceauth>=4.0.0a5", ] [project.urls] Changelog = "https://github.com/ppfeufer/aa-example-plugin/blob/master/CHANGELOG.md" From b280ce067da11211806ff3507cd3e3ba9cc159c4 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Mon, 5 Feb 2024 20:15:31 +0100 Subject: [PATCH 07/13] [MISC] Dependencies updated --- .pre-commit-config.yaml | 24 ++++++++++++++++++------ testauth/base.py | 6 +++++- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 84773e2..3d417cf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -86,6 +86,22 @@ repos: # - eslint@8.56.0 # https://github.com/eslint/eslint/releases/latest # - globals@13.24.0 # https://github.com/sindresorhus/globals/releases/latest + - repo: https://github.com/thibaudcolas/pre-commit-stylelint + rev: v16.2.1 + hooks: + - id: stylelint + exclude: | + (?x)( + .min(.css|.css.map)| + static/(.*)/libs/ + ) + args: + - --formatter=compact + additional_dependencies: + # stylelint itself needs to be here when using additional_dependencies. + - stylelint@16.2.1 # https://github.com/stylelint/stylelint/releases/latest + - stylelint-config-standard@36.0.0 # https://github.com/stylelint/stylelint-config-standard/releases/latest + - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.10.0 hooks: @@ -132,13 +148,9 @@ repos: - id: yesqa - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 5.12.0 hooks: - id: isort - exclude: | - (?x)( - testauth/ - ) - repo: https://github.com/Pierre-Sassoulas/black-disable-checker/ rev: v1.1.3 @@ -157,7 +169,7 @@ repos: hooks: - id: blacken-docs additional_dependencies: - - black==23.12.1 # https://github.com/psf/black/releases/latest + - black==24.1.1 # https://github.com/psf/black/releases/latest args: - --target-version=py38 # Minimum required Python version for AA. Update as needed. diff --git a/testauth/base.py b/testauth/base.py index 633c632..fa08c1f 100644 --- a/testauth/base.py +++ b/testauth/base.py @@ -6,11 +6,15 @@ If you wish to make changes, overload the setting in your project's settings file (local.py). """ +# Standard Library import os -from django.contrib import messages +# Third Party from celery.schedules import crontab +# Django +from django.contrib import messages + INSTALLED_APPS = [ "allianceauth", # needs to be on top of this list to support favicons in Django admin (see https://gitlab.com/allianceauth/allianceauth/-/issues/1301) "django.contrib.admin", From e4b17aa04e1d9347ba1f4f514482efbf6bd77bc2 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Wed, 7 Feb 2024 20:20:31 +0100 Subject: [PATCH 08/13] [MISC] pre-commit updates --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d417cf..6a6a400 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -148,7 +148,7 @@ repos: - id: yesqa - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort From 1684661493831b69036b85f8d10163c2231cd545 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sat, 17 Feb 2024 22:27:28 +0100 Subject: [PATCH 09/13] [MISC] Updates to tests, checks and dependencies --- .github/ISSUE_TEMPLATE/bug_report.md | 4 ++-- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .github/dependabot.yml | 2 +- CODE_OF_CONDUCT.md | 2 +- pyproject.toml | 2 +- testauth/{ => settings}/base.py | 5 +++-- testauth/{ => settings}/local.py | 0 7 files changed, 9 insertions(+), 8 deletions(-) rename testauth/{ => settings}/base.py (99%) rename testauth/{ => settings}/local.py (100%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 56b0bce..dce118e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -15,8 +15,8 @@ A clear and concise description of what the bug is. Steps to reproduce the behavior: 1. Go to '...' -2. Click on '....' -3. Scroll down to '....' +2. Click on '...' +3. Scroll down to '...' 4. See error diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 5fa500b..c7eeaf6 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -15,6 +15,6 @@ Fixes # (issue) ## Checklist: - [ ] My code follows the style guidelines of this project -- [ ] I have performed a self-review of my own code +- [ ] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have checked my code and corrected any misspellings diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8cae055..149e1d1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,4 +6,4 @@ updates: directory: "/" target-branch: "master" schedule: - interval: "daily" + interval: "monthly" diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index ae3aef1..2e88702 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -54,7 +54,7 @@ Examples of unacceptable behavior include: - Public or private harassment - Publishing others' private information, such as a physical or email address, without their explicit permission -- Other conduct which could reasonably be considered inappropriate in a +- Other conducts which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities diff --git a/pyproject.toml b/pyproject.toml index ebbd29f..1ab9cd1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dynamic = [ "version", ] dependencies = [ - "allianceauth>=4.0.0a5", + "allianceauth>=4.0.0b1", ] [project.urls] Changelog = "https://github.com/ppfeufer/aa-example-plugin/blob/master/CHANGELOG.md" diff --git a/testauth/base.py b/testauth/settings/base.py similarity index 99% rename from testauth/base.py rename to testauth/settings/base.py index fa08c1f..0b2d7b1 100644 --- a/testauth/base.py +++ b/testauth/settings/base.py @@ -77,7 +77,6 @@ BASE_DIR = os.path.dirname(PROJECT_DIR) MIDDLEWARE = [ - "allianceauth.menu.middleware.MenuSyncMiddleware", "django.middleware.security.SecurityMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "allianceauth.authentication.middleware.UserSettingsMiddleware", @@ -179,7 +178,7 @@ CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", - "LOCATION": "redis://127.0.0.1:6379/1", # change the 1 here to change the database used + "LOCATION": "redis://127.0.0.1:6379/1", # change the 1 here for the DB used } } @@ -212,6 +211,8 @@ # scopes required on new tokens when logging in. Cannot be blank. LOGIN_TOKEN_SCOPES = ["publicData"] +EMAIL_TIMEOUT = 15 + # number of days email verification links are valid for ACCOUNT_ACTIVATION_DAYS = 1 diff --git a/testauth/local.py b/testauth/settings/local.py similarity index 100% rename from testauth/local.py rename to testauth/settings/local.py From 634821043dd6852fede748fbbb4df9dff9df259f Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sat, 17 Feb 2024 22:38:26 +0100 Subject: [PATCH 10/13] [FIX] tox config --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index b1cfdbc..dc3be47 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ deps = coverage django-webtest set_env = - DJANGO_SETTINGS_MODULE = testauth.local + DJANGO_SETTINGS_MODULE = testauth.settings.local commands = coverage run runtests.py example -v 2 coverage report From 58548cdf0522c12c24d4a1487b3db2e41ef5ad0b Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sat, 17 Feb 2024 22:45:59 +0100 Subject: [PATCH 11/13] [MISC] gitignore updated --- .gitignore | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8ae1f82..3201ead 100644 --- a/.gitignore +++ b/.gitignore @@ -2,14 +2,15 @@ /dist/ /*.egg-info/ .idea/ +.tox/ +htmlcov/ +node_modules/ *.log *.tmp *.bak *.old __pycache__ - -/.coverage -/htmlcov/ -/.tox/ +.coverage /coverage.xml +alliance_auth.sqlite3 From f99ed83eddaf5470f0ae28d799c19f71e6f0b42f Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Thu, 7 Mar 2024 07:23:17 +0100 Subject: [PATCH 12/13] [CHANGE] Update Django classifier --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1ab9cd1..2787fc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ requires-python = ">=3.8" classifiers = [ "Environment :: Web Environment", "Framework :: Django", - "Framework :: Django :: 4.0", + "Framework :: Django :: 4.2", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", From 2227f056361e2e5380d70ec6671d2f4790ad4801 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sat, 16 Mar 2024 10:08:58 +0100 Subject: [PATCH 13/13] [CHANGE] Version bumped to v0.0.8 --- .pre-commit-config.yaml | 2 +- CHANGELOG.md | 20 ++++++++++++++++++++ example/__init__.py | 2 +- pyproject.toml | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a6a400..04c10d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -73,7 +73,7 @@ repos: ) - repo: https://github.com/eslint/eslint - rev: v8.56.0 + rev: v8.57.0 hooks: - id: eslint exclude: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 575329e..6392848 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,28 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## \[In Development\] - Unreleased +## \[0.0.8\] - 2024-03-16 + +> \[!NOTE\] +> +> **This version needs at least Alliance Auth v4.0.0!** + +### Added + +- Compatibility to Alliance Auth v4 + - Bootstrap 5 + - Django 4.2 + +### Removed + +- Compatibility to Alliance Auth v3 + ## \[0.0.7\] - 2023-09-27 +> \[!NOTE\] +> +> **This is the last version compatible with Alliance Auth v3.** + ### Changed - Moved the build process to PEP 621 / pyproject.toml diff --git a/example/__init__.py b/example/__init__.py index b7d2586..b62d0fd 100644 --- a/example/__init__.py +++ b/example/__init__.py @@ -1,4 +1,4 @@ """Initialize the app""" -__version__ = "0.0.7" +__version__ = "0.0.8" __title__ = "Example" diff --git a/pyproject.toml b/pyproject.toml index 2787fc7..07532ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dynamic = [ "version", ] dependencies = [ - "allianceauth>=4.0.0b1", + "allianceauth<5.0.0,>=4", ] [project.urls] Changelog = "https://github.com/ppfeufer/aa-example-plugin/blob/master/CHANGELOG.md"