Skip to content

Commit

Permalink
Reformulate docs and curate environment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Jan 23, 2021
1 parent 1840114 commit 072973b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog
=========

Version 0.6
===========

* Curated the list of packages in ``environment.yml``
* Editable install of package direclty in ``environment.yml``

Version 0.5.1
=============

Expand Down
36 changes: 27 additions & 9 deletions src/pyscaffoldext/dsproject/templates/environment_yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,44 @@ channels:
dependencies:
- python>=3.6
- pip
# BASIC
- numpy
- scipy
- pandas
- dask
- ipython
- tqdm
- click
# VISUALIZATION
- matplotlib
- seaborn
- altair
- statsmodels
- scikit-learn
- pytorch
- yellowbrick
# - altair
# - yellowbrick
# ML, STATS & DEEP LEARNING
# - statsmodels
# - scikit-learn
# - sktime
# - tslearn
# - xgboost
# - catboost
# - lightgbm
# - pytorch
# - fastai
# - tensorflow
# - keras
# - spacy
# OTHER TOOLS
# - optuna
# - dask
- pip:
- -e . # install git checkout of ${name} in editable mode
# add here only pip-packages that are not available in conda/conda-forge! E.g.:
- optuna
# - icecream
# - jax
# - numpyro
# - funsor
# - neptune-client
# - neptune-contrib

# for development only (could also be kept in a separate environment file)
# DEVELOPMENT ONLY PACKAGES (could also be kept in a separate environment file)
- jupyterlab
- pytest
- pytest-cov
Expand Down
4 changes: 1 addition & 3 deletions src/pyscaffoldext/dsproject/templates/readme_md.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A longer description of your project goes here...

In order to set up the necessary environment:

1. create an environment `${name}` with the help of [conda],
1. review and uncomment what you need in `environment.yml` and create an environment `${name}` with the help of [conda],
```
conda env create -f environment.yml
```
Expand All @@ -21,8 +21,6 @@ In order to set up the necessary environment:

> **_NOTE:_** The conda environment will have ${name} installed in editable mode.
> Some changes, e.g. in `setup.cfg`, might require you to run `pip install -e .` again.
> Be aware that `environment.yml` contains quite many data science related packages, thus
> commenting all those which are not needed before creating the environment saves you some time and space.


Optional and needed only once after `git clone`:
Expand Down

0 comments on commit 072973b

Please sign in to comment.