Skip to content

Commit

Permalink
Merge pull request #1187 from cfe-lab/split-denovo-dependencies
Browse files Browse the repository at this point in the history
Split denovo dependencies
  • Loading branch information
Donaim authored Oct 28, 2024
2 parents b62571b + 7866287 commit 2faf6a6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// "forwardPorts": [],

// Use 'onCreateCommand' to run commands after the container is created, but before anything else starts.
"onCreateCommand": "python -m pip install .[dev,test]",
"onCreateCommand": "python -m pip install .[denovo,watcher,dev,test]",

// Configure tool-specific properties.
"customizations": {
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ jobs:
echo "/opt/bowtie2" >> $GITHUB_PATH
- name: Install MiCall's Python dependencies
# Have to clean up alignment build files. Otherwise, they'll get reused
# in Singularity build with the wrong GLIBC libraries.
run: |
python -m pip install --upgrade pip
pip install .[dev,test]
pip install .[denovo,watcher,dev,test]
- name: Run type checker
run: |
Expand All @@ -73,7 +71,6 @@ jobs:
- name: Report code coverage
run: |
rm -rf micall/tests/microtest/scratch
python -m pip install codecov
codecov
docker-test:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ RUN pip install --upgrade pip

COPY . /opt/micall/

RUN pip install /opt/micall[basespace]
RUN pip install /opt/micall[denovo,basespace]
RUN micall make_blast_db

## Trigger matplotlib to build its font cache
Expand Down
2 changes: 1 addition & 1 deletion Singularity
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ From: python:3.11
apt-get install -q -y libcairo2-dev
# Install micall main executable.
pip install --upgrade pip
pip install /opt/micall
pip install /opt/micall[denovo]
micall make_blast_db
# Also trigger matplotlib to build its font cache.
python -c 'import matplotlib; matplotlib.use("Agg"); import matplotlib.pyplot'
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ classifiers = [
dependencies = [
# Requirements for running the bare pipeline under Kive.
"pytz==2024.2",
"iva @ git+https://github.com/cfe-lab/[email protected]",
"biopython==1.84",
"gotoh @ git+https://github.com/cfe-lab/[email protected]#egg=gotoh&subdirectory=alignment/gotoh",
"pyvdrm @ git+https://github.com/cfe-lab/[email protected]",
Expand Down Expand Up @@ -64,6 +63,11 @@ dev = [
"mypy==1.13.0",
"mypy-extensions==1.0.0",
"gprof2dot==2024.6.6",
"codecov==2.1.13", # For reporting the code coverage.
]
denovo = [
# Requirements for running De-Novo pipeline (only problematic ones).
"iva @ git+https://github.com/cfe-lab/[email protected]",
]
watcher = [
# Requirements for running the MISEQ_MONITOR.py script
Expand Down

0 comments on commit 2faf6a6

Please sign in to comment.