|
1 | 1 |
|
2 | 2 | tasks: |
3 | | - - name: Python Env |
4 | | - before: pyenv install 3.11.0rc2 # install specific version of python |
5 | | - init: | # 'pythonenv' is an arbitrary name |
6 | | - pyenv local 3.11.0rc2 |
7 | | - alias python=python3 |
8 | | - python -m pip install pip==22.3.1 |
9 | | - alias pip=pip3 |
10 | | - pip install notebook==6.5.2 nbdev==2.3.9 matplotlib==3.6.2 pandas==1.5.1 plotly==5.11.0 fastcore==1.5.27 |
11 | | - nbdev_install_quarto |
12 | | - gp sync-done pythonenv |
13 | | - command: python --version && pip --version |
14 | | - |
15 | | - - name: Python GUI |
16 | | - init: | # 'pythongui' is an arbitrary name |
17 | | - gp sync-await pythonenv |
18 | | - pyenv local 3.11.0rc2 |
19 | | - pip install pyqt5==5.15.7 wxPython==4.2.0 |
20 | | - gp sync-done pythongui |
21 | | - command: python --version && pip --version |
22 | | - |
23 | | - - name: Python OpenBB |
24 | | - init: | # 'pythonopenbb' is an arbitrary name |
25 | | - gp sync-await pythongui |
26 | | - pyenv local 3.11.0rc2 |
27 | | - pip install openbb==2.0.0 "openbb[all]" |
28 | | - gp sync-done pythonopenbb |
29 | | - command: python --version && pip --version |
30 | | - |
31 | | - - name: Test Python Env # wait for the above 'init' to finish |
| 3 | + - name: install and setup miniconda and openbb |
| 4 | + before: | |
| 5 | + wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh |
| 6 | + bash ~/miniconda.sh -b -p ${HOME}/miniconda |
| 7 | + eval "$(${HOME}/miniconda/bin/conda shell.bash hook)" |
| 8 | + conda init |
| 9 | + conda install -n base -c conda-forge mamba -y |
| 10 | + mamba create -n genelab-utils -c conda-forge -c bioconda -c defaults -c astrobiomike 'genelab-utils>=1.1.02' -y |
32 | 11 | init: | |
33 | | - gp sync-await pythonopenbb |
34 | | - pyenv local 3.11.0rc2 |
35 | | - command: python -m pip list --outdated --format columns # list outdated python packages with column formatting |
| 12 | + conda create -n obb python=3.9.6 -y |
| 13 | + conda activate obb |
| 14 | + pip install openbb==2.0.0 |
| 15 | + pip install "openbb[all]" |
| 16 | + command: conda activate obb |
36 | 17 |
|
37 | 18 |
|
38 | 19 | # List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/ |
|
0 commit comments