diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/fixtures | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/fixtures')
| -rw-r--r-- | dev-python/fixtures/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/fixtures/fixtures-3.0.0.ebuild | 39 | ||||
| -rw-r--r-- | dev-python/fixtures/metadata.xml | 25 |
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/fixtures/Manifest b/dev-python/fixtures/Manifest new file mode 100644 index 000000000000..c7aded1d7fb5 --- /dev/null +++ b/dev-python/fixtures/Manifest @@ -0,0 +1 @@ +DIST fixtures-3.0.0.tar.gz 56629 BLAKE2B 949c67c428f5e5ca0afc2f875dd4e2a212922415762a2528c185794e4ae2b74d32873aaf7132d97dec95a681bb4d87d85b11a39c43c64cd531dd4bf2fce75f87 SHA512 e52ba864c42d15a8baa60583761006b2dd78e3cd5f3f043f5702346aef428b933d62e8fa5889b7cb4196e4072acc5df3b7ffa39702a1b782887bdc109299b695 diff --git a/dev-python/fixtures/fixtures-3.0.0.ebuild b/dev-python/fixtures/fixtures-3.0.0.ebuild new file mode 100644 index 000000000000..0f6eb5d60dcc --- /dev/null +++ b/dev-python/fixtures/fixtures-3.0.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Fixtures, reusable state for writing clean tests and more" +HOMEPAGE="https://launchpad.net/python-fixtures https://pypi.org/project/fixtures/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="|| ( Apache-2.0 BSD )" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +# nose not listed but provides coverage output of tests +# run of test files by python lacks any output except on fail +RDEPEND=" + >=dev-python/pbr-0.11[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.22[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +src_prepare() { + # broken on py3.9 + # https://github.com/testing-cabal/fixtures/issues/44 + sed -i -e 's:test_patch_classmethod_with:_&:' \ + fixtures/tests/_fixtures/test_monkeypatch.py || die + distutils-r1_src_prepare +} + +python_test() { + emake check +} diff --git a/dev-python/fixtures/metadata.xml b/dev-python/fixtures/metadata.xml new file mode 100644 index 000000000000..d6699d88a340 --- /dev/null +++ b/dev-python/fixtures/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + Fixtures defines a Python contract for reusable state / support logic, + primarily for unit testing. Helper and adaption logic is included to make + it easy to write your own fixtures using the fixtures contract. Glue code + is provided that makes using fixtures that meet the Fixtures contract in + unittest compatible test cases easy and straight forward. + </longdescription> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">fixtures</remote-id> + <remote-id type="launchpad">python-fixtures</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
