From b38ef8f10e24b95ec3212d595eaab76f5be7ccd3 Mon Sep 17 00:00:00 2001 From: stefan berke Date: Thu, 5 Sep 2024 14:06:58 +0200 Subject: [PATCH] revert type hint to `typing.List` (#1493) * revert type hint to `typing.List` https://github.com/django-cms/django-filer/issues/1492 * Update test.yml to respect py 3.8 * Update test.yml to exclude py3.8/3.9 w/ dj50 in tests * Update CHANGELOG.rst * Bump version to 3.2.1 --------- Co-authored-by: Fabian Braun --- .github/workflows/test.yml | 11 ++++++++++- CHANGELOG.rst | 5 +++++ filer/__init__.py | 2 +- filer/cache.py | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index caf84495b..5bc557826 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10', '3.11', '3.12'] + python-version: [3.8, 3.9, '3.10', '3.11', '3.12'] requirements-file: [ django-4.2.txt, django-5.0.txt, @@ -18,6 +18,15 @@ jobs: os: [ ubuntu-20.04, ] + exclude: + - requirements-file: django-5.0.txt + python-version: 3.8 + - requirements-file: django-5.0.txt + python-version: 3.9 + - requirements-file: django-main.txt + python-version: 3.8 + - requirements-file: django-main.txt + python-version: 3.9 steps: - uses: actions/checkout@v1 diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2ddb19915..731421510 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,11 @@ CHANGELOG ========= +3.2.1 (2024-09-05) +================== + +* fix: Restore python 3.8 and python 3.9 compatibility + 3.2.0 (2024-08-23) ================== diff --git a/filer/__init__.py b/filer/__init__.py index 9208292c2..17dc3492c 100644 --- a/filer/__init__.py +++ b/filer/__init__.py @@ -13,4 +13,4 @@ 8. Publish the release and it will automatically release to pypi """ -__version__ = '3.2.0' +__version__ = '3.2.1' diff --git a/filer/cache.py b/filer/cache.py index f2af7572c..8736449f7 100644 --- a/filer/cache.py +++ b/filer/cache.py @@ -65,7 +65,7 @@ def clear_folder_permission_cache(user: User, permission: typing.Optional[str] = cache.delete(get_folder_perm_cache_key(user, permission)) -def update_folder_permission_cache(user: User, permission: str, id_list: list[int]) -> None: +def update_folder_permission_cache(user: User, permission: str, id_list: typing.List[int]) -> None: """ Updates the cached folder permissions for a given user and permission.