Port details |
- py-mock Rolling backport of unittest.mock for all Pythons
- 5.1.0 devel =9 5.1.0Version of this port present on the latest quarterly branch.
- Maintainer: bofh@FreeBSD.org
- 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.
- ¦ ¦ ¦ ¦
- 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>)
- 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):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- py39-pytest>=7,1 : devel/py-pytest@py39
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- This port is required by:
- for Build
-
- databases/py-peewee_migrate
- devel/py-buildbot-www
- dns/py-ns1-python
- graphics/qgis
- graphics/qgis-ltr
-
Deleted ports which required this port:
- for Run
-
- astro/py-skyfield
- databases/py-peewee_migrate
- devel/py-pytest-shutil
- devel/py-sure
- devel/py-tables
- devel/py-vsts-cd-manager
- finance/odoo
-
Deleted ports which required this port:
- * - 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:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
5.1.0 15 Jul 2023 15:43:35 |
Muhammad Moinur Rahman (bofh) |
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 |
Rene Ladan (rene) |
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 |
Muhammad Moinur Rahman (bofh) |
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 |
Muhammad Moinur Rahman (bofh) |
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 |
Stefan Eßer (se) |
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 |
Stefan Eßer (se) |
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 ) |
4.0.3 20 Jul 2022 14:21:35 |
Tobias C. Berner (tcberner) |
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 ) |
4.0.3 12 Mar 2022 10:40:25 |
Muhammad Moinur Rahman (bofh) |
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 |
Muhammad Moinur Rahman (bofh) |
*/*: Take maintainership |
3.0.5 07 Mar 2022 19:07:39 |
Rene Ladan (rene) |
all: return koobs' ports to the pool after safekeeping his commit bit. |
3.0.5 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
3.0.5 12 Jan 2021 22:03:52 |
rene |
Simplify some ports using PYTHON_VER and Python 3.6+ |
3.0.5 28 Dec 2020 23:02:15 |
antoine |
Drop python 2.7 support from a few ports
With hat: portmgr |
3.0.5 19 Nov 2019 00:37:29 |
koobs |
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 |
woodsb02 |
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 |
ngie |
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 ) |
2.0.0 20 Jun 2018 17:05:44 |
mat |
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 |
amdmi3 |
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 |
mat |
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 ) |
2.0.0 10 Jun 2017 02:52:09 |
woodsb02 |
[NEW] devel/py3-mock: Add Python 3.x version of this port
PR: 219833 |
2.0.0 19 Apr 2017 14:39:00 |
sunpoet |
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 |
antoine |
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 |
mat |
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 |
miwi |
- Fix a typo |
1.3.0_1 25 Dec 2015 16:32:13 |
miwi |
- 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 |
miwi |
- 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 |
mva |
- Convert ports of devel/ to USES=python
Approved by: portmgr (implicit) |
1.0.1_1 09 Feb 2014 10:57:26 |
koobs |
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 |
koobs |
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 |
sunpoet |
- 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 |
bapt |
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 |
rm |
- add pkg-plist, missed in previous commit
Feature safe: yes |
1.0.1 02 Dec 2012 10:39:45 |
rm |
- 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 |
rm |
- 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 |
lwhsu |
- 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 |
ohauer |
-remove MD5 |
0.6.0 09 Jul 2010 20:53:12 |
lwhsu |
Add py-mock 0.6.0, mock unit tests for Python.
PR: ports/148437
Submitted by: jessekempf at gmail.com |