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/calver/
Date: Sat, 25 Jun 2022 11:18:54
Message-Id: 1656155921.59e355f9f8ec7f141fb277f140aa9aa606cbc761.mgorny@gentoo
1 commit: 59e355f9f8ec7f141fb277f140aa9aa606cbc761
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 07:50:33 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 11:18:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59e355f9
7
8 dev-python/calver: New package, v2021.7.30
9
10 This is a dep for trove-classifiers that was originally needed
11 for validate-pyproject but that package is too bad to be included.
12
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 dev-python/calver/Manifest | 1 +
16 dev-python/calver/calver-2021.7.30.ebuild | 42 +++++++++++++++++++++++++++++++
17 dev-python/calver/metadata.xml | 11 ++++++++
18 3 files changed, 54 insertions(+)
19
20 diff --git a/dev-python/calver/Manifest b/dev-python/calver/Manifest
21 new file mode 100644
22 index 000000000000..5af01431b30c
23 --- /dev/null
24 +++ b/dev-python/calver/Manifest
25 @@ -0,0 +1 @@
26 +DIST calver-2021.7.30.gh.tar.gz 7058 BLAKE2B 90cb8568bce2afcf3e086e038dc237440c5d20c05cc19b7d6966d16b55854810a627120dc870d77975676ca166eac0922443d19b85aeffdb51f3cf435848ef5d SHA512 17c10b0f60ec4c8c582de660bd715d054c3478d8fdec88a6830396bad1d6147ce375a34c5ff57d244c8c2e337a6b382b6ee10673182a40bc14ad16a97405f181
27
28 diff --git a/dev-python/calver/calver-2021.7.30.ebuild b/dev-python/calver/calver-2021.7.30.ebuild
29 new file mode 100644
30 index 000000000000..ee5748e2277a
31 --- /dev/null
32 +++ b/dev-python/calver/calver-2021.7.30.ebuild
33 @@ -0,0 +1,42 @@
34 +# Copyright 2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +DISTUTILS_USE_PEP517=setuptools
40 +PYTHON_COMPAT=( pypy3 python3_{8..11} )
41 +
42 +inherit distutils-r1
43 +
44 +DESCRIPTION="Setuptools extension for CalVer package versions"
45 +HOMEPAGE="
46 + https://github.com/di/calver/
47 + https://pypi.org/project/calver/
48 +"
49 +SRC_URI="
50 + https://github.com/di/calver/archive/${PV}.tar.gz
51 + -> ${P}.gh.tar.gz
52 +"
53 +
54 +LICENSE="Apache-2.0"
55 +SLOT="0"
56 +KEYWORDS="~amd64"
57 +
58 +BDEPEND="
59 + test? (
60 + dev-python/pretend[${PYTHON_USEDEP}]
61 + )
62 +"
63 +
64 +distutils_enable_tests pytest
65 +
66 +src_prepare() {
67 + distutils-r1_src_prepare
68 +
69 + # bootstrap workaround, until https://github.com/di/calver/pull/8
70 + # is merged
71 + cat > setup.cfg <<-EOF
72 + [metadata]
73 + version = ${PV}
74 + EOF
75 +}
76
77 diff --git a/dev-python/calver/metadata.xml b/dev-python/calver/metadata.xml
78 new file mode 100644
79 index 000000000000..2acd1a33af2c
80 --- /dev/null
81 +++ b/dev-python/calver/metadata.xml
82 @@ -0,0 +1,11 @@
83 +<?xml version="1.0" encoding="UTF-8"?>
84 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
85 +<pkgmetadata>
86 + <maintainer type="project">
87 + <email>python@g.o</email>
88 + </maintainer>
89 + <upstream>
90 + <remote-id type="github">di/calver</remote-id>
91 + <remote-id type="pypi">calver</remote-id>
92 + </upstream>
93 +</pkgmetadata>