Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/anys/files/, dev-python/anys/
Date: Mon, 28 Mar 2022 14:33:39
Message-Id: 1648478006.af3f0c4c30e2f2996de6c9b88155ec86e9e5f5cf.chymera@gentoo
1 commit: af3f0c4c30e2f2996de6c9b88155ec86e9e5f5cf
2 Author: Horea Christian <chr <AT> chymera <DOT> eu>
3 AuthorDate: Mon Mar 28 14:33:26 2022 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Mon Mar 28 14:33:26 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=af3f0c4c
7
8 dev-python/anys: new package (DANDI stack)
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Horea Christian <chr <AT> chymera.eu>
12
13 dev-python/anys/anys-0.2.0.ebuild | 28 +++++++++++++++++++++++++
14 dev-python/anys/anys-0.2.1.ebuild | 28 +++++++++++++++++++++++++
15 dev-python/anys/files/anys-0.2.0-coverage.patch | 10 +++++++++
16 dev-python/anys/metadata.xml | 16 ++++++++++++++
17 4 files changed, 82 insertions(+)
18
19 diff --git a/dev-python/anys/anys-0.2.0.ebuild b/dev-python/anys/anys-0.2.0.ebuild
20 new file mode 100644
21 index 000000000..0d2fec35f
22 --- /dev/null
23 +++ b/dev-python/anys/anys-0.2.0.ebuild
24 @@ -0,0 +1,28 @@
25 +# Copyright 1999-2022 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=8
29 +
30 +PYTHON_COMPAT=( python3_{8..9} )
31 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml
32 +inherit distutils-r1
33 +
34 +DESCRIPTION="Matchers for pytest"
35 +HOMEPAGE="https://github.com/jwodder/anys"
36 +SRC_URI="https://github.com/jwodder/anys/releases/download/v${PV}/${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +IUSE="test"
42 +RESTRICT="!test? ( test )"
43 +
44 +RDEPEND="
45 + dev-python/wheel[${PYTHON_USEDEP}]
46 +"
47 +
48 +PATCHES=(
49 + "${FILESDIR}/${PN}-0.2.0-coverage.patch"
50 +)
51 +
52 +distutils_enable_tests pytest
53
54 diff --git a/dev-python/anys/anys-0.2.1.ebuild b/dev-python/anys/anys-0.2.1.ebuild
55 new file mode 100644
56 index 000000000..783fc75ce
57 --- /dev/null
58 +++ b/dev-python/anys/anys-0.2.1.ebuild
59 @@ -0,0 +1,28 @@
60 +# Copyright 1999-2022 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=8
64 +
65 +PYTHON_COMPAT=( python3_{8..10} )
66 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml
67 +inherit distutils-r1
68 +
69 +DESCRIPTION="Matchers for pytest"
70 +HOMEPAGE="https://github.com/jwodder/anys"
71 +SRC_URI="https://github.com/jwodder/anys/releases/download/v${PV}/${P}.tar.gz"
72 +
73 +LICENSE="MIT"
74 +SLOT="0"
75 +KEYWORDS="~amd64 ~x86"
76 +IUSE="test"
77 +RESTRICT="!test? ( test )"
78 +
79 +RDEPEND="
80 + dev-python/wheel[${PYTHON_USEDEP}]
81 +"
82 +
83 +PATCHES=(
84 + "${FILESDIR}/${PN}-0.2.0-coverage.patch"
85 +)
86 +
87 +distutils_enable_tests pytest
88
89 diff --git a/dev-python/anys/files/anys-0.2.0-coverage.patch b/dev-python/anys/files/anys-0.2.0-coverage.patch
90 new file mode 100644
91 index 000000000..8091ded2d
92 --- /dev/null
93 +++ b/dev-python/anys/files/anys-0.2.0-coverage.patch
94 @@ -0,0 +1,10 @@
95 +--- a/tox.ini 2021-09-27 06:43:49.569561395 -0400
96 ++++ b/tox.ini 2021-09-27 06:47:36.549815529 -0400
97 +@@ -30,7 +30,6 @@
98 + mypy src test
99 +
100 + [pytest]
101 +-addopts = --cov=anys --no-cov-on-fail
102 + filterwarnings = error
103 + norecursedirs = test/data
104 +
105
106 diff --git a/dev-python/anys/metadata.xml b/dev-python/anys/metadata.xml
107 new file mode 100644
108 index 000000000..f0a7bb068
109 --- /dev/null
110 +++ b/dev-python/anys/metadata.xml
111 @@ -0,0 +1,16 @@
112 +<?xml version='1.0' encoding='UTF-8'?>
113 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
114 +<pkgmetadata>
115 + <maintainer type="person">
116 + <email>gentoo@×××××××.eu</email>
117 + <name>Horea Christian</name>
118 + </maintainer>
119 + <maintainer type="project">
120 + <email>sci@g.o</email>
121 + <name>Gentoo Science Project</name>
122 + </maintainer>
123 + <upstream>
124 + <remote-id type="github">jwodder/anys</remote-id>
125 + <remote-id type="pypi">anys</remote-id>
126 + </upstream>
127 +</pkgmetadata>