Skip to content

Commit

Permalink
Merge pull request #110 from openedx/jenkins/add-python312-support-18…
Browse files Browse the repository at this point in the history
…0d120

feat: add python 3.11 and 3.12 support
  • Loading branch information
Feanil Patel authored Mar 29, 2024
2 parents 180d120 + dc93288 commit ae68485
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Python CI
on:
push:
branches:
- master
- master
pull_request:
branches:
- '**'
- '**'

jobs:
run_tests:
Expand All @@ -15,10 +15,8 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
python-version:
- 3.8

- ubuntu-20.04
python-version: ['3.8', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: setup python
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='xqueue_watcher',
version='0.2',
version='0.3',
description='XQueue Pull Grader',
packages=[
'grader_support',
Expand Down
1 change: 0 additions & 1 deletion xqueue_watcher/grader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Implementation of a grader compatible with XServer
"""
import html
import imp
import sys
import time
import json
Expand Down
5 changes: 3 additions & 2 deletions xqueue_watcher/jailedgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import codecs
import os
import sys
import imp
import importlib
import json
import random
import gettext
Expand Down Expand Up @@ -122,7 +122,8 @@ def grade(self, grader_path, grader_config, submission):
# Import the grader, straight from the original file. (It probably isn't in
# sys.path, and we may be in a long running gunicorn process, so we don't
# want to add stuff to sys.path either.)
grader_module = imp.load_source("grader_module", str(grader_path))
sf_loader = importlib.machinery.SourceFileLoader("grader_module", str(grader_path))
grader_module = sf_loader.load_module()
grader = grader_module.grader

# Preprocess for grader-specified errors
Expand Down

0 comments on commit ae68485

Please sign in to comment.