devel/py-unittest2: Remove outdated PYTHON_REL check after lang/python39 removal (05de8effa6b4a6fd9758a51d0c1acea91a36d3c6)3ad4d21165
Port details
devel/py-unittest2 1.1.0_3
New features in unittest backported to Python 2
Port info
- Maintainer
- sunpoet@FreeBSD.org
- Packages
- latest: 1.1.0_3
- Upstream
- up to date
- Last update
- to 1.1.0_3 · 3ad4d21165
- Quarterly
- 2026Q4: 1.1.0_3
- WWW
- https://github.com/garbas/unittest2
- Links
- cgit · VuXML
Install
- Package
# pkg install py312-unittest2installs 1.1.0_3 fromlatest; fromquarterly(2026Q4) 1.1.0_3- Port
# cd /usr/ports/devel/py-unittest2 && make install clean- Size
- 216 KiB download · 1.6 MiB installed
- Depends on
- devel/py-six 1.17.0, devel/py-traceback2 1.4.0_3, lang/python312 3.12.15
- License
- BSD3CLAUSE
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 1.1.0_3 | 1.1.0_3 | – |
| FreeBSD 15 | 1.1.0_3 | 1.1.0_3 | – |
| FreeBSD 14 | 1.1.0_3 | 1.1.0_3 | 1.1.0_3 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 1.1.0_3 | 1.1.0_3 | – |
| FreeBSD 14 | 1.1.0_3 | 1.1.0_3 | 1.1.0_3 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 1.1.0_3.Fixed (0)
No VuXML entries for this package.
Problem reports (0) · open in Bugzilla, most recently changed first
None.
Commits (37)
devel/py-unittest2: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package changeb923f2ba27
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>3d9a815d9cdevel/py-unittest2: Update WWW3104d09229
*/*: rename CHEESESHOP to PYPI in MASTER_SITES PR: 267994 Differential revision: D37518 Approved by: bapt77d68471ad
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)fb16dfecae
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. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)b7f05445c0
devel/py-unittest2: Relax USES=python - Allow build with Python 3.10+5389ede757
devel/py-unittest2: limit available python range to 3.7-3.9 Reported by: poudriere fallout Approved by: portmgr blanket (fix build)7888978d77
devel/py-unittest2: Add make test5163c6671f
devel/py-unittest2: Relax USES=pythonfe2e5782a7
devel/py-unittest2: limit supported python versions
File "/wrkdirs/usr/ports/devel/py-unittest2/work-py310/unittest2-1.1.0/unittest2/compatibility.py", line 143, in <module>
class ChainMap(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'
Approved by: portmgr blanketd085d9801fOne more small cleanup, forgotten yesterday. Reported by: lwhsucf118ccf87
Remove # $FreeBSD$ from Makefiles.305f148f48
Drop python 2.7 support from a few ports With hat: portmgraa7a6c429e
Convert REINPLACE_CMD to patch file1831a5b0f4
Bump a few PORTREVISIONs after r498529 With hat: portmgr63f5eeef8a
Fix *_DEPENDS - Add NO_ARCH - Bump PORTREVISION for dependency and package change437688e28c
Take maintainership5b56258293
Reset maintainer on my python portsbf44443d13
Use PY_FLAVOR for dependencies. FLAVOR is the current port's flavor, it should not be used outside of this scope. Sponsored by: Absolight4376dbbb58
Switch all pypi.python.org WWWs to a new PyPi home pypi.org where they now redirect to anyway. All new urls checked to return 200, I've fixed a couple of them in the process. Approved by: portmgr blanket, matc637402081
Canonicalize PyPi WWWs: - Switch to https:// - Remove trailing slashes Approved by: portmgr blanketd6c95efd94
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
current python flavor. It can be used in dependency lines when the
port itself is not python flavored. For example, deskutils/calibre.
By default, all the flavors are generated. To only generate flavors
for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.
In all the ports with Python dependencies, the *_DEPENDS entries MUST
end with the flavor so that the framework knows which to build/use.
This is done by appending '@${PY_FLAVOR}' after the origin (or
@${FLAVOR} if in a Python module with Python flavors, as the content
will be the same). For example:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
PR: 223071
Reviewed by: portmgr, python
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D12464551be3c723devel/py-unittest2: Revive deleted port
This port is still of value. The built-in unittest in Python 2.7 is
missing features provided by unittest2 which backports from Python 3.x.
Example code which produces a failure with 2.7's built-in unittest:
import unittest2
import unittest
class ExampleUT(unittest.TestCase):
def test_unittest(self):
for i in [1, 2, 3]:
with self.subTest(i=i):
self.assertEqual(i, i)
class ExampleUT2(unittest2.TestCase):
def test_unittest2(self):
for i in [1, 2, 3]:
with self.subTest(i=i):
self.assertEqual(i, i)
if __name__ == '__main__':
unittest2.main()731b9eed8edevel/py-unittest2: remove expired port This port was only needed for Pythons lesser than 2.79b980d2daa
devel/py-unittest2: mark deprecated This port is outdated and it have no consumers anymore. The only consumer was textproc/py-python-gettext and it was only needed for Python versions lesser than 2.7. Mark it deprecated and set to expire at 2016-09-21.5c94eef602
Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat: portmgr
Sponsored by: Absolight4e1b79a0a6devel/py-unittest2: update to 0.8.0f213ec64e0
- Convert ports of devel/ to USES=python Approved by: portmgr (implicit)89e07f4a18
devel/py-unittest2: Update LICENSE w/ references
- Update LICENSE (BSD3CLAUSE)
This one was fun to find. As rm@ mentioned in a previous commit, no
LICENSE file exists in the Google Code or hg.python.org repositories.
There is a "New BSD License" reference on the unittest-ext homepage [1]
but wasnt a direct reference to the source in question, so it was not
considered good enough.
Gold was struck grepping BSD in the sources, which leads to the setup.py
header, that includes a URL reference to:
http://www.voidspace.org.uk/python/license.shtml
BSD 3-clause. Voila!
[1] http://code.google.com/p/unittest-ext/
Approved by: portmgr (blanket)8c3c054f9fConvert d* to USES=zipc23ef8bc8b
- convert to using auto-generated packing list - limit python version to 2.x only - bump PORTREVISION Anticipating possible license question: I have no info about clauses number used in the license for this port. There is no license file in the distribution, and upstream web-page also doesn't answering that.799f66d098
- Update WWW: - http://cheeseshop.python.org/ -> https://pypi.python.org/ - http://pypi.python.org/ -> https://pypi.python.org/ With hat: python Approved by: bapt (portmgr)6670f0b757
Add NO_STAGE all over the place in preparation for the staging support (cat: devel part 3)580a778a16
Change email for my ports to FreeBSD one. Approved by: novel (mentor) Feature safe: yes1d3015aac7
unittest2 is a backport of the new features added to the unittest testing framework in Python 2.7. It is tested to on Python 2.4 - 2.7. WWW: http://pypi.python.org/pypi/unittest2 Submitted by: Ruslan Mahmatkhanov <cvs-src@yandex.ru> (via GitHub)2160d1efeb