Skip to content

Commit

Permalink
Remove support of Python < 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Jan 6, 2025
1 parent e7aa2d0 commit a274f37
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 59 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/ci-3-8.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/ci-3-10.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,10 @@ jobs:
- name: 🚧 Check pending migrations
run: |
poetry run python manage.py makemigrations --check --dry-run --noinput
- name: 🧪 Run Tests - Django 3
run: |
poetry run python manage.py test
- name: 🧪 Run Tests - Django 4
run: |
poetry add django@^4.1
poetry run python manage.py test
- name: 🧪 Run Tests - Django 5
run: |
sed -i 's/python = "^3.8"/python = "^3.10"/g' pyproject.toml
poetry add django@^5.0
poetry run python manage.py test
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

[![image](https://badge.fury.io/py/django-dsfr.svg)](https://pypi.org/project/django-dsfr/)

[![image](https://github.com/numerique-gouv/django-dsfr/actions/workflows/ci-3-8.yml/badge.svg)](https://github.com/numerique-gouv/django-dsfr/actions/workflows/ci-3-8.yml)

[![image](https://github.com/numerique-gouv/django-dsfr/actions/workflows/ci-3-10.yml/badge.svg)](https://github.com/numerique-gouv/django-dsfr/actions/workflows/ci-3-10.yml)
[![image](https://github.com/numerique-gouv/django-dsfr/actions/workflows/ci.yml/badge.svg)](https://github.com/numerique-gouv/django-dsfr/actions/workflows/ci.yml)

[![image](https://github.com/numerique-gouv/django-dsfr/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/numerique-gouv/django-dsfr/actions/workflows/codeql-analysis.yml)

Expand All @@ -23,14 +21,13 @@ Django-DSFR implements the [version 1.12.1 of the DSFR](https://www.systeme-de-d

## Requirements

Tested with Python 3.8 to 3.12 and Django 3.2 to 5.0. Per [vermin](https://github.com/netromdk/vermin), it should work with Python >= 3.6, and it should work with old versions of Django too.
Tested with Python 3.10 to 3.13 and the latest available version of Django 4 and 5.

Note: Only supported versions of Django and Python are supported by this project. You can check the supported versions and their end of life on the following pages:

- [Python](https://devguide.python.org/versions/)
- [Django](https://www.djangoproject.com/download/#supported-versions)

⚠️ Warning: Support for Django < 4.0 and Python < 3.10 will be removed at the end of 2024.

## Quick start

Expand Down
9 changes: 0 additions & 9 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from pathlib import Path
import os
from django import VERSION as DJANGO_VERSION
import warnings

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
Expand All @@ -29,14 +28,6 @@

ALLOWED_HOSTS = []

warnings.simplefilter("default")
if DJANGO_VERSION < (4, 0):
warnings.warn(
"Support for Django < 4.0 will be deprecated in django-dsfr at the end of 2024.",
PendingDeprecationWarning,
stacklevel=3,
)

# Application definition

INSTALLED_APPS = [
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ authors = ["Sylvain Boissel <[email protected]>"]
description = "Integrate the French government Design System into a Django app"
license = "MIT"
name = "django-dsfr"
version = "1.4.5"
version = "2.0.0alpha1"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
Expand All @@ -18,11 +17,10 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]
Expand All @@ -39,8 +37,8 @@ packages = [
include = ["LICENSE", "README.md", "dsfr/static/dsfr/dist/*/*.*"]

[tool.poetry.dependencies]
Django = ">3.2.5"
python = "^3.8"
Django = ">4.2.17"
python = "^3.10"
requests = "^2.26.0"
django-widget-tweaks = "^1.4.12"
django-crispy-forms = "^2.0"
Expand Down

0 comments on commit a274f37

Please sign in to comment.