Skip to content

Commit 7d49763

Browse files
committed
Set a specific django version for poetry.
1 parent 61896d9 commit 7d49763

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

.github/workflows/python.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ jobs:
3434
poetry config virtualenvs.path ~/.virtualenvs${{ matrix.python-version }}
3535
3636
- name: Install dependencies
37-
run: poetry install
37+
run: |
38+
poetry add python==${{ matrix.python-version }}
39+
poetry add django==${{ matrix.django-version }}
40+
poetry install
3841
3942
- name: ruff check
4043
run: poetry run ruff check .

poetry.lock

Lines changed: 1 addition & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ keywords = ["django", "python", "javascript", "fullstack"]
1515

1616
[tool.poetry.dependencies]
1717
python = ">=3.8,<4"
18-
django = [{version = "<=5.0", python = "<3.10"},
19-
{version = "^5.0", python=">=3.10"}]
18+
django = ">=2.2"
2019
beautifulsoup4 = ">=4.8.0"
2120
orjson = ">=3.6.0"
2221
shortuuid = ">=1.0.1"

0 commit comments

Comments
 (0)