https://github.com/datacamp/pythonwhat-ext
extensions (high-level SCTs) for pythonwhat
https://github.com/datacamp/pythonwhat-ext
fs le
Last synced: about 1 year ago
JSON representation
extensions (high-level SCTs) for pythonwhat
- Host: GitHub
- URL: https://github.com/datacamp/pythonwhat-ext
- Owner: datacamp
- License: agpl-3.0
- Created: 2017-06-19T21:18:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T20:37:43.000Z (over 3 years ago)
- Last Synced: 2025-03-26T19:12:14.531Z (about 1 year ago)
- Topics: fs, le
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 29
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> :warning: **This repo has outdated tokens in its travisci config**
> To make new releases for this project it needs to be moved to circleci
# pythonwhat-ext
[](https://travis-ci.org/datacamp/pythonwhat-ext)
[](https://badge.fury.io/py/pythonwhat-ext)
Extensions (high-level SCTs) for pythonwhat
[Documentation here](http://pythonwhat-ext.readthedocs.io/).
Including in a DataCamp course
------------------------------
In the course's `requirements.sh`, add
```
# replace 0.0.1 with the appropriate release version
# be sure to use --no-deps flag, so it ONLY installs extension
pip3 install --no-deps pythonwhat-ext==0.0.1
```
To use the extensions in an exercise's SCT, import the function you want into the SCT block of the exercise:
```
from pythonwhat_ext import check_numpy_array
Ex() >> check_numpy_array('x')
```
Deploying to PyPI
----------------------------
Follow these steps
1. Open a PR, merge into master when appropriate.
2. Once merged, increment `__version__ = 0.0.1` to reflect changes ([see semver for guidance](http://semver.org/)).
3. Create a github release labeled `vVERSION`. E.g. `v0.0.1`. (see [here](https://help.github.com/articles/creating-releases/)).
Running tests
-------------
```
pip install -r requirements.txt
# may need to uncomment line below
#pip install -e .
py.test tests
```