Installation

Installation#

pip#

PyPI Version PyPI Downloads

tad-mctc can easily be installed with pip.

pip install tad-mctc

conda#

Conda Version Conda Downloads

tad-mctc is also available from conda.

conda install tad-mctc

From source#

This project is hosted on GitHub at tad-mctc/tad-mctc. Obtain the source by cloning the repository with

git clone https://github.com/tad-mctc/tad-mctc
cd tad-mctc

We recommend using a conda environment to install the package. You can setup the environment manager using a mambaforge installer. Install the required dependencies from the conda-forge channel.

mamba env create -n torch -f environment.yaml
mamba activate torch

Install this project with pip in the environment

pip install .

The following dependencies are required

Development#

For development, additionally install the following tools in your environment.

mamba install black covdefaults coverage mypy pre-commit pylint tox

With pip, add the option -e for installing in development mode, and add [dev] for the development dependencies

pip install -e .[dev]

The pre-commit hooks are initialized by running the following command in the root of the repository.

pre-commit install

For testing all Python environments, simply run tox.

tox

Note that this randomizes the order of tests but skips “large” tests. To modify this behavior, tox has to skip the optional posargs.

tox -- test