Bug 244870

Summary: [NEW PORT] textproc/py-jinja2-cli: Jinja2 CLI tool
Product: Ports & Packages Reporter: Juraj Lutter <otis>
Component: Individual Port(s)Assignee: Matthias Andree <mandree>
Status: Closed FIXED    
Severity: Affects Some People CC: mandree, python, vendion
Priority: --- Keywords: feature, needs-patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
textproc/py-jinja2-cli shar file
none
textproc/py-jinja2-cli shar file none

Description Juraj Lutter freebsd_committer freebsd_triage 2020-03-17 22:14:00 UTC
Created attachment 212475 [details]
textproc/py-jinja2-cli shar file

Hi,

please find a new port (shar file) attaches.

It is a jinja2 CLI tool for creating files from Jinja templates.

Poudriere log from CURRENT:

https://freebsd-current.builder.wilbury.net/data/13_CURRENT_GENERIC_amd64-default/2020-03-17_23h06m42s/logs/py37-jinja2-cli-0.7.0.log
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-03-17 23:48:52 UTC
Thanks for submitting a new port Jaraj

Some review items:

- Add LICENSE_FILE when one is supplied with the sources (this package provides one)

- Remove empty PKGNAMESUFFIX?= (unless this is related to existing master/slave ports?)

- Use USE_PYTHON=autoplist where possible for python packages, current static pkg-plist is only appropriate for python37

- Python package provides "extras" (yaml, tml xml). Add port OPTIONS for these python extras.

- Package has tests/test suite, add TEST_DEPENDS and test target for comprehensive ports QA. Unfortunately upstream doesn't provide the test module in the PyPI source distribution, so use USE_GITHUB for source until thats rectified upstream

See Also: https://wiki.freebsd.org/Python/PortsPolicy
Comment 2 Juraj Lutter freebsd_committer freebsd_triage 2020-03-18 15:05:54 UTC
Created attachment 212497 [details]
textproc/py-jinja2-cli shar file

Hi,

thanks for the pointers.

Please see the updated shar file attached.
Comment 3 Juraj Lutter freebsd_committer freebsd_triage 2020-03-31 20:02:08 UTC
A very friendly reminder. :-)
Comment 4 Adam Jimerson 2020-04-06 13:04:27 UTC
Any updates on a commiter reviewing this? I maintain the sysutils/yadm port which would benifit from this being added as it will allow users to make use of Jinja2 based templates https://yadm.io/docs/templates#
Comment 5 commit-hook freebsd_committer freebsd_triage 2020-04-10 10:52:20 UTC
A commit references this bug:

Author: mandree
Date: Fri Apr 10 10:51:49 UTC 2020
New revision: 531314
URL: https://svnweb.freebsd.org/changeset/ports/531314

Log:
  New port: textproc/py-jinja2-cli, a CLI to the Jinja2 templating system.

  This has optional YAML, TOML, XML support.

  WWW: https://github.com/mattrobenolt/jinja2-cli

  PR:		244870
  Submitted by:	juraj@lutter.sk (maintainer)

Changes:
  head/textproc/Makefile
  head/textproc/py-jinja2-cli/
  head/textproc/py-jinja2-cli/Makefile
  head/textproc/py-jinja2-cli/distinfo
  head/textproc/py-jinja2-cli/pkg-descr