From 3e8726c2e6143c74395706e3c3a633fd316d8cf1 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Mon, 12 Dec 2016 10:12:58 +0000 Subject: [PATCH] [#51] Update code-python.md --- code-python.md | 4 +++- debugging-python-code.md | 11 +++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/code-python.md b/code-python.md index 53ad90f..85b90bd 100644 --- a/code-python.md +++ b/code-python.md @@ -31,6 +31,8 @@ Pinned Dependencies We pin all our dependencies (including dependencies of dependencies) to an exact version in requirements.txt. This makes deployment more deterministic and reproducible. It also means that we can use requires.io to track out of date dependencies. +Sometime we create a requirements.in to list the top level dependencies, with only the known version constraints. This can be used to install the latest versions of all dependencies. Sometimes a repo has a [script to do this](https://github.com/OpenDataServices/cove/blob/master/update_requirements.sh). + virtualenv ---------- @@ -39,4 +41,4 @@ In order to install multiple version of the same dependency for different projec Python Packages --------------- -Our libraries like flatten-tool build as Python packages, but none of these are currently on PYPI. Where other code has dependencies on these we use pip's git support to point at a particular commit. +Our libraries like flatten-tool build as Python packages, but often these are not on PYPI. Where other code has dependencies on these we use pip's git support to point at a particular commit. diff --git a/debugging-python-code.md b/debugging-python-code.md index 821f143..599e2fe 100644 --- a/debugging-python-code.md +++ b/debugging-python-code.md @@ -1,5 +1,12 @@ # Debugging Python code -## ipdb +## pdbpp -### py.test --ipdb +pdb is the commandline python debugger. It's useful, but by installing +[pdbpp](https://pypi.python.org/pypi/pdbpp/) you get more features (colours, +tab completion etc.) for the same pdb interface. + +## py.test --pdb + +This command is useful because it runs py.test tests, dropping into the +debugger if one of them fails. If it's installed, pdbpp will be used.