mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-03 11:12:13 +00:00
Enji Cooper
ca961369de
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. Add py-pytest to TEST_DEPENDS, as running the tests as currently done via distutils doesn't work due to how the tests are enumerated. Conversely, remove the devel/py-tox dependency: it was never installed before due to a typo in the variable name and it adds a lot of unnecessary dependencies that aren't required when testing the port with `make test`. This helps keep the footprint down, which helps others upgrade the devel/py-mock port by itself. Address portlint issues while here. The changelog for the project can be found here on [GitHub](https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst). PR: 241780 Approved by: jessekempf@gmail.com (maintainer timeout), woodsdb (ports) Discussed with: bdrewery, Vladimir.Chukharev@gmail.com Differential Revision: https://reviews.freebsd.org/D21654
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
This is the FreeBSD Ports Collection. For an easy to use WEB-based interface to it, please see: https://www.FreeBSD.org/ports For general information on the Ports Collection, please see the FreeBSD Handbook ports section which is available from: https://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/ports.html for the latest official version or: The ports(7) manual page (man ports). These will explain how to use ports and packages. If you would like to search for a port, you can do so easily by saying (in /usr/ports): make search name="<name>" or: make search key="<keyword>" which will generate a list of all ports matching <name> or <keyword>. make search also supports wildcards, such as: make search name="gtk*" For information about contributing to FreeBSD ports, please see the Porter's Handbook, available at: https://www.FreeBSD.org/doc/en_US.ISO8859-1/books/porters-handbook/ NOTE: This tree will GROW significantly in size during normal usage! The distribution tar files can and do accumulate in /usr/ports/distfiles, and the individual ports will also use up lots of space in their work subdirectories unless you remember to "make clean" after you're done building a given port. /usr/ports/distfiles can also be periodically cleaned without ill-effect.
Description
Languages
Makefile
47.1%
C
18%
C++
16.8%
Roff
6%
Shell
4.9%
Other
5.8%