build: pin versions in pyproject.toml
This commit is contained in:
parent
4c5b94d572
commit
78945d03fa
2 changed files with 5 additions and 9 deletions
6
.github/workflows/test-docs.yml
vendored
6
.github/workflows/test-docs.yml
vendored
|
@ -24,8 +24,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
python-version: ["3.8", "3.12"]
|
||||||
dependencies: [normal, minimal]
|
|
||||||
database: [postgresql]
|
database: [postgresql]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -36,9 +35,6 @@ jobs:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
cache-dependency-path: '**/pyproject.toml'
|
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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|
|
@ -30,7 +30,7 @@ classifiers = [
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"Django>=4.2,<5",
|
"Django==4.2",
|
||||||
"django-agnocomplete==2.2.0",
|
"django-agnocomplete==2.2.0",
|
||||||
"django-compressor==4.3.1",
|
"django-compressor==4.3.1",
|
||||||
"django-environ==0.10.0",
|
"django-environ==0.10.0",
|
||||||
|
@ -48,17 +48,17 @@ dev = [
|
||||||
"ruff==0.1.6",
|
"ruff==0.1.6",
|
||||||
"djlint==1.34.1",
|
"djlint==1.34.1",
|
||||||
"mkdocs==1.5.3",
|
"mkdocs==1.5.3",
|
||||||
"mkdocs-material>=9.4.14,<10",
|
"mkdocs-material==9.4.14",
|
||||||
"vermin==1.5.2",
|
"vermin==1.5.2",
|
||||||
"pymdown-extensions==10.4",
|
"pymdown-extensions==10.4",
|
||||||
"isort==5.12",
|
"isort==5.12",
|
||||||
]
|
]
|
||||||
test = [
|
test = [
|
||||||
"factory-boy==3.2.1",
|
"factory-boy==3.2.1",
|
||||||
"playwright>=1.39,<2",
|
"playwright>=1.39",
|
||||||
"pytest==6.2.5",
|
"pytest==6.2.5",
|
||||||
"pytest-django==4.5.2",
|
"pytest-django==4.5.2",
|
||||||
"pytest-playwright>=0.4.3,<1",
|
"pytest-playwright==0.4.3",
|
||||||
"pytest-xdist>=3.5.0,<4",
|
"pytest-xdist>=3.5.0,<4",
|
||||||
]
|
]
|
||||||
docker = [
|
docker = [
|
||||||
|
|
Loading…
Reference in a new issue