Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools_scm_git_archive/
Date: Mon, 16 May 2022 16:05:07
Message-Id: 1652717095.ff407d5c605f2975be92c92b932c3a56199c6c47.mgorny@gentoo
1 commit: ff407d5c605f2975be92c92b932c3a56199c6c47
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 16 15:48:59 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 16 16:04:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff407d5c
7
8 dev-python/setuptools_scm_git_archive: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../setuptools_scm_git_archive-1.1-r5.ebuild | 39 ++++++++++++++++++++++
13 1 file changed, 39 insertions(+)
14
15 diff --git a/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1-r5.ebuild b/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1-r5.ebuild
16 new file mode 100644
17 index 000000000000..cb642d3b9a19
18 --- /dev/null
19 +++ b/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1-r5.ebuild
20 @@ -0,0 +1,39 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="A setuptools_scm plugin for git archives"
32 +HOMEPAGE="
33 + https://github.com/Changaco/setuptools_scm_git_archive/
34 + https://pypi.org/project/setuptools_scm_git_archive/
35 +"
36 +SRC_URI="
37 + https://github.com/Changaco/setuptools_scm_git_archive/archive/${PV}.tar.gz
38 + -> ${P}.tar.gz
39 +"
40 +
41 +LICENSE="MIT"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
44 +IUSE=""
45 +
46 +RDEPEND="
47 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
48 +"
49 +BDEPEND="
50 + ${RDEPEND}
51 +"
52 +
53 +distutils_enable_tests pytest
54 +
55 +export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}"
56 +
57 +python_test() {
58 + epytest tests.py
59 +}