diff options
| author | Michał Górny <mgorny@gentoo.org> | 2021-11-14 09:38:28 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2021-11-14 09:46:35 +0100 |
| commit | 48d40a1397fa6f541331d5c84db8298635df6a95 (patch) | |
| tree | 95e3cca75f84c9238bede574e59ee248b6e45398 /dev-python/django-cacheops/django-cacheops-5.1.ebuild | |
| parent | f350d9ec24ac1ec796ffa6a1142a063650d8b7f1 (diff) | |
| download | gentoo-48d40a1397fa6f541331d5c84db8298635df6a95.tar.gz gentoo-48d40a1397fa6f541331d5c84db8298635df6a95.tar.bz2 gentoo-48d40a1397fa6f541331d5c84db8298635df6a95.zip | |
dev-python/django-cacheops: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/django-cacheops/django-cacheops-5.1.ebuild')
| -rw-r--r-- | dev-python/django-cacheops/django-cacheops-5.1.ebuild | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/dev-python/django-cacheops/django-cacheops-5.1.ebuild b/dev-python/django-cacheops/django-cacheops-5.1.ebuild deleted file mode 100644 index 35821ca12dd2..000000000000 --- a/dev-python/django-cacheops/django-cacheops-5.1.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} ) -inherit distutils-r1 - -DESCRIPTION="ORM cache with automatic granular event-driven invalidation for Django" -HOMEPAGE="https://github.com/Suor/django-cacheops" -SRC_URI="mirror://pypi/${PN:0:1}"/${PN}/${P}.tar.gz - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-python/django-1.8[${PYTHON_USEDEP}] - >=dev-python/redis-py-2.9.1[${PYTHON_USEDEP}] - >=dev-python/funcy-1.8[${PYTHON_USEDEP}] - >=dev-python/six-1.4.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - ${RDEPEND} - dev-db/redis - ) -" - -src_prepare() { - # Remove test dependent on unpackaged before_after - sed -e 's/test_lock/_&/' -i tests/test_extras.py || die - distutils-r1_src_prepare -} - -python_test() { - local -x DJANGO_SETTINGS_MODULE=tests.settings - django-admin test -v 2 || die -} - -src_test() { - local redis_pid="${T}"/redis.pid - local redis_port=6379 - - einfo "Spawning Redis" - einfo "NOTE: Port ${redis_port} must be free" - "${EPREFIX}"/usr/sbin/redis-server - <<-EOF || die - daemonize yes - pidfile ${redis_pid} - port ${redis_port} - bind 127.0.0.1 - EOF - - # Run the tests - distutils-r1_src_test - - # Clean up afterwards - kill "$(<"${redis_pid}")" || die -} |
