From e5c2d8bff46c92c1b26730340f79c4c3c8c403b7 Mon Sep 17 00:00:00 2001 From: Oaker Min Date: Fri, 28 May 2021 02:10:35 +0000 Subject: [PATCH 01/12] Fully automate dev setup with Gitpod This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. --- .gitpod.Dockerfile | 11 +++++++++++ .gitpod.yml | 14 ++++++++++++++ README.md | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml create mode 100644 README.md diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 000000000..d6122b7f2 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,11 @@ +# Install custom tools, runtimes, etc. +# For example "bastet", a command-line tetris clone: +# RUN brew install bastet +# +# More information: https://www.gitpod.io/docs/config-docker/ + +FROM gitpod/workspace-full:latest + +USER gitpod + +RUN pip3 install pytest==4.4.2 pytest-testdox mock \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..94253242b --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,14 @@ +image: + file: .gitpod.Dockerfile + +tasks: + - command: python contemplate_koans.py + +github: + prebuilds: + # enable for the master/default branch (defaults to true) + master: true + # enable for pull requests coming from this repo (defaults to true) + pullRequests: false + # add a "Review in Gitpod" button as a comment to pull requests (defaults to true) + addComment: false diff --git a/README.md b/README.md new file mode 100644 index 000000000..90ea5a39a --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/gregmalcolm/python_koans) + From c08ea92ef72ee5fd684d2c00a2539ee19bcbc690 Mon Sep 17 00:00:00 2001 From: Oaker Min Date: Fri, 28 May 2021 02:13:11 +0000 Subject: [PATCH 02/12] remove readme md to use the main readme --- README.md | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 90ea5a39a..000000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/gregmalcolm/python_koans) - From 244d38b43405a9e3d378fbbb67d6fceffe51a54e Mon Sep 17 00:00:00 2001 From: Oaker Min Date: Fri, 28 May 2021 02:16:31 +0000 Subject: [PATCH 03/12] added open in gitpod badge and button --- README.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.rst b/README.rst index 3c74876fb..0d7ba671d 100644 --- a/README.rst +++ b/README.rst @@ -5,6 +5,10 @@ Python Koans .. image:: https://travis-ci.org/gregmalcolm/python_koans.png?branch=master :target: http://travis-ci.org/gregmalcolm/python_koans +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/gregmalcolm/python_koans) + + + Python Koans is a port of Edgecase's "Ruby Koans" which can be found at http://rubykoans.com/. From 679758decd3ce7399b8c76a466982529dc24cabc Mon Sep 17 00:00:00 2001 From: Oaker Min Date: Fri, 28 May 2021 02:17:53 +0000 Subject: [PATCH 04/12] corrected gitpod badge --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 0d7ba671d..9f5410926 100644 --- a/README.rst +++ b/README.rst @@ -5,7 +5,8 @@ Python Koans .. image:: https://travis-ci.org/gregmalcolm/python_koans.png?branch=master :target: http://travis-ci.org/gregmalcolm/python_koans -[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/gregmalcolm/python_koans) +.. image:: https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod + :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans From a59dbca517be924919b14cbe8241730b8f139bb2 Mon Sep 17 00:00:00 2001 From: Oaker Min Date: Fri, 28 May 2021 02:22:45 +0000 Subject: [PATCH 05/12] Corrected open in gitpod button and added description --- README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 9f5410926..f45a51672 100644 --- a/README.rst +++ b/README.rst @@ -8,7 +8,9 @@ Python Koans .. image:: https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans - +This project is ready to code in gitpod. +.. image:: ttps://gitpod.io/button/open-in-gitpod.svg + :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans Python Koans is a port of Edgecase's "Ruby Koans" which can be found at http://rubykoans.com/. From 7ce5cb800e9824bea1b5a68727e5bd6ca8484084 Mon Sep 17 00:00:00 2001 From: Oaker Min Date: Fri, 28 May 2021 02:23:44 +0000 Subject: [PATCH 06/12] missed h in https --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index f45a51672..e7a9a7ba3 100644 --- a/README.rst +++ b/README.rst @@ -9,7 +9,7 @@ Python Koans :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans This project is ready to code in gitpod. -.. image:: ttps://gitpod.io/button/open-in-gitpod.svg +.. image:: https://gitpod.io/button/open-in-gitpod.svg :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans Python Koans is a port of Edgecase's "Ruby Koans" which can be found From 115ada41e0cdddd242225f5b5f47873b0dacf088 Mon Sep 17 00:00:00 2001 From: Oaker Min Date: Fri, 28 May 2021 02:31:37 +0000 Subject: [PATCH 07/12] test button --- README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index e7a9a7ba3..f89c1c2a6 100644 --- a/README.rst +++ b/README.rst @@ -8,7 +8,9 @@ Python Koans .. image:: https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans -This project is ready to code in gitpod. +

One click installation:

+[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io#https://github.com/4GeeksAcademy/python-http-requests-api-tutorial-exercises.git) + .. image:: https://gitpod.io/button/open-in-gitpod.svg :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans From be32d6d5cace9410510090cee77c20a732286c99 Mon Sep 17 00:00:00 2001 From: Oaker Min Date: Fri, 28 May 2021 02:33:31 +0000 Subject: [PATCH 08/12] Testing one click installation title --- README.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/README.rst b/README.rst index f89c1c2a6..d7b20c651 100644 --- a/README.rst +++ b/README.rst @@ -9,7 +9,6 @@ Python Koans :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans

One click installation:

-[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io#https://github.com/4GeeksAcademy/python-http-requests-api-tutorial-exercises.git) .. image:: https://gitpod.io/button/open-in-gitpod.svg :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans From aa55169dd5d5d0f77643b6a6f0d9cb1e44e83418 Mon Sep 17 00:00:00 2001 From: Oaker Min Date: Fri, 28 May 2021 02:34:37 +0000 Subject: [PATCH 09/12] Correct format --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index d7b20c651..05bd1b9f5 100644 --- a/README.rst +++ b/README.rst @@ -8,7 +8,8 @@ Python Koans .. image:: https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans -

One click installation:

+One click installation: +----------------------- .. image:: https://gitpod.io/button/open-in-gitpod.svg :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans From 7de04259b312d0aae6cb211acb8750e1d387dd30 Mon Sep 17 00:00:00 2001 From: Oaker Min <7734956+brootware@users.noreply.github.com> Date: Mon, 7 Jun 2021 09:29:45 +0800 Subject: [PATCH 10/12] Update README.rst Updated to point to my own forked repo for one click installation --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 05bd1b9f5..7b0eded99 100644 --- a/README.rst +++ b/README.rst @@ -6,13 +6,13 @@ Python Koans :target: http://travis-ci.org/gregmalcolm/python_koans .. image:: https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod - :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans + :target: https://gitpod.io/#https://github.com/brootware/python_koans One click installation: ----------------------- .. image:: https://gitpod.io/button/open-in-gitpod.svg - :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans + :target: https://gitpod.io/#https://github.com/brootware/python_koans Python Koans is a port of Edgecase's "Ruby Koans" which can be found at http://rubykoans.com/. @@ -223,4 +223,4 @@ FPIP. So here's a little plug for their very cool Python podcast: http://frompythonimportpodcast.com/ A big thanks also to Mike Pirnat @pirnat and Kevin Chase @kjc have pitched in -as co-maintainers at various times \ No newline at end of file +as co-maintainers at various times From e35f2d6705a96f3d669dcb280d396f845dfd7e5c Mon Sep 17 00:00:00 2001 From: Oaker Min <7734956+brootware@users.noreply.github.com> Date: Mon, 9 Aug 2021 16:46:04 +0800 Subject: [PATCH 11/12] Update README.rst Added redhat codeready workspaces --- README.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.rst b/README.rst index 7b0eded99..a25d68057 100644 --- a/README.rst +++ b/README.rst @@ -7,13 +7,21 @@ Python Koans .. image:: https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod :target: https://gitpod.io/#https://github.com/brootware/python_koans + +.. image:: https://www.eclipse.org/che/contribute.svg + :target: https://workspaces.openshift.com/f?url=https://github.com/brootware/python_koans One click installation: ----------------------- +.. image:: https://www.eclipse.org/che/contribute.svg + :target: https://workspaces.openshift.com/f?url=https://github.com/brootware/python_koans +| or .. image:: https://gitpod.io/button/open-in-gitpod.svg :target: https://gitpod.io/#https://github.com/brootware/python_koans +| + Python Koans is a port of Edgecase's "Ruby Koans" which can be found at http://rubykoans.com/. From a9c177cad5ac47d9fbd064f516b8d1ff1a65c676 Mon Sep 17 00:00:00 2001 From: Oaker Min <7734956+brootware@users.noreply.github.com> Date: Mon, 9 Aug 2021 16:49:26 +0800 Subject: [PATCH 12/12] updating to reference greg's original repo --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index a25d68057..e42a75926 100644 --- a/README.rst +++ b/README.rst @@ -6,19 +6,19 @@ Python Koans :target: http://travis-ci.org/gregmalcolm/python_koans .. image:: https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod - :target: https://gitpod.io/#https://github.com/brootware/python_koans + :target: https://gitpod.io/#https://github.com/gregmalcolm/python_koans .. image:: https://www.eclipse.org/che/contribute.svg - :target: https://workspaces.openshift.com/f?url=https://github.com/brootware/python_koans + :target: https://workspaces.openshift.com/f?url=https://gitpod.io/#https://github.com/gregmalcolm/python_koans One click installation: ----------------------- .. image:: https://www.eclipse.org/che/contribute.svg - :target: https://workspaces.openshift.com/f?url=https://github.com/brootware/python_koans + :target: https://workspaces.openshift.com/f?url=https://gitpod.io/#https://github.com/gregmalcolm/python_koans | or .. image:: https://gitpod.io/button/open-in-gitpod.svg - :target: https://gitpod.io/#https://github.com/brootware/python_koans + :target: https://gitpod.io/#https://gitpod.io/#https://github.com/gregmalcolm/python_koans |