diff options
| -rw-r--r-- | dev-python/inline-snapshot/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/inline-snapshot/inline-snapshot-0.30.1.ebuild | 62 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/inline-snapshot/Manifest b/dev-python/inline-snapshot/Manifest index 28f5898a4982..0bcb1f28ae2b 100644 --- a/dev-python/inline-snapshot/Manifest +++ b/dev-python/inline-snapshot/Manifest @@ -3,3 +3,5 @@ DIST inline_snapshot-0.29.4.tar.gz 2598478 BLAKE2B e9dea3721042b4cee764cc9ea7911 DIST inline_snapshot-0.29.4.tar.gz.provenance 9499 BLAKE2B b54184f05942c3b965fffd5cabbaa140b63e9478397bce6d4ba4e6875cb75d3349bc0743fbb05d70e13a6ab0cf85d1909b3169a5c9f4bb82b294fd9463a54d30 SHA512 d3512cb09708b241ab5a8e13f4561ac02ebd565f5c9cab858fd3ba39b805fc53e46f1758cf9a27806d2965bf0bb082f2a0151b7cd2e3d7dadd4d16d13e11accb DIST inline_snapshot-0.30.0.tar.gz 2598970 BLAKE2B 41d4fef8d3c27037d69b1ab1b411040af2d2a90755996488605323526614811ce5321db9231c9ff8095ab75ed778a71363b4f9a47c54b7479c5d0fe9a1ed4ce2 SHA512 2eb143bd2f1c73bf831a5ad3213958c0f98ea4603dd4315ed51233334923f27c106c8bf0f4c78ed0279c2cdd3dbae8326ccd05dd9ad991375a8f0e6497e9c941 DIST inline_snapshot-0.30.0.tar.gz.provenance 9291 BLAKE2B e5297037e80ec97cea84895d1aca6faa6398be2b5344dbc384f3846a1fd6545f3599a3c05d0eea0c15dc12d9e0d31fc7af0ebdf1720775a2ebcecd1af6b276a3 SHA512 de61f68d54ea64d7dfa491d04d835077ddf6f8f360124fd86f19f18fa00af5adf38d05e33adf1da58b78a2c72747dfda23ae1dbf03e16c6bad240c1e09a08039 +DIST inline_snapshot-0.30.1.tar.gz 2599126 BLAKE2B 34f1ed7e758b908eb91e2018ae3a626016fd3e4b0c2cfb0bbae2eec14b376c1aab36b67ecc1624e5dd48b5bb9f67762215b2420360e40c8b55c60b07c7c5a100 SHA512 44a490c0b544805927554cdfc2760e114fdd11214db3d0bab1652a2861504bd5a375126b08a598a1a6c1a5fb80cf87827f1b70877b72b2006bba0131c7a0ebdb +DIST inline_snapshot-0.30.1.tar.gz.provenance 9201 BLAKE2B 79fb91a8ad198cb419fc813fecc9d333db6b14edffb7e95ab48c2c05da921f1dba11bb81e9c66bf33604c02fdd3501551a0c84ae8acd5fd071e75826253f9d07 SHA512 d29606090e061ad8eb5539b256c170bb85cb8e7bcd1786438b9db4f4f399a9f6c224791ced9c1cf4510426c7a393c29996f2892bbf7e5455faf90320eff381d0 diff --git a/dev-python/inline-snapshot/inline-snapshot-0.30.1.ebuild b/dev-python/inline-snapshot/inline-snapshot-0.30.1.ebuild new file mode 100644 index 000000000000..0a86567b4221 --- /dev/null +++ b/dev-python/inline-snapshot/inline-snapshot-0.30.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYPI_VERIFY_REPO=https://github.com/15r10nk/inline-snapshot +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Create and update inline snapshots in your Python tests" +HOMEPAGE=" + https://15r10nk.github.io/inline-snapshot/ + https://github.com/15r10nk/inline-snapshot/ + https://pypi.org/project/inline-snapshot/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/asttokens-2.0.5[${PYTHON_USEDEP}] + >=dev-python/executing-2.2.0[${PYTHON_USEDEP}] + >=dev-python/pytest-8.3.4[${PYTHON_USEDEP}] + >=dev-python/rich-13.7.1[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/attrs[${PYTHON_USEDEP}] + >=dev-python/black-23.3.0[${PYTHON_USEDEP}] + >=dev-python/dirty-equals-0.7.0[${PYTHON_USEDEP}] + >=dev-python/hypothesis-6.75.5[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/mypy[${PYTHON_USEDEP}] + ' 'python*') + >=dev-python/pydantic-2[${PYTHON_USEDEP}] + >=dev-python/pytest-freezer-0.4.8[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-3.14.0[${PYTHON_USEDEP}] + >=dev-python/pytest-subtests-0.11.0[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGIN_LOAD_VIA_ENV=1 +EPYTEST_PLUGINS=( "${PN}" pytest-{freezer,mock,subtests,xdist} ) +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # requires pyright + 'tests/test_typing.py::test_typing_args[pyright]' + 'tests/test_typing.py::test_typing_call[pyright]' + # TODO + tests/test_formating.py::test_format_command_fail + ) + + local -x COLUMNS=80 + local -x PYTHONPATH=${S}/src + epytest +} |
