summaryrefslogtreecommitdiff
path: root/dev-python/inline-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/inline-snapshot')
-rw-r--r--dev-python/inline-snapshot/Manifest2
-rw-r--r--dev-python/inline-snapshot/inline-snapshot-0.32.6.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-python/inline-snapshot/Manifest b/dev-python/inline-snapshot/Manifest
index 60a5781dabbe..62a6282ee5ab 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.32.5.tar.gz 2626796 BLAKE2B 3e811658e005b4c095564ba9d94b7290945d7f774b5cda1e2925dceca3ae75417634df90c5804b5322ef533299bc4abb195e210ee1ac4a4e070ad8a6e6d1485f SHA512 a5f4878a89a24ef8bd246ec652095363092f7127cc9135a63f6b2695be80593a67adb4b098a5f6f887fcbc566b48325bd4e3cf7be16aed13193ff7e0e6e31409
DIST inline_snapshot-0.32.5.tar.gz.provenance 9388 BLAKE2B af33c329be8e941a1a91f6f6d5967dbca4d9ad10d9e7c6d98298d5e3b590348b55b4024a01f45a2756c4ab03722e10c9b0008057eaead6b73aa2258013601702 SHA512 0018391d0373218743c438812af50d38e4ac1394ca5784e4380ca0642d789801b4c3f9d76f5880053e9a78094f99b60238b6d91a29ba111ec698b80f20147cf0
+DIST inline_snapshot-0.32.6.tar.gz 2627401 BLAKE2B bc5e6d2df47ee092fa26ed9f2206612dda294340e7df87dbf888583c5fd2965c52dd74d6039a3204f0a69a3679963b9137dd66c8c81e0c7d3b476d398ef7285c SHA512 853b0091e28244fd6d493a1a3d19ff947ce96b424f8e4700ec1f1e82c70fbda5113ee3b8b76f37efc74a80f14b999ff3f9c156936b3c626d67407216d00a8b3e
+DIST inline_snapshot-0.32.6.tar.gz.provenance 9438 BLAKE2B 8756279a2d22a5945eed8e973699399df90b12c021ecf501bc23c36cd3ac4deb0ddf0bc26e176fcefe4242381952ffa67a0348aa8b981bfbecd6d17b5009fd9f SHA512 0cafbbe3455c5e8c3938fa823c0acf0ab283d01e26ecacf9e4ab7a96dc5859f13d493c16246eac81b7770110ce7607500e27216dcf2247d29861b9631a9f5c49
diff --git a/dev-python/inline-snapshot/inline-snapshot-0.32.6.ebuild b/dev-python/inline-snapshot/inline-snapshot-0.32.6.ebuild
new file mode 100644
index 000000000000..0967f87cbd6d
--- /dev/null
+++ b/dev-python/inline-snapshot/inline-snapshot-0.32.6.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2024-2026 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=( python3_{10..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}]
+ dev-python/typing-extensions[${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
+ 'tests/test_docs.py::test_docs[categories.md]'
+ 'tests/test_docs.py::test_docs[code_generation.md]'
+ 'tests/test_docs.py::test_docs[testing.md]'
+ )
+
+ local -x PYTHONPATH=${S}/src
+ epytest
+}