Easy access of environment variables from Python with support for
booleans, strings, lists, tuples, integers, floats, and dicts.
If you need environment variables for your settings but need an easy way
of using Python objects instead of just strings. For example, if you
need a list of strings.
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-envs listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py312-envs-1.4:
CLI=off: Install the envs command-line tool
===> Use 'make config' to modify these settings
devel/py-envs: Update to 1.4 and fix envs command
1.3 imports raw_input from click._compat, which click 8 removed, so
envs.util and the envs CLI failed to import. 1.4 uses input().
- Build with pep517: the setup.py that poetry generated for 1.4 is
rejected by setuptools 63 ("'extras_require' must be a dictionary")
- Add a CLI option (off by default) for the envs command: envs.cli
imports click, jinja2 and terminaltables (upstream's "cli" extra),
and the port had no RUN_DEPENDS at all, so the command failed with
ModuleNotFoundError. By default the port installs only the envs
module, which needs nothing beyond Python, and no longer installs
the broken command; with CLI on, it installs the command and depends
on the three modules.
While here, follow the Python Ports Policy.
PR: 299869
Approved by: Ivan Rozhuk <rozhuk.im@gmail.com> (maintainer)
Approved by: osa, vvd (Mentors, implicit)
MFH: 2026Q4
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.
Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
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 )