Skip to content
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
3 changes: 3 additions & 0 deletions codejail/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""init"""

__version__ = '3.1.5'
22 changes: 21 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,33 @@
"""CodeJail: manages execution of untrusted code in secure sandboxes."""
import os
import re

from setuptools import setup

with open('README.rst') as readme:
long_description = readme.read()


def get_version(*file_paths):
"""
Extract the version string from the file at the given relative path fragments.
"""
filename = os.path.join(os.path.dirname(__file__), *file_paths)
with open(filename, encoding='utf-8') as opened_file:
version_file = opened_file.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string.')


VERSION = get_version("codejail", "__init__.py")


setup(
name="edx-codejail",
version="3.1.5",
version=VERSION,
license='Apache',
description='CodeJail manages execution of untrusted code in secure sandboxes. It is designed primarily for '
'Python execution, but can be used for other languages as well.',
Expand Down