Skip to content

Commit

Permalink
Merge pull request #17 from botify-labs/support-additional-versions-i…
Browse files Browse the repository at this point in the history
…n-pyproject

update supported django dependencies
  • Loading branch information
SofienBenAyed authored Aug 9, 2024
2 parents fad8fdc + c633605 commit 1b4d748
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 53 deletions.
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",
"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:password@127.0.0.1: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

0 comments on commit 1b4d748

Please sign in to comment.