Ever wished the compactness of shell scripts be put into a real programming
language? Say hello to Plumbum Shell Combinators. Plumbum (Latin for lead, which
was used to create pipes back in the day) is a small yet feature-rich library
for shell script-like programs in Python. The motto of the library is "Never
write shell scripts again", and thus it attempts to mimic the shell syntax
("shell combinators") where it makes sense, while keeping it all Pythonic and
cross-platform.
Apart from shell-like syntax and handy shortcuts, the library provides local and
remote command execution (over SSH), local and remote file-system paths, easy
working-directory and environment manipulation, and a programmatic Command-Line
Interface (CLI) application toolkit. Now let's see some code!
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 py312-plumbum listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py312-plumbum-2.0.2:
SSH=off: SSH protocol support
===> Use 'make config' to modify these settings
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
sysutils: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <jsmith@resonatingmedia.com>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Landwehr <aaron@snaphat.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Adrian Chadd
* Adrian Chadd <adrian@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alan Eldridge <alane@FreeBSD.org>
* Alan Eldridge <alane@geeksrus.net>
* Aldis Berjoza <aldis@bsdroot.lv>
* Alex Deiter <alex.deiter@gmail.com>
(Only the first 15 lines of the commit message are shown above )
sysutils/py-plumbum: update to 1.6.7
- PyPI sources do not ship LICENSE_FILE or tests
- ChangeLog:
* Commands: Added run_* methods as an alternative to modifiers
* CLI: Added support for ALLOW_ABREV
* CLI: Added DESCRIPTION_MORE, preserves spacing
* Color: Avoid throwing error in atexit in special cases (like pytest)
* Smaller bugfixes and other testing improvements.
sysutils/py-plumbum: update to 1.6.5
ChangeLog:
- Critical Bugfix: Syntax error in image script could break pip installs (#366)
- CLI: Regression fix: English apps now load as fast as in 1.6.3 (#364)
- CLI: Missing colon restored in group names
- Regression fix: Restored non-setuptools installs (#367)
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
sysutils/py-plumbum: update to 1.6.3
* Python 3.6 is now supported, critical bug fixed (#302)
* Commands: Better handling of return codes for pipelines (#288)
* Paths: Return split support (regression) (#286) - also supports dummy args
for better ``str`` compatibility
* Paths: Added support for Python 3.6 path protocol
* Paths: Support Python's ``in`` syntax
* CLI: Added Config parser (provisional) (#304)
* Color: image plots with `python -m plumbum.cli.image` (#304)
* SSH: No longer hangs on failure (#306)
* Test improvements, especially on non-linux systems
sysutils/py-plumbum: use autoplist instead of py3kplist.
- py3kplist should only be used if there is no alternative.
- MFH in conjuction with r424744
PR: 213812
Reported by: rm
MFH: 2016Q4
sysutils/py-plumbum: update to 1.9.2.
ChangeLog:
* CLI: Progress now has a clear keyword that hides the bar on completion
* CLI: Progress without clear now starts on next line without having to
manually add '\n'.
* Commands: modifiers now accept a timeout parameter (#281)
* Commands: BG modifier now allows stdout/stderr redirection (to screen,
for example) (#258)
* Commands: Modifiers no longer crash on repr (#262)
* Remote: nohup works again, typo fixed (#261)
* Added better support for SunOS and other OS's. (#260)
* Colors: Context manager flushes stream now, provides more consistant results
* Other smaller bugfixes, better support for Python 3.6+
sysutils/py-plumbum: update to 1.6.0
Port Changes:
- Add test target using nosetests.
- Switch to GH distribution to get unit tests.
- Add pkg-plist (do not use autoplist generation)
Change Log:
- Added support for Python 3.5, PyPy, and better Windows and Mac support, with
CI testing (#218, #217, #226)
- Colors: Added colors module, support for colors added to cli (#213)
- Machines: Added .get() method for checking several commands. (#205)
- Machines: local.cwd now is the current directory even if you change the
directory with non-Plumbum methods (fixes unexpected behavior).
(#207)
(Only the first 15 lines of the commit message are shown above )
Update sysutils/py-plumbum to 1.4.2.
ChangeLog:
Maintenance release with mostly minor bug fixes, mostly revolving around
Paramiko/Python 3 integration.
Update sysutils/py-plumbum to 1.4.1.
ChangeLog:
* Force /bin/sh to be the shell in SshMachine.session() (#111)
* Added islink() and unlink() to path objects (#100, #103)
* Added access to path objects
* Faster which implementation (#98)
* Several minor bug fixes