Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #705
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <peter.a.portante@gmail.com> |
| X-Original-To | python-announce-list@python.org |
| Delivered-To | python-announce-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'pycon': 0.03; 'broken': 0.03; 'syntax': 0.03; 'argument': 0.04; 'explicitly': 0.04; 'output': 0.04; '---------': 0.05; 'debugging': 0.05; 'distutils': 0.05; 'modify': 0.05; 'python3': 0.05; 'skip:` 10': 0.05; 'trac': 0.05; 'coverage,': 0.07; 'definitions': 0.07; 'exception.': 0.07; 'exit': 0.07; 'filename': 0.07; 'newline': 0.07; 'parser': 0.07; 'purpose.': 0.07; 'pypi': 0.07; 'session.': 0.07; 'setup.py': 0.07; 'space.': 0.07; 'trailing': 0.07; 'welcome.': 0.07; 'python': 0.09; '(use': 0.09; '-------': 0.09; '0.1': 0.09; 'augmented': 0.09; 'closest': 0.09; 'counting': 0.09; 'default;': 0.09; 'exception:': 0.09; 'follows.': 0.09; 'franklin': 0.09; 'imported': 0.09; 'marking': 0.09; 'release.': 0.09; 'software;': 0.09; 'subject:PyPI': 0.09; 'symbols': 0.09; 'url:github': 0.09; 'yet)': 0.09; '2.7': 0.13; 'files.': 0.13; 'fitness': 0.13; 'index': 0.13; 'useful,': 0.13; 'folks': 0.15; 'properly': 0.15; '"."': 0.16; '"from': 0.16; '(note:': 0.16; '(rather': 0.16; '...]': 0.16; '.py': 0.16; '0.2': 0.16; '0.3': 0.16; ':copyright:': 0.16; '==========': 0.16; 'comma': 0.16; 'correctly,': 0.16; 'dump': 0.16; 'hall.': 0.16; 'n/a': 0.16; 'newlines': 0.16; 'recurse': 0.16; 'setuptools;': 0.16; 'statements;': 0.16; 'threads': 0.16; 'tuples,': 0.16; 'warranty;': 0.16; 'later': 0.16; 'fix': 0.17; 'directory.': 0.17; 'specify': 0.17; 'subject:project': 0.17; 'tests.': 0.17; 'yield': 0.17; 'foundation,': 0.18; 'tests': 0.18; 'code.': 0.20; 'changes': 0.20; 'written': 0.20; 'bit': 0.21; 'import': 0.21; 'not,': 0.21; 'assignment': 0.22; 'decorators': 0.22; 'interpret': 0.22; 'name;': 0.22; 'tuples': 0.22; 'defined': 0.22; 'errors': 0.23; 'originally': 0.23; "python's": 0.23; 'references': 0.23; 'installed': 0.23; 'thus': 0.24; 'header': 0.24; 'command': 0.24; 'script': 0.24; 'pass': 0.25; '----------': 0.26; 'handling': 0.27; 'plain': 0.27; 'dos': 0.27; 'replace': 0.27; 'transition': 0.27; 'tree': 0.27; 'message-id:@mail.gmail.com': 0.27; 'interface': 0.27; 'fixed': 0.28; '--------': 0.28; 'run': 0.28; 'coded': 0.29; 'editors': 0.29; 'implied': 0.29; 'index,': 0.29; 'warranty': 0.29; 'definition': 0.29; 'integration': 0.29; 'included': 0.29; 'source': 0.29; 'class': 0.29; 'install': 0.29; "skip:' 10": 0.30; 'hall': 0.30; 'hosted': 0.30; 'notes': 0.30; 'received:209.85.215.46': 0.30; 'function': 0.30; 'error': 0.30; 'code': 0.31; 'implement': 0.32; 'url:python': 0.32; 'file': 0.32; 'switch': 0.32; 'records': 0.68; 'published': 0.71; 'receive': 0.71; 'hand': 0.82; 'issues:': 0.84; 'recognition': 0.84; '======': 0.91; 'indicator': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=SDuQyn0w1ME3DBIT7kq9qCfS0fHpQju80kyX2Le/Q+0=; b=WeTbO7XwDYmGovx8AZKCBLb730oQ9HSJwJZNoteD4ij2H1Ap3uL9noLLjFplamgDqg Pqe0mUc5IC+Rb7LxK39oXe+TqxiDOeWhmS2fy7IdYoiV/RujSFDrsBDq/IHb6lQq1jCO SuRt9T2obJj5oCMhXZrE++Xg0C/6HGmGbfDKFi1jhh8Yz0oethmJyx4P5fWbsDtICepY +cOVFnITUMxcBBNHI3Gv/NqK1JvKW0s1YKX7zlJNOY4Z9/NqOqMeIE08zDatyCYhXo9X SAVGfBiqkaEe/V78/t96pR4nTlsx9nzeUFOSbaq2LFMXdaKT3XNAgRx+u9hU9RqDEYrc ncnA== |
| MIME-Version | 1.0 |
| Date | Mon, 1 Oct 2012 16:22:55 -0400 |
| Subject | PyCscope 1.1 Available on PyPI, project on GitHub |
| From | Peter Portante <peter.a.portante@gmail.com> |
| To | python-announce-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Mailman-Approved-At | Wed, 03 Oct 2012 16:36:43 +0200 |
| X-BeenThere | python-announce-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | python-list@python.org |
| List-Id | Announcement-only list for the Python programming language <python-announce-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-announce-list/> |
| List-Post | <mailto:python-announce-list@python.org> |
| List-Help | <mailto:python-announce-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe> |
| Approved | python-announce-list@python.org |
| Newsgroups | comp.lang.python.announce |
| Message-ID | <mailman.1761.1349275004.27098.python-announce-list@python.org> (permalink) |
| Lines | 229 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1349275004 news.xs4all.nl 6860 [2001:888:2000:d::a6]:51760 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python.announce:705 |
Show key headers only | View raw
Hello,
Just release PyCscope 1.1 on PyPI
(http://pypi.python.org/pypi/pycscope/1.1). The project is hosted on
GitHub at https://github.com/portante/pycscope.
Hope folks who like cscope find this useful for python code.
Comments, suggestions welcome.
-peter
========
PyCscope
========
:Copyright: Copyright 2012 Peter Portante. See LICENSE for details.
:Author: Peter Portante
:Release: 1.1
:Date: 2012/10/01
Purpose
-------
A python script to generate a cscope index from a Python source
tree. `pycscope` uses Python's own parser and (C)oncrete (S)yntax
(T)ree to generate the index, so it is a bit more accurate than
plain cscope.
Usage
-----
::
pycscope.py [-D] [-R] [-S] [-V] [-t cnt] [-f reffile] [-i
srclistfile] [files ...]
-D Dump the (C)oncrete (S)yntax (T)ree generated by
the parser for each file
-R Recurse directories for files
-S Interpret simple strings as symbols
-V Print version and exit
-t Use 'cnt' threads (defaults to 1)
-f reffile Use 'reffile' as cross-ref file name instead of 'cscope.out'
-i srclistfile Use the contents of 'srclistfile' as the list of
source files to scan
License
-------
Copyright 2012 Peter Portante
This program is free software; you can redistribute it and/or
modify it under the terms of version 2 of the GNU General
Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA
Install
-------
PyCscope uses Python's distutils package for installation.
Use the following command to install this package::
% python setup.py install
Features
--------
PyCscope has the following features:
- Supports both Python 2.7 and Python 3
- Command line interface
- Output can be used by the `CscopeFinder` plugin for jEdit
- Marks for all files ending in `.py`
- Marks for all `class` definitions
- Marks for all defined functions
- Marks for function calls (algorithm is not perfect)
- Marks for end-of-function (no search uses this mark yet)
- Marks for imported modules (use the search for #include)
- Marks for symbol assignment
A *mark* is an indicator to the cscope utility that something
of interest follows.
History
-------
pycscope 0.3a and later are written and copyright Peter Portante.
pycscope 0.1 - 0.3 were originally written and copyright Dean Hall.
Status
------
It works well enough to generate an index file that can be used
by the `CscopeFinder` plugin for jEdit. Other editors are not tested.
Release Notes
-------------
This is PyCscope release 1.1
========== ========= ======
====================================================
Date Release Trac Changes
========== ========= ======
====================================================
2012/10/01 1.1 N/A Fix Python3 support; enhance unit tests
to run using
nose, generating coverage by default; fix broken
unit tests that were not properly run before the
switch to nose; add contrib area containing the
pyxcscope integration for (X)Emacs.
---------- --------- ------
----------------------------------------------------
2012/09/20 1.0 N/A Call it 1.0; update to use setuptools;
drop .py from
installed script name; transition authorship from
Dean Hall to Peter Portante.
---------- --------- ------
----------------------------------------------------
2012/09/19 0.3e-pajp N/A Fix issues #7 and #8: we now properly
handle symbols
closest to the assignment itself (rather than the
first one), and replace the crazy comma counting
method with a more stable pattern
recognition method
that explicitly records which tuples
should receive
the assignment mark; fixed handling of
import state-
ments of the form, "from . import moda"
---------- --------- ------
----------------------------------------------------
2012/09/18 0.3d-pajp N/A Implement debugging help from Issue #9:
dumpCst now
works on subtrees of tuples, not just lists.
---------- --------- ------
----------------------------------------------------
2012/09/17 0.3c-pajp N/A First pass fix of Issue #6 removing
errant assertion
thus allowing symbol assignment marking to work as
coded (if not correctly, see Issue #7).
---------- --------- ------
----------------------------------------------------
2012/09/11 0.3b-pajp N/A Include changes from fspeech to get it working for
Python 3; add proper support for yield expression
following an augmented assignment; added support
for filename and line numbers when
assertions fire;
fixed handling of commas on the left hand side of
assignment statements; gracefully handle errors
opening files.
GitHub issues: #5
---------- --------- ------
----------------------------------------------------
2012/04/29 0.3a-pajp N/A (NOTE: Failed to update version!)
Fix handling of DOS style line endings.
GitHub issues: #4
---------- --------- ------
----------------------------------------------------
2012/04/13 0.3a-pajp N/A (NOTE: Failed to update version!)
Fix handling of function definition decorators
GitHub issues: #2, #3
---------- --------- ------
----------------------------------------------------
2012/03/11 0.3a-pajp N/A (NOTE: Failed to update version!)
Change references from abstract syntax tree to
concrete syntax tree; fix handling of trailing
commas.
---------- --------- ------
----------------------------------------------------
2012/03/05 0.3a-pajp N/A Updated changes to support symbol assignment,
enhance unit test coverage, prepare code for PyCon
poster session.
---------- --------- ------
----------------------------------------------------
2007/12/25 0.3 N/A Included changes submitted by K. Rader of Google:
- Added the `-i` argument to specify a file-list
file
- Fixups to the header and footer to make a valid
file that cscope can read
---------- --------- ------
----------------------------------------------------
2006/08/12 0.2 #33 Create 0.2 release.
#34 Change all "pyscope" to "pycscope"
#29 Make error reports less vague.
#23 Create distutils files.
#20 Create unit tests.
---------- --------- ------
----------------------------------------------------
2006/08/02 0.1 None Released to interested party by
email.
#19 Observe newlines even without
NEWLINE token.
#18 Newlines before MARK_FILE causes
exception.
#16 Work on "." default directory.
#10 Exception: TypeError in format.
#8 Class mark is incorrect.
#6 Create project space.
========== ========= ======
====================================================
Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread
PyCscope 1.1 Available on PyPI, project on GitHub Peter Portante <peter.a.portante@gmail.com> - 2012-10-01 16:22 -0400
csiph-web