Skip to content

Commit

Permalink
Drop Python 3.7, add 3.12
Browse files Browse the repository at this point in the history
Also updates our development dependencies.
  • Loading branch information
julianwachholz committed Oct 1, 2023
1 parent e45478f commit b10f352
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
name: Python Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"
- name: Run flake8
uses: julianwachholz/flake8-action@v2
with:
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
django-version: ["3.2", "4.0", "4.1", "main"]
python-version: ["3.8", "3.8", "3.9", "3.10", "3.11", "3.12"]
django-version: ["3.2", "4.0", "4.1", "4.2", "main"]
exclude:
- python-version: "3.7"
django-version: "4.0"
- python-version: "3.7"
django-version: "4.1"
- python-version: "3.7"
- python-version: "3.8"
django-version: "main"
- python-version: "3.9"
django-version: "main"

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To start working on `django-guest-user`, you need:
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
Git is the version control system tracking changes in the code used on GitHub.
- [Python](https://www.python.org/downloads/) installed on your system
(at least version 3.7)
(at least version 3.8)
- This package is built using [Poetry](https://python-poetry.org/), please
[install Poetry](https://python-poetry.org/docs/#installation)
if you haven't already.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ assigned and are logged in automatically. They can use the site like a normal
user until they decide to convert to a real user account to save their data.

Inspired by and as an alternative for [django-lazysignup](https://github.com/danfairs/django-lazysignup)
and rewritten for Django 3.2+ and Python 3.7+.
and rewritten for Django 3.2+ and Python 3.8+.

## Documentation

Expand Down
4 changes: 2 additions & 2 deletions docs/setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Dependencies

This project is thoroughly tested on these setups:

- Python 3.7, 3.8, 3.9 and 3.10
- Django 3.2, 4.0 and the main branch
- Python 3.8, 3.9, 3.10, 3.11 and 3.12
- Django 3.2, 4.0, 4.1, 4.2 and the main branch

In addition, your Django project should be using :doc:`django:ref/contrib/auth`.

Expand Down
30 changes: 15 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,31 @@ classifiers = [
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1"
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
]

packages = [
{ include = "guest_user" }
]
packages = [{ include = "guest_user" }]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"

[tool.poetry.dev-dependencies]
black = "^21.9b0"
pytest = "^6.2.5"
pytest-django = "^4.4.0"
tox = "^3.24.4"
Django = "^3.2.9"
django-allauth = "^0.45.0"
Sphinx = "^4.3.1"
sphinx-rtd-theme = "^1.0.0"
[tool.poetry.group.dev.dependencies]
black = "^23.9.1"
django = "^4.2.5"
django-allauth = "^0.57.0"
pytest = "^7.4.2"
pytest-django = "^4.5.2"
sphinx = "<7.2.0"
sphinx-rtd-theme = "^1.3.0"
tox = "^4.11.3"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "test_proj.settings"
minversion = "6.0"
minversion = "7.0"
addopts = "--no-migrations"
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[gh-actions:env]
DJANGO =
3.2: dj32
4.0: dj40
4.1: dj41
4.2: dj42
main: djmain

[tox]
skipsdist = true
envlist =
py{37,38,39,310,311}-dj32
py{38,39,310,311}-dj{40,41,main}
py{38,39,310,311,312}-dj{32,40,41,42}
py{310,311,312}-dj{main}

[testenv]
ignore_outcome =
Expand All @@ -29,6 +30,7 @@ deps =
dj32: django>=3.2,<3.3
dj40: django>=4.0,<4.1
dj41: django>=4.1,<4.2
dj42: django>=4.2,<4.3
djmain: https://github.com/django/django/archive/main.tar.gz
commands =
pytest

0 comments on commit b10f352

Please sign in to comment.