Skip to content

Commit 6e5920f

Browse files
committed
Merge branch 'release/0.5.2'
2 parents 8c349f9 + 0fced86 commit 6e5920f

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ install:
1212
- "pip install cram"
1313
- "pip install ."
1414
script:
15-
- "cram tests/*.t"
15+
- "cram --shell=/bin/bash tests/*.t"

run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
cram tests/*.t
2+
cram --shell=/bin/bash tests/*.t

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_dependencies():
1414

1515
setup(
1616
name='pip-review',
17-
version='0.5.1',
17+
version='0.5.2',
1818
url='https://github.com/jgonggrijp/pip-review',
1919
license='BSD',
2020
author='Vincent Driessen, Julian Gonggrijp',

tests/review.t

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,32 @@ Also install library, which caused warning message:
1818

1919
$ pip install http://www.effbot.org/media/downloads/cElementTree-1.0.5-20051216.tar.gz >/dev/null 2>&1
2020

21+
Define a filter to strip the deprecation notice for Python 2.6:
22+
23+
$ function strip_deprecation_notice {
24+
> grep -v 'DEPRECATION: Python 2.6 is no longer supported' || true
25+
> }
26+
27+
Before our next test, let's just check that the Bash option pipefail works:
28+
29+
$ set -o pipefail
30+
$ false | true
31+
[1]
32+
2133
Next, let's see what pip-review does:
2234

23-
$ pip-review
35+
$ pip-review 2>&1 | strip_deprecation_notice
2436
python-dateutil==* is available (you have 1.5) (glob)
2537

2638
Or in raw mode:
2739

28-
$ pip-review --raw
40+
$ pip-review --raw 2>&1 | strip_deprecation_notice
2941
python-dateutil==* (glob)
3042

3143
We can also install these updates automatically:
3244

3345
$ pip-review --auto >/dev/null 2>&1
34-
$ pip-review
46+
$ pip-review 2>&1 | strip_deprecation_notice
3547
Everything up-to-date
3648

3749
Next, let's test for regressions with older versions of pip:

0 commit comments

Comments
 (0)