Bug 241309 - [NEW PORT] devel/py-pyhcl: HCL configuration parser for Python
Summary: [NEW PORT] devel/py-pyhcl: HCL configuration parser for Python
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kai Knoblich
URL: https://github.com/virtuald/pyhcl
Keywords: buildisok
Depends on:
Blocks:
 
Reported: 2019-10-17 11:58 UTC by Alessandro Sagratini
Modified: 2019-10-27 19:24 UTC (History)
1 user (show)

See Also:


Attachments
shar file (1.81 KB, text/plain)
2019-10-17 11:58 UTC, Alessandro Sagratini
no flags Details
make describe (670 bytes, text/plain)
2019-10-17 11:58 UTC, Alessandro Sagratini
no flags Details
portlint -A output (12 bytes, text/plain)
2019-10-17 11:59 UTC, Alessandro Sagratini
no flags Details
port test (7.50 KB, text/plain)
2019-10-17 11:59 UTC, Alessandro Sagratini
no flags Details
poudriere output (20.39 KB, text/plain)
2019-10-17 11:59 UTC, Alessandro Sagratini
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Sagratini 2019-10-17 11:58:19 UTC
Created attachment 208381 [details]
shar file

Hello,
I'm proposing to add pyhcl [1] python package to the ports tree, if you feel it could be a good addition.

I'm attaching both shar file and port testing to this bug

[1] https://github.com/virtuald/pyhcl

Let me know if there's anything else you need form me.
Thank you,
Alessandro
Comment 1 Alessandro Sagratini 2019-10-17 11:58:58 UTC
Created attachment 208382 [details]
make describe
Comment 2 Alessandro Sagratini 2019-10-17 11:59:17 UTC
Created attachment 208383 [details]
portlint -A output
Comment 3 Alessandro Sagratini 2019-10-17 11:59:33 UTC
Created attachment 208384 [details]
port test
Comment 4 Alessandro Sagratini 2019-10-17 11:59:48 UTC
Created attachment 208385 [details]
poudriere output
Comment 5 Automation User 2019-10-17 18:57:49 UTC
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/89587260
Comment 6 commit-hook freebsd_committer 2019-10-27 19:10:12 UTC
A commit references this bug:

Author: kai
Date: Sun Oct 27 19:10:06 UTC 2019
New revision: 515813
URL: https://svnweb.freebsd.org/changeset/ports/515813

Log:
  [NEW PORT] devel/py-pyhcl

  Implements a parser for HCL (HashiCorp Configuration Language) in Python.
  This implementation aims to be compatible with the original golang version of
  the parser.

  The grammar and many of the tests/fixtures were copied/ported from the golang
  parser into pyhcl. All releases are tested with a variety of Python versions
  from Python 2.7 onward.

  WWW: https://github.com/virtuald/pyhcl

  PR:		241309
  Submitted by:	Alessando Sagratini <ale_sagra@hotmail.com>

Changes:
  head/devel/Makefile
  head/devel/py-pyhcl/
  head/devel/py-pyhcl/Makefile
  head/devel/py-pyhcl/distinfo
  head/devel/py-pyhcl/pkg-descr
Comment 7 Kai Knoblich freebsd_committer 2019-10-27 19:24:06 UTC
Committed, thank you for another contribution to the FreeBSD ports tree!

I did only some minor changes:

- Added "concurrent" keyword to USE_PYTHON to make the port concurrent safe. This is required because a non Python-version specific script (= ${PREFIX}/bin/hcltool) is installed outside the Python environment.

- Changed LICENSE_FILE_MPL20 to LICENSE_FILE as the package comes only with a single license.

- Added a "do-test" target to make future QA easier.