Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded to Python 3.11 #221

Merged
merged 2 commits into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 26 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,51 +13,58 @@ concurrency:
permissions:
contents: read

env:
DJANGO_SETTINGS_MODULE: tracdjangoplugin.settings_tests
# passlib has a conditional import for `crypt` which is going away in python 3.13
# and therefore throwing warnings
PYTHONWARNINGS: >
error,
default:::passlib.utils,
bmispelon marked this conversation as resolved.
Show resolved Hide resolved

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
bmispelon marked this conversation as resolved.
Show resolved Hide resolved
- 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.11-slim-bookworm

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

# Optional Trac dependencies that make DeprecationWarning go away.
# When upgrading Trac or Python, check if these dependencies are still needed
# by uninstalling them and running the test suite (or CI) with PYTHONWARNINGS=error
bmispelon marked this conversation as resolved.
Show resolved Hide resolved
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
Loading