Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
Release Notes
-------------

[Unreleased]
^^^^^^^^^^^^
[3.3.0] - 2025-12-21
^^^^^^^^^^^^^^^^^^^^

Added
"""""
- **Django 6.0 Support**: Added official support for Django 6.0. Note that Django 6.0 requires Python 3.12+.
- **Admin Interface Enhancements**: Added expiration status display in Django admin with ``is_valid`` column showing intuitive boolean indicators (green checkmark for valid codes, red X for expired codes). Added ``is_expired`` property to ``SMSVerification`` model for easy expiration checking.
- **Database Cleanup**: Added ``cleanup_phone_verifications`` management command to automatically delete old verification records. Supports ``--days`` parameter to customize retention period and ``--dry-run`` mode for previewing deletions. New ``RECORD_RETENTION_DAYS`` setting (default: 30 days) for configuring default retention period.

Expand Down
2 changes: 1 addition & 1 deletion phone_verify/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import django

__version__ = "3.2.0"
__version__ = "3.3.0"

if django.VERSION < (3, 2): # pragma: no cover
default_app_config = "phone_verify.apps.PhoneVerificationConfig"
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "django-phone-verify"
version = "3.2.0"
version = "3.3.0"
description = "A Django app to support phone number verification using security code sent via SMS."
readme = "README.rst"
requires-python = ">=3.8"
Expand Down Expand Up @@ -40,6 +40,7 @@ classifiers = [
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
Expand Down
2 changes: 1 addition & 1 deletion requirements/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Core Stuff
# -------------------------------------
Django==5.2.8
Django==6.0
djangorestframework==3.16.1

# Code quality
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="django-phone-verify",
version="3.2.0",
version="3.3.0",
packages=find_packages(),
include_package_data=True,
license="GPLv3",
Expand Down Expand Up @@ -55,6 +55,8 @@
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ envlist =
py{38,39,310,311,312,313}-django42
py{310,311,312,313}-django{50,51}
py{310,311,312,313,314}-django52
py{312,313,314}-django60
skip_missing_interpreters = True

[gh-actions]
Expand All @@ -29,5 +30,6 @@ deps =
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
django52: Django>=5.2,<5.3
django60: Django>=6.0,<6.1
commands =
pytest --cov -v --tb=native