Skip to content

Commit

Permalink
Define jupytext dev environment with conda
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Dec 22, 2019
1 parent 8cc0d83 commit a95cbb7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@ A pull request for which you do not need to contact us in advance is the additio
Most of Jupytext's code is written in Python. To develop the Python part of Jupytext, you should clone Jupytext, then create a dedicated Python env:
```
cd jupytext
conda create -n jupytext-dev jupyterlab pyyaml
conda env create --file environment.yml
conda activate jupytext-dev
pip install -r requirements-dev.txt
pip install -e .
```

Tests are executed with `pytest`. Install `pytest-xdist` to allow running the tests in parallel:
Tests are executed with `pytest`. You can run them in parallel with for instance
```
pip install pytest-xdist
pytest -n 5
```

Expand Down
21 changes: 21 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: jupytext-dev
channels:
- default
- conda-forge
dependencies:
- python==3.7
- jupyter
- pyyaml
- nbconvert
- jupyter_contrib_nbextensions
- pytest
- pytest-xdist
- pylint
- flake8
- black
- autopep8
- sphinx-gallery
- nodejs
- pip
- setuptools
- pandoc

0 comments on commit a95cbb7

Please sign in to comment.