-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from grahamegee/tidy_up
Tidy up
- Loading branch information
Showing
8 changed files
with
219 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
# - "3.2" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
install: | ||
- pip install . | ||
- pip install coveralls | ||
script: | ||
nosetests --with-coverage --cover-package=diffr --cover-branches | ||
after_success: | ||
coveralls | ||
- '2.7' | ||
- '3.3' | ||
- '3.4' | ||
- '3.5' | ||
install: | ||
- pip install . | ||
- pip install coveralls | ||
script: nosetests --with-coverage --cover-package=diffr --cover-branches | ||
after_success: coveralls | ||
deploy: | ||
provider: pypi | ||
user: grahamegee | ||
on: | ||
tags: true | ||
password: | ||
secure: lwwQCLEIPb0IidkC9ztsj/c+PAvNQArR3xawAr8Vg8miUNJPk27sxYftkrt2wBXV3azi2ddI9N3AtTjDBtamG7TgOIvDVIKmmSYmUxmB9dSZBFI46kUI70sBp3cPb4FqAwervQRkD+G7nmcPj0Gt517J8X7crc4mS+Fec+1cQHFn6RvzzNO7Rxnwv2GWpZDJUVvBuGeC0EmiZj084mSyXYM/YKTslqefLBTVKAXZj/tCszY3OMTPufWpOeDUSO4bf2nnfZlygFmEZuiD/YbPEws+d4ZCMkYb4pLB4KYrGKoDMiPANlo1Snhb8jMM7AijrK9PyYHafl44EQI5mXR5GueSj5LDgokYZVAqUsp11v55o3zIKCeMuGUGazdqJ7qg+ATW6sAxeo1eujTIc8Q/X3lfEuKgsIcDxHQe7xImISGH3nnq0BJzT1KVRvvhM3tmedCG0Qg6nDHzRn9uB17SPFkUYnzTBilVG6wevrklAcK2Mbo8vwYMO5PslRBAsee68vy/QzLvqHC9yRql2vw2ccTt61aDYI0YAogWlxdr0g4AaWQuvV50sELIGrOq15cRLH4MkegkLdNVkDaVsc8vMDzNQscSYV1Jzyr/qBk0ObfEED7vMRccJVweXNp48s0t1pNHaHrsLxekrjhBqDSDBREjiVpAg1x+pBnYrUm3bQw= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### version 1.0 | ||
Support for recursively diffing and patching nested python data structures. The following types are supported: | ||
* Subclasses of: | ||
- Sequence | ||
- Mapping | ||
- Set | ||
* OrderedDict | ||
* named_tuple | ||
|
||
A structured Diff object that can be programmatically inspected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from diffr import diff | ||
|
||
|
||
a = [0] * 5 + ['-' * 5 + 'a' + '-' * 5] + [0] * 5 | ||
b = [0] * 5 + ['-' * 5 + 'b' + '-' * 5] + [0] * 5 | ||
d = diff(a, b) | ||
print('Print out the diff in full by default') | ||
print(d) | ||
print() | ||
print('Reduce the context by formatting with context_limit = 3') | ||
print('{:3c}'.format(d)) | ||
print() | ||
print('Reduce the context further (context_limit = 1)') | ||
print(format(d, '1c')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.