Port details |
- py-grep-ast Pythonic grep through AST of source files
- 0.7.2 textproc
=2 0.4.1Version of this port present on the latest quarterly branch. - Maintainer: dch@FreeBSD.org
 - Port Added: 2024-05-22 14:00:27
- Last Update: 2025-03-21 08:49:36
- Commit Hash: bd1ae3d
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py311-PyOpenGL, p5-Sane
- Also Listed In: python
- License: APACHE20
- WWW:
- https://github.com/paul-gauthier/grep-ast
- Description:
- Grep source code files and see matching lines with useful context that
show how they fit into the code. See the loops, functions, methods,
classes, etc that contain all the matching lines. Get a sense of what's
inside a matched class or function definition. You see relevant code from
every layer of the abstract syntax tree, above and below the matches.
By default, grep-AST recurses the current directory to search all source
code files. It respects .gitignore, so it will usually "do the right
thing" in most repos if you just do grep-ast <regex> without specifying
any filenames.
You can also invoke grep-ast as gast for convenience.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}grep-ast>0:textproc/py-grep-ast@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/textproc/py-grep-ast/ && make install clean
- To add the package, run one of these commands:
- pkg install textproc/py-grep-ast
- pkg install py311-grep-ast
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-grep-ast listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-grep-ast
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1742544770
SHA256 (grep_ast-0.7.2.tar.gz) = e2ddb885f526dc67d448b3920ad465010db2ba6c45c337f229de1d96ffa4e115
SIZE (grep_ast-0.7.2.tar.gz) = 12335
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-setuptools>=0 : devel/py-setuptools@py311
- py311-setuptools>=63.1.0 : devel/py-setuptools@py311
- python3.11 : lang/python311
- Test dependencies:
-
- python3.11 : lang/python311
- Runtime dependencies:
-
- py311-pathspec>=0 : devel/py-pathspec@py311
- py311-tree-sitter-languages>0 : devel/py-tree-sitter-languages@py311
- python3.11 : lang/python311
- This port is required by:
- for Run
-
- misc/py-aider-chat
Configuration Options:
- ===> The following configuration options are available for py311-grep-ast-0.7.2:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
- Options name:
- textproc_py-grep-ast
- USES:
- python shebangfix
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.7.2 21 Mar 2025 08:49:36
    |
Dave Cottlehuber (dch)  |
textproc/py-grep-ast: update to 0.7.2
Reported by: portscout
Sponsored by: SkunkWerks, GmbH |
0.6.1_1 08 Mar 2025 04:05:21
    |
Charlie Li (vishwin)  |
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.
Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details. |
0.6.1 05 Mar 2025 07:10:29
    |
Dave Cottlehuber (dch)  |
textproc/py-grep-ast: update to 0.6.1
Sponsored by: SkunkWerks, GmbH
Reported by: portscout |
0.4.1 04 Dec 2024 16:43:27
    |
Dave Cottlehuber (dch)  |
textproc/py-grep-ast: update to 0.4.1
Reported by: portscout
Sponsored by: SkunkWerks, GmbH |
0.3.2 22 May 2024 13:57:17
    |
Dave Cottlehuber (dch)  |
textproc/py-grep-ast: new port - grep AST of source files |