FreshPorts -- The Place For Ports notbugIf you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

Port details
py-mock Mock unit tests for Python
2.0.0 devel on this many watch lists=3 search for ports that depend on this port Find issues related to this port Report an issue related to this port
Maintainer: jessekempf@gmail.com search for ports maintained by this maintainer
Port Added: 09 Jul 2010 20:53:29
Also Listed In: python
License: BSD2CLAUSE
A Python Mocking and Patching Library for Testing

mock is a Python module that provides a core Mock class. It is intended to
reduce the need for creating a host of trivial stubs throughout your test suite.
After performing an action, you can make assertions about which methods /
attributes were used and arguments they were called with. You can also specify
return values and set needed attributes in the normal way.

WWW: https://pypi.python.org/pypi/mock
SVNWeb : Homepage : PortsMon
There is no configure plist information for this port

To install the port: cd /usr/ports/devel/py-mock/ && make install clean
To add the package: pkg install py27-mock

PKGNAME: py27-mock

distinfo:

TIMESTAMP = 1490606425
SHA256 (mock-2.0.0.tar.gz) = b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba
SIZE (mock-2.0.0.tar.gz) = 73684


NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.

Build dependencies:
  1. py27-pbr>=1.3 : devel/py-pbr@py27
  2. py27-six>=1.9 : devel/py-six@py27
  3. py27-setuptools>0 : devel/py-setuptools@py27
  4. python2.7 : lang/python27
Runtime dependencies:
  1. py27-pbr>=1.3 : devel/py-pbr@py27
  2. py27-six>=1.9 : devel/py-six@py27
  3. py27-setuptools>0 : devel/py-setuptools@py27
  4. python2.7 : lang/python27
  5. py27-funcsigs>=0 : devel/py-funcsigs@py27

This port is required by:

for Build for Run * - 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

USES:
python

Master Sites:
  1. https://files.pythonhosted.org/packages/source/m/mock/
  2. https://pypi.python.org/packages/source/m/mock/
Notes from UPDATING
These upgrade notes are taken from /usr/ports/UPDATING
  • 2017-11-30
    Affects: */py*
    Author: mat@FreeBSD.org
    Reason: 
      Ports using Python via USES=python are now flavored.  All the py3-* ports
      have been removed and folded into their py-* master ports.
    
      People using Poudriere 3.2+ and binary packages do not have to do anything.
    
      For other people, to build the Python 3.6 version of, for example,
      databases/py-gdbm, you need to run:
    
        # make FLAVOR=py36 install
    
    

Number of commits found: 19

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
30 Nov 2017 15:50:34
Original commit files touched by this commit  2.0.0
Revision:455210  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)
10 Jun 2017 02:52:09
Original commit files touched by this commit  2.0.0
Revision:443064
woodsb02 search for other commits by this committer
[NEW] devel/py3-mock: Add Python 3.x version of this port

PR:		219833
19 Apr 2017 14:39:00
Original commit files touched by this commit  2.0.0
Revision:438850
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)
16 Mar 2017 19:23:49
Original commit files touched by this commit  1.3.0_1
Revision:436290
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
01 Apr 2016 14:00:57
Original commit files touched by this commit  1.3.0_1
Revision:412346
mat search for other commits by this committer
Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.

With hat:	portmgr
Sponsored by:	Absolight
25 Dec 2015 16:34:57
Original commit files touched by this commit  1.3.0_1
Revision:404435
miwi search for other commits by this committer
- Fix a typo
25 Dec 2015 16:32:13
Original commit files touched by this commit  1.3.0_1
Revision:404434  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
24 Dec 2015 14:06:01
Original commit files touched by this commit  1.3.0
Revision:404364
miwi search for other commits by this committer
- Update to 1.3.0

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

Approved by:	portmgr (implicit)
09 Feb 2014 10:57:26
Original commit files touched by this commit  1.0.1_1
Revision:343456
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!)
09 Feb 2014 10:52:41
Original commit files touched by this commit  1.0.1
Revision:343455
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)
20 Nov 2013 20:51:25
Original commit files touched by this commit  1.0.1
Revision:334452
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)
20 Sep 2013 17:13:47
Original commit files touched by this commit  1.0.1
Revision:327724
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)
02 Dec 2012 10:56:26
Original commit files touched by this commit  1.0.1
Revision:308096
rm search for other commits by this committer
- add pkg-plist, missed in previous commit

Feature safe:	yes
02 Dec 2012 10:39:45
Original commit files touched by this commit  1.0.1
Revision:308094
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
11 Sep 2012 19:51:01
Original commit files touched by this commit  0.8.0_1
Revision:304119
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)
14 Mar 2012 03:58:19
Original commit files touched by this commit  0.8.0
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
03 Jul 2011 14:59:23
Original commit files touched by this commit  0.6.0
ohauer search for other commits by this committer
-remove MD5
09 Jul 2010 20:53:12
Original commit files touched by this commit  0.6.0
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: 19

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD

This site
What is FreshPorts?
About the authors
Issues
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
mariadb100-serverJan 19
mariadb101-serverJan 19
mariadb102-serverJan 19
mariadb55-serverJan 19
mysql55-serverJan 19
mysql56-serverJan 19
mysql57-serverJan 19
percona55-serverJan 19
percona56-serverJan 19
percona57-serverJan 19
phpbb3Jan 19
unboundJan 19
wordpressJan 19
wordpressJan 19
wordpressJan 19

11 vulnerabilities affecting 94 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities

Last updated:
2018-01-19 16:44:07


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds

Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 32626
Broken 130
Deprecated 95
Ignore 370
Forbidden 0
Restricted 172
No CDROM 77
Vulnerable 46
Expired 7
Set to expire 86
Interactive 0
new 24 hours 0
new 48 hours2
new 7 days729
new fortnight1496
new month3085

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2018 Dan Langille. All rights reserved.