diff options
Diffstat (limited to 'dev-python/pytest-django')
-rw-r--r-- | dev-python/pytest-django/Manifest | 3 | ||||
-rw-r--r-- | dev-python/pytest-django/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pytest-django/pytest-django-2.9.1.ebuild | 37 |
3 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pytest-django/Manifest b/dev-python/pytest-django/Manifest new file mode 100644 index 000000000000..f45d124c9254 --- /dev/null +++ b/dev-python/pytest-django/Manifest @@ -0,0 +1,3 @@ +DIST pytest-django-2.9.1.tar.gz 50570 BLAKE2B f709ba00e16686cc2c7b3db168e775e8fcbebdb8ed732882d53c6c377d957af220b63dbe48120850de0773021f448270d855635336d08b6914edaa8c877c18bd SHA512 0e50f45a0cfefb6fa74f7d60d5173e3e8dac49ac669c9c88e46d27a01cff5c4a255d6f707863406b6f8707e25e9bea3408cbffbb75a2680fee365b9c9167d468 +EBUILD pytest-django-2.9.1.ebuild 927 BLAKE2B e40b384be5874629749c476e1a893266796b4d030dc1369416db92755a33867b113ae53db6b7490c4faa9c6e4f698f38e783cc4ff47ce746ceae9df8e6e2f9b3 SHA512 f2eaed773ecc4a287dea27ab6220f266d6b4c9d61e68c0886049027f0a93fa6cccc05bc19089a2c5413f95f77be2a089add9935cb2fbc670932aa17818d6391d +MISC metadata.xml 380 BLAKE2B 6d349594a1198f6cbf2c6e0e80276f3d27454346cdbd24654506221647304fc3d3a0c9b8deadb920c4881b62c779951df2cda6a773f4f251c7c31d166fdf7b2c SHA512 65163d6f99c4d2be86bbedad07b756eda2aa639cd612e0ffaf95dc0707e72de8b406ad51d2a482925790c837bc7c3d4ccd5dc3fd070da6599e13278db03ab006 diff --git a/dev-python/pytest-django/metadata.xml b/dev-python/pytest-django/metadata.xml new file mode 100644 index 000000000000..6cc31041286c --- /dev/null +++ b/dev-python/pytest-django/metadata.xml @@ -0,0 +1,12 @@ +<?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> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">pytest-django</remote-id> + <remote-id type="github">pytest-dev/pytest-django</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pytest-django/pytest-django-2.9.1.ebuild b/dev-python/pytest-django/pytest-django-2.9.1.ebuild new file mode 100644 index 000000000000..ecfe25826b50 --- /dev/null +++ b/dev-python/pytest-django/pytest-django-2.9.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A Django plugin for py.test" +HOMEPAGE="https://pypi.org/project/pytest-django/ https://pytest-django.readthedocs.org https://github.com/pytest-dev/pytest-django" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +SLOT="0" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm-1.8.0[${PYTHON_USEDEP}] +" + +# https://github.com/pytest-dev/pytest-django/issues/290 +RESTRICT=test + +src_prepare() { + sed \ + -e '/setuptools_scm/s:==1.8.0::g' \ + -i setup.py || die + distutils-r1_src_prepare +} + +python_test() { + PYTEST_PLUGINS=${PN/-/_} \ + py.test --ds=pytest_django_test.settings_sqlite_file --strict -r fEsxXw || die +} |