Skip to content

migrated to learnpack #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
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
8 changes: 6 additions & 2 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM gitpod/workspace-full:latest

USER gitpod
RUN pip3 install pytest==4.4.2 pytest-testdox mock
RUN npm i -g learnpack && learnpack plugins:install learnpack-python


RUN $ pip3 install pytest==4.4.2 pytest-testdox mock
RUN npm i learnpack -g && learnpack plugins:install learnpack-python

25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,32 @@ These exercises were built in collaboration, we need you! If you find any bugs o
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io#https://github.com/4GeeksAcademy/python-functions-programming-exercises.git)


## Local Installation
## Manual installation

1) Make sure you have [learnpack](https://learnpack.co) installed, `node.js` version 14+ and python version 3+. This is the command to install learnpack:
```
$ npm i learnpack -g && learnpack plugins:install learnpack-python
1. Install learnpack, the package manager for learning tutorials and the html compiler plugin for learnpack, make sure you also have node.js 12+:

```sh
$ npm i learnpack -g
$ learnpack plugins:install learnpack-html
```

2) Clone or download this repository. Once you finish downloading, you will find a new folder with a subdirectory "exercises" that contains all the exercises within.
2. Download this particular exercises using learnpack and `cd` into the folder:

```sh
$ learnpack download python-functions-programming-exercises
$ cd python-functions-programming-exercises
```
$ git clone https://github.com/4GeeksAcademy/python-functions-programming-exercises.git
```

3) Start the tutorial/exercises by running the following command from the root of the project:
Note: Once you finish downloading, you will find a "exercises" folder that contains all the exercises within.

3. Start the tutorial/exercises by running the following command at the same level were your bc.json file is:

```sh
$ cd python-functions-programming-exercises
$ pip install pytest==4.4.2 mock pytest-testdox
$ $ pip3 install pytest==4.4.2 pytest-testdox mock
$ learnpack start
```

Node: The xercises have automatic grading but its very rigid and string, my recomendation is to ignore the tests and use them only as a recomendation or you can get frustrated.
## How are the exercises organized?

Each exercise is a small react application containing the following files:
Expand Down