diff options
Diffstat (limited to 'dev-python/doublex')
-rw-r--r-- | dev-python/doublex/Manifest | 2 | ||||
-rw-r--r-- | dev-python/doublex/doublex-1.9.2.ebuild | 50 | ||||
-rw-r--r-- | dev-python/doublex/doublex-1.9.6.1.ebuild | 42 | ||||
-rw-r--r-- | dev-python/doublex/metadata.xml | 10 |
4 files changed, 50 insertions, 54 deletions
diff --git a/dev-python/doublex/Manifest b/dev-python/doublex/Manifest index 808466437d18..bd0b79d028c3 100644 --- a/dev-python/doublex/Manifest +++ b/dev-python/doublex/Manifest @@ -1 +1 @@ -DIST doublex-1.9.2.tar.gz 80246 BLAKE2B 7fc1c4e6d117bee13e7125b634293aa7c9d1016c9cd5201f047143bcb1fae1e9607bf0a030cbaa2d6eb930474babe29aaf244433aba57ae4325a3a43af2fdf56 SHA512 0278f756930b0d5c3da676e3908ccc17b919c14f740aace3002f5117fa341ac52fe16fdaa2c3b36029757dd1dc2f36d8d35cdc8664fcfdbcafd4809d2fc969b0 +DIST python-doublex-1.9.6.1.gh.tar.gz 81848 BLAKE2B 34aa108ba12f34f18f7a7b3d12fd2a539736d95097fd3ecf5344fdac551b16717d5348da1c6e2e10e19878b82de7e9195b9bd17d526156bc13e0ad2fd789b23e SHA512 c9779c5fcde43af653c2131894da44a878acf2cc81d53f6ab89a6fde071827a22aa97ec5a51561ad8861a98623d38c75f184be6234a6a5323c52e8e538c66710 diff --git a/dev-python/doublex/doublex-1.9.2.ebuild b/dev-python/doublex/doublex-1.9.2.ebuild deleted file mode 100644 index 14d428d7b42f..000000000000 --- a/dev-python/doublex/doublex-1.9.2.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9} ) - -inherit distutils-r1 vcs-snapshot - -DESCRIPTION="Python test doubles" -HOMEPAGE="https://bitbucket.org/DavidVilla/python-doublex" -SRC_URI="https://bitbucket.org/DavidVilla/python-${PN}/get/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="amd64 arm64" -IUSE="doc test" -RESTRICT="!test? ( test )" - -CDEPEND="dev-python/pyhamcrest[${PYTHON_USEDEP}]" -DEPEND=" - ${CDEPEND} - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( dev-python/nose[${PYTHON_USEDEP}] ) -" -RDEPEND="${CDEPEND}" - -distutils_enable_tests setup.py - -python_prepare_all() { - # Disable broken tests - # https://bitbucket.org/DavidVilla/python-doublex/issues/5/support-for-python-36-37-38-tests-failing - sed -i "s/test_*hamcrest_/_&/" doublex/test/report_tests.py || die - # https://bitbucket.org/DavidVilla/python-doublex/issues/6/more-failing-tests-with-python-39 - sed -i -r "s/test_(proxyspy_get_stubbed_property|stub_property|custom_equality_comparable_objects)/_&/" \ - doublex/test/unit_tests.py || die - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs -} - -python_install_all() { - use doc && local HTML_DOCS=( docs/_build/html/. ) - - distutils-r1_python_install_all - - rm "${ED}"/usr/README.rst || die "Couldn't remove spurious README.rst" -} diff --git a/dev-python/doublex/doublex-1.9.6.1.ebuild b/dev-python/doublex/doublex-1.9.6.1.ebuild new file mode 100644 index 000000000000..2da925094b2c --- /dev/null +++ b/dev-python/doublex/doublex-1.9.6.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +MY_P=python-doublex-${PV} +DESCRIPTION="Python test doubles" +HOMEPAGE=" + https://github.com/davidvilla/python-doublex/ + https://pypi.org/project/doublex/ +" +SRC_URI=" + https://github.com/davidvilla/python-doublex/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 arm64" + +RDEPEND=" + dev-python/pyhamcrest[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" + +distutils_enable_sphinx docs --no-autodoc +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/data_files/d' setup.py || die + distutils-r1_src_prepare +} + +python_test() { + epytest -o 'python_files=*_tests.py' +} diff --git a/dev-python/doublex/metadata.xml b/dev-python/doublex/metadata.xml index 20551dd2425c..fb140d4056b7 100644 --- a/dev-python/doublex/metadata.xml +++ b/dev-python/doublex/metadata.xml @@ -1,9 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!--maintainer-needed--> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches/> <upstream> + <remote-id type="github">davidvilla/python-doublex</remote-id> <remote-id type="pypi">doublex</remote-id> - <remote-id type="bitbucket">DavidVilla/python-doublex</remote-id> </upstream> </pkgmetadata> |