From 0041eb205dc7476210cc7c263574e807322d33d6 Mon Sep 17 00:00:00 2001 From: Josh Schneier Date: Sat, 6 Jul 2024 15:51:46 -0400 Subject: [PATCH] [dropbox] Add support for Python3.12 (#1421) --- CHANGELOG.rst | 6 ++++++ pyproject.toml | 2 +- tests/test_dropbox.py | 8 -------- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4621a3231..4c57572aa 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -24,6 +24,11 @@ SFTP - Add implementations of ``get_(modified|accessed)_time`` (`#1347`_) +Dropbox +------- + +- Add support for Python 3.12 (`#1421`_) + .. _#1399: https://github.com/jschneier/django-storages/pull/1399 .. _#1381: https://github.com/jschneier/django-storages/pull/1381 .. _#1402: https://github.com/jschneier/django-storages/pull/1402 @@ -32,6 +37,7 @@ SFTP .. _#1417: https://github.com/jschneier/django-storages/pull/1417 .. _#1418: https://github.com/jschneier/django-storages/pull/1418 .. _#1347: https://github.com/jschneier/django-storages/pull/1347 +.. _#1421: https://github.com/jschneier/django-storages/pull/1421 1.14.3 (2024-05-04) diff --git a/pyproject.toml b/pyproject.toml index 3182e60aa..9e29b4f83 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ boto3 = [ "boto3>=1.4.4", ] dropbox = [ - "dropbox>=7.2.1; python_version<'3.12'", + "dropbox>=7.2.1", ] google = [ "google-cloud-storage>=1.27", diff --git a/tests/test_dropbox.py b/tests/test_dropbox.py index 7dd24c89d..d7c3268a1 100644 --- a/tests/test_dropbox.py +++ b/tests/test_dropbox.py @@ -1,15 +1,7 @@ import io -import sys from datetime import datetime -from unittest import SkipTest from unittest import mock -if sys.version_info >= (3, 12, 0): - raise SkipTest( - "dropbox library does not support Python 3.12+. " - "Skipping all tests in test_dropbox.py" - ) - from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import SuspiciousFileOperation from django.core.files.base import File