Summary: | [NEW PORT] sysutils/py-scriptine: Write easy shell scripts with python | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Danilo G. Baio <dbaio> | ||||||||||
Component: | Individual Port(s) | Assignee: | Martin Wilke <miwi> | ||||||||||
Status: | Closed FIXED | ||||||||||||
Severity: | Affects Only Me | CC: | miwi, python | ||||||||||
Priority: | --- | Keywords: | feature, patch | ||||||||||
Version: | Latest | ||||||||||||
Hardware: | Any | ||||||||||||
OS: | Any | ||||||||||||
Attachments: |
|
Description
Danilo G. Baio
2016-03-16 16:15:47 UTC
Created attachment 174120 [details]
py-scriptine.shar python2
Now with USES=python:2
portlint: OK (looks fine.)
testport:
poudriere: i386, 10.3 (OK)
poudriere: amd64, 10.3 (OK)
poudriere: i386, 9.3 (OK)
poudriere: amd64, 9.3 (OK)
poudriere: i386, 12 (OK)
poudriere: amd64, 12 (OK)
(In reply to Danilo G. Baio (dbaio) from comment #1) python:2 should only be used if the software explicitly depends on the lang/python2 port (and python2 symlink) and can't be fixed with shebangfix (unlikely) Looking upstream [1], it doesn't yet support Python 3, so USES=python should be set to -2.7. https://github.com/olt/scriptine/issues/2 Created attachment 174126 [details]
py-scriptine-v02.shar
Thanks @koobs, my mistake.
- Use any Python up to 2.7
Comment on attachment 174126 [details]
py-scriptine-v02.shar
You may want to consider adding the following (from upstream) to pkg-descr to flesh it out:
The primary goal of scriptine is to make it easy to write shell scripts with python.
Features:
* Easy command creation. Each command is just a function.
* Automatic option parsing
* Automatic help text (--help)
* Log handling (with -v, --verbose and -q, --quiet handling)
* Testing scripts in dry-mode.
* Easy execution of other shell scripts.
* Convenient working with files and directories.
Created attachment 174127 [details]
py-scriptine-v03.shar
Much better now, thanks again.
A commit references this bug: Author: miwi Date: Sat May 6 15:09:23 UTC 2017 New revision: 440268 URL: https://svnweb.freebsd.org/changeset/ports/440268 Log: The primary goal of scriptine is to make it easy to write shell scripts with python. Features: * Easy command creation. Each command is just a function. * Automatic option parsing * Automatic help text (--help) * Log handling (with -v, --verbose and -q, --quiet handling) * Testing scripts in dry-mode. * Easy execution of other shell scripts. * Convenient working with files and directories. WWW: https://pypi.python.org/pypi/scriptine PR: 208066 Submitted by: dbaio@bsd.com.br Changes: head/sysutils/Makefile head/sysutils/py-scriptine/ head/sysutils/py-scriptine/Makefile head/sysutils/py-scriptine/distinfo head/sysutils/py-scriptine/pkg-descr |