Gentoo Archives: gentoo-commits

From: Tony Vroon <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-utils/, dev-python/python-utils/files/
Date: Fri, 01 Feb 2019 15:52:49
Message-Id: 1549036334.0f72930fbb456d917ed20d50545befed7cc21fcc.chainsaw@gentoo
1 commit: 0f72930fbb456d917ed20d50545befed7cc21fcc
2 Author: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 1 15:28:07 2019 +0000
4 Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 1 15:52:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f72930f
7
8 dev-python/python-utils: Initial commit.
9
10 Dependency of net-misc/irrtree.
11
12 Signed-Off-By: Tony Vroon <chainsaw <AT> gentoo.org>
13 Package-Manager: Portage-2.3.51, Repoman-2.3.11
14
15 dev-python/python-utils/Manifest | 1 +
16 .../files/python-utils-2.3.0-pytest-runner.patch | 11 ++++++++
17 dev-python/python-utils/metadata.xml | 12 +++++++++
18 dev-python/python-utils/python-utils-2.3.0.ebuild | 31 ++++++++++++++++++++++
19 4 files changed, 55 insertions(+)
20
21 diff --git a/dev-python/python-utils/Manifest b/dev-python/python-utils/Manifest
22 new file mode 100644
23 index 00000000000..187109d9611
24 --- /dev/null
25 +++ b/dev-python/python-utils/Manifest
26 @@ -0,0 +1 @@
27 +DIST python-utils-2.3.0.tar.gz 19384 BLAKE2B 1746deadc8dbaf49a6499fe9c79d25c2b5cfea68e2d1b7ab6f88aa72807eedcdb338058e24a7822c6360dea36f1a044145572443c57f43f4cfed765a76e48f0b SHA512 482ccf9c635a0cbe603b69488a364d9033f8b7fada279d901725b5bf91ac13b1cd4a6b7e8d5834a9355d97d8b0803397d5e13da2b7ba72f8d8e2f7f39fee027a
28
29 diff --git a/dev-python/python-utils/files/python-utils-2.3.0-pytest-runner.patch b/dev-python/python-utils/files/python-utils-2.3.0-pytest-runner.patch
30 new file mode 100644
31 index 00000000000..277c283cad4
32 --- /dev/null
33 +++ b/dev-python/python-utils/files/python-utils-2.3.0-pytest-runner.patch
34 @@ -0,0 +1,11 @@
35 +diff -uNr python-utils-2.3.0.ORIG/setup.py python-utils-2.3.0/setup.py
36 +--- python-utils-2.3.0.ORIG/setup.py 2019-02-01 15:09:06.863038597 +0000
37 ++++ python-utils-2.3.0/setup.py 2019-02-01 15:09:22.636039253 +0000
38 +@@ -27,7 +27,6 @@
39 + long_description=long_description,
40 + install_requires=['six'],
41 + tests_require=['pytest'],
42 +- setup_requires=['pytest-runner'],
43 + classifiers=['License :: OSI Approved :: BSD License'],
44 + )
45 +
46
47 diff --git a/dev-python/python-utils/metadata.xml b/dev-python/python-utils/metadata.xml
48 new file mode 100644
49 index 00000000000..70fe7370de4
50 --- /dev/null
51 +++ b/dev-python/python-utils/metadata.xml
52 @@ -0,0 +1,12 @@
53 +<?xml version="1.0" encoding="UTF-8"?>
54 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
55 +<pkgmetadata>
56 + <maintainer type="person">
57 + <email>chainsaw@g.o</email>
58 + <name>Tony Vroon</name>
59 + </maintainer>
60 +
61 + <upstream>
62 + <remote-id type="pypi">python-utils</remote-id>
63 + </upstream>
64 +</pkgmetadata>
65
66 diff --git a/dev-python/python-utils/python-utils-2.3.0.ebuild b/dev-python/python-utils/python-utils-2.3.0.ebuild
67 new file mode 100644
68 index 00000000000..bd24410195b
69 --- /dev/null
70 +++ b/dev-python/python-utils/python-utils-2.3.0.ebuild
71 @@ -0,0 +1,31 @@
72 +# Copyright 1999-2019 Gentoo Authors
73 +# Distributed under the terms of the GNU General Public License v2
74 +
75 +EAPI=7
76 +PYTHON_COMPAT=( python2_7 python3_5 pypy pypy3)
77 +PATCHES=( "${FILESDIR}"/${P}-pytest-runner.patch )
78 +
79 +inherit distutils-r1
80 +
81 +DESCRIPTION="Collection of small Python functions & classes"
82 +HOMEPAGE="https://pypi.org/project/python-utils/"
83 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
84 +
85 +LICENSE="BSD"
86 +SLOT="0"
87 +KEYWORDS="~amd64"
88 +
89 +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
90 + dev-python/six[${PYTHON_USEDEP}]"
91 +BDEPEND="${RDEPEND}
92 + dev-python/pytest-flakes[${PYTHON_USEDEP}]"
93 +
94 +python_prepare_all() {
95 + find . -name '__pycache__' -prune -exec rm -rf {} \; || die "Cleaning __pycache__ failed"
96 + find . -name '*.pyc' -exec rm -f {} \; || die "Cleaning *.pyc failed"
97 + distutils-r1_python_prepare_all
98 +}
99 +
100 +python_test() {
101 + pytest -v || die
102 +}