Skip to content

Commit

Permalink
Add Python 3.11, Django 4.1 support (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
amureki committed Jun 26, 2022
1 parent 26526fe commit e75c341
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4.0.0
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: pip

- name: Install dependencies
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4.0.0
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: pip

- name: Install Python dependencies
run: python -m pip install --upgrade pip setuptools wheel twine
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"]

steps:
- uses: actions/checkout@v3
Expand All @@ -35,9 +35,10 @@ jobs:
psql template1 -c "CREATE EXTENSION postgis;" -U postgres -h localhost -p 5432
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.0.0
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Install dependencies
run: |
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased](https://github.com/model-bakers/model_bakery/tree/main)

### Added
- Python 3.11 support [PR #327](https://github.com/model-bakers/model_bakery/pull/327)
- Django 4.1 support [PR #327](https://github.com/model-bakers/model_bakery/pull/327)

### Changed

Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
Expand All @@ -37,5 +38,6 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
[tox]
envlist =
py37-django{32}-{postgresql,sqlite}
py38-django{32,40}-{postgresql,sqlite}
py39-django{32,40}-{postgresql,sqlite}
py310-django{32,40}-{postgresql,sqlite}
py38-django{32,40,41}-{postgresql,sqlite}
py39-django{32,40,41}-{postgresql,sqlite}
py310-django{32,40,41}-{postgresql,sqlite}
py311-django{41}-{postgresql,sqlite}

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
setenv =
Expand All @@ -25,6 +27,7 @@ deps =
pytest-django
django32: Django==3.2
django40: Django>=4.0,<4.1
django41: Django==4.1b1
postgresql: psycopg2-binary
commands =
pytest

0 comments on commit e75c341

Please sign in to comment.