Skip to content

biachiarelli/p2psimpy

 
 

Repository files navigation

Codacy Badge Build Status codecov

GoalD P2P Sim

Env Depencies

python 3, pip

Used IDE: vscode, plugin python

Instal pipenv

pipenv easy the process of managing python dependencies

PIP

$ pip install pyenv

Alternatively, macOS brew

$ brew install pipenv 

Install dependencies

Inside the project folder (after clone)

$ pyenv install 3.8.0
$ pip install pipenv
$ pipenv install
$ pipenv shell
(p2psimpy env) % pipenv install --dev

Run

Select the exec shell

$ pipenv shell

Then, Execute Simulation

$ python ./simulator/run.py

Test

Tests should be put on /tests folder and are executed with the following command.

 $ pytest -v --cov .

Linter

 $ flake8 --statistics

Dependency

Add New Dependency

To add new dependencies use the following command.

$ pipenv install [name]

This command will add the dependency to the Pipfile and Pipfile.lock assuring that the execution can be reproduced in another environment (after dependencies are updated with pipenv install command )

Add New Dev Dependency

Same as previous dependencies, but for development libraries such as the ones used for test.

$ pipenv install [name] --dev

Note that other systems after pulling updates will need a reexecution of pipenv install --dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%