``virtualenv`` is a tool to create isolated Python environments.
It creates an environment that has its own installation directories,
that doesn't share libraries with other virtualenv environments
(and optionally doesn't use the globally installed libraries either).
Usage: virtualenv YOUR_NEW_PYTHON_ENV
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-virtualenv listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py312-virtualenv-21.14.13:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
devel/py-virtualenv: Update to 21.7.9
- Disable test target due to the following startup error:
pluggy._manager.PluginValidationError: Plugin 'black' for hook
'pytest_collect_file'
hookimpl definition: pytest_collect_file(file_path, path, parent)
Argument(s) {'path'} are declared in the hookimpl but can not be found in the
hookspec
See https://github.com/pytest-dev/pytest/issues/14651
- Pet portfmt
ChangeLog: https://github.com/pypa/virtualenv/releases/tag/21.7.9
Reported by: "github-actions[bot]" <notifications@github.com>
devel/py-virtualenv: Update to 20.35.3
- Mark as broken the test tests/unit/create/via_global_ref/test_build_c_ext.py
that fails with the following error:
ERROR: Could not find a version that satisfies the requirement
setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
Release changes: https://github.com/pypa/virtualenv/releases/tag/20.35.3
Reported by: Bernát Gábor <notifications@github.com>
devel/py-virtualenv: Fix build caused by conflicting dependencies
- Temporarly disable DOCS option due to the conflit between the docs
build-dependency textproc/py-towncrier with textproc/py-towncrier23,
which the other dependency py-sphinxcontrib-towncrier now depends on.
I prefer to disable this option instead of changing the dependency
to py-towncrier23 because a user may have already installed py-towncrier
in the system for other reasons before updating.
Other reference:
https://github.com/sphinx-contrib/sphinxcontrib-towncrier/issues/92
- Bump PORTREVISION
PR: 280687
devel/py-virtualenv: Update to 20.26.0
- Add a pre-test stage that adds a [tool.setuptools_scm] section to
project.toml, so that tests can detect the version.
Otherwise 5 tests fail with an error similar to
________________________________________________________________________________________________________________________
test_fail_no_traceback
________________________________________________________________________________________________________________________
raise_on_session_done = <function raise_on_session_done.<locals>._func at
0x3f63e7392c10>, tmp_path =
PosixPath(/tmp/pytest-of-root/pytest-5/test_fail_no_traceback0), capsys =
<_pytest.capture.CaptureFixture object at 0x3f63e5c0aca0>
def test_fail_no_traceback(raise_on_session_done, tmp_path, capsys):
raise_on_session_done(ProcessCallFailedError(code=2, out="out\n",
err="err\n", cmd=["something"]))
with pytest.raises(SystemExit) as context:
run_with_catch([str(tmp_path)])
assert context.value.code == 2
(Only the first 15 lines of the commit message are shown above )
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>
USE_PYTHON=pep517: package python bytecode
Compile and package python bytecode for python ports using pep517.
This can be revisited in the future with a trigger.
Approved by: portmgr
devel/py-virtualenv: Fix build when a previous version is installed
- Pass the option --ignore-installed to pip(1), because it tries to deinstall
the previous version when installing the new one. This is safe because we
install it in the stage dir. [1]
- Fix build with Python < 3.9.
Replace the switch -s (strip) with -d (destination dir), passed to module
compileall.py, because the first is available only with Python 3.9+. [2]
Reported error:
===> Staging for py38-virtualenv-20.18.0
===> Generating temporary packing list
Using pip 22.3.1 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
(Only the first 15 lines of the commit message are shown above )
devel/py-virtualenv: Update to 20.18.0
- Use Python pep517 feature, because the upstream removed setuptools support
- Compile and install Python bytecode (pending a definitive decision regarding
this: see: https://reviews.freebsd.org/D38429 )
- Update build/test dependencies
- Add a patch to pyproject.toml to fix the following Exception (build stage):
from virtualenv.version import __version__
ImportError: cannot import name '__version__' from 'virtualenv.version'
(/usr/local/poudriere/ports/default/devel/py-virtualenv/work-py39/virtualenv-20.18.0/dist/virtualenv-20.18.0-py3-none-any.whl/virtualenv/
version.py)
Changes: https://github.com/pypa/virtualenv/releases/tag/20.18.0
devel/py-virtualenv: unbreak DOCS build (+)
Bank on unversioned python-based tool is an awful idea and broadly leads to
failures.
Call versioned sphinx-build instead.
Reported by: poudriere failure
Approved by: portmgr blanket
devel/py-virtualenv: Update to 20.16.7
- Update (BUILD|RUN|TEST)_DEPENDS list
- Update patch for docs/conf.pyp file
- Use pytest for testing
- Set the environment variable SETUPTOOLS_SCM_PRETEND_VERSION to fix the
exception:
LookupError: setuptools-scm was unable to detect version
- Disable QA_depends_blacklist when executing the test target, because
virtualenv also requires python2 executable for some tests
- Set the test environment variable PYTHONPATH, so pytest can find the
virtualenv library
- Force setuptools to create a temporary egg_info in build/lib during the build
(Only the first 15 lines of the commit message are shown above )
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 )
Update Sphinx
- Repocopy textproc/py-sphinx to textproc/py-sphinx18
Update it to 1.8.5 (latest version from 1.8.X).
This version supports Python 2 and 3.
Add test target.
- textproc/py-sphinx: Update to 3.0.2
Python 3 only (3.5+).
Add test target.
- Mk/Uses/python.mk: Add PY_SPHINX
(Only the first 15 lines of the commit message are shown above )
- Fix documentation build
- Add textproc/py-sphinx_rtd_theme and textproc/towncrier to build dependencies
- Add files/patch-docs_conf.py to fix ModuleNotFoundError (virtualenv)
- Set LANG and LC_ALL environment variables to mitigate a RuntimeError during
the
build stage of the doc.:
RuntimeError: Click will abort further execution because Python 3 was
configured to use ASCII as encoding for the environment. Consult
https://click.palletsprojects.com/en/7.x/python3/ for mitigation steps.
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 )