Skip to content

Commit

Permalink
fixes for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
parashardhapola committed Jul 26, 2024
1 parent 8a6b4a5 commit 08a9ea8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
os: [ubuntu-22.04, windows-2019]
python-version: [3.11.9]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
31 changes: 1 addition & 30 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt update -y && apt autoremove -y && apt clean -y && apt autoclean -y && apt upgrade -y
RUN apt install -y wget build-essential git nano
Expand All @@ -24,34 +24,5 @@ ENV PATH=$PATH:/root/miniconda3/bin:/workspace/bin
# Installing numpy and pybind11 beforehand because sometimes they don't install so well from requirements.txt
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -U numpy pybind11
RUN pip install --no-cache-dir -U dask<=2021.03.1

# Needed for dask
RUN conda install -c conda-forge 'fsspec>=0.3.3'

# This for interactive programming purposes
RUN pip install jupyterlab ipython-autotime
#RUN conda install nodejs

# For compiling docs
RUN pip install Sphinx sphinx-autodoc-typehints nbsphinx sphinx_rtd_theme

# For building vignettes
RUN conda install -y nodejs
RUN conda install -y -c conda-forge pandoc
RUN pip install jupytext
RUN jupyter lab build -y

RUN pip install scarf

# Building from Github repo
#RUN mkdir -p /tmp/scarf
#COPY . /tmp/scarf/
#RUN pip install -e /tmp/scarf/

RUN mkdir workspace && \
echo "jupyter lab --port 9734 --ip=0.0.0.0 --allow-root --no-browser" > launch_jupyter.sh

# If you want to launch jupyter manually then feel free to comment this out.
CMD cd workspace && \
bash ../launch_jupyter.sh
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ exclude .gitignore
exclude .gitattribute
exclude .readthedocs.yml
exclude Dockerfile
exclude push_pypi.sh
prune scarf_toolkit.egg-info
prune docs
prune scarf/tests
prune .circleci
prune .github
include requirements.txt
include requirements_extra.txt
include VERSION
include pypi_README.rst
graft bin
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.29.1
0.29.2

0 comments on commit 08a9ea8

Please sign in to comment.