Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 2.17 KB

Development.md

File metadata and controls

51 lines (38 loc) · 2.17 KB

Development

Prepare the development environment

You need python3.7, git and tox.
A recent version of wheel and pip>21.0 are desired for the python versions that you want to use.

# clone the project
$ git clone https://github.com/relatio-nlp/relatio

# go in the main directory
$ cd relatio

# create the development environment
$ tox -e dev

# activate the development environment
$ source .tox/dev/bin/activate

# install the hooks
(dev)$ pre-commit install

# OPTIONAL: make your IPython kernel available to Jupyter in a different env
(dev)$ python -m ipykernel install --user --name py37_relatio --display-name "Python 3.7 (relatio)"

Testing

You can easily test using tox on python3.7, python3.8, and python3.9.

$ tox -e py37 # python3.7 required
$ tox -e py38 # python3.8 required
$ tox -e py39 # python3.9 required

So far it works only with python3.7 and python3.8.

Tools

Guides