deps: adaptations for Django 5.x

This commit is contained in:
David Larlet 2024-01-29 13:36:05 -05:00
parent 4de8b2ec96
commit a159914c53
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD
4 changed files with 58 additions and 61 deletions

View file

@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.12"]
python-version: ['3.10', '3.12']
database: [postgresql]
steps:
@ -53,7 +53,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: '3.11'
- name: Install dependencies
run: |
python3 -m pip install -e .[test,dev]
@ -71,7 +71,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: '3.11'
- name: Install dependencies
run: |
python3 -m pip install -r docs/requirements.txt

View file

@ -2,10 +2,9 @@ os: linux
language: python
dist: focal
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- '3.10'
- '3.11'
- '3.12'
services:
- postgresql
addons:
@ -23,7 +22,7 @@ script: make test
notifications:
irc:
channels:
- "irc.libera.chat#umap"
- 'irc.libera.chat#umap'
on_success: change
on_failure: always
email: false

View file

@ -16,14 +16,14 @@ develop: ## Install the test and dev dependencies
format: ## Format the code and templates files
djlint umap/templates --reformat &&\
isort --profile black . &&\
ruff format --target-version=py38 .
ruff format --target-version=py310 .
.PHONY: lint
lint: ## Lint the code and template files
djlint umap/templates --lint &&\
isort --check --profile black umap/ &&\
ruff format --check --target-version=py38 umap/ &&\
vermin --no-tips --violations -t=3.8- umap/
ruff format --check --target-version=py310 umap/ &&\
vermin --no-tips --violations -t=3.10- umap/
docs: ## Compile the docs
mkdocs build

View file

@ -15,7 +15,7 @@ maintainers = [
]
homepage = "https://github.com/umap-project/umap"
keywords = ["django", "leaflet", "geodjango", "openstreetmap", "map"]
requires-python = ">=3.8"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
@ -23,8 +23,6 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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",