Skip to content

Commit

Permalink
Add Django 5.0 to classifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
hugorodgerbrown committed Nov 6, 2023
1 parent 7032a16 commit 2c595b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 41 deletions.
43 changes: 3 additions & 40 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python (3.11)
uses: actions/setup-python@v4
Expand All @@ -38,15 +38,15 @@ jobs:

strategy:
matrix:
python: ["3.11"]
python: ["3.11", "3.12"]
django: ["32", "40", "41", "42", "50", "main"]

env:
TOXENV: py${{ matrix.python }}-django${{ matrix.django }}

steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
Expand All @@ -57,40 +57,3 @@ jobs:
run: |
pip install tox
tox
# HRB: no longer required (SQLite supports UUID generation), but keeping
# around for future self.
# test-pg:
# name: Run tests (PostgreSQL)
# runs-on: ubuntu-latest

# services:
# postgres:
# image: postgres
# env:
# POSTGRES_DB: postgres
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# ports:
# - 5432:5432
# # Set health checks to wait until postgres has started
# options: >-
# --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

# env:
# DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres

# steps:
# - name: Check out the repository
# uses: actions/checkout@v3

# - name: Set up Python 3.11
# uses: actions/setup-python@v4
# with:
# python-version: "3.11"

# - name: Install tox
# run: pip install tox

# - name: Run tox (pg-only)
# run: tox -e pg-only
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ classifiers = [
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
packages = [{ include = "anonymiser" }]

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ isolated_build = True
envlist =
fmt, lint, mypy,
django-checks,
py{311}-django{32,40,41,42,50,main}
py{311,12}-django{32,40,41,42,50,main}

[testenv]
deps =
Expand Down

0 comments on commit 2c595b7

Please sign in to comment.