From 78945d03fa7fca830ddb2f5782d25ede753226da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Mon, 8 Jan 2024 19:04:28 +0100 Subject: [PATCH] build: pin versions in pyproject.toml --- .github/workflows/test-docs.yml | 6 +----- pyproject.toml | 8 ++++---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index 0d263682..08011612 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index cf1637f3..c8c80e93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [