Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
[#51] Update code-python.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Dec 12, 2016
1 parent c6a2f5e commit 3e8726c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion code-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------

Expand All @@ -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.
11 changes: 9 additions & 2 deletions debugging-python-code.md
Original file line number Diff line number Diff line change
@@ -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.

1 comment on commit 3e8726c

@Bjwebb
Copy link
Member Author

@Bjwebb Bjwebb commented on 3e8726c Dec 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, some work towards #15

Please sign in to comment.