Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-tornasync/
Date: Thu, 09 Sep 2021 13:39:22
Message-Id: 1631194749.f0c784a9e10dc0daf0036e3adaab760947c55eaf.andrewammerlaan@gentoo
1 commit: f0c784a9e10dc0daf0036e3adaab760947c55eaf
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 9 12:39:36 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 9 13:39:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0c784a9
7
8 dev-python/pytest-tornasync: import from ::sci
9
10 Package-Manager: Portage-3.0.22, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 dev-python/pytest-tornasync/Manifest | 1 +
14 dev-python/pytest-tornasync/metadata.xml | 13 ++++++++
15 .../pytest-tornasync-0.6.0_p2.ebuild | 35 ++++++++++++++++++++++
16 3 files changed, 49 insertions(+)
17
18 diff --git a/dev-python/pytest-tornasync/Manifest b/dev-python/pytest-tornasync/Manifest
19 new file mode 100644
20 index 00000000000..591d86f01ac
21 --- /dev/null
22 +++ b/dev-python/pytest-tornasync/Manifest
23 @@ -0,0 +1 @@
24 +DIST pytest-tornasync-0.6.0.post2.tar.gz 6201 BLAKE2B 6b6a2f941e649fb33373ef39b9d848d68a8af0f5e0d1a5e4496a9160e8e63ea108832437e87382c8203bb2c75673fad37b4ebd76157913199eb1661cd0216591 SHA512 2e258913b17a5442d18928833ee7e9771b6dbd148dbf251a7661432a54d4b9f9f3a7c396134eb544c0e3ce0af48c99d2d632399ac6ebdcf148187a7a523f4974
25
26 diff --git a/dev-python/pytest-tornasync/metadata.xml b/dev-python/pytest-tornasync/metadata.xml
27 new file mode 100644
28 index 00000000000..2b85afa5932
29 --- /dev/null
30 +++ b/dev-python/pytest-tornasync/metadata.xml
31 @@ -0,0 +1,13 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="project">
36 + <email>sci@g.o</email>
37 + <name>Gentoo Science Project</name>
38 + </maintainer>
39 + <stabilize-allarches/>
40 + <upstream>
41 + <remote-id type="pypi">pytest-tornasync</remote-id>
42 + <remote-id type="github">eukaryote/pytest-tornasync</remote-id>
43 + </upstream>
44 +</pkgmetadata>
45
46 diff --git a/dev-python/pytest-tornasync/pytest-tornasync-0.6.0_p2.ebuild b/dev-python/pytest-tornasync/pytest-tornasync-0.6.0_p2.ebuild
47 new file mode 100644
48 index 00000000000..7beeaea50eb
49 --- /dev/null
50 +++ b/dev-python/pytest-tornasync/pytest-tornasync-0.6.0_p2.ebuild
51 @@ -0,0 +1,35 @@
52 +# Copyright 1999-2021 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=8
56 +
57 +PYTHON_COMPAT=( python3_{8..10} )
58 +
59 +inherit distutils-r1
60 +
61 +DESCRIPTION="Pytest plugin for testing Python 3.5+ Tornado code"
62 +HOMEPAGE="https://github.com/eukaryote/pytest-tornasync"
63 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P//_p/.post}.tar.gz"
64 +S="${WORKDIR}/${P//_p/.post}"
65 +
66 +LICENSE="MIT"
67 +SLOT="0"
68 +KEYWORDS="~amd64"
69 +
70 +# TODO: fix this
71 +# E ImportError: cannot import name 'MESSAGE' from 'test'
72 +RESTRICT="test"
73 +
74 +RDEPEND="
75 + >=dev-python/pytest-3.0[${PYTHON_USEDEP}]
76 + >=www-servers/tornado-5.0[${PYTHON_USEDEP}]
77 +"
78 +
79 +distutils_enable_tests pytest
80 +
81 +python_prepare_all() {
82 + # Do not install the license file
83 + sed -i -e '/LICENSE/d' setup.py || die
84 +
85 + distutils-r1_python_prepare_all
86 +}