notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details
py-mock Rolling backport of unittest.mock for all Pythons
5.1.0 devel on this many watch lists=9 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 5.1.0Version of this port present on the latest quarterly branch.
Maintainer: bofh@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2010-07-09 20:53:29
Last Update: 2023-07-15 15:43:35
Commit Hash: ea260e9
People watching this port, also watch:: libxml2, py311-six, indexinfo, py311-configargparse, py311-configobj
Also Listed In: python
License: BSD2CLAUSE
WWW:
https://mock.readthedocs.org/en/latest/
Description:
mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards. This package contains a rolling backport of the standard library mock code compatible with Python 2.7 and 3.4 and up.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
To install the port:
cd /usr/ports/devel/py-mock/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-mock
  • pkg install py39-mock
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 py39-mock listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py39-mock
Package flavors (<flavor>: <package>)
  • py39: py39-mock
distinfo:
TIMESTAMP = 1689432997 SHA256 (testing-cabal-mock-5.1.0_GH0.tar.gz) = e3ad0dbebbdab94f7401920e86cb765f50c42f6f88db223c8438c352fc8c136f SIZE (testing-cabal-mock-5.1.0_GH0.tar.gz) = 87814

Packages (timestamps in pop-ups are UTC):
py37-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--3.0.5---3.0.5-
FreeBSD:13:quarterly--------
FreeBSD:14:latest--------
FreeBSD:14:quarterly--------
FreeBSD:15:latest--n/a-n/a---
 
py39-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--------
FreeBSD:13:quarterly--5.0.2--5.1.05.1.05.1.0
FreeBSD:14:latest--5.0.1--5.0.2-5.0.2
FreeBSD:14:quarterly-----5.1.05.1.05.1.0
FreeBSD:15:latest--n/a-n/a5.1.05.1.05.1.0
 
py311-mock
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest5.1.05.1.0-5.1.05.1.0---
FreeBSD:13:quarterly5.1.05.1.0-5.1.05.1.0---
FreeBSD:14:latest5.1.05.1.0-5.1.05.1.0---
FreeBSD:14:quarterly5.1.05.1.0-5.1.05.1.0---
FreeBSD:15:latest5.1.05.1.0n/a5.1.0n/a---
 
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py39-setuptools>=63.1.0 : devel/py-setuptools@py39
  2. python3.9 : lang/python39
Test dependencies:
  1. py39-pytest>=7,1 : devel/py-pytest@py39
  2. python3.9 : lang/python39
Runtime dependencies:
  1. py39-setuptools>=63.1.0 : devel/py-setuptools@py39
  2. python3.9 : lang/python39
This port is required by:
for Build
  1. databases/py-peewee_migrate
  2. devel/py-buildbot-www
  3. dns/py-ns1-python
  4. graphics/qgis
  5. graphics/qgis-ltr

Deleted ports which required this port:

Expand this list of 2 deleted ports
  1. devel/buildbot-www*
  2. security/py-keystone*
  3. Collapse this list of deleted ports.
for Run
  1. astro/py-skyfield
  2. databases/py-peewee_migrate
  3. devel/py-pytest-shutil
  4. devel/py-sure
  5. devel/py-tables
  6. devel/py-vsts-cd-manager
  7. finance/odoo
Expand this list (22 items / 15 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. finance/odoo14
  3. finance/odoo15
  4. finance/odoo16
  5. graphics/qgis
  6. graphics/qgis-ltr
  7. security/py-certbot-dns-powerdns
  8. security/py-certbot-dns-standalone
  9. sysutils/duplicity
  10. www/py-instabot
  11. Collapse this list.

Deleted ports which required this port:

Expand this list of 6 deleted ports
  1. audio/py-gmusicapi*
  2. security/py-letsencrypt*
  3. sysutils/duplicity-devel*
  4. sysutils/py-azure-cli-batchai*
  5. www/py-kallithea*
  6. www/py-rhodecode*
  7. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
No options to configure
Options name:
devel_py-mock
USES:
python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/testing-cabal/mock/tar.gz/5.1.0?dummy=/
Collapse this list.

Number of commits found: 37

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
5.1.0
15 Jul 2023 15:43:35
commit hash: ea260e99703e40946d6e3983a06d30e67d0e74edcommit hash: ea260e99703e40946d6e3983a06d30e67d0e74edcommit hash: ea260e99703e40946d6e3983a06d30e67d0e74edcommit hash: ea260e99703e40946d6e3983a06d30e67d0e74ed files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
devel/py-mock: Update version 5.0.2=>5.1.0

Changelog: https://github.com/testing-cabal/mock/releases/tag/5.1.0
5.0.2
27 Jun 2023 19:34:34
commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb files touched by this commit
Rene Ladan (rene) search for other commits by this committer
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>
5.0.2
23 Apr 2023 18:46:01
commit hash: 4ac0e3f62aafa8d51d6ec6b71c26a4979c850ba8commit hash: 4ac0e3f62aafa8d51d6ec6b71c26a4979c850ba8commit hash: 4ac0e3f62aafa8d51d6ec6b71c26a4979c850ba8commit hash: 4ac0e3f62aafa8d51d6ec6b71c26a4979c850ba8 files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
devel/py-mock: Update version 5.0.1=>5.0.2

Changelog: https://github.com/testing-cabal/mock/releases/tag/5.0.2
5.0.1
11 Jan 2023 09:00:11
commit hash: 8cdd499a216ca06e5d8279b85c9bbf9a9dcff494commit hash: 8cdd499a216ca06e5d8279b85c9bbf9a9dcff494commit hash: 8cdd499a216ca06e5d8279b85c9bbf9a9dcff494commit hash: 8cdd499a216ca06e5d8279b85c9bbf9a9dcff494 files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
devel/py-mock: Update version 4.0.3=>5.0.1

- Add USE_PYTHON=pytest

Relnotes: https://github.com/testing-cabal/mock/releases/tag/5.0.1
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
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)
4.0.3
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
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 View all of this commit message)
4.0.3
20 Jul 2022 14:21:35
commit hash: aa6eefd5e663357e8223399bc38c7987f5e35746commit hash: aa6eefd5e663357e8223399bc38c7987f5e35746commit hash: aa6eefd5e663357e8223399bc38c7987f5e35746commit hash: aa6eefd5e663357e8223399bc38c7987f5e35746 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
devel: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  "Waitman Gobble" <uzimac@da3m0n8t3r.com>
  *  <jkoshy@FreeBSD.org>
  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Aaron Dalton <aaron@daltons.ca>
  *  Aaron H. K. Diep <ahkdiep@gmail.com>
  *  Aaron Hurt <ahurt@anbcs.com>
  *  Abel Chow <abel_chow@yahoo.com>
  *  Adam McLaurin
  *  Adam Saponara <as@php.net>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Ade Lovett <ade@FreeBSD.org>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
4.0.3
12 Mar 2022 10:40:25
commit hash: a8b2b1161db11f731563cbbbcd6558662b83b581commit hash: a8b2b1161db11f731563cbbbcd6558662b83b581commit hash: a8b2b1161db11f731563cbbbcd6558662b83b581commit hash: a8b2b1161db11f731563cbbbcd6558662b83b581 files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
devel/py-mock: Update version 3.0.5=>4.0.3

Relnotes: https://github.com/testing-cabal/mock/releases/tag/4.0.3
3.0.5
08 Mar 2022 02:09:57
commit hash: bc808e2bfff33c5b4260c571ee628017ca41f1b9commit hash: bc808e2bfff33c5b4260c571ee628017ca41f1b9commit hash: bc808e2bfff33c5b4260c571ee628017ca41f1b9commit hash: bc808e2bfff33c5b4260c571ee628017ca41f1b9 files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
*/*: Take maintainership
3.0.5
07 Mar 2022 19:07:39
commit hash: 3d89f95e2ff861b1e06ad114422b5d116a856970commit hash: 3d89f95e2ff861b1e06ad114422b5d116a856970commit hash: 3d89f95e2ff861b1e06ad114422b5d116a856970commit hash: 3d89f95e2ff861b1e06ad114422b5d116a856970 files touched by this commit
Rene Ladan (rene) search for other commits by this committer
all: return koobs' ports to the pool after safekeeping his commit bit.
3.0.5
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
3.0.5
12 Jan 2021 22:03:52
Revision:561394Original commit files touched by this commit
rene search for other commits by this committer
Simplify some ports using PYTHON_VER and Python 3.6+
3.0.5
28 Dec 2020 23:02:15
Revision:559531Original commit files touched by this commit
antoine search for other commits by this committer
Drop python 2.7 support from a few ports

With hat:	portmgr
3.0.5
19 Nov 2019 00:37:29
Revision:517932Original commit files touched by this commit
koobs search for other commits by this committer
devel/py-mock: Take MAINTAINER'ship, level up ports compliance

  * Use upstream (setup.cfg) summary as COMMENT
  * Fix dependencies (six is not a build time dependency)
  * Use GitHub (tests not packaged in PyPI sdist)
  * Standardize pytest invocation (show skip reasons, one line per test)
  * Use upstream (setup.cfg) description as pkg-descr
  * Use upstream (setup.cfg) home-page as pkg-descr WWW URL

PR:		241780
Approved by:	portmgr (unmaintained port. blanket(s): ports compliance,
bugfix(es))
MFH:		No (3.x might be API incompatible for consumers, unclear)
3.0.5
14 Nov 2019 23:22:13
Revision:517624Original commit files touched by this commit
woodsb02 search for other commits by this committer
devel/py-mock: Return to pool, after 3 consecutive maintainer timeouts

PR:		241780
Approved by:	portmgr blanket
3.0.5
14 Nov 2019 17:11:58
Revision:517602Original commit files touched by this commit
ngie search for other commits by this committer
Upgrade devel/py-mock from 2.0.0 to 3.0.5 and fix "make test" target

Version 3.0.5 includes multiple bugfixes and such for the backport library
that will aid in writing tests where the environment doesn't contain
`unittest.mock`.

In order to ensure that the code actually works, I needed to run the tests.
This required working around https://github.com/testing-cabal/mock/issues/469
by pulling the sources from the GitHub project that correspond with the
release tag, as the source tarball tagged for the release doesn't contain the
tests (prior to this change it would run 0 tests with `make test`, because
there weren't any).

Remove an unnecessary build dependency while here: pbr is no longer needed to
build the package.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.0.0
20 Jun 2018 17:05:44
Revision:472884Original commit files touched by this commit
mat search for other commits by this committer
Use PY_FLAVOR for dependencies.

FLAVOR is the current port's flavor, it should not be used outside of
this scope.

Sponsored by:	Absolight
2.0.0
25 Apr 2018 16:42:38
Revision:468282Original commit files touched by this commit
amdmi3 search for other commits by this committer
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, mat
2.0.0
30 Nov 2017 15:50:34
Revision:455210Original commit files touched by this commit Sanity Test Failure
mat search for other commits by this committer
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 View all of this commit message)
2.0.0
10 Jun 2017 02:52:09
Revision:443064Original commit files touched by this commit
woodsb02 search for other commits by this committer
[NEW] devel/py3-mock: Add Python 3.x version of this port

PR:		219833
2.0.0
19 Apr 2017 14:39:00
Revision:438850Original commit files touched by this commit
sunpoet search for other commits by this committer
Update to 2.0.0

- Add LICENSE_FILE
- Add NO_ARCH
- Sort USE_PYTHON
- Allow concurrent installation (USE_PYTHON=concurrent)

Changes:	https://github.com/testing-cabal/mock/commits/master
PR:		218361
Submitted by:	sunpoet (myself)
Approved by:	maintainer (timeout, 15 days)
1.3.0_1
16 Mar 2017 19:23:49
Revision:436290Original commit files touched by this commit
antoine search for other commits by this committer
Rename python setuptools ports to better match other python ports

Reviewed by:	mat, sunpoet
With hat:	portmgr
Differential Revision:	https://reviews.freebsd.org/D9983
1.3.0_1
01 Apr 2016 14:00:57
Revision:412346Original commit files touched by this commit
mat search for other commits by this committer
Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.

With hat:	portmgr
Sponsored by:	Absolight
1.3.0_1
25 Dec 2015 16:34:57
Revision:404435Original commit files touched by this commit
miwi search for other commits by this committer
- Fix a typo
1.3.0_1
25 Dec 2015 16:32:13
Revision:404434Original commit files touched by this commit Sanity Test Failure
miwi search for other commits by this committer
- Add missing dependency
- Switch to do-test
- Bump PORTREVISION

Reviewed by:	antoine, koobs
Differential Revision:	D4707
1.3.0
24 Dec 2015 14:06:01
Revision:404364Original commit files touched by this commit
miwi search for other commits by this committer
- Update to 1.3.0

PR:		205054
Submitted by:	yuri@rawbw.com
Approved by:	maintainer timeout
1.0.1_1
20 Oct 2014 16:04:14
Revision:371280Original commit files touched by this commit
mva search for other commits by this committer
- Convert ports of devel/ to USES=python

Approved by:	portmgr (implicit)
1.0.1_1
09 Feb 2014 10:57:26
Revision:343456Original commit files touched by this commit
koobs search for other commits by this committer
devel/py-mock: Bump PORTREVISION

- Bump PORTREVISION since switching from easy_install to install distutils
  target changes package contents

Reported by:	mat (thanks!)
1.0.1
09 Feb 2014 10:52:41
Revision:343455Original commit files touched by this commit
koobs search for other commits by this committer
devel/py-mock: Modernise: AUTOPLIST, STAGE, LICENSE & more

- Enable STAGE support
- Enable AUTOPLIST support, delete pkg-plist
- Update LICENSE (BSD2CLAUSE)
- Use OPTIONS helpers
- Deprecate easy_install, delete setup.py patch
- Deprecate OPTIONSFILE override
- Remove py3k-fix-pkg-plist.inc

Approved by:	portmgr (blanket)
1.0.1
20 Nov 2013 20:51:25
Revision:334452Original commit files touched by this commit
sunpoet search for other commits by this committer
- 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)
1.0.1
20 Sep 2013 17:13:47
Revision:327724Original commit files touched by this commit
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
devel part 3)
1.0.1
02 Dec 2012 10:56:26
Revision:308096Original commit files touched by this commit
rm search for other commits by this committer
- add pkg-plist, missed in previous commit

Feature safe:	yes
1.0.1
02 Dec 2012 10:39:45
Revision:308094Original commit files touched by this commit
rm search for other commits by this committer
- update to 1.0.1
- add OPTIONS for unit test support
- patch setup.py to install the egg uncompressed
- use a pkg-plist instead of PLIST_FILES
- restore creator to Makefile header and use new convention
- fix plist for python >= 3.2

PR:		172592
Submitted by:	Kubilay Kocak <koobs.freebsd@gmail.com>
Approved by:	maintainer timeout (1 month+)
Feature safe:	yes
0.8.0_1
11 Sep 2012 19:51:01
Revision:304119Original commit files touched by this commit
rm search for other commits by this committer
- switch to setuptools
- bump PORTREVISION because of dependency change

while here:
- strip Makefile header
- add license (BSD)
- move pkg-plist contents to PLIST_FILES
- mark it python 3 ready
- tab -> space in pkg-descr:WWW

PR:		170127
Reported by:	Kubilay Kocak <koobs.freebsd at gmail dot com>
Approved by:	maintainer timeout (>1 month)
0.8.0
14 Mar 2012 03:58:19
Original commit files touched by this commit
lwhsu search for other commits by this committer
- Update to 0.8.0

PR:             ports/165996
Submitted by:   lwhsu
Approved by:    Jesse Kempf <jessekempf@gmail.com> (maintainer)
Feature safe:   yes
0.6.0
03 Jul 2011 14:59:23
Original commit files touched by this commit
ohauer search for other commits by this committer
-remove MD5
0.6.0
09 Jul 2010 20:53:12
Original commit files touched by this commit
lwhsu search for other commits by this committer
Add py-mock 0.6.0, mock unit tests for Python.

PR:             ports/148437
Submitted by:   jessekempf at gmail.com

Number of commits found: 37