Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/thriftpy2/
Date: Thu, 01 Jul 2021 18:42:10
Message-Id: 1625164922.763d651c2acd52b435de26941babb96776a362fe.chutzpah@gentoo
1 commit: 763d651c2acd52b435de26941babb96776a362fe
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Thu Jul 1 18:31:34 2021 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 1 18:42:02 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=763d651c
7
8 dev-python/thriftpy2: New package
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/thriftpy2/Manifest | 1 +
15 dev-python/thriftpy2/metadata.xml | 8 ++++++
16 dev-python/thriftpy2/thriftpy2-0.4.14.ebuild | 39 ++++++++++++++++++++++++++++
17 3 files changed, 48 insertions(+)
18
19 diff --git a/dev-python/thriftpy2/Manifest b/dev-python/thriftpy2/Manifest
20 new file mode 100644
21 index 00000000000..e844d932369
22 --- /dev/null
23 +++ b/dev-python/thriftpy2/Manifest
24 @@ -0,0 +1 @@
25 +DIST thriftpy2-0.4.14.tar.gz 127552 BLAKE2B 4061642fb14b60ba53e0c4e6342ead25f781ee923b718a6c557235fcbfe4219b4d8944894afe9783062e7950b689b909af6be5cefe3b634a476ec582adfefbed SHA512 0b248c4999b0a97287d8db3e5b79ac687bc7e25a5478ef125b479e0baf9be9d0aa5f9eaadf0612c228133295743ba913bfe69e7fe59a8d5f854a682da9d31c50
26
27 diff --git a/dev-python/thriftpy2/metadata.xml b/dev-python/thriftpy2/metadata.xml
28 new file mode 100644
29 index 00000000000..cee379b1540
30 --- /dev/null
31 +++ b/dev-python/thriftpy2/metadata.xml
32 @@ -0,0 +1,8 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="person">
37 + <email>chutzpah@g.o</email>
38 + <name>Patrick McLean</name>
39 + </maintainer>
40 +</pkgmetadata>
41
42 diff --git a/dev-python/thriftpy2/thriftpy2-0.4.14.ebuild b/dev-python/thriftpy2/thriftpy2-0.4.14.ebuild
43 new file mode 100644
44 index 00000000000..16727441076
45 --- /dev/null
46 +++ b/dev-python/thriftpy2/thriftpy2-0.4.14.ebuild
47 @@ -0,0 +1,39 @@
48 +# Copyright 2021 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=7
52 +
53 +PYTHON_COMPAT=( python3_{8..9} )
54 +inherit distutils-r1
55 +
56 +DESCRIPTION="Pure python approach of Apache Thrift"
57 +HOMEPAGE="https://github.com/Thriftpy/thriftpy2"
58 +SRC_URI="https://github.com/Thriftpy/thriftpy2/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
59 +
60 +LICENSE="MIT"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~x86"
63 +
64 +BDEPEND="
65 + dev-python/cython[${PYTHON_USEDEP}]
66 + dev-python/ply[${PYTHON_USEDEP}]
67 + dev-python/six[${PYTHON_USEDEP}]
68 + test? (
69 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
70 + www-servers/tornado[${PYTHON_USEDEP}]
71 + )
72 +"
73 +
74 +distutils_enable_tests --install pytest
75 +
76 +python_prepare_all() {
77 + rm tests/test_tornado.py || die
78 + distutils-r1_python_prepare_all
79 +}
80 +
81 +python_test() {
82 + distutils_install_for_testing --via-root
83 + pushd tests >/dev/null || die
84 + epytest
85 + popd >/dev/null || die
86 +}