Fault Injection box Diagnostics package Diagnostic Package
Project description
PTS-Fault-Injection-box
Creates an interface to the Fault injection box in the BMS FKT
Installation
The following instruction will enable the user to properly close the repository and branch out to make their changes
Clone repository
cd <path-to-directory>
git clone git@gitlab.com:pass-testing-solutions/pts-fault-injection-box.git
cd pts-fault-injection-box/
git pull origin main
git checkout -b <your-new-branch> # Please follow the branch naming convention as mentioned in the coding guidelines
Virtual environment on MacOS
1. Virtualenvwrapper
You can install virtualenv and virtualenvwrapper with:
pip3 install virtualenv
pip3 install virtualenvwrapper
mkdir ~/.virtualenvs
# Might need to query where the virtualenv and virtualenvwrapper.sh are
which virtualenv
which virtualenvwrapper.sh
which python3
Add these lines in the ~/.zshrc file
# Setting PATH for Python 3 installed by brew
export PATH=<path-to-your-python3>:$PATH
# Configuration for virtualenv
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=<path-to-your-python3>
export VIRTUALENVWRAPPER_VIRTUALENV=<path-to-your-virtualenv>
source <path-to-your-virtualenvwrapper.sh>
source $ZSH/oh-my-zsh.sh
Make sure to save these changes in your file and close your terminal for them to take effect. Doing the previous few steps in the installation of the Virtualenvwrapper only needs to be done once. After a Virtualenv and Virtualenvwrapper are set up, all you need to do to create a new virtual environment for a new project is to follow the following steps:
You can create a virtual environment by simply typing -
mkvirtualenv <name-of-your-virtual-env>
cd <your-git-repository>
workon <name-of-your-virtual-env>
deactivate <name-of-your-virtual-env> # to deactivate the venv
To add the correct interpreter for your repository on PyCharm:
- PyCharm IDE > Preferences > Project > Python Interpreter
- Select the 'Add' button for interpreters
- Choose the 'Existing environments' in 'Virtualenv'
- Add the python3 file from /bin/ of your venv folder
E.g. - .virtualenvs/demo_repo_venv/bin/python3
After setting up the venv for the repo please install all the requirements and allow some time for the IDE to do indexing. If your repository has a requirements.txt:
pip3 install -r requirements.txt
2. Pipenv
Install pipenv
pip3 install pipenv
# or
brew install pipenv
pipenv shell # will create a virtualenv for the project
pipenv install # will install dependencies for the repo from the Pipfile and Pipfile.lock
# Install any further packages in this environment as
pipenv install rich # rich is a python library to nicely print on terminal
Your pipenv environment will be in the ~./virtualenvs folder. Make sure to add the interpreter on your IDE if not automatically added by navigating to the virtualenv folder for your repo and selecting the correct python3 file from /bin/.
If your repository contains a Pipfile instead of a requirements.txt, the installation instructions will activate the pip virtual environment shell and install all the dependencies.
cd pts-fault-injection-box/
pipenv shell
pipenv install
Authors and Maintainers
Author:
Shuparna Deb @shuparnadeb_pts
Maintainer:
Julian Paß @julianpass
Shuparna Deb @shuparnadeb_pts
License
License :: OSI Approved :: MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pts_fault_injection-0.1.2.tar.gz
.
File metadata
- Download URL: pts_fault_injection-0.1.2.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.19 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9721a9b63364f5993bb90bfb24a50bb841e691b820afb36a3298c83bb5a9d26 |
|
MD5 | 0e1cab1e2153b7df4bb320902891ef31 |
|
BLAKE2b-256 | 5a1a0fd5dd9bef12f0d1b19fc27d4a715b48eb29e84be6a4d722cdae4dacb2fa |
File details
Details for the file pts_fault_injection-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pts_fault_injection-0.1.2-py3-none-any.whl
- Upload date:
- Size: 29.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.19 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b7aadbbba284e6c6198747df7d00350431b4c862eb503a6babcdddaf3a148f7 |
|
MD5 | fb380e02841859d9c55d66c1811fccd3 |
|
BLAKE2b-256 | 4e1110505b08455a85904f02217397b05ff76e78e59e0bd96f92854b26a53680 |