build: pin versions in pyproject.toml

This commit is contained in:
Alexis Métaireau 2024-01-08 19:04:28 +01:00
parent 4c5b94d572
commit 78945d03fa
2 changed files with 5 additions and 9 deletions

View file

@ -24,8 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
dependencies: [normal, minimal]
python-version: ["3.8", "3.12"]
database: [postgresql]
steps:
@ -36,9 +35,6 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/pyproject.toml'
- name: Change dependencies to minimal supported versions
run: sed -i -e '/requires-python/!s/>=/==/g; /requires-python/!s/~=.*==\(.*\)/==\1/g; /requires-python/!s/~=/==/g;' pyproject.toml
if: matrix.dependencies == 'minimal'
- name: Install dependencies
run: |
sudo apt update

View file

@ -30,7 +30,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]
dependencies = [
"Django>=4.2,<5",
"Django==4.2",
"django-agnocomplete==2.2.0",
"django-compressor==4.3.1",
"django-environ==0.10.0",
@ -48,17 +48,17 @@ dev = [
"ruff==0.1.6",
"djlint==1.34.1",
"mkdocs==1.5.3",
"mkdocs-material>=9.4.14,<10",
"mkdocs-material==9.4.14",
"vermin==1.5.2",
"pymdown-extensions==10.4",
"isort==5.12",
]
test = [
"factory-boy==3.2.1",
"playwright>=1.39,<2",
"playwright>=1.39",
"pytest==6.2.5",
"pytest-django==4.5.2",
"pytest-playwright>=0.4.3,<1",
"pytest-playwright==0.4.3",
"pytest-xdist>=3.5.0,<4",
]
docker = [