From 07a56c4ab665f6b7d688bb4faf79eaf13ab5ba5e Mon Sep 17 00:00:00 2001 From: Saba Date: Mon, 4 Jul 2022 18:01:55 -0400 Subject: [PATCH] Add specific version for Python packages and downgrade miniconda Docker image to potentially fix build issues --- Dockerfile | 2 +- README.org | 4 ++++ config/environment.yml | 30 +++++++++++++++--------------- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index abed586d..8437d38e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1 -FROM continuumio/miniconda3:latest +FROM continuumio/miniconda3:4.12.0 # Install system dependencies. RUN apt-get update -y && \ diff --git a/README.org b/README.org index 19ee69de..e03bc37d 100644 --- a/README.org +++ b/README.org @@ -37,6 +37,10 @@ - [[https://github.com/debanjum/semantic-search/tree/master/src/interface/emacs#installation][Install]] [[./src/interface/emacs/semantic-search.el][semantic-search.el]] - Run ~M-x semantic-search ~ +** Run Unit tests + + `pytest` + ** Upgrade #+begin_src shell docker-compose build --pull diff --git a/config/environment.yml b/config/environment.yml index bb1dc845..289d20d7 100644 --- a/config/environment.yml +++ b/config/environment.yml @@ -2,19 +2,19 @@ name: semantic-search channels: - conda-forge dependencies: - - python=3.* - - numpy=1.* - - pytorch=1.* - - transformers=4.* + - python=3.8.* + - numpy=1.22.4 + - pytorch=1.11.0 + - transformers=4.19.4 - sentence-transformers=2.1.0 - - fastapi=0.* - - uvicorn=0.* - - pyyaml=5.* - - pytest=6.* - - pillow=8.* - - torchvision=0.* - - openai=0.* - - pydantic=1.* - - jinja2=3.0.* - - aiofiles=0.* - - huggingface_hub=0.* \ No newline at end of file + - fastapi=0.77.1 + - uvicorn=0.17.6 + - pyyaml=6.0 + - pytest=7.1.2 + - pillow=8.4.0 + - torchvision=0.12.0 + - openai=0.20.0 + - pydantic=1.9.1 + - jinja2=3.1.2 + - aiofiles=0.8.0 + - huggingface_hub=0.8.1