diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest index a0c96b5b6..98e40e3b9 100644 --- a/dev-python/pytest/Manifest +++ b/dev-python/pytest/Manifest @@ -6,10 +6,12 @@ DIST pytest-5.0.1.tar.gz 949744 BLAKE2B c949f0fb6bc0d1430ec7c780537f8aee8ca1ebea DIST pytest-5.1.1.tar.gz 964525 BLAKE2B 93b3852856a14bb2ab019e8d210dd1e8368a0d0b8a09f1477b5703519a5cff98d8fc6454f2a6a68e888daa17f2e59205bf6aed7ebce6e1b891ba18f5a05e65cf SHA512 86d72d14b2af087aa111e3f0fb2e8b1373fa4568ad5b46945a88af35483f5467b0ab20c8d00cbc3aacabb73f04b3ced75e84f703c9b2f4eaac429062508688b3 DIST pytest-5.1.2.tar.gz 966963 BLAKE2B f96e2cb731bb96fd95f4e3a003248c1acca9bd13f6f0a4138d3fd55a6fec5dbf2d6176a7ea1f09d18cfaf4c337a902d741da95b8fa4ae0be5d3bf27764d6e4a8 SHA512 2af4f661782e3cc1d56f7a38a0ac5a838dcd4df573f38b9735d5fb41300d38d67ec0c2c224add4bc861f4ebde8bd63bf5d7e515508e97c992b1e2ca636304a96 DIST pytest-5.1.3.tar.gz 967092 BLAKE2B ea667732d50bc86fcebf9b70cd9c7e821e3590c9956d67a77b3cb973ce7d061c6c08e6a9dee24f2f5c516483db47627ae66e608b65f9f56f9f6532f4f86ed003 SHA512 ee01fd9e0695d56523857e943dc73405b3d2a908f955494e1875a089dc1411c72589314c306fc3c34e0baaf55c94f3da4abb50c3d6810640a390c455c1462ba3 +DIST pytest-5.2.0.tar.gz 971463 BLAKE2B 6d1b483992ec7fff857b746cbd68ccccbc4b0ee9403a7402179121e02a6c01cd9dcea9a00fcaf16e353ef86d374ec64fe4a2f6bad8a2d61b3f1c9af03dd17ef6 SHA512 5c766c263cdafb5e1cdb65d883ac7f5b50da14356b074448f8458e78eda8916190142dbaf7006235c02647d600e40851848e5905df17f8dff0a9fb02a90bd78d EBUILD pytest-4.6.3.ebuild 2054 BLAKE2B 4421866033a8df11789934608511a116c06faa5aa1a2e50f450e4f13882657f65b5ad00ab4e3903da2bdbdc03a5852f668df16d68993aa85cbe68a83f3edfe97 SHA512 334e9e67905b4a5c934f4f43fd38b555547583a3321f95e51c4046e03f22b00052fa958d8e6360af437937ceccbd672fb7b8a337ed3bcfc4668065a2f132ff84 EBUILD pytest-5.0.0.ebuild 2054 BLAKE2B 4421866033a8df11789934608511a116c06faa5aa1a2e50f450e4f13882657f65b5ad00ab4e3903da2bdbdc03a5852f668df16d68993aa85cbe68a83f3edfe97 SHA512 334e9e67905b4a5c934f4f43fd38b555547583a3321f95e51c4046e03f22b00052fa958d8e6360af437937ceccbd672fb7b8a337ed3bcfc4668065a2f132ff84 EBUILD pytest-5.0.1.ebuild 2203 BLAKE2B 525897147d20731b1bce81035ee67594534f92079d42087929d71b2264c70e2490ef9dd515b8ea1926c7908488b3ca2488dcb3710f85182dc8968cf11c4e6e18 SHA512 48c7f09974cbb7dd1252f22bd865029a4bf2b70d4fb4965a7877a75954f701385046e4f2e566d63c636aa1329d10c47a6116297588a94d7c70f953b9316236db EBUILD pytest-5.1.1.ebuild 2203 BLAKE2B 525897147d20731b1bce81035ee67594534f92079d42087929d71b2264c70e2490ef9dd515b8ea1926c7908488b3ca2488dcb3710f85182dc8968cf11c4e6e18 SHA512 48c7f09974cbb7dd1252f22bd865029a4bf2b70d4fb4965a7877a75954f701385046e4f2e566d63c636aa1329d10c47a6116297588a94d7c70f953b9316236db EBUILD pytest-5.1.2.ebuild 2203 BLAKE2B 525897147d20731b1bce81035ee67594534f92079d42087929d71b2264c70e2490ef9dd515b8ea1926c7908488b3ca2488dcb3710f85182dc8968cf11c4e6e18 SHA512 48c7f09974cbb7dd1252f22bd865029a4bf2b70d4fb4965a7877a75954f701385046e4f2e566d63c636aa1329d10c47a6116297588a94d7c70f953b9316236db EBUILD pytest-5.1.3.ebuild 2203 BLAKE2B 525897147d20731b1bce81035ee67594534f92079d42087929d71b2264c70e2490ef9dd515b8ea1926c7908488b3ca2488dcb3710f85182dc8968cf11c4e6e18 SHA512 48c7f09974cbb7dd1252f22bd865029a4bf2b70d4fb4965a7877a75954f701385046e4f2e566d63c636aa1329d10c47a6116297588a94d7c70f953b9316236db +EBUILD pytest-5.2.0.ebuild 2203 BLAKE2B 525897147d20731b1bce81035ee67594534f92079d42087929d71b2264c70e2490ef9dd515b8ea1926c7908488b3ca2488dcb3710f85182dc8968cf11c4e6e18 SHA512 48c7f09974cbb7dd1252f22bd865029a4bf2b70d4fb4965a7877a75954f701385046e4f2e566d63c636aa1329d10c47a6116297588a94d7c70f953b9316236db MISC metadata.xml 309 BLAKE2B f29391c5f96f44f6329d3665346a5d46ecb4a86d103ae8008769af86126756e76bfa89cfe462e9c219e5f70b64013f662d020c7a2f6015d8cadd0eb25a7614eb SHA512 ba53c13ac716488e3e5dadf5dcfcb697dc9bb13f89e9d0fb98b9a5a6e36cafeeb64d1348008f42497117bf46fb6f3bc288c10a68c4d5ab53c9c02a3ae61b594f diff --git a/dev-python/pytest/pytest-5.2.0.ebuild b/dev-python/pytest/pytest-5.2.0.ebuild new file mode 100644 index 000000000..a878f8f0b --- /dev/null +++ b/dev-python/pytest/pytest-5.2.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="Simple powerful testing with Python" +HOMEPAGE="http://pytest.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +# When bumping, please check setup.py for the proper py version +PY_VER="1.5.0" + +# pathlib2 has been added to stdlib before py3.6, but pytest needs __fspath__ +# support, which only came in py3.6. +RDEPEND=" + >=dev-python/atomicwrites-1.0[${PYTHON_USEDEP}] + >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}] + >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/pathlib2-2.2.0[${PYTHON_USEDEP}]' python2_7 python3_5 ) + >=dev-python/pluggy-0.12[${PYTHON_USEDEP}] + =dev-python/importlib_metadata-0.12[${PYTHON_USEDEP}] + >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/wcwidth[${PYTHON_USEDEP}] + virtual/python-funcsigs[${PYTHON_USEDEP}]" + +# flake cause a number of tests to fail +DEPEND="${RDEPEND} + >=dev-python/setuptools-40[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) + dev-python/requests[${PYTHON_USEDEP}] + !!dev-python/flaky + )" + +PATCHES=( + "${FILESDIR}/${PN}-4.5.0-strip-setuptools_scm.patch" +) + +python_prepare_all() { + grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" + + # Something in the ebuild environment causes this to hang/error. + # https://bugs.gentoo.org/598442 + rm testing/test_pdb.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + # In v4.1.1, pytest started being picky about its own verbosity options. + # running pytest on itself with -vv made 3 tests fail. This is why we don't + # have it below. + "${EPYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \ + || die "tests failed with ${EPYTHON}" +}