Bug 274578

Summary: [NEW PORT] devel/py-dbt-extractor: Analyze and extract information from Jinja used in dbt projects
Product: Ports & Packages Reporter: Pat Maddox <pat>
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: Closed FIXED    
Severity: Affects Only Me CC: pi
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 274577    
Bug Blocks: 274582    
Attachments:
Description Flags
new port none

Description Pat Maddox 2023-10-19 03:53:02 UTC
Created attachment 245727 [details]
new port
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2023-10-21 14:06:27 UTC
testbuilds@work
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2023-10-21 17:28:06 UTC
portlint -AC shows these two warnings:

WARN: Makefile: use of DISTFILES with single file discouraged. distribution filename should be set by DISTNAME and EXTRACT_SUFX.

and

WARN: Makefile: do not use DISTFILES and DISTNAME to control WRKSRC. how about "WRKSRC=${WRKDIR}/dbt_extractor-${PORTVERSION}"?

I have tried to find a way to remove those, but failed. Any pointers on how to
build the port without those is appreciated.
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-10-21 17:36:28 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=58a7baab60ed793e6c95a819f95b5a989ebf574d

commit 58a7baab60ed793e6c95a819f95b5a989ebf574d
Author:     Pat Maddox <pat@patmaddox.com>
AuthorDate: 2023-10-21 17:34:53 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2023-10-21 17:35:47 +0000

    devel/py-dbt-extractor: new port

    A tool that processes the most common jinja value templates in dbt model
    files. The tool depends on tree-sitter and the tree-sitter-jinja2 library.

    The current strategy is for this processor to be 100% certain when it can
    accurately extract values from a given model file. Anything less than 100%
    certainty returns an exception so that the model can be rendered with python
    Jinja instead.

    PR:             274578
    Author:         Pat Maddox <pat@patmaddox.com>

 devel/Makefile                               |   1 +
 devel/py-dbt-extractor/Makefile (new)        |  35 ++++++++
 devel/py-dbt-extractor/Makefile.crates (new) |  57 +++++++++++++
 devel/py-dbt-extractor/distinfo (new)        | 117 +++++++++++++++++++++++++++
 devel/py-dbt-extractor/pkg-descr (new)       |   7 ++
 5 files changed, 217 insertions(+)
Comment 4 Kurt Jaeger freebsd_committer freebsd_triage 2023-10-21 17:38:20 UTC
Committed, thanks!