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/twine/
Date: Thu, 27 Jan 2022 10:02:32
Message-Id: 1643277741.272b78d82a05ddd10ebdf9e9145f3d87499f4d00.mgorny@gentoo
1 commit: 272b78d82a05ddd10ebdf9e9145f3d87499f4d00
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 27 09:51:09 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 27 10:02:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=272b78d8
7
8 dev-python/twine: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/twine/twine-3.7.0-r1.ebuild | 54 ++++++++++++++++++++++++++++++++++
13 1 file changed, 54 insertions(+)
14
15 diff --git a/dev-python/twine/twine-3.7.0-r1.ebuild b/dev-python/twine/twine-3.7.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..8566ac09bad8
18 --- /dev/null
19 +++ b/dev-python/twine/twine-3.7.0-r1.ebuild
20 @@ -0,0 +1,54 @@
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 +inherit distutils-r1
29 +
30 +DESCRIPTION="Collection of utilities for publishing packages on PyPI"
31 +HOMEPAGE="https://twine.readthedocs.io/ https://github.com/pypa/twine https://pypi.org/project/twine/"
32 +SRC_URI="https://github.com/pypa/twine/archive/${PV}.tar.gz -> ${P}.tar.gz"
33 +
34 +LICENSE="Apache-2.0"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
37 +
38 +RDEPEND="
39 + >=dev-python/colorama-0.4.3[${PYTHON_USEDEP}]
40 + >=dev-python/importlib_metadata-3.6[${PYTHON_USEDEP}]
41 + >=dev-python/keyring-15.1[${PYTHON_USEDEP}]
42 + >=dev-python/pkginfo-1.8.1[${PYTHON_USEDEP}]
43 + >=dev-python/readme_renderer-21.0[${PYTHON_USEDEP}]
44 + >=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
45 + >=dev-python/requests-toolbelt-0.8.0[${PYTHON_USEDEP}]
46 + >=dev-python/rfc3986-1.4.0[${PYTHON_USEDEP}]
47 + >=dev-python/tqdm-4.14[${PYTHON_USEDEP}]
48 +"
49 +BDEPEND="
50 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
51 + test? (
52 + dev-python/jaraco-envs[${PYTHON_USEDEP}]
53 + dev-python/jaraco-functools[${PYTHON_USEDEP}]
54 + dev-python/munch[${PYTHON_USEDEP}]
55 + dev-python/portend[${PYTHON_USEDEP}]
56 + dev-python/pretend[${PYTHON_USEDEP}]
57 + dev-python/pypiserver[${PYTHON_USEDEP}]
58 + dev-python/pytest[${PYTHON_USEDEP}]
59 + )
60 +"
61 +
62 +distutils_enable_tests pytest
63 +
64 +python_prepare_all() {
65 + # requires internet
66 + rm -f tests/test_integration.py || die
67 + # pytest-socket dep relevant only to test_integration, and upstream
68 + # disables it anyway
69 + sed -i -e '/--disable-socket/d' pytest.ini || die
70 + sed -i -e '/--cov/d' pytest.ini || die
71 +
72 + distutils-r1_python_prepare_all
73 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
74 +}