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/packaging/
Date: Fri, 06 Mar 2020 13:43:17
Message-Id: 1583502179.a940ee56f9c003b4c5985a76f6a14297114cddfa.mgorny@gentoo
1 commit: a940ee56f9c003b4c5985a76f6a14297114cddfa
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 6 12:10:16 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 6 13:42:59 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a940ee56
7
8 dev-python/packaging: Bump to 20.3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/packaging/Manifest | 1 +
13 dev-python/packaging/packaging-20.3.ebuild | 51 ++++++++++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-python/packaging/Manifest b/dev-python/packaging/Manifest
17 index 59384a6f7b6..000c9a03539 100644
18 --- a/dev-python/packaging/Manifest
19 +++ b/dev-python/packaging/Manifest
20 @@ -2,3 +2,4 @@ DIST packaging-16.8.tar.gz 44706 BLAKE2B 6443f05d3745eb6c4cc3d51fccfb1afcfa207ac
21 DIST packaging-19.2.tar.gz 59110 BLAKE2B 8098538b8f48f4ff478eb13f3f4384d08c246b8a99711a48b2f412deaecd85faf13e24fd910a7a262c3407c5eb54939cd926e31e6f802deed0e28e0a92dfdb86 SHA512 af7312a85292f577d3e6e57154f10fb380bbdee749344ba4b226a09f22bf5ca664ed63c62cd5b4dea0be5eb5cff5c17ad04415aab8c925fa90dcae2e1c6dee5a
22 DIST packaging-20.0.tar.gz 72663 BLAKE2B 39fe2c52389978d1c6d7a0a0044b549a96fd386f83ece2dac65090b8ea55193fb2334102523c5119ef29050655d81bc015e3b02c6589088ef6f5bc8e97f3aa04 SHA512 f7d99700d27d5aebbb3343f1de6ee9ce1372750b805c55a40d1a1fbeb6cfcfe2184875db56de175c6cd46e17f1567c30a39d5527870902c3c69168d025447587
23 DIST packaging-20.1.tar.gz 72955 BLAKE2B cd23c407693fcfd62c6fb40d996c3768201535cf6ba6dc825a6ee9e1b456a902aa730d1151e3b4e73fcc1193236dbd5ea9cfe6e17eefbc038d48aed12df9089b SHA512 1d51e81ab8b8c552d880ae3d210fe140835de181b6fcee3eb382f0f1d6a416e9cbdaeb52a81c50c53d2c5f5cdc40ee516f29ced845868a1bf7be3b23433f21d7
24 +DIST packaging-20.3.tar.gz 73015 BLAKE2B 863a04124543d510455ffd6cd6974e7b3ed0c43e02baa5124631e24e7d56017d0289475fbcd9a4f038607c4a13aced32d2b98a82d975903afa154b520feb0019 SHA512 b27ad6f72bfe0965a6e6bff78e4e37d4cbab73dc0a1b019673c85615c9d99edf237effeb9756702c6e8c1575a2d981f6d1af364c73d0a451fbb167d64678630f
25
26 diff --git a/dev-python/packaging/packaging-20.3.ebuild b/dev-python/packaging/packaging-20.3.ebuild
27 new file mode 100644
28 index 00000000000..cbdf1bd9438
29 --- /dev/null
30 +++ b/dev-python/packaging/packaging-20.3.ebuild
31 @@ -0,0 +1,51 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Core utilities for Python packages"
42 +HOMEPAGE="https://github.com/pypa/packaging https://pypi.org/project/packaging/"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +SLOT="0"
46 +LICENSE="|| ( Apache-2.0 BSD-2 )"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
48 +IUSE="test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + >=dev-python/pyparsing-2.1.10[${PYTHON_USEDEP}]
53 + dev-python/six[${PYTHON_USEDEP}]
54 +"
55 +DEPEND="
56 + test? (
57 + dev-python/pretend[${PYTHON_USEDEP}]
58 + dev-python/pytest[${PYTHON_USEDEP}]
59 + )
60 +"
61 +
62 +PATCHES=(
63 + "${FILESDIR}/${PN}-16.8-distutils.patch"
64 +)
65 +
66 +python_test() {
67 + pytest --capture=no --strict -vv || die
68 +}
69 +
70 +pkg_preinst() {
71 + # https://bugs.gentoo.org/585146
72 + cd "${HOME}" || die
73 +
74 + _cleanup() {
75 + local pyver=$("${PYTHON}" -c "from distutils.sysconfig import get_python_version; print(get_python_version())")
76 + local egginfo="${ROOT}$(python_get_sitedir)/${P}-py${pyver}.egg-info"
77 + if [[ -d ${egginfo} ]]; then
78 + rm -rv "${egginfo}" || die "Failed to remove egg-info directory"
79 + fi
80 + }
81 + python_foreach_impl _cleanup
82 +}