This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
forked from openedx/codejail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
51 lines (43 loc) · 1.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"""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=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.',
long_description=long_description,
keywords='edx codejail',
author='edX',
author_email="oscm@edx.org",
url='https://github.com/edx/codejail',
packages=['codejail'],
install_requires=['six'],
zip_safe=False,
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
],
)