Skip to content

Commit 4665a9e

Browse files
Merge pull request #394 from tomvothecoder/hotfix/393-conda-dev-pkg-conflicts
Simplify conda environments to resolve conflicts
2 parents aa581a3 + 0b2e3cc commit 4665a9e

File tree

7 files changed

+34
-648
lines changed

7 files changed

+34
-648
lines changed

.github/workflows/workflow.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,33 +46,34 @@ jobs:
4646
- name: Cache Conda
4747
uses: actions/cache@v2
4848
env:
49-
# Increase this value to reset cache if etc/example-environment.yml has not changed
49+
# Increase this value to reset cache if conda/e3sm_diags_env_dev.yml has not changed in the workflow
5050
CACHE_NUMBER: 0
5151
with:
5252
path: ~/conda_pkgs_dir
5353
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
54-
hashFiles('conda/e3sm_diags_env_testing.yml') }}
54+
hashFiles('conda/e3sm_diags_env_dev.yml') }}
5555

5656
- name: Build Conda Environment
5757
uses: conda-incubator/setup-miniconda@v2
5858
with:
59-
activate-environment: e3sm_diags
60-
environment-file: conda/e3sm_diags_env_testing.yml
59+
activate-environment: e3sm_diags_env_dev
60+
environment-file: conda/e3sm_diags_env_dev.yml
6161
channel-priority: strict
6262
python-version: 3.7
6363
auto-update-conda: true
6464
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
6565

66-
- name: Additional Conda Config
66+
- name: Show Conda Environment Info
6767
run: |
6868
conda config --set anaconda_upload no
69+
conda info
70+
conda list
6971
70-
- name: Install Dependencies
72+
- name: Install `e3sm-diags` Package
7173
run: pip install .
7274

7375
- name: Run Tests
7476
run: |
75-
conda info
7677
bash tests/test.sh
7778
7879
publish:

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"python.linting.flake8Enabled": true,
1212
"python.linting.flake8Args": ["--config=setup.cfg"],
1313
"python.linting.mypyEnabled": true,
14-
"python.pythonPath": "/opt/miniconda3/envs/e3sm_diags/bin/python"
14+
"python.pythonPath": "/opt/miniconda3/envs/e3sm_diags_env_dev/bin/python"
1515
}

conda/e3sm_diags_env.yml

Lines changed: 9 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -4,172 +4,19 @@ channels:
44
- defaults
55
- e3sm
66
dependencies:
7-
- _libgcc_mutex=0.1
8-
- _openmp_mutex=4.5
9-
- attrs=20.3.0
7+
# Base
108
- beautifulsoup4=4.9.3
11-
- bokeh=2.2.3
12-
- brotlipy=0.7.0
13-
- bzip2=1.0.8
14-
- c-ares=1.17.1
15-
- ca-certificates=2020.11.8
169
- cartopy=0.18.0
17-
- cdat_info=8.2.1
1810
- cdp=1.7.0
11+
- cdms2==3.1.5
1912
- cdtime=3.1.4
2013
- cdutil=8.2.1
21-
- certifi=2020.11.8
22-
- cffi=1.14.4
23-
- chardet=3.0.4
24-
- click=7.1.2
25-
- cloudpickle=1.6.0
26-
- cryptography=3.2.1
27-
- curl=7.71.1
28-
- cycler=0.10.0
29-
- cytoolz=0.11.0
30-
- dask=2.30.0
31-
- dask-core=2.30.0
32-
- dbus=1.13.6
33-
- distarray=2.12.2
34-
- distributed=2.30.1
35-
- e3sm=2.3.0
36-
- esmf=8.0.1
37-
- esmpy=8.0.1
38-
- expat=2.2.9
39-
- fontconfig=2.13.1
40-
- freetype=2.10.4
41-
- fsspec=0.8.4
42-
- future=0.18.2
43-
- g2clib=1.6.0
4414
- genutil=8.2.1
45-
- geos=3.8.1
46-
- gettext=0.19.8.1
47-
- glib=2.66.3
48-
- gst-plugins-base=1.14.5
49-
- gstreamer=1.14.5
50-
- hdf4=4.2.13
51-
- hdf5=1.10.6
52-
- heapdict=1.0.1
53-
- icu=67.1
54-
- idna=2.10
55-
- importlib-metadata=3.1.0
56-
- importlib_metadata=3.1.0
57-
- ipython_genutils=0.2.0
58-
- jasper=1.900.1
59-
- jinja2=2.11.2
60-
- jpeg=9d
61-
- jsonschema=3.2.0
62-
- jupyter_core=4.7.0
63-
- kiwisolver=1.3.1
64-
- krb5=1.17.2
65-
- lazy-object-proxy=1.5.2
66-
- lcms2=2.11
67-
- ld_impl_linux-64=2.35.1
68-
- libblas=3.8.0
69-
- libcblas=3.8.0
70-
- libcdms=3.1.2
71-
- libcf=1.0.3
72-
- libclang=10.0.1
73-
- libcurl=7.71.1
74-
- libdrs=3.1.2
75-
- libdrs_f=3.1.2
76-
- libedit=3.1.20191231
77-
- libev=4.33
78-
- libevent=2.1.10
79-
- libffi=3.2.1
80-
- libgcc-ng=9.3.0
81-
- libgfortran-ng=9.3.0
82-
- libgfortran5=9.3.0
83-
- libglib=2.66.3
84-
- libgomp=9.3.0
85-
- libiconv=1.16
86-
- liblapack=3.8.0
87-
- libllvm10=10.0.1
88-
- libnetcdf=4.7.4
89-
- libnghttp2=1.41.0
90-
- libopenblas=0.3.10
91-
- libpng=1.6.37
92-
- libpq=12.3
93-
- libssh2=1.9.0
94-
- libstdcxx-ng=9.3.0
95-
- libtiff=4.1.0
96-
- libuuid=2.32.1
97-
- libwebp-base=1.1.0
98-
- libxcb=1.13
99-
- libxkbcommon=0.10.0
100-
- libxml2=2.9.10
101-
- libxslt=1.1.33
102-
- locket=0.2.0
10315
- lxml=4.6.2
104-
- lz4-c=1.9.2
105-
- markupsafe=1.1.1
106-
- matplotlib=3.3.3
107-
- matplotlib-base=3.3.3
108-
- msgpack-python=1.0.0
109-
- mysql-common=8.0.21
110-
- mysql-libs=8.0.21
111-
- nbformat=5.0.8
112-
- ncurses=6.2
113-
- netcdf-fortran=4.5.3
114-
- nspr=4.29
115-
- nss=3.59
116-
- numpy=1.19.4
117-
- olefile=0.46
118-
- openblas=0.3.10
119-
- openssl=1.1.1h
120-
- output_viewer=1.3.1
121-
- packaging=20.4
122-
- pandas=1.1.4
123-
- partd=1.1.0
124-
- pcre=8.44
125-
- pillow=8.0.1
126-
- pip=20.3
127-
- proj=7.1.1
128-
- psutil=5.7.3
129-
- pthread-stubs=0.4
130-
- pycparser=2.20
131-
- pyopenssl=20.0.0
132-
- pyparsing=2.4.7
133-
- pyqt=5.12.3
134-
- pyrsistent=0.17.3
135-
- pyshp=2.1.2
136-
- pysocks=1.7.1
137-
- python=3.7.8
138-
- python-dateutil=2.8.1
139-
- python_abi=3.7
140-
- pytz=2020.4
141-
- pyyaml=5.3.1
142-
- qt=5.12.9
143-
- readline=8.0
144-
- requests=2.25.0
145-
- scipy=1.5.3
146-
- setuptools=49.6.0
147-
- shapely=1.7.1
148-
- six=1.15.0
149-
- sortedcontainers=2.3.0
150-
- soupsieve=2.0.1
151-
- sqlite=3.33.0
152-
- tblib=1.6.0
153-
- tk=8.6.10
154-
- toolz=0.11.1
155-
- tornado=6.1
156-
- traitlets=5.0.5
157-
- typing_extensions=3.7.4.3
158-
- udunits2=2.2.27.6
159-
- urllib3=1.25.11
160-
- wheel=0.36.0
161-
- xorg-libxau=1.0.9
162-
- xorg-libxdmcp=1.1.3
163-
- xz=5.2.5
164-
- yaml=0.2.5
165-
- zict=2.0.0
166-
- zipp=3.4.0
167-
- zlib=1.2.11
168-
- zstd=1.4.5
169-
- pip:
170-
- cdms2==3.1.5
171-
- pyqt5-sip==4.19.18
172-
- pyqtchart==5.12
173-
- pyqtwebengine==5.12.1
174-
- regrid2==3.1.5
175-
prefix: /export/zhang40/miniconda3/envs/e3sm_diags_env
16+
- matplotlib=3.3.4
17+
- numpy=1.20.1
18+
- pip=21.0.1
19+
- python=3.7.10
20+
# Additional
21+
- e3sm_diags=2.4.0
22+
prefix: /opt/miniconda3/envs/e3sm_diags_env

0 commit comments

Comments
 (0)