From 2cbd914ced82b7c129d3f912d3d62e1aed4b4a65 Mon Sep 17 00:00:00 2001 From: Anne Fouilloux Date: Mon, 14 Sep 2020 22:04:21 +0200 Subject: [PATCH 1/2] set objectives for dependencies --- dependencies.rst | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/dependencies.rst b/dependencies.rst index 38d0cc9bc..d88394697 100644 --- a/dependencies.rst +++ b/dependencies.rst @@ -3,21 +3,18 @@ Dependency management .. questions:: - - Q1 - - Q2 + - How can my collaborators get the same results? + - How can my collaborators easily install my codes with all the necessary dependencies? + - How can make it easy for my colleagues to reproduce my results? .. objectives:: - - O1 - - O2 + - Record dependencies + - Simplify usage of my codes -(lesson here) - - .. keypoints:: - - K1 - - K2 + - Conda, pip, Virtualenv, Pipenv, pyenv, Poetry, requirements.txt From 6a0b89ffc8eb156eb11191bd21750d0e773c26b7 Mon Sep 17 00:00:00 2001 From: Anne Fouilloux Date: Mon, 14 Sep 2020 22:21:18 +0200 Subject: [PATCH 2/2] draft some headlines: not complete yet; just a rough starting point --- dependencies.rst | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/dependencies.rst b/dependencies.rst index d88394697..3ded2eaaa 100644 --- a/dependencies.rst +++ b/dependencies.rst @@ -14,6 +14,36 @@ Dependency management +Installing Packages for your project +------------------------------------- + +The idea is to start thinking about identifying the list of packages for a given project. + +--> Create an environment + +- virtualenv +- pipenv +- conda + + +Dependencies +------------ + +https://coderefinery.github.io/reproducible-research/03-dependencies/#dependencies + +.. challenge:: dependencies 1 + + Maybe reuse example from preceding episode and ask learners to make the list of dependencies. Does everyone has the exact same version for each package? + Create a requirements.txt for this project. + + Could be nice to have an example that requires a version > Y for a package (such ad matplotlib (3D plotting?). + + +Other Tools for Application Dependency Management +------------------------------------------------- + +- poetry +- micropipenv .. keypoints::