Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit f6d91b8

Browse files
author
Joseph Burling
committed
fix(workflow): pip at later devcontainer stage
1 parent daf634e commit f6d91b8

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

datajoint-workflow/{{cookiecutter.github_repo}}/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*.orig
99
*.log
1010
*.pot
11-
__pycache__/*
11+
**/__pycache__
1212
.cache/*
1313
.*.swp
1414
*/.ipynb_checkpoints/*
@@ -67,3 +67,4 @@ MANIFEST
6767

6868
# Misc files/folders
6969
scratch/*
70+
src/{{cookiecutter.__pkg_import_name}}/scratch/*

datajoint-workflow/{{cookiecutter.github_repo}}/docker/devcontainer.Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ RUN <<-EOF
2929
init-apt-deps ../apt_requirements.txt
3030
init-conda-env environment.yml
3131
source ~/.bashrc
32-
conda-run pip install -q '.[dev,doc,test,sciops]'
33-
conda-run pip uninstall -yq ${PROJECT_NAME}
34-
CONDA_ENV_USER=base conda-run mamba install -yq conda-pack
35-
conda-run mamba clean -yqa
3632
chmod -R 2775 /usr/local
33+
CONDA_ENV_USER=base conda-run mamba install -yq conda-pack
3734
CONDA_ENV_USER=base conda-run conda pack -n ${CONDA_ENV_USER} -o condaenv.tar.gz
3835
tar -xzf condaenv.tar.gz -C /usr/local
3936
source /usr/local/bin/activate
@@ -97,7 +94,7 @@ RUN <<-EOF
9794
chmod -R 2775 ../.vscode-server*
9895
source activate
9996
conda init -q bash
100-
pip install -e .
97+
pip install --no-cache-dir -e '.[dev,doc,test,sciops]'
10198
EOF
10299

103100
ENTRYPOINT [ "/bin/sh", "-c" ]

datajoint-workflow/{{cookiecutter.github_repo}}/{{cookiecutter.__project_name}}.code-workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"python.analysis.completeFunctionParens": true,
8282
"python.analysis.diagnosticMode": "workspace",
8383
"python.analysis.diagnosticSeverityOverrides": {
84-
"reportGeneralTypeIssues": "information"
84+
"reportGeneralTypeIssues": "none"
8585
},
8686
"python.analysis.typeCheckingMode": "basic",
8787
"python.defaultInterpreterPath": "${env:CONDA_ENV_ROOT}/{{cookiecutter.__pkg_import_name}}",

0 commit comments

Comments
 (0)