Skip to content

Commit

Permalink
Upgraded to Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
bmispelon committed Nov 2, 2024
1 parent d6dbf0c commit 96f7860
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
43 changes: 24 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,51 +13,56 @@ concurrency:
permissions:
contents: read

env:
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
PYTHONWARNINGS: >
error,
default:::passlib.utils,
jobs:
noshadows:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.11'
- run: pip install "tinycss2>=1.2.0"
- run: python noshadows.py --tests
env:
PYTHONWARNINGS: error

tracdjangoplugin:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.11'
- name: Install system package dependencies
run: |
sudo apt-get update
sudo apt-get -y install subversion
- name: Install requirements
run: python -m pip install -r requirements.txt
- name: Run tests
run: python -m django test tracdjangoplugin.tests
env:
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
PYTHONWARNINGS: error

traccheck:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.11'
- name: Install system package dependencies
run: |
sudo apt-get update
sudo apt-get -y install subversion
- name: Install requirements
run: python -m pip install -r requirements.txt
- run: python traccheck.py lint trac-env/
env:
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
PYTHONWARNINGS: error
- run: python traccheck.py components --check .TRACFREEZE.txt trac-env/
env:
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
PYTHONWARNINGS: error
- name: Lint Trac configuration
run: python traccheck.py lint trac-env/
- name: Check frozen Trac components
run: python traccheck.py components --check .TRACFREEZE.txt trac-env/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pull official base image
FROM python:3.8-slim-bullseye
FROM python:3.12-slim-bookworm

# set work directory
WORKDIR /code
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ psycopg2==2.9.9 --no-binary=psycopg2
Django==4.2.16
libsass==0.23.0

# Optional Trac dependencies that make DeprecationWarning go away
multipart==1.1.0
passlib==1.7.4

# Trac plugins
TracSpamFilter[dns,spambayes] @ svn+https://svn.edgewall.org/repos/trac/plugins/trunk/spam-filter@17766
TracDragDrop @ svn+https://trac-hacks.org/svn/tracdragdropplugin/0.12@18635
Expand Down

0 comments on commit 96f7860

Please sign in to comment.