-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from earthlab/upgrade-to-3.9
Upgrade to 3.11
- Loading branch information
Showing
5 changed files
with
94 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,21 +9,24 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
os: | ||
- "ubuntu-latest" | ||
- "macos-13" | ||
- "macos-latest" | ||
- "windows-latest" | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
shell: bash -el {0} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.head_ref || github.ref_name }} | ||
- uses: conda-incubator/[email protected] | ||
with: | ||
miniconda-version: 'latest' | ||
channels: conda-forge | ||
channel-priority: true | ||
auto-update-conda: false | ||
auto-activate-base: false | ||
environment-file: environment.yml | ||
activate-environment: earth-analytics-python | ||
- run: conda list | ||
- run: python -c "import earthpy" | ||
- run: python -c "import rasterio" | ||
- run: python -c "import geopandas" | ||
- run: python -c "import rioxarray" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
FROM jupyter/minimal-notebook | ||
FROM jupyter/minimal-notebook:python-3.11 | ||
|
||
MAINTAINER Leah Wasser <[email protected]> | ||
# Installing package for libmamba | ||
USER root | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
libfmt-dev \ | ||
libtiff5 | ||
|
||
COPY environment.yml environment.yml | ||
USER jovyan | ||
|
||
RUN conda env update --name base --file environment.yml \ | ||
&& conda info --envs \ | ||
&& conda list \ | ||
&& rm environment.yml | ||
# Set up conda | ||
RUN conda update conda | ||
RUN conda config --remove channels conda-forge | ||
RUN conda config --add channels conda-forge | ||
#RUN conda config --set channel_priority strict | ||
#RUN conda config --set solver classic | ||
|
||
ENV PROJ_LIB $CONDA_DIR/share/proj | ||
# Create environment | ||
COPY environment.yml /home/jovyan/ | ||
RUN conda env update -n base -f /home/jovyan/environment.yml | ||
|
||
# Test imports | ||
RUN python -c "import rasterio" | ||
RUN python -c "import earthpy" | ||
# Activating environment | ||
RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> /home/jovyan/.bash_profile && \ | ||
echo "conda deactivate" >> /home/jovyan/.bash_profile && \ | ||
echo "conda activate base" >> /home/jovyan/.bash_profile | ||
RUN . /opt/conda/etc/profile.d/conda.sh && conda activate base && python -m ipykernel install --user --name base | ||
# using ~/.bash_profile instead of ~/.bashrc for non-interactive tty (-it) containers | ||
RUN source /home/jovyan/.bash_profile | ||
|
||
# Install dev version of Earthpy | ||
RUN pip install git+https://github.com/earthlab/earthpy@apppears |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters