diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-16 09:32:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-16 09:32:48 +0100 |
commit | 9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch) | |
tree | b690ddc0ca30f1472887edbb0b8313629bfcbbb2 /dev-python/fakeredis | |
parent | b17a3ef12038de50228bade1f05502c74e135321 (diff) |
gentoo resync : 16.09.2020
Diffstat (limited to 'dev-python/fakeredis')
-rw-r--r-- | dev-python/fakeredis/Manifest | 3 | ||||
-rw-r--r-- | dev-python/fakeredis/fakeredis-1.4.3.ebuild | 44 | ||||
-rw-r--r-- | dev-python/fakeredis/metadata.xml | 7 |
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest new file mode 100644 index 000000000000..66faea401c82 --- /dev/null +++ b/dev-python/fakeredis/Manifest @@ -0,0 +1,3 @@ +DIST fakeredis-1.4.3.gh.tar.gz 64936 BLAKE2B 61f85ec5c5b05b45f421a422f0cab072c24864a970097d2e15340ba7655ba9182c312091b9b6570aaf366fc241bb430fa528068db2728d42b615aecbec635d1a SHA512 56a0cc6d51025ceb24bb46dcdb2a8f638699f9928552d9b0f1592ff93903397304a9166e167de4d7c1d9f718a486f71e249c36e7c0667bde59f46710896da987 +EBUILD fakeredis-1.4.3.ebuild 1043 BLAKE2B 6e5491338a915e041f159855b025ed2e973711638118fb38b6894959a76336d4619b01ffa21a87fa3745fb9626ddd099dbbf00c6cb957f1d409dca0bfb71d68e SHA512 be939a2bc6ba8317fae6f13eefea8e69523507b593d4d5c2c42457847d7e4e8f3eba6db91e30bdce3a4c2d7ac3870a421dfd39f88c5f80fd6ea54cb55d8acbb4 +MISC metadata.xml 218 BLAKE2B 086fdcf7b63ca7bd6c58e861d717bb375e1cd372eff26d5d2eeeb176d8c5e6f10e653562abafb50eae7d7508f8e3d421b87e6a749acd0490308672828d0da697 SHA512 4558fee4c51117e21b1f42ca3edbdf1195ed297db798d6bfa0e5fbb7019654a187422b0abde7af5d800caffed66d1e55e4280e8be602bad591424d9776c46781 diff --git a/dev-python/fakeredis/fakeredis-1.4.3.ebuild b/dev-python/fakeredis/fakeredis-1.4.3.ebuild new file mode 100644 index 000000000000..436bde5d7ac1 --- /dev/null +++ b/dev-python/fakeredis/fakeredis-1.4.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6..9} ) +inherit distutils-r1 + +DESCRIPTION="Fake implementation of redis API for testing purposes" +HOMEPAGE=" + https://github.com/jamesls/fakeredis/ + https://pypi.org/project/fakeredis/" +SRC_URI=" + https://github.com/jamesls/fakeredis/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +RDEPEND=" + dev-python/redis-py[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/sortedcontainers[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local excludes=( + # tests for use with aioredis, not packaged in ::gentoo + --ignore test/test_aioredis.py + # tests requiring lupa (lua support) + -k 'not test_eval and not test_lua and not test_script' + ) + + pytest -vv "${excludes[@]}" || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/fakeredis/metadata.xml b/dev-python/fakeredis/metadata.xml new file mode 100644 index 000000000000..266e3f19ca59 --- /dev/null +++ b/dev-python/fakeredis/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> +</pkgmetadata> |