Skip to content

Commit 72ae83b

Browse files
committed
using reqs.txt instead of env.yml
1 parent 00752f5 commit 72ae83b

File tree

6 files changed

+21
-48
lines changed

6 files changed

+21
-48
lines changed

.circleci/config.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,16 @@ jobs:
1010

1111
# Install
1212
- run:
13-
name: Installation and docs build
13+
name: Install dependencies
1414
command: |
15-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
16-
bash miniconda.sh -b -p $HOME/miniconda
17-
export PATH="$HOME/miniconda/bin:$PATH"
18-
source "$HOME"/miniconda/etc/profile.d/conda.sh
19-
conda config --set always_yes yes --set changeps1 no
20-
conda env create -f environment.yml
21-
conda activate jupyter-sphinx
22-
python -m ipykernel install --user --name python3 --display-name "Python3"
15+
pip install --user -r requirements.txt
2316
pip install --user .
24-
17+
- run:
18+
name: Build documentation
19+
command: |
2520
cd doc
2621
make html
2722
28-
29-
30-
3123
- store_artifacts:
3224
path: doc/build/html/
3325
destination: html

.github/workflows/tests.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,11 @@ jobs:
2323

2424
- name: Install dependencies
2525
run: |
26-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
27-
bash miniconda.sh -b -p $HOME/miniconda
28-
export PATH="$HOME/miniconda/bin:$PATH"
29-
source "$HOME"/miniconda/etc/profile.d/conda.sh
30-
conda config --set always_yes yes --set changeps1 no
31-
conda env create -f environment.yml
32-
conda activate jupyter-sphinx
33-
python -m ipykernel install --user --name python3 --display-name "Python3"
34-
pip install .
35-
36-
pytest
26+
pip install --user -r requirements.txt
27+
pip install --user .
28+
29+
- name: Run tests
30+
run: pytest
3731

3832
publish:
3933

.travis.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ matrix:
1616
# Because we are using multiple extra packages, installation is much more
1717
# involved and we use conda.
1818
install:
19-
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
20-
- bash miniconda.sh -b -p $HOME/miniconda
21-
- export PATH="$HOME/miniconda/bin:$PATH"
22-
- source "$HOME"/miniconda/etc/profile.d/conda.sh
23-
- conda config --set always_yes yes --set changeps1 no
24-
- conda env create -f environment.yml
25-
- conda activate jupyter-sphinx
26-
- python -m ipykernel install --user --name python3 --display-name "Python3"
19+
- pip install --user -r requirements.txt
2720
- pip install .
2821
script:
2922
- make -C doc html

environment.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
conda:
2-
file: environment.yml
2+
file: requirements.txt
33
formats: []

requirements.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sphinx==1.8.5
2+
ipywidgets>=7.0.0
3+
IPython
4+
nbconvert>=5.4
5+
nbformat
6+
7+
# For documentation building and testing
8+
matplotlib
9+
pytest

0 commit comments

Comments
 (0)