diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-03-18 22:02:20 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-03-18 23:28:13 +0100 |
commit | ca8f4af6a87b41cab6851b9dc4249e354c62e914 (patch) | |
tree | 229eb6a3913765e98c9ea9769af1d97485da59cc /dev-python/pytest-console-scripts | |
parent | dev-python/moto: Bump to 3.1.1 (diff) | |
download | gentoo-ca8f4af6a87b41cab6851b9dc4249e354c62e914.tar.gz gentoo-ca8f4af6a87b41cab6851b9dc4249e354c62e914.tar.bz2 gentoo-ca8f4af6a87b41cab6851b9dc4249e354c62e914.zip |
dev-python/pytest-console-scripts: Bump to 1.3.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pytest-console-scripts')
-rw-r--r-- | dev-python/pytest-console-scripts/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pytest-console-scripts/pytest-console-scripts-1.3.1.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/pytest-console-scripts/Manifest b/dev-python/pytest-console-scripts/Manifest index c543d4a26034..68b1f69471ac 100644 --- a/dev-python/pytest-console-scripts/Manifest +++ b/dev-python/pytest-console-scripts/Manifest @@ -1,2 +1,3 @@ DIST pytest-console-scripts-1.2.2.tar.gz 14314 BLAKE2B 1e4c210fe9fa6a4e9dbe308cf3d6c1a1829f2155185fe3911ee0a299c0292db6bceeeeb7efd5ace9a166c90ae8376d3cdfec8b0c0b585467f157e175709afe6d SHA512 c749b76c8370734f9ab7fe93284f9ac25a38e4bef61181a3b61b3b0d229532f1876e668e5a6e1449dcb939d9cb53527e021f79fd9132f3a28bdf45d95bdcb40e +DIST pytest-console-scripts-1.3.1.tar.gz 14238 BLAKE2B 2c00af468d19500078f48ca38d20430ed426e66b2277b7ad233356969d2a72d51cf60e90a46ae7808e6d33172fa053cc34d45b1f618d866dd14e917e6b225935 SHA512 344e9379976d9a7541f9683f7646b47f7fc25d2ab8d941351811ada7fddd77497cc24f4bc6a6d5ab9388dd5b289ed125bcbfad869009fb3b80aaaa1b951d656d DIST pytest-console-scripts-1.3.tar.gz 14365 BLAKE2B 7a9b83f53ef9911e5f336375389e6c6311e64e7b4880ea2cb1f996221d4dbf119bf6fc487f7bb7bfda4355df8f797981e99ac9db2fff3e4871173a878a4fbd64 SHA512 8b66df3a8ff700817f8ec34aa95385ff82c4df47fd67974e91cf4d2fdae578d4683032b0a8162723adfcd461e5da7f1c5bb99339d62ed9cbdca4fd1be001b0f6 diff --git a/dev-python/pytest-console-scripts/pytest-console-scripts-1.3.1.ebuild b/dev-python/pytest-console-scripts/pytest-console-scripts-1.3.1.ebuild new file mode 100644 index 000000000000..7c7afb1e0666 --- /dev/null +++ b/dev-python/pytest-console-scripts/pytest-console-scripts-1.3.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Pytest plugin for testing console scripts" +HOMEPAGE="https://github.com/kvas-it/pytest-console-scripts" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_test() { + local script="${BUILD_DIR}/install${EPREFIX}/usr/bin/pytest" + cat > "${script}" <<-EOF + #!/usr/bin/env python + import pytest + import sys + sys.exit(pytest.console_main()) + EOF + chmod +x "${script}" || die + epytest -x + rm "${script}" || die +} |