From 9f98f393a7c4a4743a6ba9ba78be0c12baf6b8dc Mon Sep 17 00:00:00 2001 From: JeffreyHuang06 <59666651+JeffreyHuang06@users.noreply.github.com> Date: Wed, 28 Apr 2021 00:16:29 -0400 Subject: [PATCH 1/4] Update readme.md (#226) changed api path from v1 to v2 --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 54a880e..38bad62 100644 --- a/readme.md +++ b/readme.md @@ -170,9 +170,9 @@ The container exposes an API on port 2000 by default. This is used by the CLI to carry out running jobs and package management. #### Runtimes Endpoint -`GET /api/v1/runtimes` +`GET /api/v2/runtimes` This endpoint will return the supported languages along with the current version and aliases. To execute -code for a particular language using the `/api/v1/execute` endpoint, either the name or one of the aliases must +code for a particular language using the `/api/v2/execute` endpoint, either the name or one of the aliases must be provided, along with the version. Multiple versions of the same language may be present at the same time, and may be selected when running a job. ```json @@ -199,7 +199,7 @@ Content-Type: application/json ``` #### Execute Endpoint -`POST /api/v1/execute` +`POST /api/v2/execute` This endpoint requests execution of some arbitrary code. - `language` (**required**) The language to use for execution, must be a string and must be installed. - `version` (**required**) The version of the language to use for execution, must be a string containing a SemVer selector for the version or the specific version number to use. From bbb45a5a0a48ed9e8e5d516442158356c48344b6 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 28 Apr 2021 20:15:46 +1200 Subject: [PATCH 2/4] python 2 is language python2 --- packages/python/2.7.18/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/2.7.18/metadata.json b/packages/python/2.7.18/metadata.json index 7677ded..c53d6dd 100644 --- a/packages/python/2.7.18/metadata.json +++ b/packages/python/2.7.18/metadata.json @@ -1,5 +1,5 @@ { - "language": "python", + "language": "python2", "version": "2.7.18", "aliases": ["py", "python2"] } From 6b5fcaf36374dcee363123b483c1bc497a3bb7a1 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 28 Apr 2021 20:21:56 +1200 Subject: [PATCH 3/4] Update metadata.json --- packages/python/2.7.18/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/2.7.18/metadata.json b/packages/python/2.7.18/metadata.json index c53d6dd..b825f8e 100644 --- a/packages/python/2.7.18/metadata.json +++ b/packages/python/2.7.18/metadata.json @@ -1,5 +1,5 @@ { "language": "python2", "version": "2.7.18", - "aliases": ["py", "python2"] + "aliases": ["py2", "python2"] } From 75957407ca476c3ec192f31d4ded2b483258fa36 Mon Sep 17 00:00:00 2001 From: Shivansh-007 Date: Thu, 29 Apr 2021 07:25:43 +0530 Subject: [PATCH 4/4] pkg(yeethon3.10): Adds Yeethon 3.10 (#239) * pkg(yeethon3.10): Adds Yeethon 3.10 * pkg(yeethon3.10): Change test file name to `test.yeethon.py` --- packages/yeethon/3.10.0/build.sh | 22 ++++++++++++++++++++++ packages/yeethon/3.10.0/environment | 4 ++++ packages/yeethon/3.10.0/metadata.json | 5 +++++ packages/yeethon/3.10.0/run | 3 +++ packages/yeethon/3.10.0/test.yeethon.py | 3 +++ 5 files changed, 37 insertions(+) create mode 100755 packages/yeethon/3.10.0/build.sh create mode 100644 packages/yeethon/3.10.0/environment create mode 100644 packages/yeethon/3.10.0/metadata.json create mode 100644 packages/yeethon/3.10.0/run create mode 100644 packages/yeethon/3.10.0/test.yeethon.py diff --git a/packages/yeethon/3.10.0/build.sh b/packages/yeethon/3.10.0/build.sh new file mode 100755 index 0000000..4eddcf6 --- /dev/null +++ b/packages/yeethon/3.10.0/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +git clone https://github.com/Yeethon/cyeethon +cd cyeethon + +# Building and installing yeethon +./configure --prefix "$PREFIX" --with-ensurepip=install +make -j$(nproc) +make install -j$(nproc) + +# Cleaning up +cd ../../ && rm -rf build + +# This is alpha version of python, hence most of the libraries are not compatible with python3.10.0 +# As a result, they will not be compatible with yeethon3.10 too +# bin/pip3 install numpy scipy pandas pycrypto whoosh bcrypt passlib diff --git a/packages/yeethon/3.10.0/environment b/packages/yeethon/3.10.0/environment new file mode 100644 index 0000000..c6ab089 --- /dev/null +++ b/packages/yeethon/3.10.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/yeethon/3.10.0/metadata.json b/packages/yeethon/3.10.0/metadata.json new file mode 100644 index 0000000..4c48ea1 --- /dev/null +++ b/packages/yeethon/3.10.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "yeethon", + "version": "3.10.0", + "aliases": ["yeethon3"] +} diff --git a/packages/yeethon/3.10.0/run b/packages/yeethon/3.10.0/run new file mode 100644 index 0000000..ff60df2 --- /dev/null +++ b/packages/yeethon/3.10.0/run @@ -0,0 +1,3 @@ +#!/bin/bash + +python3.10 "$@" \ No newline at end of file diff --git a/packages/yeethon/3.10.0/test.yeethon.py b/packages/yeethon/3.10.0/test.yeethon.py new file mode 100644 index 0000000..2c93714 --- /dev/null +++ b/packages/yeethon/3.10.0/test.yeethon.py @@ -0,0 +1,3 @@ +li = ["N", "o", "t", "o", "k"] +yeet li[:3] +print(''.join(x.title() for x in li))