Merge lp:~codersquid/python-oops-datedir-repo/optional-prune-dependencies into lp:python-oops-datedir-repo
| Status: | Needs review |
|---|---|
| Proposed branch: | lp:~codersquid/python-oops-datedir-repo/optional-prune-dependencies |
| Merge into: | lp:python-oops-datedir-repo |
| Diff against target: |
62 lines (+14/-6) 3 files modified
buildout.cfg (+1/-1) oops_datedir_repo/prune.py (+8/-2) setup.py (+5/-3) |
| To merge this branch: | bzr merge lp:~codersquid/python-oops-datedir-repo/optional-prune-dependencies |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Launchpad code reviewers | 2017-07-24 | Pending | |
|
Review via email:
|
|||
Commit Message
makes launchpadlib an optional dependency for prune
Description of the Change
This change makes launchpadlib an optional dependency.
from a command line prompt, one can type
pip install -e .\[prune\]
To install this with all of the dependencies required by prune, or
pip install -e .
To go without.
| Sheila Miguez (codersquid) wrote : | # |
| Sheila Miguez (codersquid) wrote : | # |
Using run-of-the-mill unittest, trunk has a failure, if I have time I'll take a look at it to get things clean before proceeding with work on this branch.
virtualenv venv
. venv/bin/activate
pip install -e .\[test\]
venv/bin/python -m unittest discover -v
=======
ERROR: test_read_
oops_datedir_
-------
_StringException: Traceback (most recent call last):
File "oops_datedir_
self.
File "oops_datedir_
return serializer_
File "oops_datedir_
report = bson.loads(
File "/home/
return decode_
File "/home/
if data[end_point - 1] not in ('\0', 0):
IndexError: string index out of range
Unmerged revisions
- 56. By Sheila Miguez on 2017-07-24
-
make prune dependencies optional

I was unable to run the unit tests and need help.
I created and activated a virtualenv, ran boostrap.py, and installed testrepository.
`testr run` suggested `testr init`. After doing the init step, `testr run` still failed due to bin/py not existing. I've missed a step somewhere.