|
|
@ -50,6 +50,43 @@ Download the latest release in .tar.gz or .whl format and simply use pip install |
|
|
|
pip install PyCTBN-2.2.tar.gz |
|
|
|
pip install PyCTBN-2.2.tar.gz |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Develop |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Prerequisites:** |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ `python3` (_>=3.6_) |
|
|
|
|
|
|
|
+ `python3-setuptools` |
|
|
|
|
|
|
|
+ `python3-pip` |
|
|
|
|
|
|
|
+ `python3-venv` (_optional_) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_Create_ the **_virtual environment_** in the project's folder: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
|
|
|
|
python3 -m venv venv |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Or if oyu wanna use the `virtualenv` package: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
|
|
|
|
virtualenv -p python3 venv |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_Activate_ the virtual environment: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
|
|
|
|
source venv/bin/activate |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_Prepare_ the development environment: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
|
|
|
|
./setup.py develop |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
That's all! ☕️ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
> **Tip:** To deactivate the **_virtual environment_** simply issue the `deactivate` command. |
|
|
|
|
|
|
|
|
|
|
|
## Testing & Linting |
|
|
|
## Testing & Linting |
|
|
|
|
|
|
|
|
|
|
|
Install these dependencies for **tesing**: |
|
|
|
Install these dependencies for **tesing**: |
|
|
|