diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc1daf5f..04159342 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python_version: ['3.11'] + python_version: ['3.11', '3.12'] ubuntu_version: ['22.04', '24.04'] tox_env: [ "django42", "django52"] include: diff --git a/Dockerfile b/Dockerfile index c55ac2c8..fb4b1ce7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ ENV TZ=Etc/UTC ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y software-properties-common RUN add-apt-repository -y ppa:deadsnakes/ppa && apt-get update && apt-get upgrade -y -RUN apt-get install -y vim python${python_version} python${python_version}-dev python${python_version}-distutils +RUN apt-get install -y vim python${python_version} python${python_version}-dev RUN apt-get install -y sudo git make curl build-essential RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python${python_version} RUN pip install virtualenv diff --git a/codejail/__init__.py b/codejail/__init__.py index b39c74e2..0e12136b 100644 --- a/codejail/__init__.py +++ b/codejail/__init__.py @@ -1,3 +1,3 @@ """init""" -__version__ = '3.5.2' +__version__ = '4.0.0' diff --git a/setup.py b/setup.py index 91c1c46a..6c44675f 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ def get_version(*file_paths): "Intended Audience :: Developers", 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', ], ) diff --git a/sudoers-file/01-sandbox-python-3.12 b/sudoers-file/01-sandbox-python-3.12 new file mode 100644 index 00000000..d5fe0ffe --- /dev/null +++ b/sudoers-file/01-sandbox-python-3.12 @@ -0,0 +1,7 @@ +ubuntu ALL=(sandbox) SETENV:NOPASSWD:/home/sandbox/codejail_sandbox-python3.12/bin/python +ubuntu ALL=(sandbox) SETENV:NOPASSWD:/usr/bin/find +ubuntu ALL=(ALL) NOPASSWD:/usr/bin/pkill + +Defaults!/home/sandbox/codejail_sandbox-python3.12/bin/python !requiretty +Defaults!/usr/bin/find !requiretty +Defaults!/usr/bin/pkill !requiretty