Skip to content
Permalink
Browse files

Merge pull request #350 from rossbar/dep/sync

Update and sync dependencies in `requirements.txt` and `environment.yml`
  • Loading branch information
jni committed Nov 28, 2019
2 parents 3a14610 + 3192c3b commit 2473d74208aaf1413b0ddf0bca70befbc7e12157
Showing with 61 additions and 35 deletions.
  1. +1 −0 .gitignore
  2. +29 −1 README.md
  3. +17 −19 environment.yml
  4. +13 −14 requirements.txt
  5. +1 −1 wercker.yml
@@ -19,3 +19,4 @@ figures/generated/*
\#*
.ipynb_checkpoints
node_modules/
venv/
@@ -70,7 +70,10 @@ jupyter notebook
## Installing dependencies
First, we build an isolated environment as not to interrupt any
existing setup you may have. This can be done using, e.g., Conda:
existing setup you may have. This can be done using, e.g., Conda or Python's
built-in virtual environment module:
### Conda install
1. Install [conda](http://conda.pydata.org/miniconda.html) or Anaconda
@@ -85,6 +88,31 @@ conda env create --name elegant-scipy -f /path/to/elegant-scipy/environment.yml
`source activate elegant-scipy` if using conda 4.3.x or earlier, or
`activate elegant-scipy` on Windows)
### Python `venv` module
1. Create a new virtual environment:
```console
python -m venv --prompt elegant-scipy venv
```
This will create a python virtual environment named `elegant-scipy` and
store it in `./venv`.
2. Activate the newly-created environment:
```console
source venv/bin/activate
```
3. Install the dependencies with `pip`
```console
pip install -r requirements.txt
```
You can remove the virtual environment at any time by deleting the `venv/`
directory.
### Windows
To build the full book on Windows, you will at a minimum need the following
@@ -2,24 +2,22 @@ name: elegant
channels:
- conda-forge
dependencies:
- python=3.6*
- numpy=1.12*
- matplotlib=2.0*
- pandas=0.19*
- scipy=0.19*
- scikit-learn=0.18*
- scikit-image=0.13*
- xlrd=1.0*
- jupyter=1.0*
- sympy=1.*
- toolz=0.8*
- six=1.10*
- beautifulsoup4=4.5*
- pillow
- lxml
- networkx=2.4*
- python>=3.6
- numpy>=1.17
- matplotlib>=3.1.2
- pandas>=0.25.3
- scipy>=1.3.2
- scikit-learn>=0.21.3
- scikit-image>=0.16.2
- xlrd>=1.2
- jupyter>=1.0
- sympy>=1.4
- toolz>=0.10
- pillow>=6.2
- lxml>=4.4
- networkx>=2.4
- notedown>=1.5
- beautifulsoup4>=4.8
- pip:
# not available on conda, so use pip
- notedown>=1.5
- jupytercontrib>=0.0.5
- bs4
- jupytercontrib>=0.0.7
@@ -1,17 +1,16 @@
jupyter
ipython
notedown>=1.4
numpy>=1.11
scipy>=0.17
jupyter>=1.0
notedown>=1.5
numpy>=1.17
scipy>=1.3.2
matplotlib>=2.0.0
scikit-image>=0.13
toolz
scikit-image>=0.16
toolz>=0.10
networkx>=2.4
xlrd
pandas
scikit-learn
sympy
xlrd>=1.2
pandas>=0.25
scikit-learn>=0.21
sympy>=1.4
jupytercontrib>=0.0.7
pillow
bs4
lxml
pillow>=6.2
beautifulsoup4>=4.8
lxml>=4.4
@@ -14,7 +14,7 @@ build:

- pip-install:
pip_commands: pip3
extra_args: "--upgrade"
extra_args: "--upgrade --force-reinstall"

- script:
name: build book

0 comments on commit 2473d74

Please sign in to comment.
You can’t perform that action at this time.