dev-python/inline-snapshot: Bump to 0.31.1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-11-08 07:47:49 +01:00
parent e717a7110d
commit 32f917ee09
2 changed files with 64 additions and 0 deletions

View File

@@ -5,3 +5,5 @@ DIST inline_snapshot-0.30.1.tar.gz 2599126 BLAKE2B 34f1ed7e758b908eb91e2018ae3a6
DIST inline_snapshot-0.30.1.tar.gz.provenance 9201 BLAKE2B 79fb91a8ad198cb419fc813fecc9d333db6b14edffb7e95ab48c2c05da921f1dba11bb81e9c66bf33604c02fdd3501551a0c84ae8acd5fd071e75826253f9d07 SHA512 d29606090e061ad8eb5539b256c170bb85cb8e7bcd1786438b9db4f4f399a9f6c224791ced9c1cf4510426c7a393c29996f2892bbf7e5455faf90320eff381d0
DIST inline_snapshot-0.31.0.tar.gz 2600041 BLAKE2B 744da938790d64294eee36b40b28927fe28f7e7d361477969906790f4c87a7cac51322365be8f5493901cb38df91c7ffcc915cc3ff15b8f274e994247f54365b SHA512 5938c6ae0f30becd0b6ec02e85d1cdfefa51f791fe0f16018f6c278bd4535d7ba86719950d7df0378e3116492c3e24a1f1165940a75be0577e0a6c17f98fc76c
DIST inline_snapshot-0.31.0.tar.gz.provenance 9385 BLAKE2B 16272bcd07c9fdec405a8f604cdb9bdb01a9e459367d3f397a5e0e18979a4537846915421f52d0fcf169dcc421968eae3d5c07d5f63aa828d2f324b8c2a7c7d9 SHA512 743b3df6a03a070b336206589b8a6ae2b7ce2e481bf5c44d8f0318c6ec8468558f401ff1b21a63cf12dd56bb2865e7f1023b934f9883e3af8ce9089dfe9604f6
DIST inline_snapshot-0.31.1.tar.gz 2606338 BLAKE2B 96e90f9b3633d71a85b5ec14b23f425feb590e8f63a66b5838c48c91c28edeb282519a9705f45fd7af754d511ff2f128006f7e68cf68e718cdeb0196425cd5a8 SHA512 d1b33f9b10b02444e651e73461f25b98c5c70def13a19acf0a3e6c89ed4a47cb967ca1bb583d3aa63a26893478e3d4064f8d91ad63026c539dee66a42091efa2
DIST inline_snapshot-0.31.1.tar.gz.provenance 9119 BLAKE2B d316ce0e53e2af1a35c1d6c242fcab732c9edbeefdfe9829237c9d34e45e3aab058ce3283a52ce7d7505c65e0b2235d78d79c6996e938f06ef3d9f9b12cc788c SHA512 f5d92c2500d98ef6f0d60e510de4ee308722cbd6b55db3d457e30b671af26a67ef74c8029e4a328167ea8b79744bf531f15bf417fe5c88dee711c4822cc1f7a2

View File

@@ -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
}