Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update supported django dependencies #17

Merged
merged 5 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,34 @@ jobs:
strategy:
matrix:
include:
- name: Python 3.8 / Django 3.0
- name: Python 3.8 / Django 4.2
python_version: "3.8"
tox_env: py38-django30
tox_env: py38-django42

- name: Python 3.9 / Django 3.1
- name: Python 3.9 / Django 4.2
python_version: "3.9"
tox_env: py39-django31
tox_env: py39-django42

- name: Python 3.10 / Django 3.2
- name: Python 3.10 / Django 4.2
python_version: "3.10"
tox_env: py310-django32

- name: Python 3.10 / Django 4.0
python_version: "3.10"
tox_env: py310-django40

- name: Python 3.11 / Django 4.1
python_version: "3.11"
tox_env: py311-django41
tox_env: py310-django42

- name: Python 3.11 / Django 4.2
python_version: "3.11"
tox_env: py311-django42

- name: Python 3.12 / Django 4.2
python_version: "3.12"
tox_env: py312-django42

- name: Python 3.12 / Django 5.0
python_version: "3.12"
tox_env: py312-django50

- name: Python 3.12 / Django 5.1
python_version: "3.12"
tox_env: py312-django51

name: "${{ matrix.name }}"
runs-on: ubuntu-latest

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Requirements
------------

+ **Postgresql only**
+ Django, tested from 2.2 to 4.2
+ With Python, tested from 3.8 to 3.11
+ Django, tested from 4.2 to 5.1
+ With Python, tested from 3.8 to 3.12

Documentation
-------------
Expand Down
91 changes: 78 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 3 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,14 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Comment on lines -28 to -32
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Poetry takes care of this automatically)

"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
]

[tool.poetry.dependencies]
python = "^3.8"
django = "^2.2"
django = "*"

[tool.poetry.group.dev.dependencies]
build = "*"
Expand Down
19 changes: 7 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[tox]
isolated_build = true
envlist =
py38-django30
py39-django31
py310-django{32,40}
py311-django{41,42}
py38-django42
py39-django42
py310-django42
py311-django42
py312-django{42,50,51}
linters
docs

Expand All @@ -16,16 +17,10 @@ setenv =
DATABASE_URL = {env:DATABASE_URL:postgres://postgres:[email protected]:5432/db}
commands_pre =
poetry install
django22: pip install psycopg2<2.9 # https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be
django30: pip install psycopg2<2.9 # https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be

django22: pip install Django==2.2.*
django30: pip install Django==3.0.*
django31: pip install Django==3.1.*
django32: pip install Django==3.2.*
django40: pip install Django==4.0.*
django41: pip install Django==4.1.*
django42: pip install Django==4.2.*
django50: pip install Django==5.0.*
django51: pip install Django==5.1.*
djangostable: pip install Django
commands =
poetry run pytest
Loading