summaryrefslogtreecommitdiff
path: root/dev-python/snapshottest
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-python/snapshottest
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-python/snapshottest')
-rw-r--r--dev-python/snapshottest/Manifest6
-rw-r--r--dev-python/snapshottest/files/snapshottest-0.6.0-remove-fastdiff.patch (renamed from dev-python/snapshottest/files/snapshottest-0.5.1-remove-fastdiff.patch)2
-rw-r--r--dev-python/snapshottest/snapshottest-0.5.1.ebuild45
-rw-r--r--dev-python/snapshottest/snapshottest-0.6.0.ebuild44
4 files changed, 48 insertions, 49 deletions
diff --git a/dev-python/snapshottest/Manifest b/dev-python/snapshottest/Manifest
index c8830a316184..6bdf02e2e2f7 100644
--- a/dev-python/snapshottest/Manifest
+++ b/dev-python/snapshottest/Manifest
@@ -1,4 +1,4 @@
-AUX snapshottest-0.5.1-remove-fastdiff.patch 1978 BLAKE2B 49bbd2118bd8defc3134b1863614a6da7f45f8702c9b65db35329a74b270a511ef6c87952eafefa5e64080c136e21fe7abbfb1e304ff1744983bfa6fcbcc27ee SHA512 804223af644f67a7ad22996572bdb35c88d3c87bfd67ef821b4ebcfb581281f305f9d96edfda9d8a20d5cd1d07397899dc10b629f7d02b91c2b8804e02fd1ac0
-DIST snapshottest-0.5.1.tar.gz 19312 BLAKE2B a8acfb09de9e58c7a929f71d10f3cc68d7eec31a9fa1ea0fe74ae8a574ceec315f7eab2f9e7cd326c34d981b5ede4c398b5f1352bd59c23be219eeb9a2c0e861 SHA512 1541c327c4238c816b55cf797f6104ad54ff62a2332517b3bf9a455bbee0abd49f6983a54dc7510d1e1c659d88e5f7d6c6aa396c0ece19e19957ea8cff42c673
-EBUILD snapshottest-0.5.1.ebuild 1116 BLAKE2B 4105aa10a0b6fe8229eefed46bd4ac456041a53064552c442ed7618833aa0cda7808edef055bd868c33ba9a801710e65df8ccf1d292d7a082f768a56f216d476 SHA512 da6567fae19195269dc8b78cdda647cffbe1266a24e1f9eec3d900d08902f882aa272c71d2e600ffb38f7b48d605f0a1c6d111c5fdd539519e368d89af052fc0
+AUX snapshottest-0.6.0-remove-fastdiff.patch 1979 BLAKE2B 1645f9fe0d7a5ba9523f81c50f31c54d854d56d3137a8b6611594bb825ccc0c183c763dbf641b1517e45b4ae39979efc86d5fffaa6adc111ee937a8c2f4143b5 SHA512 da43e9d1eb27f66512e5c3f02a0693756ea1e6889c6a9c3871c2f53a80a6ab4cdd7a705cfbe523231b8496a5eca3587c71e57babeec89c653307923c045413df
+DIST snapshottest-0.6.0.gh.tar.gz 19887 BLAKE2B d85b3025731dbe80c04388f8adf755f48f428df5f15496ad7e47d436ccfba0f8955833f576b12a38a3565a56deb49a425b67f9040bce69a7711be05558f0ef4e SHA512 7477668c0a61b4c282deb3eb9105cf06e8f644c931e2860a9a60dc2f8ed6de1eaf1ab100a816de200a39db8b488bda6ad33472265eecca707360dcbc9d8fafee
+EBUILD snapshottest-0.6.0.ebuild 919 BLAKE2B 3bfc9b3e7e856099e7c7cd69e0851233138c90223bc3746dd12d8389f9bcad75b3ea361ef08eabd84fb498de8fa0c3b5245fe90f878db76b263c421504e64b28 SHA512 e4665614b1e5bba39429e3f147a89d1247622ffc9125b97ca994167085c921ffadc66c55bbb39c8243144d3e7f4e6c26dc637cc15a0620c854c90786f3096bb2
MISC metadata.xml 380 BLAKE2B af864f451c424be42fda967811c0754d246ff7399a14d7344c967e695dd33ed060f9db19823f7f7c3a78f90f45b2817b843dff1832cae24a5c6c3bb6b183c63e SHA512 a755150b8fd1cfae3e016e97cceb9d9e32e58750a7fd01665087fa82ebba1124b38566bf6869898338319532956869a472c50dce9f4ad53f6329e4691197d7b5
diff --git a/dev-python/snapshottest/files/snapshottest-0.5.1-remove-fastdiff.patch b/dev-python/snapshottest/files/snapshottest-0.6.0-remove-fastdiff.patch
index ec12f15fe7a6..948f961aae0b 100644
--- a/dev-python/snapshottest/files/snapshottest-0.5.1-remove-fastdiff.patch
+++ b/dev-python/snapshottest/files/snapshottest-0.6.0-remove-fastdiff.patch
@@ -17,7 +17,7 @@ index 1baefd8..690713e 100644
'nose.plugins.0.10':
['snapshottest = snapshottest.nose:SnapshotTestPlugin']
},
-- install_requires=['six>=1.10.0', 'termcolor', 'fastdiff>=0.1.4<1'],
+- install_requires=['six>=1.10.0', 'termcolor', 'fastdiff>=0.1.4,<1'],
+ install_requires=['six>=1.10.0', 'termcolor'],
tests_require=tests_require,
extras_require={
diff --git a/dev-python/snapshottest/snapshottest-0.5.1.ebuild b/dev-python/snapshottest/snapshottest-0.5.1.ebuild
deleted file mode 100644
index c49cc1e8330a..000000000000
--- a/dev-python/snapshottest/snapshottest-0.5.1.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 2020-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..10} )
-inherit distutils-r1
-
-# no tests on pypi, no tags on github
-COMMIT_HASH="4ac2b4fb09e9e7728bebb11967c164a914775d1d"
-
-DESCRIPTION="Snapshot Testing utils for Python"
-HOMEPAGE="https://pypi.org/project/snapshottest/
- https://github.com/syrusakbary/snapshottest"
-SRC_URI="
- https://github.com/syrusakbary/${PN}/archive/${COMMIT_HASH}.tar.gz
- -> ${P}.tar.gz"
-S="${WORKDIR}/${PN}-${COMMIT_HASH}"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
- dev-python/six[${PYTHON_USEDEP}]
- dev-python/termcolor[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
- "${FILESDIR}/snapshottest-0.5.1-remove-fastdiff.patch"
-)
-
-python_prepare_all() {
- sed -e "s:'pytest-runner'(,|)::" -i setup.py || die
- sed -r -e 's:--cov[[:space:]]*[[:graph:]]+::g' -i setup.cfg || die
- distutils-r1_python_prepare_all
-}
-
-python_test() {
- distutils_install_for_testing
- epytest tests examples/pytest
- "${EPYTHON}" examples/unittest/test_demo.py || die "Tests failed with ${EPYTHON}"
-}
diff --git a/dev-python/snapshottest/snapshottest-0.6.0.ebuild b/dev-python/snapshottest/snapshottest-0.6.0.ebuild
new file mode 100644
index 000000000000..390ad2eb66f6
--- /dev/null
+++ b/dev-python/snapshottest/snapshottest-0.6.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Snapshot Testing utils for Python"
+HOMEPAGE="
+ https://github.com/syrusakbary/snapshottest/
+ https://pypi.org/project/snapshottest/
+"
+SRC_URI="
+ https://github.com/syrusakbary/${PN}/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/termcolor[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+ "${FILESDIR}/snapshottest-0.6.0-remove-fastdiff.patch"
+)
+
+python_prepare_all() {
+ sed -i -e 's:--cov snapshottest::' setup.cfg || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ epytest tests examples/pytest
+ "${EPYTHON}" examples/unittest/test_demo.py || die "Tests failed with ${EPYTHON}"
+}