Skip to content

Commit ca2d59d

Browse files
author
rkern
committed
ENH: Write the announcement text and update the README.
git-svn-id: https://svn.enthought.com/svn/sandbox/grin/trunk@72 b5260ef8-a2c4-4e91-82fd-f242746c304a
1 parent c5e9280 commit ca2d59d

File tree

2 files changed

+37
-9
lines changed

2 files changed

+37
-9
lines changed

ANNOUNCE.txt

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,26 @@ grin is a grep-like tool for recursively searching through text
22
files, primarily source code.
33

44
Download: http://pypi.python.org/pypi/grin
5-
Wiki: https://svn.enthought.com/enthought/wiki/Grin
65
SVN: https://svn.enthought.com/svn/sandbox/grin/trunk
76
License: BSD
87

9-
grin 1.1.1 is a small bugfix release to clean up the issues found after release
10-
of 1.1.
8+
grin 1.2 is a feature release
119

12-
* grin now works with Python 2.4.
13-
* The reported version number is now correct.
10+
* Add several speed-enhancments from Paul Pelzl.
11+
12+
* Allow reading of sockets, thanks to Floris Bruynooghe.
13+
14+
* Added enhanced file extension recognition to handle extensions like # or
15+
.tar.gz, thanks to Anders J. Munch.
16+
17+
* Add grinpython.py example which will search through Python files and only
18+
find results in actual code, string literals, or comments, in any
19+
combination.
20+
21+
* Silent handling of KeyboardInterrupt.
22+
23+
* Bug fixes and small enhancements from Sam Ockman, Adam Gomaa and Larry Hastings.
24+
25+
* Update the argparse 1.1 to use the new, non-deprecated handling of the
26+
--version argument.
1427

README.txt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ easy_installable::
7171

7272
Alternatively, download and unpack the tarball and install::
7373

74-
$ tar zxf grin-1.1.1.tar.gz
74+
$ tar zxf grin-1.2.tar.gz
7575
$ python setup.py install
7676

7777
On UNIX systems, use sudo for the latter command if you need to install the
@@ -219,6 +219,24 @@ that it preprocesses Python files to extract and normalize just the import
219219
statements. This lets you conveniently and robustly search for import
220220
statements. Look at "grinimports.py --help" for more information.
221221

222+
examples/grinpython.py allows you to search through Python files and specify whether you want to search through actual Python code, comments or string literals in any combination. For example::
223+
224+
$ grinpython.py -i --strings grep grin.py
225+
grin.py:
226+
188 : """ Grep a single file for a regex by iterating over the lines in a file.
227+
292 : """ Do a full grep.
228+
...
229+
230+
$ grinpython.py -i --comments grep grin.py
231+
grin.py:
232+
979 : # something we want to grep.
233+
234+
$ grinpython.py -i --python-code grep grin.py
235+
grin.py:
236+
187 : class GrepText(object):
237+
291 : def do_grep(self, fp):
238+
...
239+
222240
Similarly, it should be straightforward to write small tools like this which
223241
extract and search text metadata from binary files.
224242

@@ -227,9 +245,6 @@ To Do
227245
-----
228246

229247
* Figure out the story for grepping UTF-8, UTF-16 and UTF-32 Unicode text files.
230-
* Write some more examples of building small tools on top of grin.
231-
* Investigate ways to speed up searching. GNU grep is wicked-fast, and I'd like
232-
grin to be at least "not slow".
233248

234249

235250
Bugs and Such

0 commit comments

Comments
 (0)