-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from openedx/feanil/build_multiple_images
feat: Build and test with Python 3.8 and 3.11 for codejail.
- Loading branch information
Showing
16 changed files
with
181 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
apparmor-profiles/home.sandbox.codejail_sandbox-python3.8.bin.python
This file was deleted.
Oops, something went wrong.
54 changes: 54 additions & 0 deletions
54
apparmor-profiles/home.sandbox.codejail_sandbox-python3.bin.python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#include <tunables/global> | ||
|
||
profile apparmor_profile /home/sandbox/codejail_sandbox-python{3.[0-9],3.[1-9][0-9]}/bin/python { | ||
#include <abstractions/base> | ||
#include <abstractions/python> | ||
|
||
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.[1-9][0-9]}/**.{pyc,so,so.*[0-9]} mr, | ||
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.[1-9][0-9]}/**.{egg,py,pth} r, | ||
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.[1-9][0-9]}/{site,dist}-packages/ r, | ||
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.[1-9][0-9]}/{site,dist}-packages/**/ r, | ||
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.[1-9][0-9]}/{site,dist}-packages/*.dist-info/{METADATA,namespace_packages.txt} r, | ||
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.[1-9][0-9]}/{site,dist}-packages/*.VERSION r, | ||
/usr/{local/,}lib{,32,64}/python{2.[4-7],3,3.[0-9],3.[1-9][0-9]}/{site,dist}-packages/*.egg-info/PKG-INFO r, | ||
/usr/{local/,}lib{,32,64}/python3.{1,}[0-9]/lib-dynload/*.so mr, | ||
|
||
# Site-wide configuration | ||
/etc/python{2.[4-7],3.[0-9],3.[1-9][0-9]}/** r, | ||
|
||
# shared python paths | ||
/usr/share/{pyshared,pycentral,python-support}/** r, | ||
/{var,usr}/lib/{pyshared,pycentral,python-support}/** r, | ||
/usr/lib/{pyshared,pycentral,python-support}/**.so mr, | ||
/var/lib/{pyshared,pycentral,python-support}/**.pyc mr, | ||
/usr/lib/python3/dist-packages/**.so mr, | ||
|
||
# wx paths | ||
/usr/lib/wx/python/*.pth r, | ||
|
||
# python build configuration and headers | ||
/usr/include/python{2.[4-7],3.[0-9],3.[1-9][0-9]}*/pyconfig.h r, | ||
|
||
# Include additions to the abstraction | ||
include if exists <abstractions/python.d> | ||
|
||
/home/sandbox/codejail_sandbox-python{3.[0-9],3.[1-9][0-9]}/** mr, | ||
/tmp/codejail-*/ rix, | ||
/tmp/codejail-*/** wrix, | ||
|
||
# Whitelist particiclar shared objects from the system | ||
# python installation | ||
# | ||
/usr/lib/python{3.[0-9],3.[1-9][0-9]}/lib-dynload/_json.so mr, | ||
/usr/lib/python{3.[0-9],3.[1-9][0-9]}/lib-dynload/_ctypes.so mr, | ||
/usr/lib/python{3.[0-9],3.[1-9][0-9]}/lib-dynload/_heapq.so mr, | ||
/usr/lib/python{3.[0-9],3.[1-9][0-9]}/lib-dynload/_io.so mr, | ||
/usr/lib/python{3.[0-9],3.[1-9][0-9]}/lib-dynload/_csv.so mr, | ||
/usr/lib/python{3.[0-9],3.[1-9][0-9]}/lib-dynload/datetime.so mr, | ||
/usr/lib/python{3.[0-9],3.[1-9][0-9]}/lib-dynload/_elementtree.so mr, | ||
/usr/lib/python{3.[0-9],3.[1-9][0-9]}/lib-dynload/pyexpat.so mr, | ||
# | ||
# Allow access to selections from /proc | ||
# | ||
/proc/*/mounts r, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""init""" | ||
|
||
__version__ = '3.3.3' | ||
__version__ = '3.4.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,21 @@ | ||
# | ||
# This file is autogenerated by pip-compile with python 3.8 | ||
# To update, run: | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# make upgrade | ||
# | ||
astroid==2.11.6 # via -r requirements/testing.txt, pylint | ||
attrs==21.4.0 # via -r requirements/testing.txt, pytest | ||
dill==0.3.5.1 # via -r requirements/testing.txt, pylint | ||
iniconfig==1.1.1 # via -r requirements/testing.txt, pytest | ||
isort==5.10.1 # via -r requirements/testing.txt, pylint | ||
lazy-object-proxy==1.7.1 # via -r requirements/testing.txt, astroid | ||
astroid==3.1.0 # via -r requirements/testing.txt, pylint | ||
dill==0.3.8 # via -r requirements/testing.txt, pylint | ||
exceptiongroup==1.2.1 # via -r requirements/testing.txt, pytest | ||
iniconfig==2.0.0 # via -r requirements/testing.txt, pytest | ||
isort==5.13.2 # via -r requirements/testing.txt, pylint | ||
mccabe==0.7.0 # via -r requirements/testing.txt, pylint | ||
packaging==21.3 # via -r requirements/testing.txt, pytest | ||
platformdirs==2.5.2 # via -r requirements/testing.txt, pylint | ||
pluggy==1.0.0 # via -r requirements/testing.txt, pytest | ||
py==1.11.0 # via -r requirements/testing.txt, pytest | ||
pycodestyle==2.8.0 # via -r requirements/testing.txt | ||
pylint==2.14.3 # via -r requirements/testing.txt | ||
pyparsing==3.0.9 # via -r requirements/testing.txt, packaging | ||
pytest==7.1.2 # via -r requirements/testing.txt | ||
packaging==24.0 # via -r requirements/testing.txt, pytest | ||
platformdirs==4.2.1 # via -r requirements/testing.txt, pylint | ||
pluggy==1.5.0 # via -r requirements/testing.txt, pytest | ||
pycodestyle==2.11.1 # via -r requirements/testing.txt | ||
pylint==3.1.0 # via -r requirements/testing.txt | ||
pytest==8.1.1 # via -r requirements/testing.txt | ||
tomli==2.0.1 # via -r requirements/testing.txt, pylint, pytest | ||
tomlkit==0.11.0 # via -r requirements/testing.txt, pylint | ||
typing-extensions==4.2.0 # via -r requirements/testing.txt, astroid, pylint | ||
wrapt==1.14.1 # via -r requirements/testing.txt, astroid | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# setuptools | ||
tomlkit==0.12.4 # via -r requirements/testing.txt, pylint | ||
typing-extensions==4.11.0 # via -r requirements/testing.txt, astroid, pylint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# | ||
# This file is autogenerated by pip-compile with python 3.8 | ||
# To update, run: | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# make upgrade | ||
# | ||
wheel==0.37.1 # via -r requirements/pip.in | ||
wheel==0.43.0 # via -r requirements/pip.in | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
pip==22.1.2 # via -r requirements/pip.in | ||
setuptools==59.8.0 # via -c requirements/common_constraints.txt, -r requirements/pip.in | ||
pip==24.0 # via -r requirements/pip.in | ||
setuptools==69.5.1 # via -r requirements/pip.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# To update, run: | ||
# by the following command: | ||
# | ||
# make upgrade | ||
# | ||
asgiref==3.5.2 # via django | ||
django==3.2.17 # via -c requirements/common_constraints.txt, -c requirements/constraints.txt, -r requirements/sandbox.in | ||
numpy==1.22.4 # via -r requirements/sandbox.in | ||
pytz==2022.1 # via django | ||
asgiref==3.8.1 # via django | ||
django==3.2.25 # via -c requirements/common_constraints.txt, -c requirements/constraints.txt, -r requirements/sandbox.in | ||
numpy==1.24.4 # via -r requirements/sandbox.in | ||
pytz==2024.1 # via django | ||
six==1.16.0 # via -r requirements/sandbox.in | ||
sqlparse==0.4.2 # via django | ||
sqlparse==0.5.0 # via django | ||
typing-extensions==4.11.0 # via asgiref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,21 @@ | ||
# | ||
# This file is autogenerated by pip-compile with python 3.8 | ||
# To update, run: | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# make upgrade | ||
# | ||
astroid==2.11.6 # via pylint | ||
attrs==21.4.0 # via pytest | ||
dill==0.3.5.1 # via pylint | ||
iniconfig==1.1.1 # via pytest | ||
isort==5.10.1 # via -r requirements/testing.in, pylint | ||
lazy-object-proxy==1.7.1 # via astroid | ||
astroid==3.1.0 # via pylint | ||
dill==0.3.8 # via pylint | ||
exceptiongroup==1.2.1 # via pytest | ||
iniconfig==2.0.0 # via pytest | ||
isort==5.13.2 # via -r requirements/testing.in, pylint | ||
mccabe==0.7.0 # via pylint | ||
packaging==21.3 # via pytest | ||
platformdirs==2.5.2 # via pylint | ||
pluggy==1.0.0 # via pytest | ||
py==1.11.0 # via pytest | ||
pycodestyle==2.8.0 # via -r requirements/testing.in | ||
pylint==2.14.3 # via -r requirements/testing.in | ||
pyparsing==3.0.9 # via packaging | ||
pytest==7.1.2 # via -r requirements/testing.in | ||
packaging==24.0 # via pytest | ||
platformdirs==4.2.1 # via pylint | ||
pluggy==1.5.0 # via pytest | ||
pycodestyle==2.11.1 # via -r requirements/testing.in | ||
pylint==3.1.0 # via -r requirements/testing.in | ||
pytest==8.1.1 # via -r requirements/testing.in | ||
tomli==2.0.1 # via pylint, pytest | ||
tomlkit==0.11.0 # via pylint | ||
typing-extensions==4.2.0 # via astroid, pylint | ||
wrapt==1.14.1 # via astroid | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# setuptools | ||
tomlkit==0.12.4 # via pylint | ||
typing-extensions==4.11.0 # via astroid, pylint |
Oops, something went wrong.