Installation¶
Using pip¶
Sismic requires Python >=3.9, and can be installed using pip as usual: pip install sismic.
This will install the latest stable version.
Starting from release 1.0.0, Sismic adheres to a semantic versioning scheme.
You can isolate Sismic installation by using virtual environments:
Get the tool to create virtual environments:
pip install virtualenvCreate the environment:
virtualenv -p python3.9 envJump into:
source env/bin/activateInstall Sismic:
pip install sismic
Consider using pew or pipenv to manage your virtual environments.
The development version can also be installed directly from its git repository:
pip install git+git://github.com/AlexandreDecan/sismic.git
From GitHub¶
You can also install Sismic from its repository by cloning it.
Get the tool to create virtual environments:
pip install virtualenvCreate the environment:
virtualenv -p python3.9 envJump into:
source env/bin/activateClone the repository:
git clone https://github.com/AlexandreDecan/sismicInstall Sismic:
pip install .orpip install -e .(editable mode)Install test dependencies:
pip install -r requirements.txt
Sismic is now available from the root directory. Its code is in the sismic directory.
The documentation can be built from the docs directory using make html.
Tests are available both for the code and the documentation:
make doctestin the docs directory (documentation tests)python -m pytest tests/from the root directory (code tests)